/* NASR AQARAT — selective theme merge, 2026-11-01
   Applies to homepage only. The original production mobile menu, social rail,
   carousel JS, header positioning and footer markup remain untouched. */
:root[data-theme="light"] body.home-page .norro-hero.na-hero-with-properties {
 background:#fff!important; color:#202020!important;
}
:root[data-theme="light"] body.home-page .norro-hero.na-hero-with-properties .norro-grade {display:none!important}
:root[data-theme="light"] body.home-page .na-hero-property {
 border-color:rgba(45,45,45,.14)!important;
 box-shadow:0 14px 35px rgba(15,20,26,.16)!important;
}
:root[data-theme="light"] body.home-page .na-hero-property.is-current {
 border-color:rgba(167,139,88,.52)!important;
 box-shadow:0 22px 44px rgba(20,25,30,.18),0 0 0 1px rgba(167,139,88,.48)!important;
}
:root[data-theme="light"] body.home-page .na-selected-property,
:root[data-theme="light"] body.home-page .na-selected-name {color:#202020!important}
:root[data-theme="light"] body.home-page .na-selected-price,
:root[data-theme="light"] body.home-page .na-selected-link {color:#947546!important}
:root[data-theme="light"] body.home-page .na-hero-controls {color:#303030!important}
:root[data-theme="light"] body.home-page .na-hero-controls button {
 background:#fff!important;color:#303030!important;border-color:rgba(0,0,0,.25)!important;
}
/* Keep production mobile header/menu/social positioning intact. */
:root[data-theme="dark"] body.home-page {
 --ui-bg:#07090b;--ui-surface:#111416;--ui-surface-2:#161a1e;
 --ui-text:#f5f5f3;--ui-muted:#aeb4b8;--ui-line:#30363a;
 --ui-soft:#161a1e;
}
:root[data-theme="dark"] body.home-page .search-scene,
:root[data-theme="dark"] body.home-page .featured-scene,
:root[data-theme="dark"] body.home-page .sticky-story,
:root[data-theme="dark"] body.home-page .final-scene,
:root[data-theme="dark"] body.home-page .marquee-band,
:root[data-theme="dark"] body.home-page .footer {
 background:#07090b!important;color:#f5f5f3!important;
}
:root[data-theme="dark"] body.home-page .section-intro h2,
:root[data-theme="dark"] body.home-page .featured-heading h2,
:root[data-theme="dark"] body.home-page .sticky-copy h2,
:root[data-theme="dark"] body.home-page .final-inner h2 {color:#f5f5f3!important}
:root[data-theme="dark"] body.home-page .section-intro span,
:root[data-theme="dark"] body.home-page .micro {color:#b89c6c!important}
:root[data-theme="dark"] body.home-page .sticky-copy p,
:root[data-theme="dark"] body.home-page .footer p,
:root[data-theme="dark"] body.home-page .footer a {color:#b9bec1!important}
:root[data-theme="dark"] body.home-page .motion-search,
:root[data-theme="dark"] body.home-page .story-card,
:root[data-theme="dark"] body.home-page .cinematic-grid .property-card {
 background:#111416!important;color:#f5f5f3!important;
 border-color:#2d3338!important;
}
:root[data-theme="dark"] body.home-page .motion-search label span {color:#ddcba8!important}
:root[data-theme="dark"] body.home-page .motion-search input,
:root[data-theme="dark"] body.home-page .motion-search select,
:root[data-theme="dark"] body.home-page .zone-combo-input {
 color:#f5f5f3!important;background:transparent!important;border-color:#444c52!important;
}
:root[data-theme="dark"] body.home-page .motion-search input::placeholder,
:root[data-theme="dark"] body.home-page .zone-combo-input::placeholder {color:#c4cbd0!important;opacity:1}
:root[data-theme="dark"] body.home-page .custom-drop-menu,
:root[data-theme="dark"] body.home-page .zone-combo-menu {
 background:#161a1e!important;color:#f5f5f3!important;border-color:#444c52!important;
}
:root[data-theme="dark"] body.home-page .custom-drop-option,
:root[data-theme="dark"] body.home-page .zone-combo-option {background:transparent!important;color:#f5f5f3!important}
:root[data-theme="dark"] body.home-page .custom-drop-option:hover,
:root[data-theme="dark"] body.home-page .zone-combo-option:hover {background:#293139!important}
/* Only reduce excess vertical padding on mobile; preserve production menu/rail. */
@media(max-width:640px) {
 :root[data-theme="dark"] body.home-page .featured-scene {padding-bottom:36px!important}
 :root[data-theme="dark"] body.home-page .sticky-story {padding-top:38px!important}
 body.home-page .final-scene {min-height:0!important;height:auto!important;padding:64px 18px 70px!important}
}


/* V2: explicit light-mode contrast. This stylesheet is appended after the
   production styles; do NOT transplant staging navigation or carousel code. */
:root[data-theme="light"] body.home-page .lux-site-header .lux-brand,
:root[data-theme="light"] body.home-page .lux-site-header .lux-brand > span,
:root[data-theme="light"] body.home-page .lux-site-header .lux-brand .brand-mark {
  color:#17191b!important;
}
:root[data-theme="light"] body.home-page .lux-site-header .brand-mark {
  background:#f4f4f2!important;border:1px solid #a6aaad!important;
}
:root[data-theme="light"] body.home-page .lux-site-header .lux-pill-nav {
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(18,22,26,.18)!important;
  box-shadow:0 13px 30px rgba(0,0,0,.075)!important;
}
:root[data-theme="light"] body.home-page .lux-site-header .lux-nav-item {
  color:#292b2e!important;
}
:root[data-theme="light"] body.home-page .lux-site-header .lux-nav-item.active,
:root[data-theme="light"] body.home-page .lux-site-header .lux-nav-item[aria-current="page"] {
  background:#ececeb!important;color:#191b1d!important;
}
:root[data-theme="light"] body.home-page .lux-site-header .lux-book-btn {
  background:#fff!important;border-color:#d2d2d2!important;
  color:#141515!important;
}
:root[data-theme="light"] body.home-page .lux-social-btn {
  background:rgba(255,255,255,.96)!important;
  color:#222629!important;
  border-color:rgba(27,31,35,.23)!important;
  box-shadow:0 6px 18px rgba(20,24,28,.12)!important;
}
:root[data-theme="light"] body.home-page .lux-social-btn svg {
  color:#222629!important;stroke:currentColor!important;
}
/* Maintain production position and behavior of social rail. */
:root[data-theme="light"] body.home-page .lux-site-header button,
:root[data-theme="light"] body.home-page .lux-site-header .menu-toggle,
:root[data-theme="light"] body.home-page .lux-site-header .mobile-menu-toggle {
  color:#202326!important;
}
@media (max-width:640px) {
  :root[data-theme="light"] body.home-page .lux-site-header .mobile-menu-toggle,
  :root[data-theme="light"] body.home-page .lux-site-header .menu-toggle,
  :root[data-theme="light"] body.home-page .lux-site-header .lux-mobile-toggle {
    background:#fff!important;border-color:#c5c9cb!important;
    color:#1b1d20!important;
  }
  body.home-page .back-to-top,
  body.home-page #backToTop {
    right:14px!important;bottom:80px!important;
    width:44px!important;height:44px!important;
  }
  body.home-page .search-scene {padding-top:66px!important;padding-bottom:62px!important;}
  body.home-page .featured-scene {padding-top:62px!important;}
  body.home-page .sticky-story {padding-top:50px!important;}
}
/* Keep cards inside landscape viewport and never create horizontal scrolling. */
@media (orientation:landscape) and (max-height:560px) and (max-width:950px) {
  body.home-page .norro-hero.na-hero-with-properties {max-width:100%!important;overflow:hidden!important;}
  body.home-page .na-hero-stage,body.home-page .na-hero-gallery,
  body.home-page .na-hero-property-track {max-width:100vw!important;}
  body.home-page .na-hero-property {max-height:min(68vh,410px)!important;}
}

/* V3 — mobile portrait ONLY: two changes requested, no desktop alterations. */
@media screen and (max-width:640px) and (orientation:portrait) {
  /* Bring carousel closer to the header; preserve carousel cards and animation. */
  body.home-page .norro-hero.na-hero-with-properties {
    height:auto!important;
    min-height:0!important;
    padding-top:68px!important;
  }
  body.home-page .na-hero-with-properties .norro-stage {
    min-height:0!important;
    height:auto!important;
    justify-content:flex-start!important;
  }
  /* Light-theme mobile menu: white circle, fine gray outline, dark bars. */
  html[data-theme="light"] body.home-page .mobile-menu-toggle-v2 {
    background:#fff!important;
    background-color:#fff!important;
    color:#202326!important;
    border:1px solid #c6cace!important;
    box-shadow:0 3px 12px rgba(0,0,0,.055)!important;
  }
}


/* V4 — only mobile social rail and light hamburger appearance.
   Use the existing production markup and carousel behavior. */
@media screen and (max-width:640px) {
  /* Social rail must not occupy the property details/navigation row. */
  body.home-page .norro-hero .lux-social-rail {
    position:fixed!important;
    left:auto!important;
    right:10px!important;
    top:48%!important;
    bottom:auto!important;
    width:auto!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:9px!important;
    transform:translateY(-50%)!important;
    margin:0!important;
    z-index:40!important;
  }
  body.home-page .norro-hero .lux-social-rail .lux-social-btn {
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
  }
  /* The menu control is created by the site's mobile script. The selectors
     cover the common production controls without changing other buttons. */
  html[data-theme="light"] body.home-page .lux-site-header button:not(.theme-toggle):not(.lux-direct-theme-toggle),
  html[data-theme="light"] body.home-page .mobile-menu-toggle-v2,
  html[data-theme="light"] body.home-page .mobile-menu-toggle,
  html[data-theme="light"] body.home-page .lux-mobile-toggle,
  html[data-theme="light"] body.home-page .mobile-menu-button,
  html[data-theme="light"] body.home-page button[aria-label="Abrir menú"],
  html[data-theme="light"] body.home-page button[aria-label="Cerrar menú"] {
    background:#fff!important;
    background-color:#fff!important;
    border:1px solid #c6cace!important;
    color:#202326!important;
    box-shadow:0 3px 12px rgba(0,0,0,.055)!important;
  }
  html[data-theme="light"] body.home-page .lux-site-header button:not(.theme-toggle):not(.lux-direct-theme-toggle) svg,
  html[data-theme="light"] body.home-page .mobile-menu-toggle-v2 svg,
  html[data-theme="light"] body.home-page .mobile-menu-toggle svg,
  html[data-theme="light"] body.home-page .lux-mobile-toggle svg {
    color:#202326!important;
    stroke:currentColor!important;
  }
}


/* v8: Continuous, slim mobile services ticker. Desktop untouched. */
.mobile-service-strip { display:none; }
@media screen and (max-width:640px) {
  /* Hide only the original fixed social rail; desktop remains unchanged. */
  body.home-page .norro-hero .lux-social-rail { display:none!important; }
  body.home-page .marquee-band .marquee-track { display:none!important; }
  body.home-page .marquee-band {
    overflow:hidden!important;
  }
  body.home-page .marquee-band .mobile-service-strip {
    display:block!important;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:0;
    overflow:hidden;
    white-space:nowrap;
  }
  body.home-page .mobile-strip-motion {
    display:flex;
    width:max-content;
    gap:0;
    animation:nasr-mobile-ticker 23s linear infinite;
    will-change:transform;
  }
  body.home-page .mobile-strip-cycle {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:14px;
    padding:8px 14px 8px 0;
    box-sizing:border-box;
  }
  @keyframes nasr-mobile-ticker {
    from { transform:translateX(0); }
    to { transform:translateX(-50%); }
  }
  body.home-page .mobile-strip-cycle > span {
    flex:0 0 auto;
    font-size:11px;
    font-weight:750;
    letter-spacing:0.15em;
    white-space:nowrap;
  }
  body.home-page .mobile-strip-cycle > i {
    flex:0 0 auto;
    font-size:12px;
    font-style:normal;
  }
  body.home-page .mobile-strip-social-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    flex:0 0 auto;
    text-decoration:none;
    color:inherit;
    border:none;
    background:none;
    padding:0;
    margin:0;
    border-radius:0;
    line-height:1;
    box-shadow:none;
  }
  body.home-page .mobile-strip-social-btn svg {
    display:block;
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  body.home-page .mobile-strip-social-btn[aria-label^="Facebook"] svg { fill:currentColor;stroke:none; }
  body.home-page .mobile-strip-social-btn:focus-visible { outline:2px solid #a98c56;outline-offset:3px; }
  html[data-theme="light"] body.home-page .mobile-strip-social-btn { color:#202326;border-color:#d6d6d6; }
  html[data-theme="dark"] body.home-page .mobile-strip-social-btn { color:#f3f3f3;border-color:#45494d; }
}

@media (prefers-reduced-motion:reduce) {
  body.home-page .mobile-strip-motion { animation:none!important; }
}


/* V9: mobile portrait + phone landscape refinements. Keep desktop unchanged. */
@media screen and (max-width:640px),
       screen and (orientation:landscape) and (max-height:560px) and (max-width:950px) {
  /* Social links belong to the services ticker, not the floating hero rail. */
  body.home-page .norro-hero .lux-social-rail,
  body.home-page .lux-social-rail { display:none!important; visibility:hidden!important; }

  /* Light mode: NA circle and hamburger match the clean white navigation. */
  html[data-theme="light"] body.home-page .lux-site-header .brand-mark,
  html[data-theme="light"] body.home-page .site-header .brand-mark {
    background:#fff!important;
    background-color:#fff!important;
    color:#191c1e!important;
    border:1px solid #c9cdcf!important;
    box-shadow:0 3px 12px rgba(0,0,0,.04)!important;
  }
  html[data-theme="light"] body.home-page .lux-site-header .mobile-menu-toggle-v2,
  html[data-theme="light"] body.home-page .lux-site-header .mobile-menu-toggle,
  html[data-theme="light"] body.home-page .lux-site-header .lux-mobile-toggle,
  html[data-theme="light"] body.home-page .lux-site-header .menu-toggle,
  html[data-theme="light"] body.home-page .site-header .mobile-menu-button,
  html[data-theme="light"] body.home-page button[aria-label="Abrir menú"],
  html[data-theme="light"] body.home-page button[aria-label="Cerrar menú"] {
    background:#fff!important;
    background-color:#fff!important;
    color:#202326!important;
    border:1px solid #c9cdcf!important;
    box-shadow:0 3px 12px rgba(0,0,0,.05)!important;
  }
  html[data-theme="light"] body.home-page .lux-site-header .mobile-menu-toggle-v2 svg,
  html[data-theme="light"] body.home-page .lux-site-header .mobile-menu-toggle svg,
  html[data-theme="light"] body.home-page .lux-site-header .lux-mobile-toggle svg,
  html[data-theme="light"] body.home-page .lux-site-header .menu-toggle svg {
    color:#202326!important;
    stroke:currentColor!important;
  }
}
/* Continue the proven v8 ticker animation in mobile landscape, too. */
@media screen and (orientation:landscape) and (max-height:560px) and (min-width:641px) and (max-width:950px) {
  body.home-page .marquee-band .marquee-track { display:none!important; }
  body.home-page .marquee-band { overflow:hidden!important; }
  body.home-page .marquee-band .mobile-service-strip {
    display:block!important;width:100%!important;max-width:100%!important;
    box-sizing:border-box;overflow:hidden;white-space:nowrap;
  }
  body.home-page .mobile-strip-motion {
    display:flex;width:max-content;gap:0;
    animation:nasr-mobile-ticker 23s linear infinite;
    will-change:transform;
  }
  body.home-page .mobile-strip-cycle {
    display:flex;flex:0 0 auto;align-items:center;gap:14px;
    padding:8px 14px 8px 0;box-sizing:border-box;
  }
  body.home-page .mobile-strip-cycle > span {
    flex:0 0 auto;font-size:11px;font-weight:750;
    letter-spacing:.15em;white-space:nowrap;
  }
  body.home-page .mobile-strip-cycle > i {
    flex:0 0 auto;font-size:12px;font-style:normal;
  }
  body.home-page .mobile-strip-social-btn {
    display:inline-flex;align-items:center;justify-content:center;
    width:16px;height:16px;flex:0 0 auto;text-decoration:none;
    color:inherit;border:0;background:none;padding:0;margin:0;
  }
  body.home-page .mobile-strip-social-btn svg {
    display:block;width:16px;height:16px;fill:none;
    stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  }
  body.home-page .mobile-strip-social-btn[aria-label^="Facebook"] svg {fill:currentColor;stroke:none;}
}
@media (prefers-reduced-motion:reduce) {
  body.home-page .mobile-strip-motion {animation:none!important;}
}


/* V10 — unified phone landscape/portrait ticker and scroll-surface correction. */
@keyframes nasr-services-v10 {
  0% {transform:translate3d(0,0,0)}
  100% {transform:translate3d(-50%,0,0)}
}
@media screen and (max-width:640px), screen and (orientation:landscape) and (max-height:560px) and (max-width:950px) {
  body.home-page .marquee-band {overflow:hidden!important;position:relative;}
  body.home-page .marquee-band > .marquee-track {display:none!important;}
  body.home-page .marquee-band > .mobile-service-strip {
    display:block!important;width:100%!important;max-width:100%!important;
    overflow:hidden!important;white-space:nowrap!important;
  }
  body.home-page .marquee-band .mobile-strip-motion {
    display:flex!important;width:max-content!important;flex-wrap:nowrap!important;
    animation-name:nasr-services-v10!important;
    animation-duration:23s!important;
    animation-timing-function:linear!important;
    animation-iteration-count:infinite!important;
    animation-play-state:running!important;
    will-change:transform;
  }
  body.home-page .marquee-band .mobile-strip-cycle {
    display:flex!important;flex:0 0 auto!important;
    align-items:center!important;gap:14px!important;
  }
}
/* On phones the root must match the selected theme when the browser exposes
   overscroll/safe-area space below a section. Do not change desktop surfaces. */
@media screen and (max-width:640px), screen and (orientation:landscape) and (max-height:560px) and (max-width:950px) {
  html[data-theme="light"],html[data-theme="light"] body.home-page {
    background-color:#fff!important;
  }
  html[data-theme="dark"],html[data-theme="dark"] body.home-page {
    background-color:#07090b!important;
  }
  html,body.home-page {max-width:100%;}
}
@media (prefers-reduced-motion:reduce) {
  body.home-page .marquee-band .mobile-strip-motion {animation:none!important;}
}

/* v11: Light-theme NA monogram circle only. Preserve existing layout. */
html[data-theme="light"] body.home-page .lux-site-header .brand-mark,
html[data-theme="light"] body.home-page .site-header .brand-mark {
  background:#ffffff!important;
  background-color:#ffffff!important;
  border:1px solid #c9cdcf!important;
  color:#191c1e!important;
}

/* v12: make the light-mode NA circle inherit the header's exact white surface.
   Higher specificity also prevents earlier theme rules from tinting the fill. */
html:root[data-theme="light"] body.home-page header.lux-site-header a.lux-brand > span.brand-mark {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:1px solid #c9cdcf!important;
  box-shadow:none!important;
  opacity:1!important;
  filter:none!important;
  color:#191c1e!important;
}
