/* ==========================================================================
   RentLeaks — Editorial Warm-Modern Design System
   --------------------------------------------------------------------------
   Ink & paper. One brand accent (Celeste). Ochre reserved for value signals.
   Display serif for moments, tight sans for everything else.
   Left-anchored editorial layout. Full dark mode. Reduced-motion safe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* --- Raw palette ------------------------------------------------------ */
  --celeste-50:  #F0F8FA;
  --celeste-100: #DCEFF3;
  --celeste-200: #B7DFE7;
  --celeste-300: #85C8D5;
  --celeste-400: #4FA9BC;
  --celeste-500: #2E8C9E;
  --celeste-600: #1F7181;
  --celeste-700: #1C5B69;
  --celeste-800: #1B4A56;
  --celeste-900: #193E48;
  --celeste-950: #0D2229;

  --ochre-100: #FBF0DA;
  --ochre-200: #F5DFB4;
  --ochre-300: #ECC584;
  --ochre-400: #D8A957;
  --ochre-500: #C58C2E;
  --ochre-600: #A06D1C;
  --ochre-700: #7E5518;
  --ochre-800: #5F4014;

  --verdigris-100: #DFEFE7;
  --verdigris-300: #8CC4AC;
  --verdigris-500: #3D8A6E;
  --verdigris-600: #2E6E58;
  --verdigris-700: #275847;

  --clay-100: #F7E7E1;
  --clay-300: #DFA793;
  --clay-500: #B4553A;
  --clay-600: #93412B;

  /* --- Semantic: light -------------------------------------------------- */
  --paper:        #FAF7F2;
  --paper-deep:   #F2EDE5;
  --surface:      #FFFFFF;
  --surface-2:    #F7F3EC;
  --surface-3:    #EFE9E0;
  --surface-inv:  #10222A;

  --ink:        #0E1F26;
  --ink-2:      #3D555E;
  --ink-3:      #526B74;
  --ink-4:      #5C747D;
  --ink-on-dark:#F2F7F7;

  --line:        rgba(14, 31, 38, 0.10);
  --line-strong: rgba(14, 31, 38, 0.18);
  --line-faint:  rgba(14, 31, 38, 0.055);

  --brand:        var(--celeste-600);
  --brand-hover:  var(--celeste-700);
  --brand-soft:   var(--celeste-50);
  --brand-ring:   rgba(46, 140, 158, 0.30);
  --on-brand:     #FFFFFF;

  --value:        var(--ochre-700);
  --value-soft:   var(--ochre-100);
  --success:      var(--verdigris-600);
  --success-soft: var(--verdigris-100);
  --alert:        var(--clay-600);
  --alert-soft:   var(--clay-100);

  --overlay:      rgba(14, 31, 38, 0.52);
  --glass:        rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.94);

  --shadow-xs: 0 1px 2px rgba(14, 31, 38, 0.05);
  --shadow-sm: 0 1px 2px rgba(14, 31, 38, 0.05), 0 2px 6px rgba(14, 31, 38, 0.04);
  --shadow-md: 0 2px 4px rgba(14, 31, 38, 0.04), 0 8px 24px rgba(14, 31, 38, 0.07);
  --shadow-lg: 0 4px 8px rgba(14, 31, 38, 0.05), 0 20px 48px rgba(14, 31, 38, 0.11);
  --shadow-xl: 0 8px 16px rgba(14, 31, 38, 0.06), 0 32px 72px rgba(14, 31, 38, 0.15);

  /* --- Scale ------------------------------------------------------------ */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.25rem;  --s-6: 1.5rem;   --s-7: 1.75rem;  --s-8: 2rem;
  --s-10: 2.5rem;  --s-12: 3rem;    --s-14: 3.5rem;  --s-16: 4rem;
  --s-20: 5rem;    --s-24: 6rem;    --s-32: 8rem;

  --text-micro: 0.6875rem;
  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  0.9375rem;
  --text-md:    1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;

  --display-1: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
  --display-2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --display-3: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  --display-4: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);

  --container: 1240px;
  --container-wide: 1480px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 68px;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  --ease: cubic-bezier(0.22, 0.85, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease);
  --t: 260ms var(--ease);
  --t-slow: 520ms var(--ease-out);
}

/* --- Semantic: dark ----------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:        #0B1418;
  --paper-deep:   #070F12;
  --surface:      #101C21;
  --surface-2:    #16252B;
  --surface-3:    #1D2F36;
  --surface-inv:  #F2EDE5;

  --ink:        #E9F1F1;
  --ink-2:      #A9BFC5;
  --ink-3:      #7D959C;
  --ink-4:      #71898F;
  --ink-on-dark:#F2F7F7;

  --line:        rgba(233, 241, 241, 0.12);
  --line-strong: rgba(233, 241, 241, 0.22);
  --line-faint:  rgba(233, 241, 241, 0.07);

  --brand:        var(--celeste-300);
  --brand-hover:  var(--celeste-200);
  --brand-soft:   rgba(133, 200, 213, 0.13);
  --brand-ring:   rgba(133, 200, 213, 0.35);
  --on-brand:     #08181D;

  --value:        var(--ochre-300);
  --value-soft:   rgba(236, 197, 132, 0.14);
  --success:      var(--verdigris-300);
  --success-soft: rgba(140, 196, 172, 0.14);
  --alert:        var(--clay-300);
  --alert-soft:   rgba(223, 167, 147, 0.14);

  --overlay:      rgba(3, 9, 11, 0.72);
  --glass:        rgba(16, 28, 33, 0.82);
  --glass-strong: rgba(16, 28, 33, 0.95);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.45), 0 32px 72px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B1418; --paper-deep: #070F12;
    --surface: #101C21; --surface-2: #16252B; --surface-3: #1D2F36;
    --surface-inv: #F2EDE5;
    --ink: #E9F1F1; --ink-2: #A9BFC5; --ink-3: #7D959C; --ink-4: #71898F;
    --line: rgba(233,241,241,.12); --line-strong: rgba(233,241,241,.22); --line-faint: rgba(233,241,241,.07);
    --brand: var(--celeste-300); --brand-hover: var(--celeste-200);
    --brand-soft: rgba(133,200,213,.13); --brand-ring: rgba(133,200,213,.35); --on-brand: #08181D;
    --value: var(--ochre-300); --value-soft: rgba(236,197,132,.14);
    --success: var(--verdigris-300); --success-soft: rgba(140,196,172,.14);
    --alert: var(--clay-300); --alert-soft: rgba(223,167,147,.14);
    --overlay: rgba(3,9,11,.72);
    --glass: rgba(16,28,33,.82); --glass-strong: rgba(16,28,33,.95);
    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
    --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.5);
    --shadow-xl: 0 8px 16px rgba(0,0,0,.45), 0 32px 72px rgba(0,0,0,.6);
  }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  transition: background-color var(--t), color var(--t);
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.018em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-hover); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

::selection { background: var(--brand-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-xs); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-8) 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: var(--s-4); z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: var(--s-3); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. AMBIENT BACKGROUND
   -------------------------------------------------------------------------- */

.tahoe-body { position: relative; min-height: 100vh; }

.tahoe-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 80% at 82% -8%, var(--brand-soft) 0%, transparent 58%),
    radial-gradient(90% 60% at 4% 4%, var(--value-soft) 0%, transparent 52%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 42%, var(--paper-deep) 100%);
}

.tahoe-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.30; will-change: transform; }
.tahoe-orb--1 { width: 46vw; height: 46vw; top: -14vw; right: -10vw; background: var(--celeste-200); animation: drift-a 34s ease-in-out infinite; }
.tahoe-orb--2 { width: 34vw; height: 34vw; top: 42vh; left: -12vw; background: var(--ochre-200); opacity: 0.22; animation: drift-b 42s ease-in-out infinite; }
.tahoe-orb--3 { width: 28vw; height: 28vw; bottom: 6vh; right: 8vw; background: var(--verdigris-100); opacity: 0.24; animation: drift-a 50s ease-in-out infinite reverse; }
.tahoe-orb--4 { width: 22vw; height: 22vw; top: 18vh; left: 38vw; background: var(--celeste-100); opacity: 0.18; animation: drift-b 38s ease-in-out infinite reverse; }

:root[data-theme="dark"] .tahoe-orb { opacity: 0.13 !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tahoe-orb { opacity: 0.13 !important; }
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-4vw, 5vh, 0) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(5vw, -4vh, 0) scale(0.94); }
}

.tahoe-noise {
  position: absolute; inset: 0; opacity: 0.30; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .tahoe-noise { mix-blend-mode: overlay; opacity: 0.16; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tahoe-noise { mix-blend-mode: overlay; opacity: 0.16; }
}

/* No z-index here: it would trap fixed overlays (filter sheet, tray) in a stacking context. */
.tahoe-content { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
.tahoe-content > main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }

section { position: relative; }

.rl-page { padding-block: var(--section-y); }
.rl-block { margin-top: var(--s-16); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
  margin-bottom: var(--s-8); padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.section-head__text { max-width: 62ch; }
.section-head__eyebrow {
  display: block; font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: var(--s-3);
}
.section-head h2, .section-head .categories-title, .section-head__title {
  font-family: var(--font-display); font-size: var(--display-3);
  font-weight: 600; letter-spacing: -0.02em; margin: 0;
}
.section-head p { color: var(--ink-2); font-size: var(--text-md); margin-top: var(--s-3); }
.section-head__action { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */

.rl-kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.rl-kicker--light { color: var(--celeste-300); }

.rl-lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.rl-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-faint);
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}
.header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.header__container {
  max-width: var(--container-wide); margin-inline: auto;
  padding-inline: var(--gutter); height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-6);
}

.logo { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em;
  transition: transform var(--t), background var(--t);
}
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }
.logo__text { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.025em; }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__link {
  position: relative; display: block; white-space: nowrap;
  padding: var(--s-2) var(--s-3);
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--ink); background: var(--line-faint); }
.nav__link--active { color: var(--ink); font-weight: 600; }
.nav__link--active::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

.header__actions { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }

.header__link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2);
  border-radius: var(--r-sm); white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.header__link:hover { color: var(--ink); background: var(--line-faint); }

.rl-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding-inline: 5px; border-radius: var(--r-full);
  background: var(--brand); color: var(--on-brand);
  font-size: var(--text-micro); font-weight: 700; line-height: 1;
}

.header__link.js-cmd {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3);
  padding: 7px var(--s-3); min-width: 172px; justify-content: space-between;
}
.header__link.js-cmd:hover { border-color: var(--line-strong); color: var(--ink-2); background: var(--surface); }
.header__link.js-cmd kbd {
  font-family: var(--font-sans); font-size: var(--text-micro); font-weight: 600;
  padding: 2px 5px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
}

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--ink-2);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { background: var(--line-faint); color: var(--ink); border-color: var(--line); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none; width: 38px; height: 38px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; border-radius: 2px;
  background: var(--ink); transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1140px) {
  .header__link:not(.js-cmd) { display: none; }
  .header__link.js-cmd { min-width: 0; }
  .header__link.js-cmd .js-cmd__label { display: none; }
}
@media (max-width: 620px) {
  .header__container { gap: var(--s-3); }
  .header__link.js-cmd {
    width: 34px; height: 34px; padding: 0; justify-content: center;
    background: transparent; border-color: transparent;
  }
  .header__link.js-cmd kbd { display: none; }
  .header__link.js-cmd::before {
    content: ""; width: 17px; height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
  }
  .header__actions .btn--sm { padding-inline: var(--s-3); }
}
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--gutter) var(--s-6);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
  .nav__link { padding: var(--s-3) var(--s-4); font-size: var(--text-md); }
  .nav__link--active::after { display: none; }
  .nav__link--active { background: var(--brand-soft); color: var(--brand); }
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 0.6875rem var(--s-5);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.2; text-align: center; white-space: nowrap;
  border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; position: relative;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--celeste-800); color: var(--paper); box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn--primary { background: var(--celeste-300); color: #08181D; }
:root[data-theme="dark"] .btn--primary:hover { background: var(--celeste-200); color: #08181D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { background: var(--celeste-300); color: #08181D; }
  :root:not([data-theme="light"]) .btn--primary:hover { background: var(--celeste-200); color: #08181D; }
}

.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand-hover); color: var(--on-brand); }

.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--line-faint); color: var(--ink); }

.btn--dark { background: var(--paper); color: var(--ink); }
.btn--dark:hover { background: #fff; color: var(--ink); }
:root[data-theme="dark"] .btn--dark { background: var(--celeste-300); color: #08181D; }

.btn--on-dark { background: transparent; color: var(--ink-on-dark); border-color: rgba(255,255,255,0.32); }
.btn--on-dark:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.5); }

.btn--sm { padding: 0.4375rem var(--s-4); font-size: var(--text-xs); }
.btn--lg { padding: 0.875rem var(--s-7); font-size: var(--text-md); }
.btn--block { width: 100%; }

.btn--search { background: var(--ink); color: var(--paper); padding-inline: var(--s-6); }
:root[data-theme="dark"] .btn--search { background: var(--celeste-300); color: #08181D; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* --------------------------------------------------------------------------
   8. BADGES / CHIPS / PILLS
   -------------------------------------------------------------------------- */

.rl-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px var(--s-2); border-radius: var(--r-xs);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.rl-badge--safe  { background: var(--success-soft); color: var(--success); border-color: transparent; }
.rl-badge--fit   { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.rl-badge--value { background: var(--value-soft); color: var(--value); border-color: transparent; }
.rl-badge--alert { background: var(--alert-soft); color: var(--alert); border-color: transparent; }

.rl-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.category-chip, .amenity-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--text-xs); font-weight: 500; color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.category-chip:hover, .amenity-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.amenity-chips, .categories-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.rl-shield {
  padding: var(--s-6); border-radius: var(--r-md);
  background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
}
.rl-shield h2 {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-sans) !important;
  font-size: var(--text-md) !important; font-weight: 700 !important;
  color: var(--success); margin-bottom: var(--s-3) !important;
}
.rl-shield h2::before {
  content: ""; width: 17px; height: 17px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6E58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.rl-shield ul { display: grid; gap: var(--s-2); }
.rl-shield li { font-size: var(--text-sm); color: var(--ink-2); padding-left: var(--s-5); position: relative; }
.rl-shield li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 2px; border-radius: 2px; background: var(--success); }

.rl-clock {
  position: absolute; left: var(--s-3); bottom: var(--s-3); z-index: 2;
  padding: 4px var(--s-2); border-radius: var(--r-xs);
  background: rgba(14,31,38,0.82); color: #fff; backdrop-filter: blur(8px);
  font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.04em;
}

.rl-match-pill {
  position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 2;
  padding: 4px var(--s-2); border-radius: var(--r-xs);
  background: var(--brand); color: var(--on-brand);
  font-size: var(--text-micro); font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. SCROLL REVEAL — fails open
   -------------------------------------------------------------------------- */

.animate-on-scroll { opacity: 1; transform: none; }
.js-reveal .animate-on-scroll {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.js-reveal .animate-on-scroll.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.hero--split .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.hero--split .hero__lead { min-width: 0; display: flex; flex-direction: column; }
.hero--split .hero__lead .hero__subtitle { margin-bottom: var(--s-6); }
.hero--split .trust-bar { margin-top: auto; margin-bottom: 0; }
.hero-proof { align-self: start; }
.hero--split .search-card { grid-column: 1 / -1; margin-top: var(--s-4); }
.hero--split .hero__hint { grid-column: 1 / -1; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: var(--s-5);
}
.hero__kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--brand); border-radius: 2px; }

.hero__title {
  font-family: var(--font-display); font-size: var(--display-1);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 var(--s-5); text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--brand); }

.hero__subtitle {
  font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2);
  max-width: 52ch; margin: 0 0 var(--s-7);
}
.hero__hint { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--ink-3); }
.hero__hint a { font-weight: 600; }

.page-hero { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 {
  font-family: var(--font-display); font-size: var(--display-2);
  font-weight: 600; letter-spacing: -0.03em; margin-bottom: var(--s-4);
  text-wrap: balance;
}
.page-hero > p { font-size: var(--text-lg); color: var(--ink-2); max-width: 62ch; line-height: 1.55; }

.rl-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--text-xs); color: var(--ink-3); margin-bottom: var(--s-4);
}
.rl-crumb a { color: var(--ink-3); }
.rl-crumb a:hover { color: var(--brand); }
.rl-crumb--light, .rl-crumb--light a { color: rgba(255,255,255,0.72); }
.rl-crumb--light a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   11. TRUST BAR
   -------------------------------------------------------------------------- */

.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6);
  padding: var(--s-4) 0; margin-bottom: var(--s-6);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--text-xs); color: var(--ink-3);
}
.trust-bar__item { display: inline-flex; align-items: baseline; gap: 6px; position: relative; }
.trust-bar__item + .trust-bar__item::before {
  content: ""; position: absolute; left: calc(var(--s-6) / -2);
  top: 2px; bottom: 2px; width: 1px; background: var(--line);
}
.trust-bar__value {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   12. SEARCH — unified pill
   -------------------------------------------------------------------------- */

.search-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: var(--s-2);
  transition: box-shadow var(--t), border-color var(--t);
}
.search-card:focus-within { border-color: var(--brand); box-shadow: var(--shadow-xl), 0 0 0 4px var(--brand-ring); }

.search-form__row { display: flex; align-items: center; gap: 0; }
.search-field { flex: 1 1 0; }

.search-field {
  position: relative; display: flex; align-items: center; gap: var(--s-1);
  padding: var(--s-2) var(--s-4); min-width: 0;
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}
.search-field--price { flex: 1.15 1 0; }
.search-field + .search-field::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line); transition: opacity var(--t-fast);
}
.search-field:hover { background: var(--surface-2); }
.search-field:hover::before, .search-field:hover + .search-field::before { opacity: 0; }
.search-field:focus-within { background: var(--surface-2); }

.search-field__label {
  position: absolute; top: 7px; left: var(--s-4);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-4); pointer-events: none;
}
.search-field--labeled { padding-top: 23px; padding-bottom: var(--s-3); }

.search-field input, .search-field select {
  width: 100%; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: var(--text-base); font-weight: 500; color: var(--ink);
  padding: 3px 0; appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
}
.search-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; padding-right: 18px;
}
:root[data-theme="dark"] .search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237D959C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.search-field input::placeholder { color: var(--ink-4); font-weight: 400; }
.search-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.search-field__sep { color: var(--ink-4); flex-shrink: 0; font-size: var(--text-sm); }

.search-form__row > .btn--search {
  margin-left: var(--s-2); height: 48px; width: 48px; padding: 0;
  border-radius: var(--r-full); flex-shrink: 0;
}
.search-form__row > .btn--search svg { width: 18px; height: 18px; }
.search-form__row > .btn--search .btn__label { display: none; }

@media (max-width: 1080px) {
  .search-form__row { flex-wrap: wrap; gap: var(--s-1); }
  .search-field { flex: 1 1 44%; border-radius: var(--r-md); border: 1px solid var(--line); }
  .search-field::before { display: none !important; }
  .search-form__row > .btn--search {
    flex: 1 1 100%; width: 100%; height: 46px;
    border-radius: var(--r-md); margin-left: 0; margin-top: var(--s-1);
  }
  .search-form__row > .btn--search .btn__label { display: inline; }
}
@media (max-width: 560px) {
  .search-field { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   13. HERO PROOF PANEL
   -------------------------------------------------------------------------- */

.hero-proof {
  display: grid; gap: var(--s-3); padding: var(--s-5);
  border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.hero-proof__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.hero-proof__title {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.hero-proof__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-micro); font-weight: 700; color: var(--success);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-proof__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46,110,88,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(46,110,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,110,88,0); }
}
.hero-proof__row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: var(--s-3); padding: var(--s-2) 0;
}
.hero-proof__row + .hero-proof__row { border-top: 1px solid var(--line-faint); }
.hero-proof__k { font-size: var(--text-sm); color: var(--ink-2); }
.hero-proof__v {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.hero-proof__note { font-size: var(--text-xs); color: var(--ink-4); }
.hero-proof__bar { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; margin-top: var(--s-1); }
.hero-proof__fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand), var(--celeste-400));
  transform-origin: left; animation: grow-bar 1.1s var(--ease-out) both;
}
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 940px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero-proof { order: 3; }
}

/* --------------------------------------------------------------------------
   14. COMPLIANCE BANNER
   -------------------------------------------------------------------------- */

.compliance-banner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.compliance-banner__text {
  max-width: var(--container); margin-inline: auto;
  padding: var(--s-3) var(--gutter);
  font-size: var(--text-xs); color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center;
}
.compliance-banner__text a {
  color: var(--ink); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}
.compliance-banner__text a:hover { text-decoration-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------------------
   15. SECTION SHELLS
   -------------------------------------------------------------------------- */

.categories-section, .listings-section, .pricing-section, .faq-section { padding-block: calc(var(--section-y) * 0.5); }
.alerts-section { padding-block: var(--section-y); }
main > section:first-child:not(.hero):not(.rl-detail) { padding-top: 0; }
.rl-pulse { margin-bottom: calc(var(--section-y) * 0.5); }
.categories-title { font-family: var(--font-display); font-size: var(--display-3); font-weight: 600; letter-spacing: -0.025em; margin: 0; }

/* --------------------------------------------------------------------------
   16. STAY TYPES
   -------------------------------------------------------------------------- */

.rl-types {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.rl-type-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--surface); color: var(--ink); min-height: 194px;
  transition: background var(--t-fast);
}
.rl-type-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.rl-type-card:hover { background: var(--surface-2); color: var(--ink); }
.rl-type-card:hover::before { transform: scaleX(1); }
.rl-type-card__kicker {
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.rl-type-card h3 { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.rl-type-card p { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; flex: 1; }
.rl-type-card__cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-xs); font-weight: 700; color: var(--brand);
}
.rl-type-card__cta::after { content: "→"; transition: transform var(--t-fast); }
.rl-type-card:hover .rl-type-card__cta::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   17. STAT RAIL
   -------------------------------------------------------------------------- */

.rl-pulse {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.rl-stat { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-6) var(--s-5); background: var(--paper); }
.rl-stat > span { font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.rl-stat > strong {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.rl-stat > em { font-style: normal; font-size: var(--text-xs); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   18. LISTINGS GRID + TOP BAR
   -------------------------------------------------------------------------- */

.listings__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-4);
  padding-bottom: var(--s-5); margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.listings__count {
  font-family: var(--font-display); font-size: var(--display-4);
  font-weight: 600; letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums;
}
.listings__sort { display: flex; align-items: center; gap: var(--s-2); }
.listings__sort label { font-size: var(--text-xs); color: var(--ink-3); font-weight: 600; }
.listings__sort select {
  appearance: none; -webkit-appearance: none;
  padding: var(--s-2) var(--s-7) var(--s-2) var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background-color: var(--surface); color: var(--ink);
  font-size: var(--text-xs); font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-3) center;
  transition: border-color var(--t-fast);
}
.listings__sort select:hover { border-color: var(--ink-3); }

.rl-view {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.rl-view button {
  padding: 5px var(--s-3); border-radius: 6px;
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-3);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.rl-view button:hover { color: var(--ink); }
.rl-view button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

.listings__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 1.8vw, 1.5rem);
}
/* --------------------------------------------------------------------------
   18b. LIST VIEW — full-width horizontal rows
   --------------------------------------------------------------------------
   Media left, detail centre, price and actions right. Declared after the
   browse-page grid override below so it wins at equal specificity.
   -------------------------------------------------------------------------- */

.listings__grid.is-list,
[data-page="browse"] .listings__grid.is-list,
.rl-browse--map .listings__grid.is-list {
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

.listings__grid.is-list .listing-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.listings__grid.is-list .listing-card:hover {
  transform: none;
  border-color: var(--ink-3);
  box-shadow: var(--shadow-md);
}
.listings__grid.is-list .listing-card__img-wrap { border-radius: 0; height: 100%; }
.listings__grid.is-list .listing-card__img { aspect-ratio: auto; height: 100%; min-height: 208px; }
.listings__grid.is-list .listing-card__save { top: var(--s-3); right: auto; left: 238px; }

/* Detail and price sit side by side rather than stacking. */
.listings__grid.is-list .listing-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  column-gap: var(--s-8);
  row-gap: 2px;
  padding: var(--s-5) var(--s-6);
}
.listings__grid.is-list .listing-card__title  { grid-column: 1; grid-row: 1; margin-top: 0; font-size: var(--text-lg); -webkit-line-clamp: 1; }
.listings__grid.is-list .listing-card__address { grid-column: 1; grid-row: 2; }
.listings__grid.is-list .listing-card__specs   { grid-column: 1; grid-row: 3; }
.listings__grid.is-list .rl-card-meta {
  grid-column: 1; grid-row: 4; align-self: end;
  margin-top: var(--s-4); border-top: 0; padding-top: 0;
}
.listings__grid.is-list .listing-card__price {
  grid-column: 2; grid-row: 1; justify-self: end; align-self: start;
  font-size: 1.5rem;
}
.listings__grid.is-list .rl-allin-live { grid-column: 2; grid-row: 2; justify-self: end; }
.listings__grid.is-list .rl-compare-btn {
  grid-column: 2; grid-row: 4;
  justify-self: end; align-self: end;
  position: static; margin: var(--s-4) 0 0;
}

@media (max-width: 860px) {
  .listings__grid.is-list .listing-card { grid-template-columns: 200px minmax(0, 1fr); }
  .listings__grid.is-list .listing-card__save { left: 158px; }
  .listings__grid.is-list .listing-card__body { column-gap: var(--s-4); padding: var(--s-4); }
  .listings__grid.is-list .listing-card__price { font-size: 1.25rem; }
}
@media (max-width: 620px) {
  .listings__grid.is-list .listing-card { grid-template-columns: 1fr; }
  .listings__grid.is-list .listing-card__img { min-height: 0; aspect-ratio: 16 / 10; }
  .listings__grid.is-list .listing-card__save { left: auto; right: var(--s-3); }
  .listings__grid.is-list .listing-card__body { grid-template-columns: 1fr; grid-template-rows: none; }
  .listings__grid.is-list .listing-card__body > * { grid-column: 1 !important; grid-row: auto !important; justify-self: start !important; }
  .listings__grid.is-list .listing-card__price { order: -2; }
  .listings__grid.is-list .rl-allin-live { order: -1; }
}

/* --------------------------------------------------------------------------
   19. LISTING CARD
   -------------------------------------------------------------------------- */

.listing-card {
  position: relative; display: flex; flex-direction: column;
  background: transparent; border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.listing-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .listing-card:hover { transform: none; } }

/* Stretched link: the title anchor covers the whole card, controls sit above it */
.listing-card__link { color: inherit; }
.listing-card__link:hover { color: inherit; }
.listing-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.listing-card__save,
.listing-card__badge,
.rl-compare-btn,
.rl-allin-live { position: relative; z-index: 2; }
.listing-card__save { position: absolute; }

.listing-card__img-wrap { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.listing-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.listing-card__photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.listing-card:hover .listing-card__photo { transform: scale(1.045); }
.listing-card__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,31,38,0.26) 0%, transparent 32%, transparent 60%, rgba(14,31,38,0.40) 100%);
}

.listing-card__badge {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2;
  padding: 4px var(--s-2); border-radius: var(--r-xs);
  background: var(--glass-strong); color: var(--ink); backdrop-filter: blur(10px);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.listing-card__vid, .listing-card__shots {
  position: absolute; z-index: 2; bottom: var(--s-3);
  padding: 3px var(--s-2); border-radius: var(--r-xs);
  background: rgba(14,31,38,0.62); color: #fff; backdrop-filter: blur(8px);
  font-size: var(--text-micro); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.listing-card__vid { left: var(--s-3); }
.listing-card__shots { right: var(--s-3); }
.listing-card:has(.rl-clock) .listing-card__vid { left: auto; right: calc(var(--s-3) + 64px); }

.listing-card__save {
  position: absolute; top: var(--s-2); right: var(--s-2); z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--glass-strong); color: var(--ink); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.listing-card__save:hover { transform: scale(1.09); }
.listing-card__save svg { width: 17px; height: 17px; }
.listing-card__save--saved { color: var(--alert); }
.listing-card__save--saved svg { animation: pop 320ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }

.listing-card__body { display: flex; flex-direction: column; gap: 3px; padding: var(--s-4) var(--s-1) 0; flex: 1; }

.listing-card__price {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.028em; color: var(--ink); font-variant-numeric: tabular-nums; margin: 0;
}
.listing-card__period {
  font-family: var(--font-sans); font-size: var(--text-xs);
  font-weight: 600; color: var(--ink-3); letter-spacing: 0;
}
.rl-base-rent { font-size: var(--text-xs); color: var(--ink-4); margin: 0; }

.listing-card__title {
  font-family: var(--font-sans); font-size: var(--text-md);
  font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; color: var(--ink);
  margin-top: var(--s-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card:hover .listing-card__title {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: var(--line-strong);
}

.listing-card__address { display: flex; align-items: center; gap: 5px; font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.listing-card__address svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--ink-4); }
.listing-card__specs { font-size: var(--text-xs); color: var(--ink-3); margin: 0; }

.rl-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-top: var(--s-2); padding-top: var(--s-2);
  border-top: 1px solid var(--line-faint);
  font-size: var(--text-micro); font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-4);
}

.rl-compare-btn {
  align-self: flex-start; margin-top: var(--s-3);
  padding: 5px var(--s-3); border-radius: var(--r-xs);
  border: 1px solid var(--line);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3); background: transparent;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.rl-compare-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.rl-compare-btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
:root[data-theme="dark"] .rl-compare-btn.is-on { background: var(--celeste-300); color: #08181D; border-color: var(--celeste-300); }

.rl-leak {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: var(--r-xs);
  font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.02em;
  background: var(--surface-2); color: var(--ink-4);
  border: 1px solid var(--line-faint);
}
.rl-leak--under { background: var(--success-soft); color: var(--success); border-color: transparent; }
.rl-leak--over  { background: var(--alert-soft); color: var(--alert); border-color: transparent; }

/* --------------------------------------------------------------------------
   20. SKELETONS
   -------------------------------------------------------------------------- */

.rl-skel {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rl-skel-card { display: flex; flex-direction: column; gap: var(--s-3); }
.rl-skel-card .rl-skel:nth-child(1) { aspect-ratio: 4/3; }
.rl-skel-card .rl-skel:nth-child(2) { height: 20px; width: 45%; }
.rl-skel-card .rl-skel:nth-child(3) { height: 14px; width: 85%; }
.rl-skel-card .rl-skel:nth-child(4) { height: 12px; width: 60%; }

/* --------------------------------------------------------------------------
   21. EMPTY STATES
   -------------------------------------------------------------------------- */

.listings__empty, .rl-empty {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--s-6); text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-2);
}
.rl-empty h1, .listings__empty h3 {
  font-family: var(--font-display); font-size: var(--display-4);
  font-weight: 600; margin-bottom: var(--s-3);
}
.listings__empty p, .rl-empty p {
  color: var(--ink-2); max-width: 46ch; margin-inline: auto;
  margin-bottom: var(--s-5); font-size: var(--text-md);
}

/* --------------------------------------------------------------------------
   22. BROWSE — sticky rail + split map
   -------------------------------------------------------------------------- */

.rl-browse { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.rl-browse--map { grid-template-columns: 258px minmax(0, 1.05fr) minmax(0, 0.95fr); }
.rl-browse--map .listings__grid { grid-template-columns: 1fr; }
@media (min-width: 1400px) { .rl-browse--map .listings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-results { min-width: 0; }
.rl-results .listings__top { margin-top: 0; }

#rl-filters {
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  max-height: calc(100vh - var(--header-h) - var(--s-10));
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: var(--s-2); scrollbar-width: thin;
}
#rl-filters::-webkit-scrollbar { width: 5px; }
#rl-filters::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

#rl-filters .rl-side__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.rl-side__title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rl-side__clear { font-size: var(--text-xs); font-weight: 600; color: var(--brand); }

.rl-fieldset {
  padding: 0 0 var(--s-5); margin: 0 0 var(--s-5); border: 0;
  border-bottom: 1px solid var(--line-faint);
}
.rl-fieldset:last-child { border-bottom: 0; }
.rl-fieldset legend, .rl-fieldset__title {
  padding: 0; margin-bottom: var(--s-3);
  font-size: var(--text-xs); font-weight: 700; color: var(--ink);
}

.rl-adv { display: flex; flex-direction: column; gap: var(--s-1); }

.rl-check {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2); border-radius: var(--r-sm);
  font-size: var(--text-sm); color: var(--ink-2); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-check:hover { background: var(--surface-2); color: var(--ink); }
.rl-check input {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px; flex-shrink: 0; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  background: var(--surface); display: grid; place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.rl-check input::after {
  content: ""; width: 9px; height: 9px; background: var(--on-brand);
  clip-path: polygon(14% 46%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 38% 70%);
  transform: scale(0); transition: transform var(--t-fast);
}
.rl-check input:checked { background: var(--brand); border-color: var(--brand); }
.rl-check input:checked::after { transform: scale(1); }
.rl-check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rl-check:has(input:checked) { color: var(--ink); font-weight: 500; }

.rl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); }
.rl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px var(--s-3); border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  font-size: var(--text-xs); font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.rl-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.rl-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .rl-chip.is-on { background: var(--celeste-300); border-color: var(--celeste-300); color: #08181D; }
.rl-chip__x { font-size: 13px; line-height: 1; opacity: 0.7; }
.rl-chip--clear { border-style: dashed; color: var(--ink-3); }

.rl-filter-fab {
  display: none; position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
  z-index: 80; padding: var(--s-3) var(--s-6); border-radius: var(--r-full);
  background: var(--ink); color: var(--paper);
  font-size: var(--text-sm); font-weight: 700;
  box-shadow: var(--shadow-xl); align-items: center; gap: var(--s-2);
}
:root[data-theme="dark"] .rl-filter-fab { background: var(--celeste-300); color: #08181D; }

@media (max-width: 1080px) {
  .rl-browse, .rl-browse--map { grid-template-columns: 1fr; }
  .rl-filter-fab { display: inline-flex; }
  #rl-filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 130;
    max-height: 82vh; padding: var(--s-5) var(--gutter) var(--s-20);
    background: var(--surface);
    border-top-left-radius: var(--r-xl); border-top-right-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(102%); transition: transform var(--t-slow);
  }
  #rl-filters.is-open { transform: none; }
  #rl-filters::before {
    content: ""; display: block; width: 38px; height: 4px; border-radius: 2px;
    background: var(--line-strong); margin: 0 auto var(--s-4);
  }
  #rl-filters .rl-side__done { position: sticky; bottom: 0; margin-top: var(--s-5); padding-top: var(--s-3); background: var(--surface); }
}
@media (min-width: 1081px) { .rl-side__done { display: none; } }

.rl-scrim {
  position: fixed; inset: 0; z-index: 120; background: var(--overlay);
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.rl-scrim.is-open { opacity: 1; pointer-events: auto; }

/* Detail-page aside (NOT the browse filter rail) */
.rl-detail__grid > .rl-side { position: static; align-self: stretch; height: 100%; }
.rl-price-card .listing-card__price {
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.rl-price-card .rl-leak { margin-left: auto; }

/* --------------------------------------------------------------------------
   23. MAP
   -------------------------------------------------------------------------- */

.rl-map {
  height: 460px; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); z-index: 0;
}
.rl-browse--map .rl-map {
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  height: calc(100vh - var(--header-h) - var(--s-10));
}
.rl-map--detail { height: 340px; }
@media (max-width: 1080px) {
  .rl-browse--map .rl-map { position: static; height: 400px; margin-top: var(--s-6); }
}

.leaflet-container { font-family: var(--font-sans) !important; background: var(--surface-2) !important; }
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important; box-shadow: var(--shadow-lg) !important;
  background: var(--surface) !important; color: var(--ink) !important;
  padding: 0 !important; overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: 214px !important; }
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-close-button { color: var(--ink-3) !important; }
.rl-pop { display: block; color: inherit; }
.rl-pop img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rl-pop__b { padding: var(--s-3); }
.rl-pop__p { font-weight: 700; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.rl-pop__t { font-size: var(--text-xs); color: var(--ink-2); margin-top: 2px; }

.rl-price-marker {
  padding: 4px 9px; border-radius: var(--r-full);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: var(--text-xs); font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm); white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.rl-price-marker:hover, .rl-price-marker.is-active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: scale(1.08); z-index: 500;
}

/* --------------------------------------------------------------------------
   24. ALL-IN PRICE BREAKDOWN
   -------------------------------------------------------------------------- */

.rl-allin-live {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-3);
  border-bottom: 1px dashed var(--line-strong); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.rl-allin-live::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.rl-allin-live:hover { color: var(--brand); border-bottom-color: var(--brand-ring); }

.rl-fee-stack {
  display: grid; gap: var(--s-1); padding: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
}
.rl-fee-stack__row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-4);
  font-size: var(--text-sm); color: var(--ink-2); padding: 3px 0;
}
.rl-fee-stack__row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.rl-fee-stack__row--total {
  border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-3);
  font-weight: 700; color: var(--ink); font-size: var(--text-md);
}
.rl-fee-stack__row--zero span:last-child { color: var(--success); }

/* The detail page renders the stack as <li><span>label</span><strong>value</strong> */
.rl-fee-stack li {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-4);
  align-items: baseline; padding: 4px 0;
  font-size: var(--text-sm); color: var(--ink-2);
}
.rl-fee-stack li + li { border-top: 1px solid var(--line-faint); }
.rl-fee-stack li strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rl-fee-stack li::before { display: none !important; }

.rl-pop-over {
  position: absolute; z-index: 60; min-width: 236px;
  padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xl);
}

/* --------------------------------------------------------------------------
   25. DETAIL PAGE
   -------------------------------------------------------------------------- */

.rl-detail { padding-block: var(--s-6) var(--section-y); }
.rl-detail__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px;
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: var(--s-8);
}
@media (max-width: 1000px) { .rl-detail__grid { grid-template-columns: 1fr; } }

.rl-price-card {
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  display: grid; gap: var(--s-4); padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.rl-price-card h2, .rl-price-card__price {
  font-family: var(--font-display); font-size: clamp(1.875rem, 3vw, 2.375rem);
  font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 0;
}
.rl-price-card .btn { width: 100%; }
.rl-price-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.rl-price-card .rl-host {
  font-size: var(--text-xs); color: var(--ink-2); line-height: 1.5;
  display: block; padding: var(--s-3) var(--s-4);
}
@media (max-width: 1000px) { .rl-price-card { position: static; } }

.rl-dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.rl-dl > div { padding: var(--s-4); background: var(--surface); }
.rl-dl dt { font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 3px; }
.rl-dl dd { margin: 0; font-size: var(--text-md); font-weight: 600; color: var(--ink); }

.rl-list { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.rl-list li { position: relative; padding-left: var(--s-6); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
.rl-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 2px; border-radius: 2px; background: var(--brand); }

.rl-callout {
  padding: var(--s-5); border-radius: var(--r-md);
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  font-size: var(--text-sm); color: var(--ink-2); line-height: 1.6;
}
.rl-callout strong { color: var(--ink); }

.rl-scores { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.rl-scores > span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: var(--s-2) var(--s-4); border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.rl-host { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }

.rl-mates { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); }
.rl-mate { display: grid; gap: 2px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--text-sm); }
.rl-mate strong { font-size: var(--text-md); }
.rl-mate span { color: var(--ink-3); font-size: var(--text-xs); }

.rl-apply { display: grid; gap: var(--s-4); }

/* --------------------------------------------------------------------------
   26. MEDIA
   -------------------------------------------------------------------------- */

.rl-mosaic {
  position: relative; display: grid;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--s-2); height: clamp(300px, 44vw, 480px);
  border-radius: var(--r-lg); overflow: hidden;
}
.rl-mosaic__cell { position: relative; overflow: hidden; background: var(--surface-3); cursor: pointer; }
.rl-mosaic__cell img, .rl-mosaic__cell video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.rl-mosaic__cell:hover img { transform: scale(1.05); }
.rl-mosaic__cell--hero { grid-row: span 2; }
.rl-mosaic__cell--video::after { content: ""; position: absolute; inset: 0; background: rgba(14,31,38,0.22); }
.rl-mosaic__label {
  position: absolute; left: var(--s-3); bottom: var(--s-3); z-index: 2;
  padding: 3px var(--s-2); border-radius: var(--r-xs);
  background: rgba(14,31,38,0.6); color: #fff; backdrop-filter: blur(6px);
  font-size: var(--text-micro); font-weight: 600;
}
.rl-mosaic__play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #fff; pointer-events: none; }
.rl-mosaic__play::before {
  content: ""; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.65);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 56% center;
}
.rl-mosaic__all {
  position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 4;
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
  background: var(--glass-strong); color: var(--ink);
  backdrop-filter: blur(12px); box-shadow: var(--shadow-md);
  font-size: var(--text-xs); font-weight: 700;
}
@media (max-width: 760px) {
  .rl-mosaic { grid-template-columns: 1fr 1fr; height: 320px; }
  .rl-mosaic__cell--hero { grid-column: span 2; }
  .rl-mosaic__cell:nth-child(n+4) { display: none; }
}

.rl-media-hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  min-height: clamp(320px, 46vw, 480px);
  display: flex; align-items: flex-end; background: var(--surface-inv);
}
.rl-media-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-media-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,22,27,0.25) 0%, rgba(9,22,27,0.42) 45%, rgba(9,22,27,0.86) 100%);
}
.rl-media-hero__copy { position: relative; z-index: 2; padding: clamp(1.75rem, 4vw, 3rem); color: #fff; max-width: 62ch; }
.rl-media-hero__copy h1, .rl-media-hero__copy h2 {
  font-family: var(--font-display); font-size: var(--display-2);
  font-weight: 600; letter-spacing: -0.03em; color: #fff; margin-bottom: var(--s-3);
}
.rl-media-hero__copy p { color: rgba(255,255,255,0.86); font-size: var(--text-md); line-height: 1.6; }
.rl-media-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.rl-hero-menus { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.rl-hero-menus__link {
  padding: var(--s-2) var(--s-4); border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.rl-hero-menus__link:hover { border-color: var(--ink); color: var(--ink); }
.rl-hero-menus__link.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .rl-hero-menus__link.is-on { background: var(--celeste-300); border-color: var(--celeste-300); color: #08181D; }

.rl-tour { margin-top: var(--s-10); }
.rl-tour__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.rl-tour__frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.rl-tour__frame video { width: 100%; display: block; }

.rl-room-film { margin-top: var(--s-10); }
.rl-room-film__head { margin-bottom: var(--s-5); }
.rl-room-film__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }
.rl-room-film__card { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.rl-room-film__vid { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-3); }
.rl-room-film__cap { padding: var(--s-3) var(--s-4); font-size: var(--text-xs); color: var(--ink-2); }

.rl-kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }
.rl-kind {
  position: relative; display: grid; gap: var(--s-2);
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-10);
  border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.rl-kind:hover { border-color: var(--ink-3); color: var(--ink); }
.rl-kind input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  position: absolute; left: var(--s-5); top: var(--s-5);
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-kind input[type="radio"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--on-brand); transform: scale(0);
  transition: transform var(--t-fast);
}
.rl-kind input[type="radio"]:checked { background: var(--brand); border-color: var(--brand); }
.rl-kind input[type="radio"]:checked::after { transform: scale(1); }
.rl-kind input[type="radio"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rl-kind strong { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.012em; }
.rl-kind span { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }
.rl-kind.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }

.rl-lb {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 14, 17, 0.94); backdrop-filter: blur(8px);
}
.rl-lb.is-open { display: flex; animation: fade-in var(--t) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.rl-lb__panel { position: relative; width: min(1180px, 94vw); max-height: 94vh; display: flex; flex-direction: column; gap: var(--s-3); }
.rl-lb__stage { flex: 1; min-height: 0; display: grid; place-items: center; border-radius: var(--r-lg); overflow: hidden; background: #050d10; }
.rl-lb__img, .rl-lb__video { max-width: 100%; max-height: 74vh; object-fit: contain; }
.rl-lb__close {
  position: absolute; top: -44px; right: 0; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center; transition: background var(--t-fast);
}
.rl-lb__close:hover { background: rgba(255,255,255,0.24); }
.rl-lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff; backdrop-filter: blur(8px);
  display: grid; place-items: center; font-size: 18px; transition: background var(--t-fast);
}
.rl-lb__nav:hover { background: rgba(255,255,255,0.28); }
.rl-lb__nav--prev { left: var(--s-4); }
.rl-lb__nav--next { right: var(--s-4); }
.rl-lb__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); color: rgba(255,255,255,0.72); font-size: var(--text-xs); }
.rl-lb__cap { color: #fff; }
.rl-lb__count { font-variant-numeric: tabular-nums; }
.rl-lb__film { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2); scrollbar-width: thin; }
.rl-lb__thumb {
  position: relative; flex: 0 0 84px; height: 58px; border-radius: var(--r-xs);
  overflow: hidden; border: 2px solid transparent; opacity: 0.55;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}
.rl-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rl-lb__thumb.is-on, .rl-lb__thumb:hover { opacity: 1; border-color: #fff; }
.rl-lb__shade { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.rl-lb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; }

/* --------------------------------------------------------------------------
   27. CITIES
   -------------------------------------------------------------------------- */

.rl-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: var(--s-4); }
.rl-city-card {
  position: relative; display: grid; gap: 3px;
  padding: var(--s-5); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t), box-shadow var(--t);
}
.rl-city-card::after {
  content: ""; position: absolute; right: -20px; bottom: -24px;
  width: 82px; height: 82px; border-radius: 50%;
  background: var(--brand-soft); opacity: 0;
  transition: opacity var(--t), transform var(--t);
}
.rl-city-card:hover { border-color: var(--ink-3); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.rl-city-card:hover::after { opacity: 1; transform: scale(1.15); }
.rl-city-card__rank { position: relative; z-index: 1; font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.rl-city-card h3 { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.rl-city-card p { position: relative; z-index: 1; font-size: var(--text-xs); color: var(--ink-2); }
.rl-city-card > span:last-child { position: relative; z-index: 1; font-size: var(--text-micro); color: var(--ink-4); }

.rl-city-directory { display: grid; gap: var(--s-10); }
.rl-city-group__title {
  font-family: var(--font-display); font-size: var(--display-4);
  font-weight: 600; letter-spacing: -0.02em;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.rl-city-group ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 var(--s-6); }
.rl-city-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 var(--s-10); }
.rl-city-group__title { grid-column: 1 / -1; }
.rl-city-row {
  display: grid; grid-template-columns: 34px minmax(0, 1.4fr) auto auto auto;
  align-items: baseline; gap: var(--s-3);
  padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line-faint);
  font-size: var(--text-sm); color: var(--ink-2);
  border-radius: var(--r-xs);
  transition: color var(--t-fast), background var(--t-fast);
}
.rl-city-row:hover { color: var(--ink); background: var(--surface-2); }
.rl-city-row__rank { font-size: var(--text-micro); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.rl-city-row > span:nth-child(2) { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
.rl-city-row strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rl-city-row em { font-style: normal; font-size: var(--text-xs); color: var(--ink-4); }
.rl-city-row > span:nth-child(n+3) { font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.rl-city-row:hover strong { color: var(--brand); }
@media (max-width: 640px) {
  .rl-city-group { grid-template-columns: 1fr; }
  .rl-city-row { grid-template-columns: 30px minmax(0,1fr) auto; }
  .rl-city-row > span:nth-child(n+4) { display: none; }
}

/* --------------------------------------------------------------------------
   28. FORMS / QUIZ / WIZARD
   -------------------------------------------------------------------------- */

.form-card, .form, .rl-quiz, .rl-wizard, .profile-form { display: grid; gap: var(--s-5); }
.form-card, .rl-quiz, .rl-wizard {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }

.form-group { display: grid; gap: var(--s-2); }
.form-group label { font-size: var(--text-xs); font-weight: 700; color: var(--ink); }

.form-input,
.form select, .form textarea,
.form input:not([type="checkbox"]):not([type="radio"]),
.rl-quiz select, .rl-quiz input:not([type="checkbox"]):not([type="radio"]),
.rl-wizard select, .rl-wizard textarea,
.rl-wizard input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; padding: 0.6875rem var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: var(--text-base); font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-input::placeholder, textarea::placeholder { color: var(--ink-4); }
.form-input:focus, .form select:focus, .form textarea:focus,
.rl-quiz select:focus, .rl-quiz input:not([type="checkbox"]):not([type="radio"]):focus,
.rl-wizard select:focus, .rl-wizard textarea:focus,
.rl-wizard input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
textarea { min-height: 118px; resize: vertical; }
.form select, .rl-quiz select, .rl-wizard select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-4) center; padding-right: var(--s-10);
}

.rl-quiz { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: end; }
.rl-quiz .rl-check, .rl-wizard .rl-check { align-self: center; }
.rl-quiz > .rl-fieldset, .rl-wizard > .rl-fieldset { grid-column: 1 / -1; }
.rl-quiz > .btn { grid-column: 1 / -1; justify-self: start; }

.pricing-note { font-size: var(--text-xs); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   29. PRICING PLANS
   -------------------------------------------------------------------------- */

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: var(--s-5); align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.plan-card:hover { border-color: var(--ink-3); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-card--enterprise { background: var(--surface-inv); border-color: transparent; }
.plan-card--enterprise .plan-card__title,
.plan-card--enterprise .plan-card__amount { color: var(--ink-on-dark); }
.plan-card--enterprise .plan-card__desc,
.plan-card--enterprise .plan-card__features li,
.plan-card--enterprise .plan-card__period { color: rgba(242,247,247,0.72); }
:root[data-theme="dark"] .plan-card--enterprise .plan-card__title,
:root[data-theme="dark"] .plan-card--enterprise .plan-card__amount { color: var(--celeste-950); }
:root[data-theme="dark"] .plan-card--enterprise .plan-card__desc,
:root[data-theme="dark"] .plan-card--enterprise .plan-card__features li,
:root[data-theme="dark"] .plan-card--enterprise .plan-card__period { color: rgba(13,34,41,0.75); }

.plan-card__badge {
  position: absolute; top: -10px; left: var(--s-6);
  padding: 3px var(--s-3); border-radius: var(--r-xs);
  background: var(--brand); color: var(--on-brand);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.plan-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.plan-card__price { display: flex; align-items: baseline; gap: 4px; }
.plan-card__amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan-card__period { font-size: var(--text-xs); color: var(--ink-3); }
.plan-card__desc { font-size: var(--text-sm); color: var(--ink-2); }
.plan-card__features { display: grid; gap: var(--s-2); flex: 1; }
.plan-card__features li { position: relative; padding-left: var(--s-6); font-size: var(--text-sm); color: var(--ink-2); }
.plan-card__features li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 13px; height: 13px; border-radius: 50%; background: var(--success-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%232E6E58' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.plan-card__cta { margin-top: auto; }

/* --------------------------------------------------------------------------
   30. CTA SECTIONS
   -------------------------------------------------------------------------- */

.alerts-section { border-block: 1px solid var(--line); background: var(--surface-2); }
.alerts-section .container { display: grid; gap: var(--s-5); justify-items: start; }
.alerts-section__title, .alerts-section__subtitle { max-width: 24ch; }
.alerts-section__subtitle { max-width: 62ch; }
.alerts-section__title { font-family: var(--font-display); font-size: var(--display-3); font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
.alerts-section__subtitle { font-size: var(--text-lg); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
.alerts-features { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.alerts-features li { position: relative; padding-left: var(--s-6); font-size: var(--text-sm); color: var(--ink-2); font-weight: 500; }
.alerts-features li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.alerts-section .btn { justify-self: start; }

.professionals-cta {
  background: var(--surface-inv); color: var(--ink-on-dark);
  padding-block: var(--section-y); position: relative; overflow: hidden;
}
.professionals-cta::before {
  content: ""; position: absolute; top: -40%; right: -8%;
  width: 46vw; height: 46vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,169,188,0.22), transparent 68%);
}
.professionals-cta .container { position: relative; display: grid; gap: var(--s-5); justify-items: start; }
.professionals-cta__title { max-width: 22ch; }
.professionals-cta__subtitle { max-width: 60ch; }
.professionals-cta__title { font-family: var(--font-display); font-size: var(--display-3); font-weight: 600; letter-spacing: -0.028em; color: var(--ink-on-dark); text-wrap: balance; }
.professionals-cta__subtitle { font-size: var(--text-lg); color: rgba(242,247,247,0.76); line-height: 1.55; }
.professionals-cta__subtitle a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.professionals-cta .btn { justify-self: start; }
:root[data-theme="dark"] .professionals-cta__title { color: var(--celeste-950); }
:root[data-theme="dark"] .professionals-cta__subtitle { color: rgba(13,34,41,0.78); }
:root[data-theme="dark"] .professionals-cta__subtitle a { color: var(--celeste-950); }

/* --------------------------------------------------------------------------
   31. FAQ
   -------------------------------------------------------------------------- */

.faq-list { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5);
  width: 100%; text-align: left; padding: var(--s-5) 0;
  font-size: var(--text-md); font-weight: 600; color: var(--ink);
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--brand); }
.faq-q::after {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform var(--t);
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > * { overflow: hidden; }
.faq-a p { font-size: var(--text-base); color: var(--ink-2); line-height: 1.65; max-width: 68ch; padding-bottom: var(--s-5); }

/* --------------------------------------------------------------------------
   32. FOOTER + NEWSLETTER
   -------------------------------------------------------------------------- */

.footer {
  margin-top: auto; background: var(--surface-inv); color: rgba(242,247,247,0.68);
  padding-block: var(--s-16) var(--s-8); position: relative; overflow: hidden;
}
:root[data-theme="dark"] .footer { background: var(--paper-deep); color: var(--ink-2); border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer { background: var(--paper-deep); color: var(--ink-2); border-top: 1px solid var(--line); }
}

.newsletter { padding-bottom: var(--s-12); margin-bottom: var(--s-12); border-bottom: 1px solid rgba(255,255,255,0.12); }
:root[data-theme="dark"] .newsletter { border-bottom-color: var(--line); }
.newsletter__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: var(--s-6) var(--s-10); align-items: center;
}
.newsletter__title { font-family: var(--font-display); font-size: var(--display-4); font-weight: 600; letter-spacing: -0.025em; color: var(--ink-on-dark); }
:root[data-theme="dark"] .newsletter__title { color: var(--ink); }
.newsletter__desc { font-size: var(--text-sm); margin-top: var(--s-2); max-width: 46ch; }
.newsletter__form { display: flex; gap: var(--s-2); grid-column: 2; }
.newsletter__input {
  flex: 1; min-width: 0; padding: 0.6875rem var(--s-4);
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07); color: #fff; font-size: var(--text-base);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.newsletter__input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter__input:focus { outline: none; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }
:root[data-theme="dark"] .newsletter__input { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .newsletter__input::placeholder { color: var(--ink-4); }
.newsletter__form .btn--primary { background: var(--paper); color: var(--ink); }
.newsletter__form .btn--primary:hover { background: #fff; color: var(--ink); }
@media (max-width: 820px) {
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter__form { grid-column: 1; }
}

.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--s-10); }
.footer__brand { display: grid; gap: var(--s-4); align-content: start; }
.logo--footer, .logo--footer:hover { color: var(--ink-on-dark); }
.logo--footer .logo__mark { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .logo--footer { color: var(--ink); }
:root[data-theme="dark"] .logo--footer .logo__mark { background: var(--celeste-300); color: #08181D; }
.footer__tagline { font-size: var(--text-sm); max-width: 34ch; line-height: 1.6; }

.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-8) var(--s-6); }
.footer__col h4 {
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-on-dark); margin-bottom: var(--s-4);
}
:root[data-theme="dark"] .footer__col h4 { color: var(--ink); }
.footer__col ul { display: grid; gap: var(--s-2); }
.footer__col a { font-size: var(--text-sm); color: rgba(242,247,247,0.66); }
.footer__col a:hover { color: #fff; }
:root[data-theme="dark"] .footer__col a { color: var(--ink-2); }
:root[data-theme="dark"] .footer__col a:hover { color: var(--brand); }

.footer__bottom {
  margin-top: var(--s-12); padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--text-xs); color: rgba(242,247,247,0.5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
}
:root[data-theme="dark"] .footer__bottom { border-top-color: var(--line); color: var(--ink-3); }

@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s-8); } }

/* --------------------------------------------------------------------------
   33. MODAL
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 250;
  display: none; align-items: center; justify-content: center; padding: var(--s-5);
  background: var(--overlay); backdrop-filter: blur(6px);
}
.modal-overlay.is-active { display: flex; animation: fade-in var(--t) both; }
.modal {
  position: relative; width: min(430px, 100%); max-height: 92vh; overflow-y: auto;
  padding: var(--s-8); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xl);
  animation: rise var(--t-slow) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: var(--s-4); right: var(--s-4);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--ink-3);
  transition: background var(--t-fast), color var(--t-fast);
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
.modal__subtitle { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--s-2); }

.modal-tabs {
  display: flex; gap: 2px; padding: 3px; margin: var(--s-6) 0 var(--s-5);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.modal-tab {
  flex: 1; padding: var(--s-2); border-radius: 6px;
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-3);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.modal-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.modal-panel { display: none; }
.modal-panel.is-active { display: block; }

/* --------------------------------------------------------------------------
   34. COMPARE
   -------------------------------------------------------------------------- */

.rl-compare-tray {
  position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
  z-index: 90; width: min(760px, calc(100vw - 2rem));
}
.rl-compare-tray__inner {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-lg);
  background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-xl); font-size: var(--text-xs);
  animation: rise var(--t-slow) both;
}
.rl-compare-tray__inner strong { font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.rl-compare-tray__inner .btn { margin-left: auto; }

.rl-compare-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.rl-compare-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.rl-compare-table th, .rl-compare-table td {
  padding: var(--s-4); text-align: left;
  border-bottom: 1px solid var(--line-faint);
  font-size: var(--text-sm); vertical-align: top;
}
.rl-compare-table thead th { font-size: var(--text-xs); font-weight: 700; color: var(--ink); background: var(--surface-2); }
.rl-compare-table tbody th { color: var(--ink-3); font-weight: 600; font-size: var(--text-xs); white-space: nowrap; }
.rl-compare-table tr:last-child td, .rl-compare-table tr:last-child th { border-bottom: 0; }
.rl-compare-table td { color: var(--ink); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   35. COMMAND PALETTE
   -------------------------------------------------------------------------- */

.rl-cmd {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(3rem, 12vh, 8rem) var(--s-5) var(--s-5);
  background: var(--overlay); backdrop-filter: blur(6px);
}
.rl-cmd[hidden] { display: none; }
.rl-cmd__panel {
  width: min(600px, 100%); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xl);
  animation: rise 320ms var(--ease-out) both;
}
.rl-cmd__input {
  width: 100%; padding: var(--s-5) var(--s-6);
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font-size: var(--text-lg); font-weight: 500; outline: none;
}
.rl-cmd__input::placeholder { color: var(--ink-4); font-weight: 400; }
.rl-cmd__results { max-height: 52vh; overflow-y: auto; padding: var(--s-2); }
.rl-cmd__results a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  color: var(--ink); transition: background var(--t-fast);
}
.rl-cmd__results a:hover, .rl-cmd__results a.is-active { background: var(--surface-2); color: var(--ink); }
.rl-cmd__results a strong { font-size: var(--text-base); font-weight: 600; }
.rl-cmd__results a span { font-size: var(--text-xs); color: var(--ink-3); flex-shrink: 0; }
.rl-cmd__results p { padding: var(--s-6); text-align: center; color: var(--ink-3); font-size: var(--text-sm); }
.rl-cmd__hint {
  display: flex; gap: var(--s-4); padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line); background: var(--surface-2);
  font-size: var(--text-micro); color: var(--ink-4);
}

/* --------------------------------------------------------------------------
   36. TOAST
   -------------------------------------------------------------------------- */

.rl-toast {
  position: fixed; left: 50%; bottom: var(--s-8);
  transform: translateX(-50%) translateY(12px); z-index: 400;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper);
  font-size: var(--text-sm); font-weight: 500;
  box-shadow: var(--shadow-xl); opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.rl-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
:root[data-theme="dark"] .rl-toast { background: var(--celeste-300); color: #08181D; }

/* --------------------------------------------------------------------------
   37. GENERIC PAGE PROSE
   -------------------------------------------------------------------------- */

.rl-page h2 { font-family: var(--font-display); font-size: var(--display-3); font-weight: 600; letter-spacing: -0.025em; margin-bottom: var(--s-4); }
.rl-page h3 { font-size: var(--display-4); font-weight: 600; margin-bottom: var(--s-3); }
.rl-page p { color: var(--ink-2); line-height: 1.7; max-width: 72ch; }
.rl-page p + p { margin-top: var(--s-4); }
.rl-page ul:not(.rl-list):not(.alerts-features):not(.plan-card__features):not(.rl-badges):not(.amenity-chips) { display: grid; gap: var(--s-2); }
.rl-page ul:not(.rl-list):not(.alerts-features):not(.plan-card__features):not(.rl-badges):not(.amenity-chips) li {
  position: relative; padding-left: var(--s-5); color: var(--ink-2); font-size: var(--text-base);
}
.rl-page ul:not(.rl-list):not(.alerts-features):not(.plan-card__features):not(.rl-badges):not(.amenity-chips) li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4);
}

.rl-prose { max-width: 74ch; }
.rl-prose h2 { margin-top: var(--s-10); }
.rl-prose h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   38. PRINT
   -------------------------------------------------------------------------- */

@media print {
  .header, .footer, .rl-compare-tray, .rl-filter-fab, .rl-side, .tahoe-bg, .newsletter { display: none !important; }
  body { background: #fff; color: #000; }
  .listing-card { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   39. PAGINATION
   -------------------------------------------------------------------------- */

.rl-pager {
  display: grid; justify-items: center; gap: var(--s-3);
  margin-top: var(--s-12); padding-top: var(--s-8);
  border-top: 1px solid var(--line); text-align: center;
}
.rl-pager__count { font-size: var(--text-sm); color: var(--ink-3); }
.rl-pager__count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.rl-pager__bar {
  width: min(260px, 60%); height: 3px; border-radius: var(--r-full);
  background: var(--surface-3); overflow: hidden;
}
.rl-pager__bar span {
  display: block; height: 100%; border-radius: var(--r-full);
  background: var(--brand); transition: width var(--t-slow);
}
.rl-pager__end { font-size: var(--text-xs); color: var(--ink-4); }


/* --------------------------------------------------------------------------
   40. BROWSE PAGE OVERRIDES
   -------------------------------------------------------------------------- */

[data-page="browse"] .hero { padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
[data-page="browse"] .hero__title { font-size: var(--display-2); margin-bottom: var(--s-3); }
[data-page="browse"] .hero__subtitle { font-size: var(--text-md); margin-bottom: var(--s-6); }
[data-page="browse"] .hero__inner,
[data-page="browse"] .listings-section > .container { max-width: var(--container-wide); }
[data-page="browse"] .listings-section { padding-top: 0; }
[data-page="browse"] .listings__grid { grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); }

/* --------------------------------------------------------------------------
   41. FILTER RAIL CONTROLS
   -------------------------------------------------------------------------- */

.rl-optlist { display: grid; gap: 1px; }
.rl-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  width: 100%; text-align: left;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.rl-opt span { font-size: var(--text-micro); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.rl-opt:hover { background: var(--surface-2); color: var(--ink); }
.rl-opt.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.rl-opt.is-on span { color: var(--brand); }

.rl-optrow { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rl-opt--sm {
  width: auto; justify-content: center;
  padding: 5px var(--s-3); border-radius: var(--r-full);
  border-color: var(--line-strong); font-size: var(--text-xs);
}
.rl-opt--sm:hover { border-color: var(--ink-3); }
.rl-opt--sm.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .rl-opt--sm.is-on { background: var(--celeste-300); border-color: var(--celeste-300); color: #08181D; }

.rl-range { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.rl-range span { color: var(--ink-4); font-size: var(--text-sm); }
.rl-range input {
  width: 100%; min-width: 0; padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: var(--text-sm); font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.rl-range input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.rl-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }


/* --------------------------------------------------------------------------
   42. LIVE DATA STATE
   -------------------------------------------------------------------------- */

/* The market-pulse dot is honest: green + pulsing only when the API answered. */
.hero-proof__live #rl-live-badge.is-stale { color: var(--ink-4); }
.hero-proof__live:has(#rl-live-badge.is-stale) { color: var(--ink-4); }
.hero-proof__live:has(#rl-live-badge.is-stale) .hero-proof__dot {
  background: var(--ink-4); animation: none;
}
body.rl-live .hero-proof__dot { background: var(--success); }

/* --------------------------------------------------------------------------
   43. CURRENCY SWITCHER
   -------------------------------------------------------------------------- */

.cur-select { position: relative; display: inline-flex; align-items: center; }
.cur-select select {
  appearance: none; -webkit-appearance: none;
  padding: 6px var(--s-6) 6px var(--s-3);
  border: 1px solid transparent; border-radius: var(--r-sm);
  background-color: transparent; color: var(--ink-2);
  font-size: var(--text-xs); font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23526B74' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-2) center;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.cur-select select:hover { background-color: var(--line-faint); color: var(--ink); border-color: var(--line); }
.cur-select select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
:root[data-theme="dark"] .cur-select select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%237D959C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (max-width: 620px) { .cur-select { display: none; } }

/* --------------------------------------------------------------------------
   44. HERO CAROUSEL
   -------------------------------------------------------------------------- */

.rl-hero-carousel { align-self: start; }

.rl-hero-car {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.rl-hero-car__stage { position: absolute; inset: 0; }

.rl-hero-car__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transform: scale(1.04);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), visibility 0s linear 700ms;
}
.rl-hero-car__slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 700ms var(--ease-out), transform 6.5s linear, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .rl-hero-car__slide, .rl-hero-car__slide.is-active { transition: opacity 200ms linear; transform: none; }
}

.rl-hero-car__media { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-3); }

.rl-hero-car__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,22,27,0.30) 0%, rgba(9,22,27,0.05) 32%, rgba(9,22,27,0.55) 72%, rgba(9,22,27,0.88) 100%);
}

.rl-hero-car__kind {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px var(--s-3); border-radius: var(--r-full);
  background: rgba(9,22,27,0.55); color: #fff;
  backdrop-filter: blur(10px);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.rl-hero-car__kind::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--celeste-300); animation: pulse-dot 2.4s ease-out infinite;
}

.rl-hero-car__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; gap: 6px;
  padding: var(--s-6) var(--s-6) calc(var(--s-6) + 26px);
  color: #fff;
}
.rl-hero-car__badge {
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.rl-hero-car__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; color: #fff;
  text-wrap: balance;
}
.rl-hero-car__title:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rl-hero-car__title::after { content: ""; position: absolute; inset: 0; }
.rl-hero-car__price {
  display: flex; align-items: baseline; gap: 5px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums;
}
.rl-hero-car__price em {
  font-family: var(--font-sans); font-style: normal;
  font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.72);
}

.rl-hero-car__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.16); color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.24);
  opacity: 0; transition: opacity var(--t), background var(--t-fast);
}
.rl-hero-car__nav svg { width: 17px; height: 17px; }
.rl-hero-car__nav:hover { background: rgba(255,255,255,0.3); }
.rl-hero-car__nav--prev { left: var(--s-4); }
.rl-hero-car__nav--next { right: var(--s-4); }
.rl-hero-car:hover .rl-hero-car__nav,
.rl-hero-car:focus-within .rl-hero-car__nav { opacity: 1; }
@media (hover: none) { .rl-hero-car__nav { opacity: 1; } }

.rl-hero-car__dots {
  position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-5); z-index: 5;
  display: flex; gap: 6px;
}
.rl-hero-car__dot {
  flex: 1; height: 18px; display: grid; align-items: center;
  background: none; border: 0; cursor: pointer;
}
.rl-hero-car__dot i {
  display: block; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.34);
  transition: background var(--t-fast);
}
.rl-hero-car__dot:hover i { background: rgba(255,255,255,0.6); }
.rl-hero-car__dot.is-on i { background: #fff; }
.rl-hero-car__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: var(--r-xs); }

/* Live/cached tag now lives on the stat rail */
.rl-live-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: var(--r-xs); font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--success-soft); color: var(--success);
  vertical-align: 1px;
}
.rl-live-tag.is-stale { background: var(--surface-3); color: var(--ink-4); }

@media (max-width: 940px) {
  .rl-hero-carousel { order: 3; }
  .rl-hero-car { aspect-ratio: 16 / 10; }
}

/* Hero quick links */
.hero__quick { margin-top: var(--s-2); }
.hero__quick-label {
  display: block; margin-bottom: var(--s-3);
  font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
}
.hero__quick-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__quick-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px var(--s-4); border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.hero__quick-chip b {
  font-size: 10px; font-weight: 700; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.hero__quick-chip:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.hero__quick-chip:hover b { color: var(--brand); }

/* --------------------------------------------------------------------------
   45. OPERATOR BOUTIQUES
   -------------------------------------------------------------------------- */

.rl-op-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-4);
}
.rl-op-card {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color var(--t-fast), transform var(--t), box-shadow var(--t);
}
.rl-op-card:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.rl-op-card__mark {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.02em;
}
:root[data-theme="dark"] .rl-op-card__mark { background: var(--celeste-300); color: #08181D; }
.rl-op-card__body { display: grid; gap: 3px; min-width: 0; }
.rl-op-card__body strong { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.012em; }
.rl-op-card__body em {
  font-style: normal; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rl-op-card__meta {
  margin-top: 3px; font-size: var(--text-micro); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4);
}

/* Boutique header */
.rl-op-hero {
  display: flex; align-items: flex-start; gap: clamp(1rem, 2.5vw, 1.75rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--s-8);
}
.rl-op-hero__mark {
  flex-shrink: 0; width: clamp(64px, 7vw, 84px); height: clamp(64px, 7vw, 84px);
  border-radius: var(--r-lg); display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: 0.01em;
}
:root[data-theme="dark"] .rl-op-hero__mark { background: var(--celeste-300); color: #08181D; }
.rl-op-hero__text { min-width: 0; display: grid; gap: var(--s-3); }
.rl-op-hero__text h1 {
  font-family: var(--font-display); font-size: var(--display-2);
  font-weight: 600; letter-spacing: -0.03em; margin: 0;
}
.rl-op-hero__text .rl-lead { margin: 0; }
@media (max-width: 620px) { .rl-op-hero { flex-direction: column; } }

/* Host row on the listing detail, linking to the boutique */
.rl-host--link {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-host--link:hover { border-color: var(--ink-3); background: var(--surface-2); color: var(--ink); }
.rl-host__mark {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink);
  font-size: var(--text-xs); font-weight: 800;
}
.rl-host__text { display: grid; gap: 1px; min-width: 0; }
.rl-host__text strong { font-size: var(--text-sm); font-weight: 600; }
.rl-host__text span { font-size: var(--text-xs); color: var(--ink-3); }
.rl-host__go { margin-left: auto; color: var(--ink-4); transition: transform var(--t-fast), color var(--t-fast); }
.rl-host--link:hover .rl-host__go { transform: translateX(3px); color: var(--brand); }

/* --------------------------------------------------------------------------
   46. OPERATOR DIRECTORY — search, filters, grid/list
   -------------------------------------------------------------------------- */

.rl-op-search { margin-bottom: var(--s-5); }
.rl-op-search .search-form__row { gap: 0; }

.rl-check--inline {
  margin-left: auto; padding: 6px var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 600; gap: var(--s-2);
}
.rl-check--inline:has(input:checked) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
@media (max-width: 700px) { .rl-check--inline { margin-left: 0; } }

/* List view — a scannable table of operators */
.rl-op-list { display: grid; gap: var(--s-2); }
.rl-op-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 2.2fr) repeat(5, minmax(0, 0.85fr)) 18px;
  align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.rl-op-row:hover { border-color: var(--ink-3); background: var(--surface-2); color: var(--ink); transform: translateX(2px); }
.rl-op-row__main { display: grid; gap: 2px; min-width: 0; }
.rl-op-row__main strong { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.012em; }
.rl-op-row__main em {
  font-style: normal; font-size: var(--text-xs); color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-op-row__col { display: grid; gap: 1px; min-width: 0; }
.rl-op-row__col b {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-op-row__col i {
  font-style: normal; font-size: var(--text-micro); color: var(--ink-4);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.rl-op-row__go { color: var(--ink-4); transition: transform var(--t-fast), color var(--t-fast); }
.rl-op-row:hover .rl-op-row__go { transform: translateX(3px); color: var(--brand); }

@media (max-width: 1080px) {
  .rl-op-row { grid-template-columns: 44px minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 18px; }
  .rl-op-row__col:nth-of-type(4), .rl-op-row__col:nth-of-type(5) { display: none; }
}
@media (max-width: 700px) {
  .rl-op-row { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: var(--s-3); }
  .rl-op-row__col:nth-of-type(n+2) { display: none; }
  .rl-op-row__col:first-of-type { display: none; }
  .rl-op-row__main em { white-space: normal; }
}

/* --------------------------------------------------------------------------
   47. SCOPED LISTING BROWSER
   -------------------------------------------------------------------------- */

.rl-browser { display: grid; gap: 0; }
.rl-browser__search { margin-bottom: var(--s-4); }
.rl-browser .rl-chips { margin-bottom: var(--s-2); }
.rl-browser .listings__top { margin-bottom: var(--s-5); }
.rl-browser .rl-pager { margin-top: var(--s-8); padding-top: var(--s-6); }
