/* ==========================================================================
   aaronflory.com — "Tide Chart" design system
   Layout concept: an editorial bento of uneven tiles laid on a 12-column
   grid, joined by hand-drawn tide lines; type does the heavy lifting.
   ========================================================================== */

/* Color — the original site's "Gulf dusk glass": deep dusk navy lit by
   sunset glows, frosted-glass panels, a sun-orange accent and sea cyan.
   Dark is the default for everyone; the toggle offers a light "Gulf morning". */
:root {
  --salt:     #08111e;   /* night ground */
  --salt-2:   #0d1a2c;
  --paper:    #101d31;   /* solid surface (menus, banner, inputs on focus) */
  --ink:      #f6f2ea;   /* primary text */
  --ink-2:    #c3cad4;   /* secondary text */
  --ink-3:    #8d97a6;   /* captions */
  --tide:     #ffb340;   /* accent: sun */
  --tide-ink: #1c0f02;   /* text on the sun gradient */
  --sun:      #ffb340;
  --sun-2:    #ff7a3d;
  --coquina:  #ff7a3d;   /* hand-drawn strokes & small marks */
  --sea:      #5cc8dc;   /* cool accent, used sparingly */
  --glass:    rgba(255,255,255,.07);
  --glass-hi: rgba(255,255,255,.12);
  --line:     rgba(255,255,255,.16);
  --line-2:   rgba(255,255,255,.09);
  --shadow:   0 0 0;     /* rgb triplet for shadows */
  --focus:    #ffb340;
  --orb-1: #ff9a3d; --orb-1b: #ff5e3a; --orb-2: #1f8fb0; --orb-2b: #165a85; --orb-3: #ffbf5a; --orb-3b: #b9562b; --orb-op: .55;

  /* Type */
  --font-display: "Castoro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Schibsted Grotesk", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale — 360px → 1440px */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.38vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.48rem + 1.4vw, 2.75rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.6vw, 4.1rem);
  --step-5:  clamp(2.8rem, 1.9rem + 4.1vw, 5.9rem);

  /* Space */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --gap: clamp(10px, 0.6rem + 0.6vw, 18px);

  /* Hand-cut corners: each tile is a touch irregular */
  --r-a: 22px 18px 24px 16px;
  --r-b: 16px 24px 18px 22px;
  --r-c: 20px 16px 20px 26px;
  --r-btn: 999px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
:root[data-af-theme="light"] {
  --salt: #f5efe6; --salt-2: #efe6d8; --paper: #fffcf7;
  --ink: #111a2b; --ink-2: #47536a; --ink-3: #6b7486;
  --tide: #a24a0c; --coquina: #e0661f; --sea: #0b7285;
  --glass: rgba(255,255,255,.62); --glass-hi: rgba(255,255,255,.8);
  --line: rgba(17,26,43,.16); --line-2: rgba(17,26,43,.08);
  --shadow: 17 26 43; --focus: #a24a0c;
  --orb-1: #ffc27a; --orb-1b: #ff9a6a; --orb-2: #9fd9e6; --orb-2b: #7cc2d6; --orb-3: #ffd99a; --orb-3b: #f0a070; --orb-op: .45;
  color-scheme: light;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Paper grain — a fixed, very faint noise layer */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root:not([data-af-theme="light"]) body::after { mix-blend-mode: screen; opacity: .035; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--coquina); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tide); color: var(--tide-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
em, .ital { font-style: italic; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 200;
  background: var(--ink); color: var(--salt); padding: .75rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.measure { max-width: 64ch; }

/* Labels: small caps feel, never below 13px */
.eyebrow {
  font: 600 var(--step--1)/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M1 5.2c3-2.6 5.4-2.6 8 0s5.2 2.4 8-.2 5.4-2.3 8 .1' fill='none' stroke='%23FF7A3D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

/* ── Hand-drawn underline ──────────────────────────────────────────────── */
.scribble { position: relative; white-space: nowrap; font-style: italic; color: var(--tide); }
.scribble svg {
  position: absolute; left: -2%; right: -2%; bottom: -0.14em; width: 104%; height: .32em; overflow: visible;
}
.scribble path {
  fill: none; stroke: var(--coquina); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 0;
  animation: draw 1.4s var(--ease-out) .35s both;
}
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }

/* ── Buttons — one primary action per screen ───────────────────────────── */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1.5px solid var(--bd); border-radius: var(--r-btn);
  background: var(--bg); color: var(--fg);
  font: 600 var(--step-0)/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-spring), border-color .2s, color .2s, box-shadow .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { transition: transform .35s var(--ease-spring); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
/* fill wipes in from the left like ink soaking into paper */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.btn:hover { color: var(--salt); border-color: var(--ink); }
.btn:hover::before { transform: scaleX(1); }

.btn--primary { --bg: var(--tide); --fg: var(--tide-ink); --bd: var(--tide); box-shadow: 0 1px 0 rgb(var(--shadow) / .2), 0 8px 22px -12px rgb(var(--shadow) / .55); }
.btn--primary::before { background: var(--ink); }
.btn--primary:hover { color: var(--salt); box-shadow: 0 1px 0 rgb(var(--shadow) / .2), 0 14px 28px -14px rgb(var(--shadow) / .7); }
.btn--quiet { border-color: transparent; padding-inline: .5rem; min-height: 44px; }
.btn--quiet::before { display: none; }
.btn--quiet:hover { color: var(--tide); border-color: transparent; }
.btn--quiet span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
.btn--quiet:hover span { background-size: 100% 1.5px; }
.btn--block { width: 100%; }

/* Text link with an arrow that leans forward */
.arrow-link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 600; color: var(--tide); text-decoration: none; }
.arrow-link .ico { transition: transform .3s var(--ease-spring); }
.arrow-link:hover .ico { transform: translate(3px, -3px) rotate(-4deg); }

/* ── Header ────────────────────────────────────────────────────────────── */
.utility {
  border-bottom: 1px solid var(--line-2);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.utility .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; min-height: 44px; }
.utility a { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; text-decoration: none; }
.utility a:hover { color: var(--ink); }
.utility .license { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.utility .license b { font-weight: 600; color: var(--ink); }
.utility-links { display: flex; gap: 1.25rem; }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--salt) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-stuck { border-bottom-color: var(--line-2); box-shadow: 0 10px 30px -24px rgb(var(--shadow) / .6); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-5); min-height: 76px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; min-width: 0; flex: 0 1 auto; }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--tide); transition: transform .6s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__mark .c { stroke: var(--coquina); }
.brand__text { display: grid; line-height: 1.1; min-width: 0; }
.brand__name { font: 400 1.45rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
/* The brokerage line is a compliance item: it wraps on small screens, never truncates. */
.brand__line { font-size: var(--step--1); color: var(--ink-2); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: .15rem; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink-2); border-radius: 10px; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 8px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4c9-2.4 18-2.6 29-1.2S50 4.6 59 2.4' fill='none' stroke='%23FF7A3D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .4s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.header-cta { display: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .3s var(--ease-spring), border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); transform: rotate(-6deg); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .moon { display: none; }
:root:not([data-af-theme="light"]) .theme-toggle .sun { display: none; }
:root:not([data-af-theme="light"]) .theme-toggle .moon { display: block; }
.menu-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--salt);
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter-r) 32px var(--gutter);
  display: flex; flex-direction: column; gap: var(--space-6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-panel__top { display: flex; justify-content: space-between; align-items: center; }
.menu-panel ul { list-style: none; display: grid; gap: .1rem; }
.menu-panel li a { display: flex; align-items: baseline; justify-content: space-between; padding: .7rem 0; font: 400 var(--step-3)/1.1 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.menu-panel li a[aria-current="page"] { color: var(--tide); font-style: italic; }
.menu-panel__foot { margin-top: auto; display: grid; gap: var(--space-4); color: var(--ink-2); }

@media (min-width: 1280px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .brand { flex: none; }
  .brand__line { white-space: nowrap; }
}
/* With eight menu items there's no room for a header button as well; every page carries the
   same action in its hero and its "Ready when you are" band, and the phone menu has it at the top. */
@media (min-width: 99999px) {
  .header-cta { display: inline-flex; min-height: 44px; padding-block: .55rem; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 520px) {
  .utility .wrap { justify-content: center; }
  .utility-links { gap: .9rem; }
  .brand__name { font-size: 1.25rem; }
  .brand__mark { width: 34px; height: 34px; }
}

/* ── Bento grid ────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative; min-width: 0;
  grid-column: span 12;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-a);
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.tile:nth-child(3n+2) { border-radius: var(--r-b); }
.tile:nth-child(3n) { border-radius: var(--r-c); }
.tile--bare { background: transparent; border-color: transparent; padding-inline: 0; }
.tile--ink { background: var(--ink); color: var(--salt); border-color: var(--ink); }
.tile--ink .eyebrow, .tile--ink .muted { color: color-mix(in srgb, var(--salt) 72%, var(--ink)); }
.tile--tide { background: var(--tide); color: var(--tide-ink); border-color: var(--tide); }
.tile--tide .eyebrow { color: color-mix(in srgb, var(--tide-ink) 80%, var(--tide)); }
.tile--photo { padding: 0; overflow: hidden; border: 0; min-height: 280px; background: var(--line-2); aspect-ratio: 16 / 10; max-width: 100%; }
.tile--photo > picture, .tile--photo > svg { position: absolute; inset: 0; }
@media (min-width: 1040px) { .tile--photo.row-2 { aspect-ratio: auto; } }
.tile--photo picture, .tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile--photo figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--step--1); color: #F4F7F3; text-shadow: 0 1px 12px rgb(0 0 0 / .55);
  font-variant-numeric: tabular-nums;
}
.tile h2 { font-size: var(--step-3); }
.tile h3 { font-size: var(--step-2); }
.muted { color: var(--ink-2); }

/* Interactive tiles: lift, ink corner mark draws in, arrow leans */
a.tile, .tile--link { text-decoration: none; color: inherit; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
a.tile::after, .tile--link::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 22.5C9 17 14.5 11.3 21.6 4.6M10.8 4.2c3.9.3 7.4.3 10.9.3.2 3.6.3 7 .1 10.6' fill='none' stroke='%23FF7A3D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0; transform: translate(-6px, 6px) scale(.8); transition: opacity .3s, transform .45s var(--ease-spring);
}
a.tile:hover, .tile--link:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 1px 0 rgb(var(--shadow) / .05), 0 22px 40px -28px rgb(var(--shadow) / .55); }
a.tile:hover::after, .tile--link:hover::after { opacity: 1; transform: none; }
a.tile:active { transform: translateY(-1px) scale(.995); }
.tile .ico-badge {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px 12px 15px 11px;
  background: color-mix(in srgb, var(--tide) 12%, var(--paper)); color: var(--tide);
  transition: transform .5s var(--ease-spring);
}
a.tile:hover .ico-badge { transform: rotate(-6deg) scale(1.06); }

@media (min-width: 760px) {
  .span-3, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .span-4, .span-6, .t-6 { grid-column: span 6; }
  .stat-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stat-list li { border-bottom: 0; padding-bottom: 0; }
}
@media (min-width: 1040px) {
  .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
  .row-2 { grid-row: span 2; }
  .stat-list { grid-template-columns: 1fr; }
  .stat-list li { border-bottom: 1px dashed var(--line); padding-bottom: var(--space-4); }
  .stat-list li:last-child { border-bottom: 0; }
}
.services-grid { padding: 0; background: none; border: 0; }
.services-grid > .services { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); height: 100%; }
.services-grid .services > .tile { grid-column: auto; }
.services-grid h2 { font-size: var(--step-2); }

.section { padding-block: var(--space-8) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head h2 { font-size: var(--step-4); max-width: 16ch; }

/* Hand-drawn tide line between sections */
.tide-rule { display: block; width: 100%; height: 18px; color: var(--line); margin-block: var(--space-7) 0; }

/* ── Home: hero ────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) 0; }
.hero-title { font-size: var(--step-5); line-height: .98; letter-spacing: -.02em; max-width: 12ch; }
.hero-title .scribble { color: var(--tide); }
.hero-tile { justify-content: space-between; gap: var(--space-6); min-height: clamp(360px, 52vh, 560px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.hero-actions .phone { font-variant-numeric: tabular-nums; }
.coords { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: var(--step--1); color: var(--ink-2); }

.services-grid .tile { min-height: 250px; justify-content: space-between; }
.services-grid p { color: var(--ink-2); }
.services-grid .label { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.stat-list { list-style: none; display: grid; gap: var(--space-4); }
.stat-list li { display: grid; gap: .1rem; padding-bottom: var(--space-4); border-bottom: 1px dashed var(--line); }
.stat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-list b { font: 400 var(--step-3)/1 var(--font-display); font-variant-numeric: lining-nums; }
.stat-list span { font-size: var(--step--1); color: var(--ink-2); }
.tile--ink .stat-list li { border-color: color-mix(in srgb, var(--salt) 22%, var(--ink)); }
.tile--ink .stat-list span { color: color-mix(in srgb, var(--salt) 72%, var(--ink)); }

.portrait { padding: 0; overflow: hidden; border: 0; min-height: 320px; background: var(--line-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease-out); }
.portrait:hover img { transform: scale(1.03); }
.portrait figcaption { position: absolute; left: 14px; bottom: 14px; padding: .4rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--paper) 88%, transparent); font-size: var(--step--1); }

.check-list { list-style: none; display: grid; gap: var(--space-3); }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.check-list .ico { color: var(--coquina); margin-top: .2em; }
.check-list b { font-weight: 600; }

/* Areas: coastline list, north → south */
.coast { display: grid; grid-template-columns: 34px 1fr; gap: 0 .9rem; }
.coast svg { grid-row: 1 / -1; width: 34px; height: 100%; color: var(--coquina); }
.coast ol { list-style: none; display: grid; gap: .05rem; counter-reset: none; }
.coast li a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; text-decoration: none; border-bottom: 1px solid var(--line-2); transition: padding .3s var(--ease-out), color .2s; }
.coast li a:hover { padding-left: .4rem; color: var(--tide); }
.coast li:last-child a { border-bottom: 0; }
.coast small { color: var(--ink-2); font-size: var(--step--1); }

.cta-band { display: grid; gap: var(--space-5); align-items: end; }
.cta-band h2 { font-size: var(--step-4); max-width: 14ch; }
.cta-band .contact-alt { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-variant-numeric: tabular-nums; }
.cta-band .contact-alt a { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; text-decoration: none; }
.cta-band .contact-alt a:hover { text-decoration: underline; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }

/* ── Inner pages ───────────────────────────────────────────────────────── */
.page-head { padding-block: clamp(2rem, 1.2rem + 3vw, 4.5rem) var(--space-6); }
.page-head h1 { font-size: var(--step-5); max-width: 15ch; line-height: 1; }
.page-head .lede { margin-top: var(--space-5); }
.prose { max-width: 68ch; display: grid; gap: var(--space-4); }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-6); }
.prose h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-top: var(--space-4); letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--coquina); }
.prose a { color: var(--tide); }
.prose .updated { font-size: var(--step--1); color: var(--ink-2); }
.legal-layout { display: grid; gap: var(--space-7); padding-bottom: var(--space-8); }
.toc { font-size: var(--step--1); }
.toc ol { list-style: none; display: grid; gap: .1rem; }
.toc a { display: block; padding: .45rem 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.toc a:hover { color: var(--tide); }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { position: sticky; top: 110px; align-self: start; }
}

.steps { list-style: none; display: grid; gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; }
.steps .tile::before { content: counter(step); font: italic 400 var(--step-4)/1 var(--font-display); color: var(--coquina); }

/* ── Listings ──────────────────────────────────────────────────────────── */
.listing-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.listing-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-a); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.listing-card:nth-child(even) { border-radius: var(--r-b); }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgb(var(--shadow) / .6); }
.listing-card__link { display: grid; text-decoration: none; color: inherit; height: 100%; }
.listing-card__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.listing-card:hover .listing-card__media img { transform: scale(1.04); }
.listing-card__body { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .3rem; }
.listing-card__status { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tide); }
.status--pending { color: var(--coquina); } .status--sold { color: var(--ink-2); }
.listing-card__address { font-size: var(--step-1); font-family: var(--font-display); }
.listing-card__city { color: var(--ink-2); font-size: var(--step--1); }
.listing-card__price { font: 600 var(--step-1)/1.2 var(--font-body); font-variant-numeric: tabular-nums; margin-top: .25rem; }

.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: var(--gap); }
.fact {
  display: flex; flex-direction: column; gap: .35rem; min-width: 0;
  padding: 1rem 1.1rem 1.1rem; background: var(--paper); border: 1px solid var(--line-2); border-radius: 16px 13px 17px 12px;
  transition: transform .35s var(--ease-spring), border-color .2s;
}
.fact:hover { transform: translateY(-2px); border-color: var(--line); }
.fact .ico { width: 28px; height: 28px; color: var(--tide); margin-bottom: .35rem; }
.fact__value { font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.7rem)/1.05 var(--font-display); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.fact__label { font-size: var(--step--1); color: var(--ink-2); }
.facts--compact { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; }
.facts--compact .fact { flex-direction: row; align-items: center; display: inline-flex; gap: .35rem; padding: 0; background: none; border: 0; }
.facts--compact .fact:hover { transform: none; }
.facts--compact .ico { width: 18px; height: 18px; margin: 0; }
.facts--compact .fact__value { font: 600 var(--step--1)/1 var(--font-body); }
.features { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.features li { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--step--1); }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; display: block; width: 100%; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgb(8 12 10 / .88); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 8px; right: 8px; background: var(--paper); }
.listing-hero { display: grid; gap: var(--gap); }
.listing-hero__media { margin: 0; border-radius: var(--r-a); overflow: hidden; aspect-ratio: 16 / 10; background: var(--line-2); }
.listing-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.disclosure { font-size: var(--step--1); color: var(--ink-2); }
@media (min-width: 1000px) { .listing-hero { grid-template-columns: 1.5fr 1fr; align-items: start; } }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: var(--step--1); color: var(--ink-2); }
.field .req { color: var(--coquina); }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: inherit; color: var(--ink); background: var(--salt);
  border: 1.5px solid var(--line); border-radius: 14px 12px 15px 11px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--tide); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tide) 22%, transparent); background: var(--paper); }
.field.has-error .input, .field.has-error .textarea { border-color: #B3261E; }
.field-error { font-size: var(--step--1); color: #B3261E; font-weight: 600; }
:root:not([data-af-theme="light"]) .field-error, :root:not([data-af-theme="light"]) .field.has-error .input { color: #FF9B91; border-color: #FF9B91; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease-spring);
}
.chip span:hover { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); color: var(--salt); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.chip input:active + span { transform: scale(.96); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--tide); }
.notice { padding: 1rem 1.25rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.notice--ok { border-color: var(--tide); }
.notice--error { border-color: #B3261E; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { margin-top: var(--space-8); border-top: 1px solid var(--line); padding-block: var(--space-7) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand .brand__name { font-size: var(--step-2); }
.site-footer h2 { font: 600 var(--step--1)/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; display: grid; }
.site-footer li a, .site-footer .linkish { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; text-decoration: none; }
.site-footer li a:hover, .site-footer .linkish:hover { color: var(--tide); text-decoration: underline; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-3); }
.social-row a { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; color: var(--ink); transition: transform .35s var(--ease-spring), border-color .2s, color .2s; }
.social-row a:hover { transform: translateY(-3px) rotate(-6deg); border-color: var(--tide); color: var(--tide); }
.footer-legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-2); display: grid; gap: var(--space-4); font-size: var(--step--1); color: var(--ink-2); }
.footer-legal .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.footer-legal .row > a, .footer-legal .row > .linkish { display: inline-flex; align-items: center; min-height: 44px; }
.eho { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.eho svg { width: 40px; height: 40px; flex: none; }

/* ── Cookie consent ────────────────────────────────────────────────────── */
.consent {
  position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter-r); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-left: auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-b);
  box-shadow: 0 30px 60px -30px rgb(var(--shadow) / .55);
  padding: 1.25rem 1.35rem; display: grid; gap: .9rem;
  transform: translateY(16px); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
}
.consent.is-visible { transform: none; opacity: 1; }
.consent h2 { font-size: var(--step-1); }
.consent p { font-size: .95rem; color: var(--ink-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__actions .btn { min-height: 44px; padding-block: .55rem; font-size: .95rem; flex: 1 1 auto; }
.consent__prefs { display: grid; gap: .6rem; padding-top: .25rem; border-top: 1px solid var(--line-2); }

/* ── Intro (home, 20 s, once per visit) ────────────────────────────────── */
/* A 20-second sunset in the original Gulf-dusk palette: the sun sinks into
   the Gulf while the sky deepens from gold to night. Same in both themes. */
.intro {
  --i-bg: #08111e; --i-fg: #f6f2ea; --i-dim: #c3cad4; --i-line: #3a5a7a; --i-sun: #ffb340; --i-sun-2: #ff7a3d; --i-sea: #5cc8dc;
  position: fixed; inset: 0; z-index: 150; color: var(--i-fg);
  background: linear-gradient(180deg, #08111e 0%, #141a33 46%, #2a2340 64%, #0d1a2c 100%);
  display: grid; place-items: center; overflow: hidden;
  padding: env(safe-area-inset-top, 0px) var(--gutter-r) env(safe-area-inset-bottom, 0px) var(--gutter);
  transition: clip-path 1.1s var(--ease-out), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.intro[hidden] { display: none !important; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); visibility: hidden; }
/* Warm horizon glow that fades as the sun goes down */
.intro__sky { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 66%, rgba(255,140,60,.55) 0%, rgba(255,94,58,.22) 40%, transparent 72%); opacity: 1; }
.intro.s1 .intro__sky { opacity: .28; transition: opacity 18s cubic-bezier(.4,0,.6,1); }
.intro__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.intro__orb.a { width: 520px; height: 520px; right: -160px; top: 4%; background: radial-gradient(circle, #ff9a3d 0%, #ff5e3a 45%, transparent 70%); }
.intro__orb.b { width: 560px; height: 560px; left: -220px; bottom: -120px; background: radial-gradient(circle, #1f8fb0 0%, #165a85 45%, transparent 70%); opacity: .4; }
.intro.s1 .intro__orb.a { transform: translate(-60px, 80px) scale(.9); opacity: .25; transition: transform 20s linear, opacity 20s linear; }
.intro__stage { position: relative; width: min(1100px, 100%); height: min(88vh, 720px); }
.intro__scene { position: absolute; inset: 0 0 32% 0; display: grid; place-content: center; text-align: center; gap: 1rem; opacity: 0; transition: opacity .45s ease-in; }
.intro__scene.is-on { opacity: 1; transition: opacity .9s var(--ease-out) .4s; }
.intro svg.horizon { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: 34%; transition: opacity 1s; overflow: visible; }
.intro .horizon .hz, .intro .horizon .wv { fill: none; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; vector-effect: non-scaling-stroke; }
.intro .horizon .hz { stroke: #6f86a3; stroke-width: 1.4; }
.intro .horizon .wv { stroke: var(--i-sea); stroke-width: 1.8; opacity: .8; }
.intro .horizon .wv2 { opacity: .5; } .intro .horizon .wv3 { opacity: .3; }
.intro.s1 .horizon .hz, .intro.s1 .horizon .wv { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease-out); }
.intro.s1 .horizon .wv { animation: swell 6s ease-in-out 2.6s infinite alternate; }
@keyframes swell { from { transform: translateX(0); } to { transform: translateX(-26px); } }
/* The sunset: from just above the horizon to below it over 18 seconds */
.intro .horizon .sun, .intro .horizon .sun-glow { transform: translateY(-58px); }
.intro .horizon .sun-glow { opacity: .7; }
.intro.s1 .horizon .sun, .intro.s1 .horizon .sun-glow { transform: translateY(74px); transition: transform 18s cubic-bezier(.35,0,.65,1); }
.intro .glints path { stroke: var(--i-sun); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.intro.s1 .glints path { animation: glint 2.4s ease-in-out infinite; }
.intro.s1 .glints path:nth-child(2) { animation-delay: .4s; } .intro.s1 .glints path:nth-child(3) { animation-delay: .8s; } .intro.s1 .glints path:nth-child(4) { animation-delay: 1.2s; }
@keyframes glint { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.intro__kicker { font: 600 var(--step--1)/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--i-dim); }
.intro__big { font: 400 clamp(2.6rem, 1rem + 7vw, 7.5rem)/.98 var(--font-display); letter-spacing: -.025em; }
.intro__big .w { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(1.5deg); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.intro__scene.is-on .w { opacity: 1; transform: none; }
.intro__scene.is-on .w:nth-child(2) { transition-delay: .45s; } .intro__scene.is-on .w:nth-child(3) { transition-delay: .9s; } .intro__scene.is-on .w:nth-child(4) { transition-delay: 1.35s; }
.intro__big em { background: linear-gradient(100deg, var(--i-sun) 10%, var(--i-sun-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.intro .scribble { color: var(--i-sun); }
.intro .scribble path { stroke: var(--i-sun-2); animation: none; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s var(--ease-out) 1.2s; }
.intro__scene.is-on .scribble path { stroke-dashoffset: 0; }
.intro__coast { display: grid; grid-template-columns: auto auto; gap: 0 1.5rem; align-items: stretch; justify-content: center; text-align: left; }
.intro__coast svg { width: 40px; height: 100%; color: var(--i-sun); }
.intro__coast path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 4s linear; }
.intro__scene.is-on .intro__coast path { stroke-dashoffset: 0; }
.intro__coast ol { list-style: none; display: grid; gap: .1rem; font: 400 clamp(1.05rem, .7rem + 1.4vw, 1.75rem)/1.22 var(--font-display); }
.intro__coast li { opacity: .18; transform: translateX(-6px); transition: opacity .5s, transform .6s var(--ease-out), color .5s; }
.intro__coast li.is-lit { opacity: 1; transform: none; }
.intro__name { font: 400 clamp(3rem, 1.2rem + 8vw, 8.5rem)/.9 var(--font-display); letter-spacing: -.03em; }
.intro__sub { font-size: var(--step-1); color: var(--i-dim); }
.intro__controls { position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 1rem; z-index: 2; }
.intro__progress { flex: 1; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.intro__progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--i-sun), var(--i-sun-2)); transform-origin: left; transform: scaleX(0); }
.intro__skip { --fg: var(--i-fg); --bd: rgba(255,255,255,.28); min-height: 44px; padding-block: .5rem; background: rgba(255,255,255,.07) !important; backdrop-filter: blur(10px); }
.intro__skip::before { background: var(--i-fg); }
.intro__skip:hover { color: var(--i-bg) !important; border-color: var(--i-fg); }
.intro__skip:focus-visible { outline-color: var(--i-sun); }
.intro__time { font-variant-numeric: tabular-nums; font-size: var(--step--1); color: var(--i-dim); min-width: 3.5ch; text-align: right; }

/* ── 404 ───────────────────────────────────────────────────────────────── */
.lost { min-height: 60vh; display: grid; align-content: center; gap: var(--space-5); padding-block: var(--space-8); }
.lost h1 { font-size: var(--step-5); max-width: 13ch; }
.lost .big { font: italic 400 clamp(5rem, 3rem + 10vw, 11rem)/.8 var(--font-display); color: var(--coquina); }

/* ── Entrance motion: visible at rest, enhanced only when JS adds .reveal-ready ── */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .intro { display: none !important; }
}

@media print {
  .site-header, .utility, .site-footer .social-row, .consent, .intro, .menu-panel { display: none !important; }
  body::after { display: none; }
  .tile { break-inside: avoid; border-color: #999; }
}

.photo-placeholder { width: 100%; height: 100%; min-height: inherit; }

/* ── Listing detail page ───────────────────────────────────────────────── */
.listing-detail { display: grid; gap: var(--gap); padding-block: var(--space-5) 0; grid-template-columns: minmax(0, 1fr); }
.listing-detail__back a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.listing-detail__back a:hover { color: var(--tide); }
.listing-gallery { display: grid; gap: 8px; min-width: 0; }
.gallery__hero { display: block; border-radius: var(--r-a); overflow: hidden; aspect-ratio: 16 / 10; background: var(--line-2); cursor: zoom-in; }
.gallery__hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__hero:hover img { transform: scale(1.02); }
.gallery__count { font-size: var(--step--1); color: var(--ink-2); }
.listing-detail__head { display: grid; gap: .35rem; padding: clamp(1.25rem, .8rem + 1.6vw, 2.25rem); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-b); min-width: 0; }
.listing-detail__status { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tide); }
.listing-detail__title { font-size: var(--step-4); }
.listing-detail__address { font-size: var(--step-1); }
.listing-detail__city { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); }
.listing-detail__price { font: 600 var(--step-3)/1.1 var(--font-body); font-variant-numeric: tabular-nums; margin-top: .5rem; letter-spacing: -.01em; }
.listing-detail__actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.listing-detail__mls { font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.listing-detail__section { padding-top: var(--space-6); display: grid; gap: var(--space-4); }
.listing-detail__section h2 { font-size: var(--step-3); }
.listing-detail__disclosure { font-size: var(--step--1); color: var(--ink-2); padding-top: var(--space-5); border-top: 1px solid var(--line-2); margin-top: var(--space-5); }
.listing-detail > .facts, .listing-detail > .listing-detail__actions, .listing-detail > .listing-detail__mls,
.listing-detail > .listing-detail__section, .listing-detail > .listing-detail__disclosure, .listing-detail > .listing-detail__back { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .listing-detail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .listing-detail__head { position: sticky; top: 100px; }
}
.lightbox__figure { margin: 0; display: grid; gap: .5rem; justify-items: center; }
.lightbox__caption { color: #EDF0EA; font-size: var(--step--1); }
.lightbox__prev, .lightbox__next, .lightbox__close {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #F4F7F3; color: #16201C; cursor: pointer; transition: transform .3s var(--ease-spring);
}
.lightbox__prev:hover, .lightbox__next:hover, .lightbox__close:hover { transform: scale(1.08); }
.lightbox__prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.lightbox__next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.lightbox__close { right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); }
.page-listing .gallery button, .gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery a:hover img { transform: scale(1.06); }

/* ── Areas map (built-in SVG, carried over from the original site) ───────
   Drawn like a nautical chart: pale water, paper land, colored city limits. */
:root {
  --map-water: #CFE0DC; --map-wave: #B6CEC9; --map-land: #F6F5EE; --map-coast: #8BA49D;
  --map-label: #16201C; --map-label-halo: #F6F5EE; --map-place: #6B7D76; --map-water-lbl: #4F7470;
}
:root:not([data-af-theme="light"]) {
  /* the original site's night map */
  --map-water: #0f2236; --map-wave: #16304a; --map-land: #1f344c; --map-coast: #3a5a7a;
  --map-label: #f6f2ea; --map-label-halo: #08111e; --map-place: #7f93ab; --map-water-lbl: #5d7d9c;
}

.map-panel { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); align-items: start; padding: clamp(14px, 2.4vw, 26px); }
@media (min-width: 960px) { .map-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); } }
.map-side { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; padding: .4rem .25rem; }
.map-title { font-size: var(--step-3); margin-top: .5rem; }
.map-hint { color: var(--ink-2); margin-top: .6rem; max-width: 46ch; }
.area-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-chip {
  --c: var(--tide);
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem .95rem .45rem .6rem;
  border-radius: 999px; border: 1.5px solid var(--c); background: transparent; color: var(--ink);
  font: 600 .92rem/1 var(--font-body); cursor: pointer;
  transition: background .25s, color .25s, transform .3s var(--ease-spring), box-shadow .3s;
}
.area-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgb(var(--shadow) / .6); }
.area-chip:active { transform: scale(.96); }
.area-chip .sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c); display: grid; place-items: center; flex: none; transition: background .25s, border-color .25s; }
.area-chip[aria-pressed="true"] { background: var(--c); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.area-chip[aria-pressed="true"] .sw { background: #fff; border-color: #fff; }
.area-chip[aria-pressed="true"] .sw::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.area-chip.is-selected { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.map-actions { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.map-actions .btn--quiet { padding-inline: .25rem; font-size: .95rem; }
.map-info { --c: var(--line); border-top: 1px dashed var(--line); padding-top: 1rem; min-height: 150px; display: flex; flex-direction: column; gap: .45rem; }
.map-info h3 { font-size: var(--step-2); display: flex; align-items: center; gap: .6rem; }
.map-info .dot { width: 14px; height: 14px; border-radius: 4px 5px 3px 6px; background: var(--c); flex: none; }
.map-info p { color: var(--ink-2); }
.map-info-kind { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.map-info-empty { font-style: italic; }
.map-info.is-fresh > * { animation: info-in .5s var(--ease-out) both; }
.map-info.is-fresh > *:nth-child(2) { animation-delay: .05s; } .map-info.is-fresh > *:nth-child(3) { animation-delay: .1s; } .map-info.is-fresh > *:nth-child(4) { animation-delay: .15s; }
@keyframes info-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.map-frame { position: relative; border-radius: var(--r-b); overflow: hidden; border: 1px solid var(--line); background: var(--map-water); min-width: 0; }
.smap { display: block; width: 100%; height: auto; max-height: 80vh; }
.smap-water { fill: var(--map-water); }
.smap pattern path { stroke: var(--map-wave); }
.smap-land { fill: var(--map-land); stroke: var(--map-coast); stroke-width: 1.2; stroke-linejoin: round; }
.smap-area { fill: var(--c); fill-opacity: .34; stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transition: fill-opacity .25s, opacity .35s, stroke-width .2s; }
.smap-area:focus { outline: none; }
.smap-area.is-hover, .smap-area:focus-visible { fill-opacity: .58; stroke-width: 3.5; }
.smap.has-selection .smap-area:not(.is-selected) { fill-opacity: .16; }
.smap-area.is-selected { fill-opacity: .62; stroke-width: 4; }
.smap-area.is-off, .smap-label.is-off { opacity: 0; pointer-events: none; }
.smap-label { transition: opacity .35s; pointer-events: none; }
.smap-label text { font: 600 21px var(--font-body); fill: var(--map-label); paint-order: stroke; stroke: var(--map-label-halo); stroke-width: 5px; stroke-linejoin: round; }
.smap-label line { stroke: var(--c); stroke-width: 2; }
.smap-label circle { fill: var(--c); }
.smap-label.is-selected text { fill: var(--c); }
.smap-place { font: italic 400 20px var(--font-display); fill: var(--map-place); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; }
.smap-water-lbl { font: italic 400 19px var(--font-display); fill: var(--map-water-lbl); letter-spacing: .06em; }
.smap-scale path { fill: none; stroke: var(--map-label); stroke-width: 2; }
.smap-scale text { font: 600 15px var(--font-body); fill: var(--map-label); }
.smap-north circle { fill: var(--map-land); stroke: var(--map-coast); stroke-width: 1.5; }
.smap-north path { fill: var(--coquina); }
.smap-north text { font: 600 16px var(--font-body); fill: var(--map-label); }
.map-note { font-size: var(--step--1); color: var(--ink-2); margin-top: .9rem; }

.area-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.area-card {
  --c: var(--tide);
  position: relative; display: flex; flex-direction: column; gap: .5rem; min-width: 0; overflow: hidden;
  padding: 1.35rem 1.4rem 1.1rem 1.6rem; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-a);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.area-card:nth-child(3n+2) { border-radius: var(--r-b); }
.area-card:nth-child(3n) { border-radius: var(--r-c); }
.area-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); transition: top .35s var(--ease-out), bottom .35s var(--ease-out); }
.area-card:hover, .area-card.is-selected { transform: translateY(-3px); box-shadow: 0 20px 36px -28px rgb(var(--shadow) / .6); border-color: var(--line); }
.area-card:hover::before, .area-card.is-selected::before { top: 0; bottom: 0; }
.area-card h2 { font-size: var(--step-2); }
.area-card .kind { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.area-card p { color: var(--ink-2); }
.area-show { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0; border: 0; background: none; font: 600 .95rem var(--font-body); color: var(--tide); cursor: pointer; }
.area-show .ico { transition: transform .3s var(--ease-spring); }
.area-show:hover .ico { transform: translateY(-3px); }
.coast-notes { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.coast-notes .tile b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); display: block; margin-bottom: .2rem; }
.coast-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px 4px 2px 5px; background: var(--c, var(--coquina)); margin-right: .55rem; vertical-align: .08em; transition: transform .3s var(--ease-spring); }
.coast li a:hover .coast-dot { transform: scale(1.4) rotate(-10deg); }
.footer-tag { font: italic 400 var(--step-1)/1.3 var(--font-display); margin-block: .35rem .5rem; }

/* ── Merged content from the original site ─────────────────────────────── */
.about-lead { font: 400 var(--step-2)/1.35 var(--font-display); color: var(--ink); }
.signoff { margin: 0; gap: .75rem; }
.signoff p { font: italic 400 var(--step-1)/1.45 var(--font-display); }
.signoff cite { font-style: normal; font-weight: 600; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.signoff cite::before { content: "— "; }
.stat-list--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
.stat-list--row li { border-bottom: 0 !important; padding-bottom: 0 !important; }
.portrait figcaption { max-width: calc(100% - 28px); }
.svc-stack { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.svc .tile { height: 100%; }
.svc h2 { font-size: var(--step-3); }
.svc-cta { align-self: flex-start; margin-top: auto; }
.tile--ink .svc-cta, .tile--ink .btn--primary { --bg: var(--salt); --fg: var(--ink); --bd: var(--salt); }
.tile--ink .btn--primary::before { background: var(--tide); }
.tile--ink .btn--primary:hover { color: var(--tide-ink); border-color: var(--tide); }
.sell-band { grid-column: 1 / -1 !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.sell-band h2 { font-size: var(--step-3); }
.steps .tile { height: 100%; }
.steps h3 { font-size: var(--step-2); }
.contact-side { display: grid; gap: var(--gap); align-content: start; }
.contact-side__title { font-size: var(--step-2); }
.contact-rows { display: grid; gap: .1rem; margin: 0; }
.contact-rows div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; min-height: 44px; border-bottom: 1px dashed color-mix(in srgb, var(--salt) 22%, var(--ink)); }
.contact-rows div:last-child { border-bottom: 0; }
.contact-rows dt { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--salt) 70%, var(--ink)); }
.contact-rows dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-rows a { text-decoration: none; }
.contact-rows a:hover { text-decoration: underline; }


/* ══ Original "Gulf dusk glass" treatment ═════════════════════════════════ */
/* Sunset glows behind everything (gives the glass something to blur) */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(1200px 700px at 85% -10%, color-mix(in srgb, #2a2340 100%, var(--salt)) 0%, transparent 60%), linear-gradient(180deg, var(--salt) 0%, var(--salt-2) 100%); }
:root[data-af-theme="light"] .ambient { background: radial-gradient(1200px 700px at 85% -10%, #ffe7c7 0%, transparent 60%), linear-gradient(180deg, var(--salt) 0%, var(--salt-2) 100%); }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-op); animation: orb-drift 28s ease-in-out infinite alternate; }
.ambient .o1 { width: 560px; height: 560px; right: -140px; top: 8%; background: radial-gradient(circle, var(--orb-1) 0%, var(--orb-1b) 45%, transparent 70%); }
.ambient .o2 { width: 620px; height: 620px; left: -220px; top: 48%; background: radial-gradient(circle, var(--orb-2) 0%, var(--orb-2b) 45%, transparent 70%); opacity: calc(var(--orb-op) * .8); animation-duration: 34s; }
.ambient .o3 { width: 420px; height: 420px; right: 18%; bottom: -160px; background: radial-gradient(circle, var(--orb-3) 0%, var(--orb-3b) 50%, transparent 72%); opacity: calc(var(--orb-op) * .65); animation-duration: 40s; }
@keyframes orb-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
body { background: var(--salt); }

/* Frosted glass panels */
.tile, .listing-card, .fact, .area-card, .listing-detail__head {
  background: linear-gradient(155deg, var(--glass-hi) 0%, var(--glass) 100%);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 60px rgb(0 0 0 / .25);
}
:root[data-af-theme="light"] .tile, :root[data-af-theme="light"] .listing-card, :root[data-af-theme="light"] .fact,
:root[data-af-theme="light"] .area-card, :root[data-af-theme="light"] .listing-detail__head { box-shadow: 0 20px 50px -30px rgb(17 26 43 / .35); }
.tile--bare, .services-grid, .tile--photo, .portrait { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.tile--photo, .portrait { background: var(--salt-2); box-shadow: 0 24px 60px rgb(0 0 0 / .3); }

/* Sea-tinted glass for stat and info panels (was an inverted ink tile) */
.tile--ink { background: linear-gradient(155deg, rgba(92,200,220,.18) 0%, rgba(92,200,220,.05) 100%); color: var(--ink); border-color: rgba(92,200,220,.3); }
:root[data-af-theme="light"] .tile--ink { background: linear-gradient(155deg, rgba(11,114,133,.12) 0%, rgba(11,114,133,.04) 100%); border-color: rgba(11,114,133,.25); }
.tile--ink .eyebrow, .tile--ink .muted, .tile--ink .stat-list span, .contact-rows dt { color: var(--ink-2); }
.tile--ink .stat-list li, .contact-rows div { border-color: var(--line); }
.tile--ink .stat-list b { color: var(--ink); }

/* Sunset panels for the calls to action */
.tile--tide { background: linear-gradient(135deg, var(--sun) 0%, var(--sun-2) 100%); color: #1c0f02; border-color: transparent; box-shadow: 0 24px 60px -20px rgba(255,122,61,.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tile--tide .eyebrow, .tile--tide .muted, .tile--tide p { color: rgba(28,15,2,.82); }
.tile--tide .eyebrow::before { filter: brightness(0) opacity(.7); }
.tile--tide em { color: #1c0f02; }
.tile--tide .btn:not(:hover) { background: #1c0f02 !important; color: #ffb340 !important; border-color: #1c0f02 !important; }
.tile--tide .btn::before { background: #f6f2ea !important; }
.tile--tide .btn:hover { color: #1c0f02 !important; border-color: #f6f2ea !important; }
.tile--tide .contact-alt a, .on-tide label, .on-tide .hint { color: #1c0f02; }

/* Buttons: the original sun gradient */
.btn--primary { background: linear-gradient(135deg, var(--sun) 0%, var(--sun-2) 100%); color: #1c0f02; border-color: transparent; box-shadow: 0 10px 30px rgba(255,140,60,.35); }
.btn--primary:hover { color: var(--salt); box-shadow: 0 14px 38px rgba(255,140,60,.5); }
.btn--primary::before { background: var(--ink); }
.btn:not(.btn--primary):not(.btn--quiet) { background-color: var(--glass); }
.icon-btn { background: var(--glass); border-color: var(--line); }

/* Accent type: the "Gulf beaches." gradient from the original hero */
.hero-title .scribble, .page-head h1 em, .intro__big em {
  background: linear-gradient(100deg, var(--sun) 10%, var(--sun-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-af-theme="light"] .hero-title .scribble, :root[data-af-theme="light"] .page-head h1 em { background-image: linear-gradient(100deg, #c2600f 10%, #d9461c 90%); }
.scribble path { stroke: var(--sun-2); }
em { color: var(--tide); }
.eyebrow { color: var(--ink-2); }
.arrow-link, .area-show, .listing-card__status, .listing-detail__status { color: var(--tide); }
.ico-badge { background: rgba(255,179,64,.14) !important; color: var(--sun) !important; }
:root[data-af-theme="light"] .ico-badge { background: rgba(162,74,12,.1) !important; color: var(--tide) !important; }
.check-list .ico { color: var(--sea); }
.fact .ico { color: var(--sun); }
:root[data-af-theme="light"] .fact .ico { color: var(--tide); }
.site-header { background: color-mix(in srgb, var(--salt) 78%, transparent); }
.utility { background: color-mix(in srgb, var(--salt) 60%, transparent); }
.utility .license b { color: var(--sun); }
:root[data-af-theme="light"] .utility .license b { color: var(--tide); }
.consent { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.input, .textarea, .select { background: var(--glass); }
.chip input:checked + span { background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #1c0f02; border-color: transparent; }
::selection { background: var(--sun); color: #1c0f02; }
.brand__mark { color: var(--sun); }
.brand__mark .c { stroke: var(--sun-2); }
:root[data-af-theme="light"] .brand__mark { color: var(--tide); }
.lost .big { background: linear-gradient(100deg, var(--sun), var(--sun-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.map-frame { border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .ambient .orb { animation: none; } }

/* ── Home: photo on top, then "Find your place", then the call to action ── */
.home-photo { margin: 0; aspect-ratio: 4 / 3; min-height: 0; width: 100%; height: auto; align-self: start; }
@media (min-width: 700px)  { .home-photo { aspect-ratio: 16 / 9; } }
@media (min-width: 1040px) { .home-photo { aspect-ratio: 21 / 9; } }
.home-photo img { object-position: center 60%; }
.home-find { min-height: 0; gap: var(--space-5); }
.home-find .hero-title { max-width: 16ch; }
.home-find .lede { max-width: 60ch; }
@media (min-width: 1040px) {
  .home-find { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--space-7); align-items: end; }
  .home-find .eyebrow, .home-find .hero-title { grid-column: 1; }
  .home-find .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .home-find .hero-actions { grid-column: 1 / -1; }
}

/* ── Footer: admin console button ── */
.footer-legal .row > .footer-admin { margin-left: auto; min-height: 44px; padding-inline: 1.1rem; font-size: var(--step--1); gap: .5em;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent); border-radius: 999px; background: color-mix(in srgb, currentColor 7%, transparent); color: var(--ink); text-decoration: none; }
.footer-legal .row > .footer-admin:hover { border-color: var(--tide); color: var(--tide); }
.footer-admin .ico { width: 1.05em; height: 1.05em; }
@media (max-width: 599px) { .footer-legal .row > .footer-admin { margin-left: 0; } }

/* ── Version history ── */
.footer-legal .row > .footer-version { white-space: nowrap; }
.changes { display: grid; gap: var(--space-5); padding-bottom: var(--space-8); }
.change { display: grid; gap: var(--space-4); }
.change__head h2 { font-size: var(--step-2); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; margin: 0; }
.change__ver { color: var(--tide); }
.change__title { font-weight: 400; }
.change__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.change__now { padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--tide); color: var(--tide); font-weight: 600; }
.change__list { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--ink-2); max-width: 70ch; }

/* ── Sitemap page (for people; search engines use /sitemap.xml) ── */
.sitemap { padding-bottom: var(--space-8); }
.sitemap h2 { font-size: var(--step-2); margin: 0 0 var(--space-3); }
.sitemap__list { list-style: none; margin: 0; padding: 0; display: grid; }
.sitemap__list li { display: grid; gap: .1rem; padding: .6rem 0; border-top: 1px solid var(--line-2); }
.sitemap__list li:first-child { border-top: 0; }
.sitemap__list a { font-weight: 600; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.sitemap__list a:hover { color: var(--tide); text-decoration: underline; }
.sitemap__list span { color: var(--ink-2); font-size: var(--step--1); }
.sitemap__xml { margin: var(--space-4) 0 0; color: var(--ink-2); font-size: var(--step--1); }

/* ── Marketing slicks ──────────────────────────────────────────────────── */
/* Any .slick lights up on hover/focus: a sunset ring, a soft glow and a slight lift. */
.slick { position: relative; transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), filter .35s var(--ease-out); }
.slick img { transition: transform .5s var(--ease-out), filter .35s var(--ease-out); }
.slick:hover, .slick:focus-visible, a:hover > .slick, a:focus-visible > .slick {
  box-shadow: 0 0 0 3px var(--tide), 0 0 0 7px rgb(255 179 64 / .22), 0 18px 50px -12px rgb(255 140 60 / .55);
  z-index: 1;
}
.slick:hover img, .slick:focus-visible img, a:hover > .slick img, a:focus-visible > .slick img { filter: brightness(1.08) saturate(1.06); }
/* Inner ring drawn over the image, so the highlight also shows where the edge is clipped (cards). */
.slick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .35s var(--ease-out); }
.slick:hover::after, .slick:focus-visible::after, a:hover > .slick::after, a:focus-visible > .slick::after {
  box-shadow: inset 0 0 0 3px var(--tide), inset 0 0 36px rgb(255 179 64 / .38); }
@media (prefers-reduced-motion: no-preference) {
  .slick:hover, a:hover > .slick { transform: translateY(-2px); }
}

/* Card: the whole flyer is visible (no cropping) over a blurred copy of itself. */
.listing-card__media--slick { position: relative; overflow: hidden; border-radius: 0; }
.listing-card__media--slick .slick__backdrop { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) brightness(.55) saturate(1.2); transform: none !important; }
.listing-card__media--slick .slick__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.listing-card:hover .listing-card__media--slick .slick__img { transform: scale(1.03); }
.listing-card__featured { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-2, #ff7a3d); margin: 0 0 .1rem; }

/* Listing page: [slick] [status bubble] [QR] */
.listing-detail__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.listing-detail__badges .listing-detail__status { margin: 0; padding: .4rem .8rem; white-space: nowrap; border-radius: 999px; border: 1px solid currentColor; line-height: 1.2; background: color-mix(in srgb, currentColor 10%, transparent); }
.listing-slick { padding: 0; border: 0; background: var(--line-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; width: 76px; flex: none; }
.listing-slick img { display: block; width: 100%; height: auto; max-height: 110px; object-fit: cover; object-position: top; }
.listing-qr { display: grid; justify-items: center; gap: .25rem; text-decoration: none; color: var(--ink-2); margin-left: auto; flex: none; }
.listing-qr__code { width: 84px; height: 84px; display: block; border-radius: 10px; box-shadow: 0 8px 24px -10px rgb(0 0 0 / .45); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.listing-qr:hover .listing-qr__code, .listing-qr:focus-visible .listing-qr__code { box-shadow: 0 0 0 3px var(--tide), 0 10px 30px -10px rgb(255 140 60 / .5); }
.listing-qr__label { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 420px) { .listing-qr { margin-left: 0; } }

/* MLS number + popup button */
.listing-detail__mls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.btn--sm { min-height: 40px; padding: .35rem .9rem; font-size: var(--step--1); }

/* Full-size flyer */
.slick-viewer { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); max-height: 94vh; overflow: visible; }
.slick-viewer::backdrop { background: rgb(5 9 16 / .88); }
.slick-viewer img { display: block; max-height: 90vh; width: auto; max-width: 100%; margin: auto; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.slick-viewer__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #f6f2ea; color: #0b1422; cursor: pointer; }
@media (max-width: 600px) { .slick-viewer__close { top: 6px; right: 6px; } }

/* Home: featured listings */
.home-featured .section-head h2 em { font-style: italic; }
.mls-open { border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; gap: .4em; text-decoration: none; }
.mls-open:hover, .mls-open:focus-visible { border-color: var(--tide); color: var(--tide); }
/* Wide screens: details stay in the left column, so the sticky summary on the right never covers them. */
@media (min-width: 1000px) {
  .listing-detail > .facts, .listing-detail > .listing-detail__actions, .listing-detail > .listing-detail__mls,
  .listing-detail > .listing-detail__section, .listing-detail > .listing-detail__disclosure { grid-column: 1; }
  .listing-detail__head { grid-column: 2; grid-row: 2 / span 20; align-self: start; }
}

/* ── Areas page: homes for sale that follow the map ── */
.map-listings__status { color: var(--ink-2); margin: 0; }
.map-listing[hidden] { display: none; }
.map-listing > .listing-card { height: 100%; }
.map-listings__empty, .map-listings__all { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.chip-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; margin-left: .45em; border-radius: 999px;
  font-size: .75rem; font-weight: 700; background: var(--c, var(--tide)); color: #fff; font-variant-numeric: tabular-nums; }
.area-chip[aria-pressed="false"] .chip-count { opacity: .45; }

/* ── Know before you buy ── */
.know { padding-bottom: var(--space-6); }
.know__item { display: grid; gap: .5rem; align-content: start; }
.know__item h2 { font-size: var(--step-2); }
.know__num { font: 600 var(--step--1)/1 var(--font-body); letter-spacing: .12em; color: var(--tide); margin: 0; }
.know__note { color: var(--ink-2); font-size: var(--step--1); margin: var(--space-2) 0 0; }
.know-link { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; text-decoration: none; color: inherit; }
.know-link__title { display: block; font: 400 var(--step-3)/1.15 var(--font-display); max-width: 30ch; margin-top: .4rem; }
.know-link:hover .arrow-link { text-decoration: underline; }

/* ── Admin-only pages (Admin → Pages) ── */
.admin-tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgb(255 179 64 / .18); color: var(--tide); border: 1px solid rgb(255 179 64 / .5); vertical-align: middle; }
.nav-admin { text-decoration: underline dotted rgb(255 179 64 / .8); text-underline-offset: .35em; }
.admin-only-banner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: var(--space-4); padding: .7rem 1rem; border-radius: 14px;
  border: 1px dashed rgb(255 179 64 / .6); background: rgb(255 179 64 / .08); font-size: var(--step--1); }

/* ── Listing page, v1.3.1 layout: [flyer] [address · status · price], then the house facts, then photos ── */
.listing-detail.ld2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.listing-detail.ld2 > * { grid-column: 1 / -1; }
.ld-top { display: grid; gap: .25rem; }
.ld-top .listing-detail__back { margin: 0; }
.ld-mls { justify-self: end; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .9rem; }
.ld-mls__num { white-space: nowrap; color: var(--ink-2); font-size: var(--step--1); }
.ld-main { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 760px) { .ld-main { grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr); } }
.ld2 .listing-detail__head { position: static; grid-column: auto; grid-row: auto; align-self: stretch; align-content: start; }
.ld2 .listing-detail__badges { margin: .6rem 0 .2rem; }
.ld2 .listing-detail__actions { margin-top: .8rem; }
.ld-section-title { font-size: var(--step-3); margin: var(--space-4) 0 var(--space-2); }

/* The flyer (or its "Coming soon" stand-in): letter-size proportions, always first. */
.ld-flyer { min-width: 0; }
.ld-slick { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-b); overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.ld-slick img { display: block; width: 100%; height: auto; }
.ld-slick__hint { position: absolute; right: .7rem; bottom: .7rem; z-index: 3; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgb(8 17 30 / .78); color: #f6f2ea; font-size: .8125rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.ld-slick:hover .ld-slick__hint, .ld-slick:focus-visible .ld-slick__hint { opacity: 1; transform: none; }
@media (hover: none) { .ld-slick__hint { opacity: 1; transform: none; } }
.ld-slick--soon { aspect-ratio: 17 / 22; cursor: default; display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 1.5rem;
  background: radial-gradient(90% 60% at 50% 38%, rgb(255 140 60 / .30), transparent 70%), radial-gradient(120% 70% at 50% 100%, rgb(92 200 220 / .14), transparent 60%), linear-gradient(160deg, var(--salt-2), var(--paper));
  border: 1px dashed rgb(255 179 64 / .55); color: var(--ink); }
.ld-soon__eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tide); white-space: nowrap; }
.ld-soon__title { font: 400 var(--step-5)/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.ld-slick--soon { container-type: inline-size; }
@supports (font-size: 1cqi) { .ld-slick--soon .ld-soon__title { font-size: min(var(--step-5), 14cqi); } }
.ld-soon__title em { color: var(--tide); }
.ld-soon__addr { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }

/* ── Bubbles keep their text on one line; when space runs out the bubble moves to the next line instead ── */
.listing-detail__status, .listing-card__status, .listing-card__featured, .chip-count, .admin-tag, .listing-qr__label,
.area-chip, .btn, .mls-open, .pill, .status-pill { white-space: nowrap; }
.btn { max-width: 100%; }
.area-chip { max-width: 100%; }
/* House facts: each tile is as wide as its words, and tiles wrap as a group. */
.ld2 .facts { display: flex; flex-wrap: wrap; gap: var(--gap); }
.ld2 .facts .fact { flex: 1 1 auto; min-width: max-content; }
.fact__value, .fact__label { white-space: nowrap; overflow-wrap: normal; }
.facts--compact .fact { white-space: nowrap; }
.listing-detail__price { font-variant-numeric: lining-nums; white-space: nowrap; }

/* ── Vendors page ── */
.vendors { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-bottom: var(--space-6); }
.vendors > * { grid-column: 1 / -1; }   /* tiles default to spanning 12 bento columns; one column here */
.vendor-grid > .vendor { grid-column: auto; }
.vendors__tools { display: grid; gap: .8rem; }
.vendors__search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; min-height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--salt); }
.vendors__search:focus-within { border-color: var(--tide); box-shadow: 0 0 0 3px rgb(255 179 64 / .25); }
.vendors__search-ico { width: 20px; height: 20px; color: var(--tide); flex: none; }
.vendors__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--step-0); padding: .75rem 0; outline: none; }
.vendors__count { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.vendors__jump { display: flex; flex-wrap: wrap; gap: .4rem; }
.vendors__jump a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: var(--step--1); white-space: nowrap; }
.vendors__jump a:hover { border-color: var(--tide); color: var(--tide); }
.vendors__jump a span { font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.vendors__jump a[hidden] { display: none; }
.vendor-cat { display: grid; gap: var(--space-4); scroll-margin-top: 110px; }
.vendor-cat[hidden] { display: none; }
.vendor-cat__title { font-size: var(--step-3); border-bottom: 1px solid var(--line-2); padding-bottom: .4rem; }
.vendor-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.vendor { display: grid; gap: .55rem; align-content: start; scroll-margin-top: 110px; }
.vendor[hidden] { display: none; }
.vendor__head { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.vendor__name { font-size: var(--step-2); margin: 0; }
.vendor__email { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--tide); transition: background .25s, border-color .25s; }
.vendor__email:hover, .vendor__email:focus-visible { background: rgb(255 179 64 / .14); border-color: var(--tide); }
.vendor__email .ico { width: 20px; height: 20px; }
.vendor__line { display: flex; gap: .5rem; align-items: baseline; margin: 0; color: var(--ink-2); }
.vendor__line .ico { width: 16px; height: 16px; flex: none; color: var(--tide); transform: translateY(2px); }
.vendor__line a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.vendor__line a:hover { color: var(--tide); text-decoration: underline; }
.vendor__notes { border-top: 1px solid var(--line-2); padding-top: .55rem; display: grid; gap: .5rem; }
.vendor__notes p { margin: 0; }
.vendor__photos { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.vendor__photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.vendor__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.vendor__photos a:hover img { transform: scale(1.05); }
.vendors__note { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.vendors__empty[hidden] { display: none; }

/* ── v1.5.0: the flyer always fits inside its frame, whatever its shape ── */
.ld-slick:not(.ld-slick--soon) { aspect-ratio: 17 / 22; max-height: 82vh; }
.ld-slick .slick__backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(22px) brightness(.5) saturate(1.2); }
.ld-slick .slick__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.listing-card__media--slick .slick__img { object-fit: contain; max-width: 100%; max-height: 100%; }
.slick-viewer img { object-fit: contain; max-width: min(1000px, 94vw); }

/* ── Listing badges: open house countdown, virtual tour ── */
.lbadges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; }
.lbadge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; line-height: 1.2; border: 1px solid; text-decoration: none; }
.lbadge .ico { width: 15px; height: 15px; }
.lbadge--oh { color: #1c0f02; background: linear-gradient(135deg, #ffb340, #ff7a3d); border-color: transparent; }
.lbadge--oh .lbadge__k { font-weight: 600; opacity: .85; }
.lbadge--tour { color: var(--sea, #5cc8dc); background: rgb(92 200 220 / .12); border-color: rgb(92 200 220 / .5); font-family: inherit; cursor: pointer; }
button.lbadge--tour:hover, a.lbadge--tour:hover, .lbadge--tour:focus-visible { background: rgb(92 200 220 / .24); }
.ld2 .lbadges { margin: .6rem 0 0; }
.ld2 .lbadge { font-size: .85rem; padding: .45rem .9rem; min-height: 40px; }
.ld-oh { display: flex; gap: .5rem; align-items: baseline; margin: .6rem 0 0; color: var(--ink-2); }
.ld-oh .ico { width: 18px; height: 18px; color: var(--tide); transform: translateY(3px); flex: none; }
.ld-oh strong { color: var(--ink); }
.tour-viewer video { display: block; max-width: min(1100px, 94vw); max-height: 82vh; border-radius: 12px; background: #000; }
.tour-viewer__link { text-align: center; margin: .6rem 0 0; }
.tour-viewer__link a { color: #f6f2ea; }

/* ── Vendors v1.5.0: logo, website, areas served, map ── */
.vendor__head { align-items: center; }
.vendor__logo { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; padding: 5px; box-shadow: 0 6px 16px -10px rgb(0 0 0 / .5); }
.vendor__head .vendor__name { flex: 1; min-width: 0; }
.vendor__areas { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0 0; }
.vendor__areas span { padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2); }
.vendor__map { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.vendor__mapframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; margin-top: .3rem; background: var(--line-2); }
/* Areas page: vendors under the homes */
.map-vendors__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.map-vendor[hidden] { display: none; }
.map-vendor { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: inherit; height: 100%; }
.map-vendor .vendor__logo { width: 48px; height: 48px; }
.map-vendor__text { display: grid; gap: .1rem; min-width: 0; }
.map-vendor__name { font-weight: 700; }
.map-vendor__cat { font-size: var(--step--1); color: var(--tide); white-space: nowrap; }
.map-vendor__phone { font-size: var(--step--1); color: var(--ink-2); white-space: nowrap; }
.map-vendor:hover .map-vendor__name { color: var(--tide); text-decoration: underline; }
.listing-card__price { font-variant-numeric: lining-nums; white-space: nowrap; }
.map-vendors__grid > .map-vendor { grid-column: auto; flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; min-height: 0; padding: 1rem 1.1rem; }
.map-vendor .vendor__logo { width: 64px; height: 48px; }

/* ── v1.5.1: the flyer fills its box exactly; hovering highlights the whole bubble, not the picture ── */
.listing-card__media--slick .slick__backdrop, .ld-slick .slick__backdrop { display: none; }
.listing-card__media--slick .slick__img, .ld-slick .slick__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; object-fit: fill; }
/* No change to the picture itself on hover */
.slick img, .slick:hover img, .slick:focus-visible img, a:hover > .slick img, a:focus-visible > .slick img,
.listing-card:hover .listing-card__media img, .listing-card:hover .listing-card__media--slick .slick__img { filter: none; transform: none; }
.slick::after { display: none; }
.listing-card__media--slick.slick:hover, a:hover > .listing-card__media--slick.slick, .listing-card__media--slick.slick:focus-visible { box-shadow: none; transform: none; }
/* The whole card lights up instead */
.listing-card { transition: transform .45s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.listing-card:hover, .listing-card:focus-within {
  border-color: var(--tide);
  box-shadow: 0 0 0 2px var(--tide), 0 0 0 6px rgb(255 179 64 / .2), 0 22px 54px -14px rgb(255 140 60 / .5); }
/* Listing page flyer: the box itself highlights, the picture stays as is */
.ld-slick.slick:hover, .ld-slick.slick:focus-visible { transform: none;
  box-shadow: 0 0 0 3px var(--tide), 0 0 0 7px rgb(255 179 64 / .2), 0 18px 50px -12px rgb(255 140 60 / .5); }

/* ── v1.6.1: flyers keep their own proportions (no stretching); any leftover space is an orange blur ── */
.listing-card__media--slick, .ld-slick:not(.ld-slick--soon) {
  background:
    radial-gradient(60% 55% at 30% 30%, rgb(255 196 92 / .95), transparent 70%),
    radial-gradient(55% 60% at 75% 70%, rgb(255 122 61 / .95), transparent 72%),
    radial-gradient(80% 80% at 50% 50%, rgb(255 150 70), rgb(214 92 40));
}
/* soften the gradient into a blur behind the flyer */
.listing-card__media--slick::before, .ld-slick:not(.ld-slick--soon)::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: inherit; filter: blur(28px) saturate(1.1);
}
.listing-card__media--slick .slick__backdrop, .ld-slick .slick__backdrop { display: none; }
.listing-card__media--slick .slick__img, .ld-slick .slick__img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0;
  object-fit: contain; object-position: center;
}

/* ── v1.7.0 listing page: details and features inside the address/price box; buttons below both boxes ── */
.ld2 .listing-detail__head .ld-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line-2); }
.ld2 .ld-facts .fact { flex: 1 1 auto; min-width: max-content; padding: .6rem .75rem; gap: .1rem; border-radius: 14px; }
.ld2 .ld-facts .fact .ico { width: 20px; height: 20px; margin-bottom: .15rem; }
.ld2 .ld-facts .fact__value { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }
.ld2 .ld-facts .fact__label { font-size: .78rem; }
.ld-features { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.ld-features__title { font-size: var(--step-1); margin: 0 0 .5rem; }
.ld-features__list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.ld-features__list li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); font-size: var(--step--1); white-space: nowrap; }
.ld-features__list .ico { width: 14px; height: 14px; color: var(--tide); }
.ld2 > .ld-actions { margin: 0; }

/* ── v1.8.0: listing page ── */
/* Small bubbles (details, features, badges) light up orange like the listing cards */
.ld2 .ld-facts .fact, .ld-features__list li, .ld2 .lbadge, .ld-oh {
  transition: transform .3s var(--ease-out), border-color .25s var(--ease-out), box-shadow .3s var(--ease-out), background-color .25s; }
.ld2 .ld-facts .fact:hover, .ld-features__list li:hover, .ld2 .lbadge:hover, .ld2 .lbadge:focus-visible, .ld-oh:hover {
  transform: translateY(-2px); border-color: var(--tide);
  box-shadow: 0 0 0 2px var(--tide), 0 0 0 5px rgb(255 179 64 / .2), 0 14px 32px -12px rgb(255 140 60 / .5); }
.ld-features__list li:hover { background: rgb(255 179 64 / .08); }
.lbadge__hours { font-weight: 600; white-space: nowrap; }
.lbadge--now { animation: oh-pulse 2.4s ease-in-out infinite; }
@keyframes oh-pulse { 50% { box-shadow: 0 0 0 4px rgb(255 179 64 / .25); } }
@media (prefers-reduced-motion: reduce) { .lbadge--now { animation: none; } }

/* Photo slideshow */
.ld-gallery { display: grid; gap: .75rem; }
.ld-gallery__n { font: 600 var(--step--1)/1 var(--font-body); color: var(--ink-2); vertical-align: middle; margin-left: .35rem; }
.ld-show { position: relative; aspect-ratio: 16 / 10; max-height: min(74vh, 780px); width: 100%; border-radius: var(--r-b); overflow: hidden; background: var(--line-2); border: 1px solid var(--line-2);
  transition: box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.ld-show:hover, .ld-show:focus-within { border-color: var(--tide);
  box-shadow: 0 0 0 3px var(--tide), 0 0 0 7px rgb(255 179 64 / .2), 0 18px 50px -12px rgb(255 140 60 / .5); }
.ld-show__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; cursor: zoom-in; transition: opacity 1s ease, visibility 0s 1s; }
.ld-show__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; z-index: 1; }
.ld-show__slide img { width: 100%; height: 100%; object-fit: cover; }
.ld-show__hint, .ld-show__count, .ld-show__pause { position: absolute; z-index: 2; font-size: .8rem; font-weight: 600; color: #fff; background: rgb(10 16 28 / .62); backdrop-filter: blur(6px); border-radius: 999px; padding: .35rem .75rem; }
.ld-show__hint { left: .75rem; bottom: .9rem; display: inline-flex; gap: .35rem; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.ld-show__hint .ico { width: 14px; height: 14px; }
.ld-show:hover .ld-show__hint, .ld-show:focus-within .ld-show__hint { opacity: 1; transform: none; }
.ld-show__count { right: .75rem; bottom: .9rem; font-variant-numeric: lining-nums; pointer-events: none; }
.ld-show__pause { right: .75rem; top: .75rem; border: 0; cursor: pointer; min-height: 32px; }
.ld-show__pause:hover, .ld-show__pause:focus-visible { background: var(--tide); color: #1c0f02; }
.ld-show__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgb(255 255 255 / .15); }
.ld-show__bar span { display: block; height: 100%; width: 0; background: var(--tide); }
.ld-show.is-paused .ld-show__bar span { width: 0 !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .ld-show__slide, .ld-show__slide.is-active { transition: none; } }

/* Photo viewer: thumbnail strip to scroll through */
.lightbox__strip { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: min(92vw, 980px);
  display: flex; gap: 6px; overflow-x: auto; padding: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; background: rgb(0 0 0 / .45); border-radius: 12px; }
.lightbox__thumb { flex: 0 0 auto; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #222; opacity: .6; scroll-snap-align: center;
  transition: opacity .2s, border-color .2s, box-shadow .2s; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover, .lightbox__thumb:focus-visible { opacity: 1; border-color: var(--tide); box-shadow: 0 0 0 3px rgb(255 179 64 / .35); }
.lightbox__thumb.is-current { opacity: 1; border-color: var(--tide); }
.lightbox:has(.lightbox__strip) .lightbox__img { max-height: calc(100vh - 190px); }
.lightbox:has(.lightbox__strip) .lightbox__figure { margin-bottom: 96px; }

/* Location map under the photos */
.ld-location { display: grid; gap: .75rem; }
.ld-location__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.ld-map { position: relative; aspect-ratio: 16 / 7; min-height: 280px; border-radius: var(--r-b); overflow: hidden; border: 1px solid var(--line-2); background: var(--line-2);
  transition: box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.ld-map:hover { border-color: var(--tide); box-shadow: 0 0 0 3px var(--tide), 0 0 0 7px rgb(255 179 64 / .2), 0 18px 50px -12px rgb(255 140 60 / .5); }
.ld-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ld-location__addr { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 640px) { .ld-map { aspect-ratio: 4 / 3; } }

/* Showing / contact buttons at the bottom of the page */
.ld-cta { display: grid; gap: .6rem; justify-items: start; padding: clamp(1.25rem, .8rem + 1.6vw, 2.25rem); margin-top: var(--space-5); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-b);
  transition: box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.ld-cta:hover, .ld-cta:focus-within { border-color: var(--tide); box-shadow: 0 0 0 2px var(--tide), 0 0 0 6px rgb(255 179 64 / .2), 0 22px 54px -14px rgb(255 140 60 / .5); }
.ld-cta__title { font-size: var(--step-3); }
.ld-cta__sub { color: var(--ink-2); max-width: 60ch; }
.ld2 .ld-cta .listing-detail__actions { margin-top: .4rem; }
.ld2 > .ld-cta { margin-bottom: var(--space-6); }

/* ── v1.8.1: every photo under the slideshow ── */
.ld-grid { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 30%), 1fr)); gap: 8px; }
.ld-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line-2); cursor: zoom-in;
  transition: transform .3s var(--ease-out), border-color .25s var(--ease-out), box-shadow .3s var(--ease-out); }
.ld-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-grid a:hover, .ld-grid a:focus-visible { transform: translateY(-2px); border-color: var(--tide); outline: none;
  box-shadow: 0 0 0 2px var(--tide), 0 0 0 5px rgb(255 179 64 / .2), 0 14px 32px -12px rgb(255 140 60 / .5); }

/* ── v1.8.2: "Open house · Happening now" — a shiny white dot circles the badge ── */
@property --oh-spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lbadge--now { position: relative; isolation: isolate; animation: none; overflow: visible; }
.lbadge--now::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 4px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--oh-spin), transparent 0deg 326deg, rgb(255 255 255 / .25) 340deg, rgb(255 255 255 / .9) 349deg, #fff 351deg 356deg, transparent 359deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px rgb(255 255 255 / .8));
  animation: oh-orbit 2.2s linear infinite; }
.lbadge--now::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1; box-shadow: 0 0 14px 2px rgb(255 179 64 / .55); }
@keyframes oh-orbit { to { --oh-spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .lbadge--now::before { animation: none; background: rgb(255 255 255 / .85); } }
