/* static/tokens.css */
/* VallartaOS Design Tokens — Pacific Sunset Meets Cobblestones */

:root {
  --color-brand-primary:      #1B6CA8;
  --color-brand-primary-soft: #E3EFF8;
  --color-brand-accent:       #F4845F;
  --color-brand-accent-dark:  #D4623D;
  --color-brand-accent-soft:  #FCE8DF;
  --color-brand-teal:         #0897A1;
  --color-brand-teal-soft:    #DFF1F3;

  --color-neutral-950: #1A1612;
  --color-neutral-900: #2D2520;
  --color-neutral-800: #3D3530;
  --color-neutral-700: #5C534A;
  --color-neutral-600: #7A7168;
  --color-neutral-500: #8C8178;
  --color-neutral-400: #A89E94;
  --color-neutral-300: #C4BAB0;
  --color-neutral-200: #DDD5CC;
  --color-neutral-150: #EDEDE9;
  --color-neutral-100: #F4F4F0;
  --color-neutral-50:  #FAFAF8;
  --color-white:       #FFFFFF;

  --color-success:      #0897A1;
  --color-warning:      #D97706;
  --color-warning-soft: #FCE8C7;
  --color-danger:       #DC2626;
  --color-danger-soft:  #FBE0DD;
  --color-info:         #1B6CA8;

  --font-sans:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Glass morphism */
  --glass-bg:     rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.68);
  --glass-blur:   blur(16px);
  --glass-shadow: 0 4px 28px rgba(26,22,18,0.10), 0 1px 4px rgba(26,22,18,0.05), inset 0 1px 0 rgba(255,255,255,0.95);

  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(26,22,18,0.06);
  --shadow-md: 0 2px 8px rgba(26,22,18,0.08), 0 0 0 1px rgba(26,22,18,0.04);
  --shadow-lg: 0 4px 16px rgba(26,22,18,0.10), 0 0 0 1px rgba(26,22,18,0.04);
  --shadow-xl: 0 8px 32px rgba(26,22,18,0.14), 0 0 0 1px rgba(26,22,18,0.04);

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem;
}

@keyframes vos-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
@keyframes vos-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vos-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v2 layer — 2026-09 frontend refresh.
   Additive only. Existing tokens above are untouched so every current
   template keeps rendering; new work consumes the aliases + scales below.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* semantic surface + ink aliases (map onto the neutral ramp above) */
  --surface:        var(--color-neutral-50);   /* page ground        */
  --surface-raised: var(--color-white);        /* cards, sheets      */
  --surface-sunk:   var(--color-neutral-100);  /* insets, wells      */
  --ink:            var(--color-neutral-900);  /* primary text       */
  --ink-2:          var(--color-neutral-700);  /* secondary text     */
  --ink-3:          var(--color-neutral-500);  /* muted / captions   */
  --line:           var(--color-neutral-200);  /* hairline border    */
  --line-2:         var(--color-neutral-150);  /* faint divider      */
  --accent:         var(--color-brand-primary);
  --accent-press:   #155E99;
  --accent-tint:    var(--color-brand-primary-soft);
  --coral:          var(--color-brand-accent);
  --coral-press:    var(--color-brand-accent-dark);

  /* fluid type scale — clamp(min, preferred, max) */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-xl:   clamp(1.3rem,  1.15rem + 0.8vw, 1.6rem);
  --fs-2xl:  clamp(1.7rem,  1.4rem  + 1.5vw, 2.3rem);
  --fs-3xl:  clamp(2.05rem, 1.6rem  + 2.4vw, 3rem);
  --fs-4xl:  clamp(2.5rem,  1.9rem  + 3.4vw, 3.9rem);

  /* motion — two durations for UI, two for entrances; one easing family */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 120ms;   /* taps, hovers            */
  --dur-2: 200ms;   /* toggles, small moves    */
  --dur-3: 320ms;   /* sheets, section changes */
  --dur-4: 460ms;   /* entrance reveals        */

  --container:  1080px;
  --container-slim: 620px;
}

/* one reveal keyframe drives every scroll-in; motion.js toggles [data-reveal].in */
@keyframes vp-reveal-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes vp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* static/scenes.css */
/* VallartaOS — Scene backgrounds (pure CSS, no images) */

.scene-sunset {
  background:
    radial-gradient(circle 90px at 78% 62%, #FFD78A 0%, #FFB770 35%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 78% 70%, rgba(255,182,120,0.55) 0%, transparent 60%),
    linear-gradient(180deg, #2C3E73 0%, #6B5E8C 28%, #D67B6A 50%, #F4A57B 68%, #F8C998 82%, #4A6A8C 82.1%, #2E4A6E 100%);
  position: relative; overflow: hidden;
}
.scene-sunset::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background:
    repeating-linear-gradient(180deg, rgba(255,210,160,0.18) 0px, rgba(255,210,160,0.18) 2px, transparent 2px, transparent 7px),
    linear-gradient(180deg, rgba(255,180,120,0.3), transparent 50%);
  pointer-events: none;
}

.scene-ocean {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 50%),
    linear-gradient(180deg, #BFE0E8 0%, #8FC0CC 30%, #5C97AE 55%, #346E8C 80%, #1B4E6E 100%);
  position: relative; overflow: hidden;
}

.scene-night {
  background:
    radial-gradient(circle 70px at 25% 30%, rgba(255,210,140,0.7) 0%, transparent 55%),
    radial-gradient(circle 50px at 65% 50%, rgba(255,180,120,0.55) 0%, transparent 60%),
    linear-gradient(180deg, #0E1830 0%, #1B2547 40%, #2A3056 70%, #3A2842 100%);
  position: relative; overflow: hidden;
}

.scene-warm {
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, #FCE8DF 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, #FFE9CA 0%, transparent 60%),
    #F5E6DA;
}

.scene-tile {
  background:
    radial-gradient(circle 6px at 50% 50%, #F4845F 100%, transparent),
    radial-gradient(circle 4px at 0% 50%, #1B6CA8, transparent 100%),
    radial-gradient(circle 4px at 100% 50%, #1B6CA8, transparent 100%),
    radial-gradient(circle 4px at 50% 0%, #1B6CA8, transparent 100%),
    radial-gradient(circle 4px at 50% 100%, #1B6CA8, transparent 100%),
    linear-gradient(45deg, transparent 48%, rgba(27,108,168,0.25) 49%, rgba(27,108,168,0.25) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(27,108,168,0.25) 49%, rgba(27,108,168,0.25) 51%, transparent 52%),
    #F5EAD5;
  background-size: 40px 40px;
}

.scene-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* static/app.css */
/* VallartaOS — Shared Component Library */

/* ── reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;          /* base: 55+ audience, high readability */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;         /* lets .page-hero break out to the viewport edge safely */
  /* one shared content measure — matches the homepage's .mag-wrap */
  --measure: 1240px;
  --measure-pad: clamp(20px, 5vw, 64px);
}

body {
  font-family: var(--font-sans);
  background: #F5F3EF;
  color: var(--color-neutral-900);
  line-height: 1.6;
  overflow-x: clip;   /* pairs with html{overflow-x:clip}: kills the ~8px 100vw-vs-scrollbar
                          rubber-band on full-bleed bands without breaking position:sticky */
}

/* Calm warm-paper ground. Two barely-there tints instead of the old 7-stop
   mesh — enough warmth that the page isn't flat, not enough to fight card
   contrast. (2026-09 refresh.) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 1400px 900px at -10% -12%, rgba(27,108,168,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 1200px 800px at 110% 4%,   rgba(244,132,95,0.055) 0%, transparent 58%),
    #F5F3EF;
  pointer-events: none;
}

/* Subtle grain overlay — makes gradients feel organic, not flat CSS */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
}

a { color: var(--color-brand-primary); }
a:hover { color: var(--color-brand-accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ── layout ─────────────────────────────────────────────────────────────────── */
.wrap      { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--measure-pad); }
.wrap-slim { width: 100%; max-width:  720px; margin: 0 auto; padding: 0 var(--measure-pad); }

/* ── header ─────────────────────────────────────────────────────────────────── */
/* A faint panoramic PV coastline sits under a warm veil — consistent "place"
   texture on every page. The veil thickens on scroll so text stays crisp. */
.site-header {
  background:
    linear-gradient(180deg, rgba(247,244,240,0.80) 0%, rgba(247,244,240,0.84) 100%),
    url('/home-img/know_vallarta/1.jpg') center 58% / cover no-repeat;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(26,22,18,0.07);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-brand-accent) 55%, transparent), transparent);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.site-header.scrolled {
  background:
    linear-gradient(180deg, rgba(247,244,240,0.94) 0%, rgba(247,244,240,0.96) 100%),
    url('/home-img/know_vallarta/1.jpg') center 58% / cover no-repeat;
  border-bottom-color: rgba(26,22,18,0.10);
  box-shadow: 0 10px 30px -20px rgba(26,22,18,0.4);
}
.site-header.scrolled::after { opacity: 1; }
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-top: 13px; padding-bottom: 13px;
}
.brand-link { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-brand-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand-accent) 18%, transparent);
  align-self: center;
}
.brand-word {
  font-family: var(--font-display); font-weight: 500; font-size: 1.22rem;
  letter-spacing: -0.02em; color: var(--color-neutral-950); line-height: 1;
}
.brand-place {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-neutral-400);
}
.brand-link:hover .brand-word { color: var(--color-brand-accent-dark); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* legacy inline nav — retired in favour of the full-screen menu */
.site-nav { display: none !important; }

/* ── language toggle ────────────────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.lang-flag-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 5px 8px; border-radius: var(--radius-full);
  font-size: 0.7em; font-weight: 700; letter-spacing: 0.03em;
  text-decoration: none; transition: all 130ms ease;
  color: var(--color-neutral-500); background: transparent; opacity: 0.55;
}
.lang-flag-btn .flag-emoji { font-size: 1.3em; line-height: 1; }
.lang-flag-btn.active { opacity: 1; background: rgba(27,108,168,0.10); color: var(--color-brand-primary); }
.lang-flag-btn:hover   { opacity: 1; text-decoration: none; }

.mobile-menu .mobile-lang-row  { display: flex; gap: 10px; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 16px; }
.mobile-menu a.mobile-lang-btn  {
  flex: 1; text-align: left; padding: 14px 20px; border-radius: 12px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16); border-bottom: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07); color: rgba(247,242,236,0.92);
  transition: background 130ms, border-color 130ms;
}
.mobile-menu a.mobile-lang-btn.active { background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.3); }
.mobile-menu a.mobile-lang-btn:hover  { background: rgba(255,255,255,0.18); text-decoration: none; padding-left: 20px; }

/* ── footer ─────────────────────────────────────────────────────────────────── */
/* ── Site footer — warm dark band, closes every page ─────────────────────── */
.site-footer {
  position: relative; margin-top: 72px;
  background: #16110d; color: rgba(247,242,236,.58);
  padding: clamp(40px,6vw,64px) 0 26px; font-size: 0.85rem; line-height: 1.6;
}
.site-footer::before {   /* thin coral seam at the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand-accent) 22%, var(--color-brand-accent) 78%, transparent);
  opacity: .6;
}
.site-footer .wrap { max-width: 1180px; }

.sf-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px,4vw,52px); align-items: start;
  padding-bottom: 30px; border-bottom: 1px solid rgba(247,242,236,.10);
}
.sf-brandcol { max-width: 34ch; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.3rem;
  letter-spacing: -0.01em; color: #f6f1e8; margin-bottom: 12px;
}
.sf-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-brand-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand-accent) 22%, transparent);
}
.sf-tag { margin: 0 0 12px; color: rgba(247,242,236,.72); }
.sf-note { margin: 0; font-size: 0.78rem; color: rgba(247,242,236,.40); line-height: 1.55; }

.sf-col { display: flex; flex-direction: column; gap: 9px; }
.sf-h {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(247,242,236,.42); margin-bottom: 4px;
}
.sf-col a {
  color: rgba(247,242,236,.66); text-decoration: none; width: fit-content;
  transition: color .15s;
}
.sf-col a:hover { color: #f6f1e8; }

.sf-subcol { max-width: 300px; }
.sf-subdesc { margin: 0 0 12px; color: rgba(247,242,236,.66); font-size: 0.82rem; }
.sf-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-form input {
  flex: 1; min-width: 0; padding: 9px 13px; font: inherit; font-size: 0.82rem;
  color: #f6f1e8; background: rgba(247,242,236,.07);
  border: 1px solid rgba(247,242,236,.18); border-radius: 9px; outline: none;
  transition: border-color .15s, background .15s;
}
.sf-form input::placeholder { color: rgba(247,242,236,.4); }
.sf-form input:focus { border-color: var(--color-brand-accent); background: rgba(247,242,236,.11); }
.sf-form button {
  flex-shrink: 0; padding: 9px 16px; font: inherit; font-size: 0.82rem; font-weight: 600;
  color: #fff; background: var(--color-brand-accent); border: 0; border-radius: 9px;
  cursor: pointer; transition: background .15s;
}
.sf-form button:hover { background: var(--color-brand-accent-dark, #d4623d); }
.sf-submsg { font-size: 0.78rem; margin-top: 8px; color: #86e0b0; display: none; }

.sf-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 20px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .04em;
  color: rgba(247,242,236,.40);
}
.sf-bar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sf-bar__links a { color: rgba(247,242,236,.58); text-decoration: none; }
.sf-bar__links a:hover { color: #f6f1e8; }
.sf-dotsep { opacity: .4; }
.sf-live { display: inline-flex; align-items: center; gap: 6px; }
.sf-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #4ea86e;
  box-shadow: 0 0 0 0 rgba(78,168,110,.6); animation: sf-pulse 2.4s ease-out infinite;
}
@keyframes sf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(78,168,110,.55); }
  70%,100% { box-shadow: 0 0 0 7px rgba(78,168,110,0); }
}
@media (prefers-reduced-motion: reduce) { .sf-pulse { animation: none; } }

@media (max-width: 860px) {
  .sf-top { grid-template-columns: 1fr 1fr; }
  .sf-brandcol { grid-column: 1 / -1; }
  .sf-subcol   { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 520px) {
  .sf-top { grid-template-columns: 1fr; gap: 24px; }
  .sf-bar { flex-direction: column; align-items: flex-start; }
}

/* ── page hero ──────────────────────────────────────────────────────────────── */
.page-hero {
  padding: clamp(34px, 5vw, 60px) 0 clamp(24px, 3vw, 34px);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 48px; height: 3px;
  background: var(--color-brand-accent);
  border-radius: 2px;
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.5rem + 4.2vw, 4rem);
  font-weight: 400;
  margin-bottom: 12px; line-height: 1.03; color: var(--color-neutral-950);
  letter-spacing: -0.025em; text-wrap: balance;
}
.page-hero p {
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.18rem); color: var(--color-neutral-600);
  max-width: 60ch; line-height: 1.6;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-brand-accent-dark); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--color-brand-accent);
  display: inline-block; flex-shrink: 0;
}
.freshness {
  font-family: var(--font-mono); font-size: 0.68em; color: var(--color-neutral-400);
  margin-top: 6px;
}

/* ── grid & cards ───────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
  box-shadow: 0 1px 2px rgba(26,22,18,0.04), 0 10px 24px -18px rgba(26,22,18,0.18);
  overflow: hidden;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand-accent);
  box-shadow: 0 6px 14px rgba(26,22,18,0.06), 0 22px 40px -22px rgba(26,22,18,0.28);
}
.card-scene  { height: 52px; position: relative; flex-shrink: 0; }
.card-body   { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-name   { font-weight: 700; font-size: 0.94em; margin-bottom: 4px; line-height: 1.25; }
.card-op     { font-size: 0.72em; color: var(--color-neutral-400); margin-bottom: 6px; }
.card-desc   { font-size: 0.82em; color: var(--color-neutral-600); line-height: 1.55; flex: 1; margin-bottom: 10px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card-meta   { font-size: 0.75em; color: var(--color-neutral-500); }

/* ── chip bar ───────────────────────────────────────────────────────────────── */
.chip-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 9px 15px; border-radius: var(--radius-full); font-size: 0.8em; font-weight: 600;
  border: 1px solid var(--color-neutral-200); background: var(--color-white);
  color: var(--color-neutral-700); cursor: pointer;
  transition: background 130ms var(--ease-out), border-color 130ms var(--ease-out), color 130ms;
  min-height: 40px; display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--color-neutral-400); }
.chip.active,
.chip.chip-active,
a.chip.chip-active {
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
  color: #fff;
  text-decoration: none;
}

/* ── buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 0.88em; font-weight: 600; font-family: var(--font-sans);
  text-decoration: none; cursor: pointer; border: none;
  transition: all 140ms ease; white-space: nowrap;
}
.btn-primary {
  background: var(--color-brand-primary); color: var(--color-white);
}
.btn-primary:hover { background: #155a8a; color: var(--color-white); text-decoration: none; }
.btn-accent {
  background: var(--color-brand-accent); color: var(--color-white);
}
.btn-accent:hover { background: var(--color-brand-accent-dark); color: var(--color-white); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--color-brand-primary);
  border: 1.5px solid var(--color-brand-primary);
}
.btn-outline:hover { background: var(--color-brand-primary-soft); text-decoration: none; }
.btn-ghost-sm {
  padding: 5px 11px; border-radius: var(--radius-sm); font-size: 0.78em; font-weight: 600;
  border: 1.5px solid var(--color-brand-primary); color: var(--color-brand-primary);
  background: none; text-decoration: none; transition: all 130ms ease;
}
.btn-ghost-sm:hover { background: var(--color-brand-primary-soft); text-decoration: none; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; background: #25D366; color: #fff;
  border-radius: var(--radius-sm); font-size: 0.78em; font-weight: 600;
  text-decoration: none; transition: background 130ms;
}
.btn-wa:hover { background: #1da851; text-decoration: none; color: #fff; }

/* ── badges / pills ─────────────────────────────────────────────────────────── */
.meta-pill {
  padding: 2px 7px; border-radius: var(--radius-full);
  font-size: 0.68em; font-weight: 500;
  background: var(--color-neutral-100); color: var(--color-neutral-600);
}
.badge {
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.68em; font-weight: 600; letter-spacing: 0.02em;
}
.badge-new     { background: #DFF1F3; color: #0897A1; }
.badge-drop    { background: #FCE8DF; color: #D4623D; }
.badge-closed  { background: var(--color-danger-soft); color: var(--color-danger); }
.badge-danger  { background: var(--color-danger-soft); color: var(--color-danger); }
.badge-warning { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-sponsor { background: var(--color-warning-soft); color: #92400e; border: 1px solid #fde68a; }

.severity-critical { background: var(--color-danger-soft);  color: var(--color-danger);  }
.severity-high     { background: #FFEEE0;                   color: #C05621;              }
.severity-medium   { background: var(--color-warning-soft); color: #92400e;              }
.severity-low      { background: var(--color-neutral-100);  color: var(--color-neutral-600); }

.source-tag {
  font-family: var(--font-mono); font-size: 0.65em; color: var(--color-neutral-400);
  margin-top: 4px;
}

/* ── sponsored block ────────────────────────────────────────────────────────── */
.sponsor-block {
  border: 1.5px solid #fde68a; border-radius: var(--radius-md);
  background: #fffbeb; padding: 16px 20px; position: relative;
}
.sponsor-label {
  position: absolute; top: 8px; right: 12px;
  font-size: 0.65em; font-weight: 600; color: #92400e;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── empty state ────────────────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 48px 24px;
  color: var(--color-neutral-500); font-size: 0.88em; line-height: 1.7;
}

/* ── live blocks (homepage) ─────────────────────────────────────────────────── */
.live-sections { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 32px 0; }
.live-block {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.live-block-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--color-neutral-150);
  display: flex; align-items: center; justify-content: space-between;
}
.live-block-title {
  font-family: var(--font-mono); font-size: 0.68em; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-neutral-700);
}
.live-block-more {
  font-size: 0.72em; color: var(--color-brand-primary); text-decoration: none; font-weight: 500;
}
.live-block-more:hover { text-decoration: underline; }
.live-item {
  padding: 12px 18px; border-bottom: 1px solid var(--color-neutral-100);
  font-size: 0.82em; line-height: 1.45;
}
.live-item:last-child { border-bottom: none; }
.live-item-name { font-weight: 600; color: var(--color-neutral-900); margin-bottom: 2px; }
.live-item-meta { color: var(--color-neutral-500); font-size: 0.88em; }
.live-empty {
  padding: 20px 18px; font-size: 0.80em; color: var(--color-neutral-500);
  line-height: 1.55; font-style: italic;
}

/* ── beach strip ────────────────────────────────────────────────────────────── */
.beach-strip {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 16px 20px; margin: 28px 0;
}
.beach-strip-label {
  font-family: var(--font-mono); font-size: 0.65em; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-neutral-400);
  margin-right: 4px; flex-shrink: 0;
}
.beach-stat { display: flex; align-items: center; gap: 6px; font-size: 0.85em; }
.beach-stat strong { font-weight: 700; color: var(--color-neutral-900); }
.swim-safe    { color: var(--color-success); font-weight: 700; }
.swim-caution { color: var(--color-warning); font-weight: 700; }
.swim-danger  { color: var(--color-danger);  font-weight: 700; }

/* ── newsletter section ─────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--color-neutral-950);
  color: #E9E2DA;
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px);
  text-align: left; margin: 44px 0;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ""; position: absolute; top: 0; right: 0; width: 160px; height: 160px;
  background: radial-gradient(circle at 80% 10%, rgba(244,132,95,.26), transparent 65%);
  pointer-events: none;
}
.newsletter-section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); letter-spacing: -0.02em;
  color: #F4EFE9; margin-bottom: 8px;
}
.newsletter-section p  { font-size: 0.95rem; color: rgba(255,255,255,.62); margin-bottom: 22px; max-width: 42ch; }
.newsletter-form { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
/* base (light) — used standalone on planner, footer, etc. */
.newsletter-input {
  padding: 0 16px; height: 48px; border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-300); background: var(--color-white);
  color: var(--color-neutral-900); font-size: 0.95rem; font-family: var(--font-sans);
  min-width: 200px; flex: 1; max-width: 340px;
}
.newsletter-input::placeholder { color: var(--color-neutral-400); }
.newsletter-input:focus { outline: none; border-color: var(--color-brand-accent); }

/* dark variant — only inside the dark subscribe panel */
.newsletter-section .newsletter-input {
  height: 52px; padding: 0 18px; border-radius: var(--radius-full);
  border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: #fff;
}
.newsletter-section .newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-section .btn-primary { background: var(--color-brand-accent); border-radius: var(--radius-full); height: 52px; padding: 0 26px; }
.newsletter-section .btn-primary:hover { background: var(--color-brand-accent-dark); }

/* ── planner CTA ────────────────────────────────────────────────────────────── */
.planner-cta {
  background: var(--color-neutral-950); color: #E9E2DA;
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px);
  margin: 40px 0; position: relative; overflow: hidden;
}
.planner-cta::before {
  content: ""; position: absolute; top: 0; right: 0; width: 160px; height: 160px;
  background: radial-gradient(circle at 80% 10%, rgba(244,132,95,.28), transparent 65%);
  pointer-events: none;
}
.planner-cta .eyebrow { color: rgba(255,255,255,.55); }
.planner-cta h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); letter-spacing: -0.02em;
  color: #F4EFE9; margin-bottom: 8px;
}
.planner-cta p  { font-size: 0.95rem; color: rgba(255,255,255,.62); margin-bottom: 22px; max-width: 46ch; }
.planner-cta .btn-accent { border-radius: var(--radius-full); padding: 12px 26px; }

/* ── chat module (secondary on homepage) ────────────────────────────────────── */
.chat-module {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 8px 32px rgba(26,22,18,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden; margin: 40px 0;
}
.chat-module-header {
  padding: 16px 20px; border-bottom: 1px solid var(--color-neutral-150);
  display: flex; align-items: center; gap: 10px;
}
.chat-module-title { font-weight: 700; font-size: 0.94em; }
.chat-module-sub   { font-size: 0.76em; color: var(--color-neutral-500); margin-top: 1px; }
.chat-messages { min-height: 120px; max-height: 420px; overflow-y: auto; padding: 16px 20px; }
.chat-input-row {
  padding: 12px 16px; border-top: 1px solid var(--color-neutral-150);
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-neutral-200); font-family: var(--font-sans);
  font-size: 0.9em; resize: none; background: var(--color-neutral-50);
  min-height: 44px; max-height: 120px;
}
.chat-input:focus { outline: none; border-color: var(--color-brand-primary); background: var(--color-white); }
.chat-send {
  padding: 10px 16px; background: var(--color-brand-primary); color: var(--color-white);
  border: none; border-radius: var(--radius-md); font-size: 0.88em; font-weight: 600;
  cursor: pointer; font-family: var(--font-sans); transition: background 130ms; flex-shrink: 0;
}
.chat-send:hover { background: #155a8a; }

/* ── price tag ──────────────────────────────────────────────────────────────── */
.price-tag     { font-size: 1.05em; font-weight: 700; color: var(--color-brand-accent-dark); }
.price-sub     { font-size: 0.68em; color: var(--color-neutral-400); display: block; }
.price-drop-pct {
  font-size: 0.7em; font-weight: 700; color: #D4623D;
  background: #FCE8DF; padding: 1px 6px; border-radius: var(--radius-full);
  margin-left: 6px;
}

/* ── section header ─────────────────────────────────────────────────────────── */
.sec-head {
  font-family: var(--font-mono); font-size: 0.68em; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-brand-accent-dark);
  margin-bottom: 14px; margin-top: 44px;
  display: flex; align-items: center; gap: 10px;
}
.sec-head::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; flex: none;
}
/* Optional big display title that sits directly under a .sec-head kicker */
.sec-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.7rem); letter-spacing: -0.025em;
  line-height: 1.06; color: var(--color-neutral-950);
  margin: -4px 0 22px; text-wrap: balance;
}
.sec-title--tight { margin-bottom: 14px; }

/* ── editorial inner-page kit (shared magazine language) ───────────────────── */
/* Soft inset band — safe (no full-bleed), for grouping a section on paper */
.ip-band {
  border-radius: 24px; padding: clamp(24px, 4vw, 44px);
  background: color-mix(in srgb, var(--color-brand-accent) 5%, var(--color-neutral-50));
  border: 1px solid var(--color-neutral-150);
  margin: 32px 0;
}

/* Full-bleed immersive photo band — the homepage's .mag-immerse, for any page.
   html{overflow-x:clip} (set at the top of this file) makes the 100vw safe. */
.ip-immerse {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100vw; margin-inline: calc(50% - 50vw);
  margin-block: clamp(40px, 6vw, 72px);
  min-height: clamp(300px, 44vw, 460px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 8vw, 90px) 0;
  color: #fff; text-align: left;
}
.ip-immerse > img {
  position: absolute; left: 0; right: 0; top: -9%; width: 100%; height: 118%;
  object-fit: cover; z-index: -2; will-change: transform;
}
.ip-immerse::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,11,9,.62), rgba(16,11,9,.52) 45%, rgba(16,11,9,.66)),
    linear-gradient(90deg, rgba(16,11,9,.55), rgba(16,11,9,0) 62%);
}
.ip-immerse__inner {
  width: 100%; max-width: var(--measure); margin-inline: auto;
  padding-inline: var(--measure-pad);
}
.ip-immerse__k {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.ip-immerse__k::before { content: ""; width: 26px; height: 1px; background: var(--color-brand-accent); }
.ip-immerse__t {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em;
  line-height: 1.02; font-size: clamp(2rem, 1.3rem + 3.6vw, 3.6rem);
  text-wrap: balance; text-shadow: 0 2px 40px rgba(0,0,0,.4); margin: 0;
}
.ip-immerse__p {
  margin: 16px 0 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: rgba(255,255,255,.9); max-width: 52ch; line-height: 1.6;
}
.ip-immerse__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 4px;
  transition: gap .25s var(--ease-out), border-color .2s;
}
.ip-immerse__cta:hover { gap: 18px; border-color: var(--color-brand-accent); color: #fff; }

/* Photographic sub-hero a page can drop in above its content */
.ip-photo {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px; margin: 8px 0 8px;
  min-height: clamp(240px, 40vw, 400px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 4vw, 40px); color: #fff;
}
.ip-photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-out);
}
.ip-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,10,.05) 0%, rgba(20,14,10,.35) 50%, rgba(20,14,10,.82) 100%);
}
.ip-photo:hover > img { transform: scale(1.04); }
.ip-photo__k {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.ip-photo__k::before { content: ""; width: 22px; height: 1px; background: var(--color-brand-accent); }
.ip-photo__t {
  margin: 0; color: #fff;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.02; font-size: clamp(1.7rem, 1.2rem + 2.6vw, 3rem);
  text-shadow: 0 2px 30px rgba(0,0,0,.45); text-wrap: balance;
}
.ip-photo__p { margin: 10px 0 0; font-size: 0.95rem; color: rgba(255,255,255,.9); max-width: 46ch; }

/* Stat row — same idea as the homepage pulse, on paper */
.ip-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 32px);
  padding: clamp(20px, 3vw, 30px) 0; border-top: 1px solid var(--color-neutral-200);
  border-bottom: 1px solid var(--color-neutral-200); margin: 8px 0 4px;
}
.ip-stat__n {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--color-neutral-950);
}
.ip-stat__l {
  margin-top: 8px; font-size: 0.8rem; color: var(--color-neutral-500); line-height: 1.35;
}

/* Numbered / plain feature rows — the homepage "index" list, reusable */
.ip-index { display: flex; flex-direction: column; }
.ip-index__row {
  display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--color-neutral-200);
  text-decoration: none; color: inherit;
}
.ip-index__row:last-child { border-bottom: 1px solid var(--color-neutral-200); }
.ip-index__n {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-brand-accent-dark);
  padding-top: 4px;
}
.ip-index__t {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--color-neutral-950);
}
.ip-index__d { margin-top: 6px; font-size: 0.9rem; color: var(--color-neutral-600); line-height: 1.55; }
a.ip-index__row:hover .ip-index__t { color: var(--color-brand-accent-dark); }
@media (max-width: 560px) {
  .ip-stats { grid-template-columns: 1fr 1fr; }
  .ip-stats > :nth-child(3) { grid-column: 1 / -1; }
}

/* ── form controls (shared) ───────────────────────────────────────────────── */
.form-label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-neutral-500); font-weight: 500; margin-bottom: 12px;
}
.form-label span { text-transform: none; letter-spacing: 0; }

/* ── responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .live-sections { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .newsletter-section { padding: 28px 20px; }
  .planner-cta { padding: 28px 20px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-input { max-width: none; }
}

@media (max-width: 600px) {
  /* Generic inner-page grids collapse to 2 cols */
  .grid[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
  .grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Page hero — size is handled by the clamp() on the base rule */
  .page-hero p  { font-size: 0.98rem; }

  /* Chip bars wrap tightly */
  .chip-bar { gap: 6px; }
  .chip     { font-size: 0.76em; padding: 8px 12px; min-height: 36px; }

  /* Cards */
  .card { padding: 14px; }
}

@media (max-width: 480px) {
  /* Tables scroll */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Market / listing cards full-width */
  .listing-grid { grid-template-columns: 1fr !important; }

  /* Planner email input: don't force 200px on tiny screens */
  .newsletter-input { min-width: 0 !important; width: 100% !important; }

  /* Prevent any element from overflowing the viewport */
  .wrap, .wrap-slim { overflow-x: hidden; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 16px; }
  html { font-size: 16px; }
}

@media (max-width: 390px) {
  html { font-size: 15.5px; }
  /* Single column everything */
  .grid[style*="repeat(2"] { grid-template-columns: 1fr !important; }
}

/* ── Parallax page-hero ─────────────────────────────────────────────────────── */
/* JS injects .pvx-bg + .pvx-overlay into any .page-hero and adds .has-parallax */
.pvx-bg {
  position: absolute;
  /* 35% overshoot top+bottom gives parallax room to travel */
  top: -35%; bottom: -35%; left: 0; right: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.pvx-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,14,10,.30) 0%, rgba(20,14,10,.40) 44%, rgba(20,14,10,.80) 100%),
    linear-gradient(90deg, rgba(20,14,10,.34) 0%, rgba(20,14,10,0) 60%);
  z-index: 1;
  pointer-events: none;
}
.page-hero.has-parallax {
  position: relative;
  overflow: hidden;
  /* break out of whatever container we're in, to the viewport edge */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0; margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(96px, 16vh, 190px) 0 clamp(44px, 8vh, 88px);
  min-height: clamp(340px, 52vh, 580px);
  border-radius: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero.has-parallax::before { display: none; }
/* Constrain the text to the shared measure so it lines up with page content */
.page-hero.has-parallax > *:not(.pvx-bg):not(.pvx-overlay) {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--measure-pad);
}
.page-hero.has-parallax .eyebrow::before { background: var(--color-brand-accent); }
/* White text on photo background */
.page-hero.has-parallax .eyebrow { color: rgba(255,255,255,.82) !important; }
.page-hero.has-parallax h1 {
  color: #fff !important; text-shadow: 0 2px 30px rgba(0,0,0,.4);
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem);
}
.page-hero.has-parallax p        { color: rgba(255,255,255,.9) !important; }
.page-hero.has-parallax strong   { color: #fff !important; }
.page-hero.has-parallax .freshness { color: rgba(255,255,255,.6) !important; }
/* Chips, badges, inputs stay on their own colours */
.page-hero.has-parallax .chip,
.page-hero.has-parallax .src-chip,
.page-hero.has-parallax .src-strip { position: relative; z-index: 3; }

@media (max-width: 600px) {
  .page-hero.has-parallax { padding-top: clamp(84px, 22vh, 130px); padding-bottom: 34px; }
}

/* ── Auto scroll-reveal (inner pages) — see motion.js initAutoReveal ──
   Only elements JS has decided to animate get .auto-rise; a 1.6s JS timeout
   force-adds .in so content can never stay hidden even if the observer misfires. */
.js .auto-rise {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.975);
  transition-property: opacity, transform;
  transition-duration: .6s, .7s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--rise-i, 0) * 65ms);
  will-change: opacity, transform;
}
.js .auto-rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .auto-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Shared card interaction — every card type on the inner pages lifts,
   picks up a coral edge, and zooms its own photo on hover ── */
.card, .op-card, .mkt-card, .hood-card, .beach-card, .ev-card, .tours-card,
.cond-card, .flag-card, .ip-band {
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              border-color .2s ease;
}
.card:hover, .op-card:hover, .mkt-card:hover, .hood-card:hover,
.beach-card:hover, .ev-card:hover, .tours-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-accent);
  box-shadow: 0 24px 46px -26px rgba(60, 40, 25, 0.42);
}
.card:hover img, .op-card:hover img, .mkt-card:hover img,
.hood-card:hover img, .beach-card:hover img, .ev-card:hover img {
  transform: scale(1.055);
}
.card img, .op-card img, .mkt-card img, .hood-card img,
.beach-card img, .ev-card img {
  transition: transform .6s var(--ease-out);
}
/* data cards: no lift (they're not clickable), just a quiet edge glow */
.cond-card:hover, .flag-card:hover {
  border-color: color-mix(in srgb, var(--color-brand-accent) 45%, transparent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VP component system — 2026-09 frontend refresh.
   Namespaced .vp-* so it can't collide with the legacy classes above.
   Consumed by the rebuilt base-extending templates (home, find, …).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---- scroll reveal ---------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity   var(--dur-4) var(--ease-out),
    transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- shell / rhythm ------------------------------------------------------ */
.vp {
  --pad: clamp(18px, 5vw, 28px);
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 96px;
}
@media (min-width: 900px) {
  .vp { max-width: var(--container); padding-bottom: 64px; }
}
.vp-band { padding-inline: var(--pad); }
.vp-band + .vp-band { margin-top: clamp(30px, 7vw, 44px); }

.vp-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.vp-section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.vp-section__link {
  flex: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.vp-section__link:hover { color: var(--accent-press); text-decoration: underline; }
.vp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- hero -------------------------------------------------------------- */
.vp-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-neutral-950);
  color: #fff;
  padding: 16px var(--pad) clamp(30px, 8vw, 44px);
}
.vp-hero__bg {
  position: absolute; inset: -30% 0;
  background-size: cover; background-position: center 42%;
  filter: brightness(0.40) saturate(1.05);
  z-index: 0;
}
.vp-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,12,10,.74) 0%, rgba(18,12,10,.42) 34%, rgba(18,12,10,.44) 52%, rgba(18,12,10,.80) 100%),
    linear-gradient(90deg, rgba(18,12,10,.34) 0%, transparent 42%);
}
.vp-hero__inner { position: relative; z-index: 2; }
@media (min-width: 900px) {
  .vp-hero { padding-top: 22px; padding-bottom: 60px; }
  .vp-hero__inner { max-width: 640px; }
}

.vp-hero__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(22px, 6vw, 34px);
}
.vp-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.01em; color: #fff; text-decoration: none;
}
.vp-brand__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #F5C16C; box-shadow: 0 0 0 3px rgba(245,193,108,.32);
}
.vp-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(20,14,12,.38);
  border: 1px solid rgba(255,255,255,.42);
  color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background var(--dur-1) var(--ease-out);
}
.vp-iconbtn:hover { background: rgba(20,14,12,.55); }
.vp-iconbtn .burger-inner,
.vp-iconbtn > span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: #fff; margin: 2px 0;
}

.vp-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,0,0,.28); padding: 7px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.vp-live__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7DE0C8; box-shadow: 0 0 8px #7DE0C8;
  animation: vos-pulse 2.4s ease-in-out infinite;
}
.vp-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: -0.018em;
  text-wrap: balance; margin-bottom: 10px;
  text-shadow: 0 1px 14px rgba(20,10,15,.30);
}
.vp-hero__sub {
  font-size: var(--fs-md); line-height: 1.45; opacity: .94;
  margin-bottom: 20px; text-shadow: 0 1px 8px rgba(20,10,15,.3);
}

/* hero load-in: steps rise + fade, staggered by --step-i (set in motion.js).
   No-JS / reduced-motion fallback = fully visible (rules below only bite while
   [data-anime-hero] lacks .hero-ready, which JS adds on the next frame). */
[data-anime-hero].hero-ready [data-hero-step] {
  opacity: 1;
  transform: none;
  transition:
    opacity   480ms var(--ease-out),
    transform 480ms var(--ease-out);
  transition-delay: calc(var(--step-i, 0) * 90ms + 100ms);
}
[data-anime-hero]:not(.hero-ready) [data-hero-step] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
@media (prefers-reduced-motion: reduce) {
  [data-anime-hero] [data-hero-step] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.vp-hero__sub[data-hero-step] { opacity: 0; }
[data-anime-hero].hero-ready .vp-hero__sub[data-hero-step] { opacity: .94; }

/* ---- search ---------------------------------------------------------- */
.vp-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-raised);
  border-radius: 18px; padding: 8px 8px 8px 16px;
  box-shadow: 0 16px 36px -14px rgba(30,15,10,.5);
}
.vp-search__icon { flex: none; color: var(--ink-3); }
.vp-search__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: var(--fs-md); color: var(--ink);
  padding: 12px 0;
}
.vp-search__input::placeholder { color: var(--ink-3); }
.vp-search__btn {
  flex: none; width: 48px; height: 48px; border: 0; border-radius: 13px;
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.vp-search__btn:hover { background: var(--accent-press); }
.vp-search__btn:active { transform: scale(0.94); }

/* ---- chips --------------------------------------------------------------- */
.vp-chips { display: flex; flex-direction: column; gap: 10px; }
.vp-chip {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 14px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-size: var(--fs-md); line-height: 1.3; color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.vp-chip:hover { background: var(--surface-sunk); border-color: var(--line); }
.vp-chip:active { transform: scale(0.985); }
.vp-chip svg { flex: none; color: var(--coral); }
@media (min-width: 640px) {
  .vp-chips { flex-direction: row; flex-wrap: wrap; }
  .vp-chip { flex: 1 1 240px; }
}

/* ---- media tiles (carousel cards) ---------------------------------- */
.vp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vp-tiles--home { grid-template-columns: 1fr; }
@media (min-width: 640px) { .vp-tiles--home { grid-template-columns: 1fr 1fr; } }

.vp-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: 16px; background: var(--color-neutral-950);
  text-decoration: none; color: #fff;
  aspect-ratio: 16 / 10;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.vp-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vp-tile--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.vp-tile--strip { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.vp-slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1s var(--ease-inout);
}
.vp-slide.is-on { opacity: 1; }
.vp-tile__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.08) 55%, transparent 100%);
}
.vp-tile__label { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 14px 16px; }
.vp-tile__eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: .82; margin-bottom: 3px;
}
.vp-tile__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-lg); line-height: 1.1;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.vp-tile__note { font-size: var(--fs-sm); opacity: .88; margin-top: 3px; }
.vp-dots { position: absolute; right: 11px; bottom: 10px; z-index: 4; display: flex; gap: 4px; }
.vp-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.32); transition: background var(--dur-2); }
.vp-dot.is-on { background: rgba(255,255,255,.95); }

/* ---- stat strip ------------------------------------------------------- */
.vp-stats {
  display: flex; align-items: stretch; justify-content: space-around;
  text-align: center;
  background: var(--surface-sunk);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 16px 12px;
}
.vp-stat__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-xl); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vp-stat__label { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 5px; }
.vp-stats__rule { width: 1px; background: var(--line); align-self: stretch; }
.vp-stats__foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-2);
  font-size: var(--fs-sm); color: var(--ink-3);
}
.vp-stats__foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-teal); }

/* ---- list rows (events / news) ------------------------------------- */
.vp-list { display: flex; flex-direction: column; gap: 10px; }
.vp-row {
  display: flex; gap: 13px; align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line-2);
  border-radius: 15px; padding: 13px;
  text-decoration: none; color: inherit;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.vp-row:hover { background: var(--surface-sunk); }
.vp-row:active { transform: scale(0.99); }
.vp-row__thumb {
  flex: none; width: 54px; height: 54px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden; background: var(--surface-sunk);
}
.vp-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vp-row__title { font-size: var(--fs-md); font-weight: 600; line-height: 1.25; color: var(--ink); }
.vp-row__meta { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 3px; }
.vp-row__kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}

/* ---- panels (newsletter, sponsor) --------------------------------- */
.vp-panel {
  background: var(--surface-sunk);
  border: 1px solid var(--line-2);
  border-radius: 20px; padding: 22px 20px;
}
.vp-panel--dark {
  background: var(--color-neutral-950); color: #E9E2DA;
  border-color: transparent; position: relative; overflow: hidden;
}
.vp-panel--dark::before {
  content: ''; position: absolute; top: 0; right: 0; width: 150px; height: 150px;
  background: radial-gradient(circle at 80% 10%, rgba(244,132,95,.26), transparent 65%);
}
.vp-panel h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-lg); line-height: 1.14; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 6px;
}
.vp-panel--dark h2 { color: #F4EFE9; }
.vp-panel p { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.vp-panel--dark p { color: #C7BCB1; }
.vp-field { display: flex; gap: 9px; margin-top: 16px; }
.vp-field input {
  flex: 1; min-width: 0; height: 50px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface-raised); font: inherit; font-size: var(--fs-sm); color: var(--ink);
  outline: none;
}
.vp-field input:focus { border-color: var(--accent); }
.vp-btn {
  flex: none; height: 50px; padding: 0 22px; border: 0; border-radius: 13px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.vp-btn:hover { background: var(--accent-press); }
.vp-btn:active { transform: scale(0.96); }
.vp-btn:disabled { opacity: .6; cursor: default; }

/* ---- skeleton loaders ------------------------------------------------ */
.vp-skeleton {
  background: linear-gradient(100deg, var(--surface-sunk) 30%, var(--line-2) 50%, var(--surface-sunk) 70%);
  background-size: 220% 100%;
  animation: vos-shimmer 1.4s ease-in-out infinite;
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) { .vp-skeleton { animation: none; } }

/* ---- refreshed bottom nav (5 slots, thumb-friendly) --------------- */
.vp-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(250,249,246,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px -16px rgba(60,40,25,.4);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.vp-bnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 56px; padding: 8px 4px;
  color: var(--ink-3); text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.vp-bnav__item span { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.vp-bnav__item svg { width: 24px; height: 24px; }
.vp-bnav__item:hover { color: var(--coral); }
.vp-bnav__item.is-active { color: var(--coral); }
.vp-bnav__item.is-active svg { fill: currentColor; stroke: currentColor; }
@media (min-width: 900px) { .vp-bnav { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Listing / stat card system — shared by /market and /real-estate
   2026-09 refresh: quiet, editorial, gallery-style (Christie's-adjacent):
   ivory ground, ink serif prices, hairline rules, squared corners, lots of air.
   ═══════════════════════════════════════════════════════════════════════════ */
.mkt {
  --re-ink:   #1d1a15;
  --re-body:  #4b463d;
  --re-muted: #8a8377;
  --re-line:  #e5ded0;
  --re-card:  #fffdfa;
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px,4vw,32px) 88px;
}

/* Stats — one hairline-ruled strip, not three boxes */
.mkt-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--re-line); border-bottom: 1px solid var(--re-line);
  margin: 4px 0 34px;
}
.mkt-stat {
  flex: 1 1 160px; padding: 18px 22px 16px; text-align: left;
  border-left: 1px solid var(--re-line);
}
.mkt-stat:first-child { border-left: 0; padding-left: 2px; }
.mkt-stat b {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem,1.1rem + 1.5vw,2.1rem); letter-spacing: -0.015em;
  color: var(--re-ink); line-height: 1.05;
}
.mkt-stat span {
  display: block; margin-top: 5px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--re-muted);
}

/* Grid — fewer, larger cards */
.mkt-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: clamp(22px,3.4vw,40px); margin-bottom: 52px;
}
.mkt-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--re-card);
  border: 1px solid var(--re-line); border-radius: 5px;
  box-shadow: 0 1px 1px rgba(29,26,21,.03);
  transition: transform .28s var(--ease-out), border-color .28s, box-shadow .28s;
  text-decoration: none; color: inherit;
}
.mkt-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--re-ink) 22%, var(--re-line));
  box-shadow: 0 26px 46px -30px rgba(29,26,21,.34);
}
.mkt-card__img {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; flex-shrink: 0;
  background: #ece6da;
}
.mkt-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease-out);
}
.mkt-card:hover .mkt-card__img img { transform: scale(1.045); }

/* Click-through mini gallery for a direct listing's own photos (up to 3) —
   reuses .vp-slide/.vp-dots from app.css's other carousels for a consistent
   crossfade, just switched by a click instead of a timer. */
.mkt-gallery { position: absolute; inset: 0; }
.mkt-gallery .vp-slide { transition: opacity .3s ease; }
.mkt-gallery__dots { z-index: 3; }
.mkt-gallery__dots .vp-dot {
  width: 7px; height: 7px; cursor: pointer; border: none; padding: 0;
}
/* Prev/next — quiet by default on a mouse (reveals on hover so a grid of
   these doesn't look busy at rest), but a real ~44px tap target always, since
   there's no "hover to discover" on a phone. */
.mkt-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,17,13,.4); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
  opacity: 0; transition: opacity .18s, background .18s;
}
.mkt-gallery__arrow::before {
  /* invisible padding so the actual tap target is ~44px without the visible
     circle looking oversized */
  content: ""; position: absolute; inset: -5px;
}
.mkt-card__img:hover .mkt-gallery__arrow { opacity: 1; }
.mkt-gallery__arrow:hover { background: rgba(20,17,13,.62); }
.mkt-gallery__arrow--prev { left: 6px; }
.mkt-gallery__arrow--next { right: 6px; }
@media (hover: none) {
  /* no hover on touch — always visible so they're discoverable and tappable */
  .mkt-gallery__arrow { opacity: .75; }
}

.mkt-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(20,17,13,.62); color: #fff;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px; font-weight: 500;
}
.mkt-badge--type { display: none; }   /* type now lives in the body meta line */
.mkt-badge--drop {
  position: static; background: var(--strong-soft); color: var(--strong);
  -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 2px;
}

/* Per-type accent — a hairline top rule only. Muted; the grid still reads as one surface. */
.mkt-card { --prop-tint: var(--re-line); border-top: 2px solid var(--prop-tint); }
.mkt-card[data-prop="condo"]      { --prop-tint: #5c8595; }
.mkt-card[data-prop="house"]      { --prop-tint: #b07f56; }
.mkt-card[data-prop="land"]       { --prop-tint: #7d9469; }
.mkt-card[data-prop="studio"]     { --prop-tint: #8a739e; }
.mkt-card[data-prop="commercial"] { --prop-tint: #6b7a89; }

.mkt-card__body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.mkt-card__price {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--re-ink); line-height: 1;
}
.mkt-card__price small {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: .1em;
  color: var(--re-muted); font-weight: 500; margin-left: 4px;
}
.mkt-card__kind {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--re-muted);
}
.mkt-card__title {
  font-size: 0.92rem; line-height: 1.45; color: var(--re-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-card__specs {
  display: flex; flex-wrap: wrap; gap: 7px 10px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--re-body);
  font-variant-numeric: tabular-nums;
}
.mkt-card__specs span + span::before {
  content: "·"; margin-right: 10px; color: var(--re-muted);
}
.mkt-card__specs .spec { display: inline-flex; align-items: center; gap: 4px; }
.mkt-card__specs .spec-ico { color: var(--re-muted); flex-shrink: 0; }
.mkt-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--re-line);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--re-muted);
}
.mkt-card__foot a { color: var(--color-brand-primary); font-weight: 600; white-space: nowrap; }

/* Direct (non-aggregator) listing — a local agent's own property */
.mkt-badge--direct { background: var(--color-brand-teal, #0897A1); }

/* Direct-listing card with no real photo yet — an honest placeholder instead
   of repeating one neighborhood stock photo on every card. Color cycles per
   listing (server picks a deterministic variant from the listing_id) so a
   grid of these still reads as distinct properties, not one stamped tile. */
.mkt-card__pending {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: #fff;
}
.mkt-card__pending-t {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .08em;
  text-transform: uppercase; opacity: .88;
}
.mkt-pending-v0 { background: linear-gradient(155deg, #D4623D 0%, #a84a2c 100%); }
.mkt-pending-v1 { background: linear-gradient(155deg, #7A9A95 0%, #566f6b 100%); }
.mkt-pending-v2 { background: linear-gradient(155deg, #5c8595 0%, #3f5e6b 100%); }
.mkt-pending-v3 { background: linear-gradient(155deg, #b07f56 0%, #7d5a3b 100%); }
.mkt-pending-v4 { background: linear-gradient(155deg, #8a739e 0%, #5f4d70 100%); }
.mkt-card__wa {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 4px; padding: 9px 12px; border-radius: 8px;
  background: var(--color-brand-accent, #F4845F); color: #fff;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  text-decoration: none; transition: background .18s;
}
.mkt-card__wa:hover { background: var(--color-brand-accent-dark, #D4623D); }

/* "List your property" CTA */
.mkt-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; background: var(--re-card, #fff); border: 1px solid var(--re-line);
  border-radius: 10px; padding: 22px 26px; margin: 8px 0 40px;
}
.mkt-cta__h {
  font-family: var(--font-display); font-weight: 400; font-size: 1.25rem;
  color: var(--re-ink); letter-spacing: -0.01em; margin-bottom: 4px;
}
.mkt-cta p { color: var(--re-muted, var(--color-neutral-500)); font-size: 0.86rem; max-width: 46ch; }
.mkt-cta__btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--color-brand-accent, #F4845F); color: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.86rem;
  padding: 12px 20px; border-radius: 9px; text-decoration: none;
  transition: background .18s, transform .18s;
}
.mkt-cta__btn:hover { background: var(--color-brand-accent-dark, #D4623D); transform: translateY(-1px); }

/* Local agent partner cards */
.mkt-agents { margin-bottom: 44px; }
.mkt-agents__h {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--re-muted, var(--color-neutral-500));
  margin-bottom: 12px;
}
.mkt-agents__row { display: flex; flex-wrap: wrap; gap: 14px; }
.mkt-agents__card {
  flex: 1; min-width: 220px; border: 1px solid var(--re-line); border-radius: 10px;
  padding: 16px 18px; background: var(--re-card, #fff);
}
.mkt-agents__name { font-family: var(--font-display); font-size: 1.05rem; color: var(--re-ink); }
.mkt-agents__note { font-size: 0.8rem; color: var(--re-muted, var(--color-neutral-500)); margin: 4px 0 10px; }
.mkt-agents__wa {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-brand-accent-dark, #D4623D); font-weight: 600; font-size: 0.82rem;
  text-decoration: none;
}
.mkt-agents__wa:hover { text-decoration: underline; }

/* Filter chips on the market pages — squared, ink, restrained */
.mkt .chip-bar { gap: 6px; }
.mkt a.chip, .mkt .chip {
  border-radius: 3px; border: 1px solid var(--re-line); background: transparent;
  color: var(--re-body); font-weight: 500; letter-spacing: .02em;
  padding: 7px 14px; transition: background .15s, border-color .15s, color .15s;
}
.mkt a.chip:hover, .mkt .chip:hover { border-color: var(--re-ink); color: var(--re-ink); background: transparent; }
.mkt a.chip.chip-active, .mkt .chip.chip-active, .mkt .chip.active {
  background: var(--re-ink); border-color: var(--re-ink); color: #fdfbf7;
}

/* Hero: a touch more editorial on the market pages */
.mkt-hero-wrap .page-hero { border-radius: 0; }
