/**
 * Header / Navbar styles
 * my-more theme — Navbar redesign
 */

:root {
  --navy: #1a2858;
  --navy-deep: #0f1a3d;
  --cyan: #5bc5e7;
  --cyan-soft: #e6f4fa;
  --ink: #11162a;
  --muted: #5a6075;
  --line: rgba(17, 22, 42, 0.08);
  --line-strong: rgba(17, 22, 42, 0.14);
}

/* ===========================  RESET old header rules  =========================== */
/* Override legacy `header` element styles from global.css/responsive.css */
.site-header.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

/* ===========================  NAV  =========================== */
.site-header .nav {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-radius: 0;
  background: transparent;
  border: 0;
  transition: padding 0.25s ease;
}

.site-header.nav-wrap.is-scrolled .nav {
  padding: 10px 32px;
}

/* scrolled state — frosted (default) */
.site-header.nav-wrap.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(17, 22, 42, 0.18);
}

/* variant: solid */
body[data-scroll-style="solid"] .site-header.nav-wrap.is-scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 6px 18px -14px rgba(17, 22, 42, 0.25);
  border-bottom-color: var(--line);
}

/* variant: navy */
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled {
  background: var(--navy);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px -18px rgba(15, 26, 61, 0.45);
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .nav-link { color: rgba(255, 255, 255, 0.78); }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .nav-link:hover { color: #fff; }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .nav-link.is-active { color: #fff; }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .nav-link.is-active::after { background: var(--cyan); }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .logo-text-top { color: #fff; }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .logo-text-bottom { color: var(--cyan); }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .logo-arch-a { stroke: #fff; }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .logo-arch-b { stroke: var(--cyan); }

/* ===========================  LOGO  =========================== */
.site-header .site-logo,
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 12px;
  min-width: 0;
}
.site-header .logo svg { display: block; }
.site-header .logo img {
  display: block;
  max-height: 40px;
  width: auto;
}
.site-header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
}
.site-header .logo-text-top { color: var(--navy); }
.site-header .logo-text-bottom { color: var(--cyan); margin-top: 3px; }

/* ===========================  NAV LINKS  =========================== */
.site-header .links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* The WP-rendered ul.menu inside .links */
.site-header .links ul,
.site-header .links .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header .links li { margin: 0; padding: 0; }

.site-header .nav-link,
.site-header .links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: color 0.18s ease, background-color 0.18s ease;
  line-height: 1;
}
.site-header .nav-link:hover,
.site-header .links a:hover {
  color: var(--navy);
  background: rgba(91, 197, 231, 0.10);
  opacity: 1; /* override global.css :hover opacity */
}

/* ACTIVE — underline (default) */
.site-header .nav-link.is-active,
.site-header .links .current-menu-item > a,
.site-header .links .current_page_item > a {
  color: var(--navy);
  font-weight: 600;
}
.site-header .nav-link.is-active::after,
.site-header .links .current-menu-item > a::after,
.site-header .links .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: background 0.2s ease;
}

/* ACTIVE — pill */
body[data-active-style="pill"] .site-header .nav-link.is-active,
body[data-active-style="pill"] .site-header .links .current-menu-item > a,
body[data-active-style="pill"] .site-header .links .current_page_item > a {
  background: var(--navy);
  color: #fff;
}
body[data-active-style="pill"] .site-header .nav-link.is-active::after,
body[data-active-style="pill"] .site-header .links .current-menu-item > a::after,
body[data-active-style="pill"] .site-header .links .current_page_item > a::after { display: none; }
body[data-active-style="pill"] .site-header .nav-link.is-active:hover { background: var(--navy-deep); color: #fff; }

/* ACTIVE — dot */
body[data-active-style="dot"] .site-header .nav-link.is-active::after,
body[data-active-style="dot"] .site-header .links .current-menu-item > a::after,
body[data-active-style="dot"] .site-header .links .current_page_item > a::after {
  left: 50%;
  right: auto;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ACTIVE — soft */
body[data-active-style="soft"] .site-header .nav-link.is-active,
body[data-active-style="soft"] .site-header .links .current-menu-item > a,
body[data-active-style="soft"] .site-header .links .current_page_item > a {
  background: var(--cyan-soft);
  color: var(--navy);
}
body[data-active-style="soft"] .site-header .nav-link.is-active::after,
body[data-active-style="soft"] .site-header .links .current-menu-item > a::after,
body[data-active-style="soft"] .site-header .links .current_page_item > a::after { display: none; }

/* ===========================  CTAs  =========================== */
.site-header .cta-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.site-header .cta svg { width: 14px; height: 14px; }

/* Primary — Rent a car */
.site-header .cta-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(26, 40, 88, 0.6);
  border: 0;
}
.site-header .cta-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -10px rgba(26, 40, 88, 0.65);
  color: #fff;
}

/* Secondary — Kontakt (ghost) */
.site-header .cta-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
}
.site-header .cta-secondary:hover {
  border-color: var(--navy);
  background: rgba(26, 40, 88, 0.04);
  color: var(--navy);
}

/* Navy scroll mode — invert ghost button */
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .cta-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .cta-primary {
  background: var(--cyan);
  color: var(--navy-deep);
  box-shadow: 0 10px 22px -10px rgba(91, 197, 231, 0.55);
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .cta-primary:hover {
  background: #7fd2ed;
}

/* ===========================  HAMBURGER BUTTON  =========================== */
.site-header .menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  color: var(--navy);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.site-header .menu-btn:hover { background: rgba(26, 40, 88, 0.05); border-color: var(--navy); }
.site-header .menu-btn .bars { position: relative; width: 20px; height: 14px; }
.site-header .menu-btn .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.site-header .menu-btn .bars span:nth-child(1) { top: 0; }
.site-header .menu-btn .bars span:nth-child(2) { top: 6px; }
.site-header .menu-btn .bars span:nth-child(3) { top: 12px; }
body.menu-open .site-header .menu-btn .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
body.menu-open .site-header .menu-btn .bars span:nth-child(2) { opacity: 0; }
body.menu-open .site-header .menu-btn .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .menu-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* ===========================  MOBILE DRAWER  =========================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 61, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 998;
}
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(15, 26, 61, 0.35);
}
body.menu-open .drawer { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.drawer-close:hover { background: rgba(17, 22, 42, 0.05); }

.drawer-links {
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}
.drawer-links ul,
.drawer-links .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-links li { margin: 0; padding: 0; }
.drawer-links a {
  display: flex;
  align-items: center;
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 17px;
  position: relative;
}
.drawer-links a:hover { background: rgba(91, 197, 231, 0.10); color: var(--navy); opacity: 1; }
.drawer-links a.is-active,
.drawer-links .current-menu-item > a,
.drawer-links .current_page_item > a {
  background: var(--cyan-soft);
  color: var(--navy);
  font-weight: 600;
}
.drawer-links a.is-active::before,
.drawer-links .current-menu-item > a::before,
.drawer-links .current_page_item > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--cyan);
  border-radius: 0 3px 3px 0;
}

.drawer-foot {
  padding: 18px 20px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.drawer-foot .lang { width: 100%; justify-content: stretch; margin-right: 0; }
.drawer-foot .lang button { flex: 1; height: 34px; padding: 0; }
.drawer-foot .cta { width: 100%; justify-content: center; height: 48px; }

/* ===========================  LANG SWITCHER  =========================== */
.site-header .lang,
.drawer .lang {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(17, 22, 42, 0.05);
  border: 1px solid transparent;
  gap: 2px;
  margin-right: 4px;
}
.site-header .lang button,
.site-header .lang a,
.drawer .lang button,
.drawer .lang a {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.site-header .lang button:hover,
.site-header .lang a:hover,
.drawer .lang button:hover,
.drawer .lang a:hover { color: var(--navy); opacity: 1; }
.site-header .lang button.is-active,
.site-header .lang a.is-active,
.drawer .lang button.is-active,
.drawer .lang a.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(17, 22, 42, 0.08), 0 0 0 1px var(--line);
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang {
  background: rgba(255, 255, 255, 0.10);
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang button,
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang a {
  color: rgba(255, 255, 255, 0.7);
}
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang button:hover,
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang a:hover { color: #fff; }
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang button.is-active,
body[data-scroll-style="navy"] .site-header.nav-wrap.is-scrolled .lang a.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.drawer-foot .lang a,
.drawer-foot .lang button { flex: 1; height: 34px; padding: 0; }

/* ===========================  RESPONSIVE  =========================== */
@media (max-width: 960px) {
  .site-header .nav { padding: 12px 18px; gap: 12px; }
  .site-header.nav-wrap.is-scrolled .nav { padding: 10px 18px; }
  .site-header .links { display: none; }
  .site-header .cta-wrap { justify-self: end; }
  .site-header .cta-wrap > .cta-secondary,
  .site-header .cta-wrap > .cta-primary { display: none; }
  .site-header .cta-wrap > .lang { display: inline-flex; height: 32px; margin-right: 4px; }
  .site-header .cta-wrap > .lang a,
  .site-header .cta-wrap > .lang button { height: 26px; padding: 0 8px; font-size: 11px; }
  .site-header .menu-btn { display: inline-flex; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 460px) {
  .site-header .nav { padding: 10px 14px; gap: 8px; }
  .site-header.nav-wrap.is-scrolled .nav { padding: 8px 14px; }
  .site-header .cta-primary span.cta-label-full { display: none; }
  .site-header .logo-text { display: none; }
}

@media (min-width: 961px) {
  .site-header .menu-btn,
  .drawer,
  .drawer-backdrop { display: none !important; }
}


/* ===========================  FLOATING RENT A CAR BUTTON  =========================== */
.mm-floating-rent {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--navy, #1a2858);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(26, 40, 88, 0.55), 0 0 0 6px rgba(91, 197, 231, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mm-floating-rent:hover {
  background: var(--navy-deep, #0f1a3d);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(26, 40, 88, 0.65), 0 0 0 8px rgba(91, 197, 231, 0.22);
  color: #fff;
  opacity: 1;
}
.mm-floating-rent .mm-fr-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cyan, #5bc5e7);
  color: var(--navy, #1a2858);
}
.mm-floating-rent .mm-fr-icon svg { width: 14px; height: 14px; }
@media (max-width: 460px) {
  .mm-floating-rent { bottom: 16px; right: 16px; height: 50px; padding: 0 18px; font-size: 14px; }
  .mm-floating-rent .mm-fr-icon { width: 18px; height: 18px; }
}
/* MYMORE: floating button visible on all pages */


/* ===========================  UNAVAILABLE VEHICLE CARD  =========================== */
.product-card.unavailable {
    position: relative;
    opacity: 0.55;
    filter: grayscale(40%);
    transition: opacity 0.2s ease;
}
.product-card.unavailable:hover {
    opacity: 0.7;
}
.product-card.unavailable .product-image {
    position: relative;
}
.product-card.unavailable .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 22, 42, 0.18);
    pointer-events: none;
}
.unavailable-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d8252b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px -4px rgba(216, 37, 43, 0.5);
}
.rent-now-button.disabled,
.rent-now-button.disabled:hover {
    pointer-events: none;
    cursor: not-allowed;
    background: #b6bbcb !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.85;
}


/* === Hide floating Rent button on rent-flow pages (insurance/checkout/rent) - prevents overlap on mobile === */
body.page-template-template-insurance .mm-floating-rent,
body.page-template-template-insurance-php .mm-floating-rent,
body.page-template-template-checkout .mm-floating-rent,
body.page-template-template-checkout-php .mm-floating-rent,
body.page-template-template-rent .mm-floating-rent,
body.page-template-template-rent-php .mm-floating-rent {
    display: none !important;
}
