/* Site-wide chrome restyle: white + orange rental-marketplace direction (reference-pinned). */
:root{
  --rc-orange:#f4641a;
  --rc-orange-deep:#d94f0c;
  --rc-orange-tint:#fff1e6;
  --rc-navy:#101522;
  --rc-navy-soft:#4a5264;
  --rc-line:#ece6de;
}
body{font-family:'Roboto',sans-serif}

.topbar{background:#f7f7f8;color:var(--rc-navy-soft);border-bottom:1px solid var(--rc-line)}
.topbar a{color:var(--rc-navy)}

.lux-header{background:#fff;color:var(--rc-navy);box-shadow:0 1px 0 var(--rc-line)}
.lux-header .brand{color:var(--rc-navy);font-weight:800;font-family:'Roboto',sans-serif}
.lux-header .brand img.brand-logo{width:auto;height:56px;max-width:280px;object-fit:contain;border-radius:0}
.lux-header nav a{color:var(--rc-navy-soft);font-weight:600}
.lux-header nav a:not(.public-contact-btn):hover{color:var(--rc-orange)}
.lux-header nav.is-open{background:#fff;border:1px solid var(--rc-line)}

.lux-header .btn.whatsapp-icon{background:var(--rc-orange);color:#fff;border-radius:10px;font-weight:700}

footer{background:var(--rc-navy);color:#cbd1dc}
footer b{color:#fff}
footer a,.icon-link{color:#cbd1dc}
footer a:not(.public-contact-btn):hover{color:var(--rc-orange)}

.enquiry-modal{border-radius:20px}
.modal-close{background:var(--rc-orange-tint);color:var(--rc-orange-deep)}
.modal-logo{background:var(--rc-orange-tint);color:var(--rc-orange-deep)}
.modal-brand h2{font-family:'Roboto',sans-serif;font-weight:800}
.popup-submit{background:var(--rc-orange);color:#fff}
.popup-submit:hover{background:var(--rc-orange-deep)}

/* Public header: logo, centered primary links, and a balanced contact group. */
body:not(.admin) .lux-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  min-height: 94px;
  height: auto;
  padding: 12px clamp(20px, 4vw, 64px);
  background: #FFFFFF;
  color: #101820;
  border-bottom: 1px solid #D7A84A;
  box-shadow: 0 5px 18px rgba(16, 24, 32, .055);
}
body:not(.admin) .lux-header > .brand { grid-column: 1; justify-self: start; min-width: 0; }
body:not(.admin) .lux-header .brand img.brand-logo { display: block; max-width: min(280px, 100%); height: 58px; width: auto; object-fit: contain; }
body:not(.admin) .lux-header > #publicNav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  min-width: 0;
  background: transparent;
  border: 0;
}
body:not(.admin) .lux-header > #publicNav > a:not(.public-contact-btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #101820;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: color .18s ease;
}
body:not(.admin) .lux-header > #publicNav > a:not(.public-contact-btn)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #D7A84A;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
body:not(.admin) .lux-header > #publicNav > a:not(.public-contact-btn):hover,
body:not(.admin) .lux-header > #publicNav > a[aria-current="page"] { color: #101820; }
body:not(.admin) .lux-header > #publicNav > a[aria-current="page"]::after,
body:not(.admin) .lux-header > #publicNav > a:not(.public-contact-btn):hover::after { transform: scaleX(1); }
body:not(.admin) .lux-header > .public-header-actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn {
  min-width: 142px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1.5px solid #D7A84A;
  border-radius: 13px;
  background: #FFFFFF;
  color: #101820;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn--call svg { color: #101820; stroke: currentColor; fill: currentColor; }
body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn--whatsapp svg { color: #25D366; fill: currentColor; }
body:not(.admin) .lux-header > :is(.brand, #publicNav, .public-header-actions) { min-width: 0; }
body:not(.admin) .lux-header :is(a, button):focus-visible {
  outline: 3px solid rgba(215, 168, 74, .68);
  outline-offset: 3px;
}
.mobile-nav-toggle { color: #101820; border-color: #D7A84A; }

/* Hamburger transforms into an X when the menu is open. */
.mobile-nav-toggle span { transition: transform .18s ease, opacity .18s ease; }
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-toggle span { transition: none; }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  body:not(.admin) .lux-header { grid-template-columns: minmax(150px, .8fr) auto minmax(218px, .9fr); gap: 12px; padding-inline: 22px; }
  body:not(.admin) .lux-header .brand img.brand-logo { height: 52px; max-width: 210px; }
  body:not(.admin) .lux-header > #publicNav { gap: 12px; }
  body:not(.admin) .lux-header > #publicNav > a:not(.public-contact-btn) { font-size: 13px; }
  body:not(.admin) .lux-header > .public-header-actions { gap: 7px; }
  body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn { min-width: 0; padding-inline: 11px; font-size: 13px; }
}

@media (max-width: 1024px) {
  body:not(.admin) .lux-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    min-height: 0;
    padding: 10px 4%;
  }
  body:not(.admin) .lux-header > .brand { grid-column: 1; grid-row: 1; }
  body:not(.admin) .lux-header .brand img.brand-logo { height: 48px; max-width: min(220px, 62vw); }
  body:not(.admin) .lux-header > .mobile-nav-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  body:not(.admin) .lux-header > #publicNav { display: none; }
  body:not(.admin) .lux-header > #publicNav.is-open {
    position: fixed;
    top: 128px;
    left: 16px;
    right: 16px;
    z-index: 91;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid #D7A84A;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .08);
    width: calc(100vw - 32px);
    max-width: 600px;
    margin: 0 auto;
    animation: lux-nav-in .18s ease-out;
  }
  @keyframes lux-nav-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    body:not(.admin) .lux-header > #publicNav.is-open { animation: none; }
  }
  /* Nav items inside the open mobile popup: clean full-width rows.
     These rules are scoped to #publicNav so they never touch the
     header contact buttons (.public-contact-btn) on the same element. */
  body:not(.admin) .lux-header > #publicNav.is-open > a:not(.public-contact-btn) {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    align-items: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #101820;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
  }
  body:not(.admin) .lux-header > #publicNav.is-open > a:not(.public-contact-btn):hover {
    background: #FFF8EC;
    color: var(--rc-orange-deep, #d94f0c);
  }
  body:not(.admin) .lux-header > #publicNav.is-open > a:not(.public-contact-btn):active {
    background: #FFF1DC;
  }
  body:not(.admin) .lux-header > #publicNav.is-open > a[aria-current="page"]:not(.public-contact-btn) {
    color: var(--rc-orange-deep, #d94f0c);
    font-weight: 700;
  }
  /* Contact buttons inside the popup (if ever added) keep their original white+border style */
  body:not(.admin) .lux-header > #publicNav.is-open > .public-contact-btn {
    background: #FFFFFF;
    border: 1.5px solid #D7A84A;
    color: #101820;
    font-size: 14px;
    font-weight: 700;
  }
  /* Gold underline accent for the active page, pinned to the left */
  body:not(.admin) .lux-header > #publicNav.is-open > a:not(.public-contact-btn)::after {
    right: auto;
    left: 14px;
    bottom: 4px;
    width: 36px;
  }
  body:not(.admin) .lux-header > #publicNav.is-open > a[aria-current="page"]:not(.public-contact-btn)::after {
    transform: scaleX(1);
    background: #D7A84A;
  }
  body:not(.admin) .lux-header > .public-header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn { width: 100%; min-width: 0; min-height: 46px; padding: 8px 6px; gap: 7px; font-size: 12px; }
  body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn svg { width: 19px; height: 19px; flex-basis: 19px; }
}

@media (max-width: 1024px) {
  body:not(.admin) .lux-header > .mobile-nav-toggle { display: flex; }
  body:not(.admin) .lux-header > #publicNav.is-open > a:not(.public-contact-btn) { white-space: nowrap; }
}

/* Phone-sized viewports: the fixed popup already clears both viewport edges
   via left:16px / right:16px, so no extra overrides are needed here.
   Keep the header padding in sync so the toggle button aligns visually. */
@media (max-width: 767px) {
  body:not(.admin) .lux-header { padding-left: max(4%, 16px); padding-right: max(4%, 16px); }
  body:not(.admin) .lux-header > .public-header-actions { display: none; }
}

@media (max-width: 359px) {
  body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn { font-size: 11px; gap: 5px; }
  body:not(.admin) .lux-header > .public-header-actions > .public-contact-btn svg { width: 17px; height: 17px; flex-basis: 17px; }
}

/* Mobile navigation containment: the drawer stays inside the visual viewport,
   while its backdrop owns the page behind it. */
@media (max-width: 1024px) {
  body:not(.admin).mobile-nav-open {
    position: fixed;
    top: calc(0px - var(--mobile-nav-scroll-y, 0px));
    width: 100%;
    overflow: hidden;
  }

  body:not(.admin) .lux-header > .mobile-nav-backdrop:not([hidden]) {
    position: fixed;
    z-index: 91;
    inset: 0;
    display: block;
    background: rgba(16, 24, 32, .28);
  }

  body:not(.admin) .lux-header > :is(.brand, .mobile-nav-toggle) {
    position: relative;
    z-index: 93;
  }

  body:not(.admin) .lux-header > #publicNav.is-open {
    --mobile-nav-top: 128px;
    top: var(--mobile-nav-top);
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    z-index: 94;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--mobile-nav-top) - max(16px, env(safe-area-inset-bottom, 0px)));
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767px) {
  body:not(.admin) .lux-header > #publicNav.is-open {
    --mobile-nav-top: calc(env(safe-area-inset-top, 0px) + 76px);
    right: 0;
    bottom: 0;
    left: 0;
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:0;
  }
}

@media (max-width: 1024px) {
  body:not(.admin) .lux-header > #publicNav.is-open.is-closing {
    animation: lux-nav-out .18s ease-in forwards;
  }
  @keyframes lux-nav-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  body:not(.admin) .lux-header > #publicNav.is-open.is-closing { animation:none; }
}

/* On narrow screens the same contact controls follow the footer, so they never
   obscure page copy, form inputs, or footer links. */
