/* ==========================================================================
   PlaceWorth — styles
   Plain CSS, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/space-grotesk-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/space-grotesk-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/space-grotesk-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* Fallbacks tuned to the web fonts' width and height, so the swap doesn't move the layout */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'); size-adjust: 107.48%; ascent-override: 90.14%; descent-override: 22.44%; line-gap-override: 0%; }
@font-face { font-family: 'Space Grotesk Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Liberation Sans Bold'); size-adjust: 102.74%; ascent-override: 95.78%; descent-override: 28.42%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --pink: #FD1843;          /* brand */
  --pink-hover: #FF3A5E;
  --on-pink: #140A0F;       /* 5:1 on brand pink */
  --deep: #C4102F;          /* pink for text and focus */
  --canvas: #FFF9FA;
  --paper: #FFFFFF;
  --ink: #201B1E;
  --ink-2: #473C42;
  --muted: #6B5F66;
  --line: #EEE4E8;
  --line-strong: #94828B;   /* 3:1 control borders */
  --blush: #FFE8EE;
  --soft: #F8F1F4;
  --error: #B00020;

  --display: 'Space Grotesk', 'Space Grotesk Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --sans: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-frame: 18px;
  --r-panel: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(20px, 3.4vw, 44px);
  --maxw: 1440px;
  --header-h: 0px;
  --story: 6s;
}
@media (min-width: 721px) { :root { --header-h: 75px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--canvas); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.owners-card :focus-visible { outline-color: var(--on-pink); }
.reel-info :focus-visible, .play-btn:focus-visible, .demo-bar :focus-visible { outline-color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; }
.noscript { max-width: 640px; margin: 24px auto; padding: 16px 20px; background: var(--blush); border-radius: 16px; text-align: center; }
/* Without JavaScript, hide the controls that can't work instead of showing dead buttons */
html:not(.js):not(.static-page) :is(.search, .header-actions, .hero-actions, .reel, .browse, .owners .btn, .footer-links) { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.1 var(--sans); white-space: nowrap; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-pink { background: var(--pink); color: var(--on-pink); }
.btn-pink:hover { background: var(--pink-hover); box-shadow: 0 8px 22px -8px rgba(253, 24, 67, .65); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3A2F35; }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--soft); border-color: #E2D3D9; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blush); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn:active { transform: scale(.94); }

.text-btn { min-height: 44px; padding: 0 2px; color: var(--deep); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-btn:hover { text-decoration-thickness: 2px; }

/* ---------- Demo bar ---------- */
.demo-bar { display: none; align-items: center; justify-content: center; gap: 8px; padding: 8px var(--gutter); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; text-align: center; }
.is-demo .demo-bar { display: flex; }
.demo-bar .i { width: 16px; height: 16px; color: #FF9CB0; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 30;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
@media (min-width: 721px) {
  .site-header { position: sticky; top: 0; view-transition-name: site-header; }
  .site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(48, 19, 33, .35); }
}
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 27px/1 var(--display); letter-spacing: -.055em; color: var(--ink); }
.brand-dot { color: var(--pink); }

.search {
  order: 3; flex: 1 1 100%; min-width: 0;
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.search:hover { border-color: #E8D9DF; }
.search:focus-within { background: #fff; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(253, 24, 67, .14); }
.search .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline: 0; }
.kbd { display: none; min-width: 24px; padding: 1px 7px; border: 1px solid #D9CCD2; border-radius: 6px; font: 500 12px/20px var(--sans); color: var(--muted); text-align: center; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .2s, color .2s; }
.header-link:hover { background: var(--soft); }
.how-link { display: none; }
.saved-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saved-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s, transform .3s var(--ease-out); }
.saved-count.bump { transform: scale(1.25); }
.saved-link[aria-pressed="true"] { background: var(--blush); color: #8E0F29; }
.saved-link[aria-pressed="true"] .i { fill: var(--pink); stroke: var(--pink); }
.saved-link[aria-pressed="true"] .saved-count { background: #fff; }
.header-cta { min-height: 44px; padding: 0 16px; font-size: 14px; margin-left: 6px; }

@media (max-width: 479px) {
  .header-inner { column-gap: 8px; }
  .brand { font-size: 24px; }
  .saved-link { padding: 0 10px; }
  .header-cta { padding: 0 14px; margin-left: 2px; }
}
@media (max-width: 379px) {
  .brand { font-size: 22px; }
  .saved-link { padding: 0 8px; }
  .header-cta { padding: 0 12px; }
}
@media (max-width: 339px) { .header-cta { display: none; } }
@media (min-width: 480px) { .saved-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
@media (min-width: 721px) {
  .header-inner { flex-wrap: nowrap; }
  .search { order: 0; flex: 1 1 auto; max-width: 460px; margin-left: 12px; }
}
@media (min-width: 1024px) {
  .how-link { display: inline-flex; }
  .kbd { display: inline-block; }
  .header-cta { padding: 0 20px; font-size: 15px; }
}

/* ---------- Film frame (shared by reel, cards, detail) ---------- */
.frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 9 / 16; border-radius: var(--r-frame);
  background: #EADFE3; container-type: inline-size;
}
.frame > img {
  position: absolute; top: 0; left: 0;
  height: 100%; width: auto; min-width: 100%; max-width: none;
  object-fit: cover;
  transform: translateX(calc((100cqw - 100%) * var(--x, .5)));
  transition: transform .9s var(--ease);
  will-change: transform;
}
.frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #151214; }
.frame-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; }

/* Safari/iOS 15 has no container units: frame the photo with object-position instead of panning it */
@supports not (width: 1cqw) {
  .frame > img { width: 100%; object-position: calc(var(--x, .5) * 100%) 50%; transform: none !important; animation: none !important; }
}

@keyframes kenburns {
  from { transform: translateX(calc((100cqw - 100%) * var(--from, .2))) scale(1.07); }
  to   { transform: translateX(calc((100cqw - 100%) * var(--to, .8))) scale(1); }
}
@keyframes kenburns-loop {
  0%   { transform: translateX(calc((100cqw - 100%) * var(--from, .2))) scale(1.06); }
  100% { transform: translateX(calc((100cqw - 100%) * var(--to, .8))) scale(1); }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(36px, 5vw, 64px);
  display: grid; gap: 36px; align-items: center;
  overflow-x: clip;
}
/* Safari 15 doesn't know overflow: clip; without this the tilted reel cards widen the page */
@supports not (overflow: clip) { .hero { overflow: hidden; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.hero-kicker .i { width: 17px; height: 17px; color: var(--deep); }
.hero-title {
  margin: 16px 0 22px;
  font-size: clamp(46px, 7.4vw, 104px); line-height: .94; letter-spacing: -.048em; font-weight: 600;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .ln > span { display: inline-block; }
.hero-title .dot { color: var(--pink); }
.hero-lede { max-width: 34em; font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Entrance — the one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {
  .hero .ln > span { animation: line-in 1s var(--ease-out) .05s both; }
  .hero .ln:nth-child(2) > span { animation-delay: .13s; }
  .hero-kicker, .hero-lede, .hero-actions { animation: rise-in .8s var(--ease-out) .22s both; }
  .hero-lede { animation-delay: .28s; }
  .hero-actions { animation-delay: .34s; }
}
@keyframes line-in { from { transform: translateY(108%); } }
/* starts at .01, not 0: fully transparent text is ignored by LCP until the fade ends */
@keyframes rise-in { from { opacity: .01; transform: translateY(14px); } }

/* Reel */
.reel { --fw: min(280px, 60vw); position: relative; padding-top: 4px; }
.reel-stage { position: relative; height: calc(var(--fw) * 16 / 9); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.reel-frame {
  position: absolute; top: 0; left: 50%; width: var(--fw); margin-left: calc(var(--fw) / -2);
  transform-origin: 50% 90%;
  transition: transform .8s var(--ease-out), opacity .6s var(--ease), filter .6s var(--ease);
}
.reel-frame .frame { box-shadow: 0 30px 60px -28px rgba(46, 13, 28, .55); }
.reel-frame[data-pos="active"] { z-index: 3; transform: none; }
.reel-frame[data-pos="prev"] { z-index: 2; transform: translateX(var(--peek-x, -60%)) rotate(-7deg) scale(.8); filter: brightness(.9) saturate(.85); cursor: pointer; }
.reel-frame[data-pos="next"] { z-index: 2; transform: translateX(calc(var(--peek-x, -60%) * -1)) rotate(7deg) scale(.8); filter: brightness(.9) saturate(.85); cursor: pointer; }
.reel-frame[data-pos="rest"] { z-index: 1; transform: scale(.66); opacity: 0; pointer-events: none; }
.reel-frame[data-pos="active"] .frame > img { animation: kenburns var(--story) linear forwards; }

.js .hero:not(.is-ready) .reel-frame { opacity: 0; transform: translateY(50px) scale(.86); }
.js .hero.is-entering .reel-frame[data-pos="active"] { transition-delay: .15s; }
.js .hero.is-entering .reel-frame[data-pos="prev"],
.js .hero.is-entering .reel-frame[data-pos="next"] { transition-delay: .38s; }

.reel-info {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 70px 18px 18px;
  background: linear-gradient(180deg, rgba(20, 10, 15, 0) 0%, rgba(20, 10, 15, .62) 38%, rgba(20, 10, 15, .9) 100%);
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .6s var(--ease-out);
}
.reel-frame[data-pos="active"] .reel-info { opacity: 1; transform: none; transition-delay: .2s; }
.reel-type { font-size: 13px; font-weight: 500; color: #FFD3DD; }
.reel-name { margin-top: 2px; font: 600 23px/1.12 var(--display); letter-spacing: -.03em; }
.reel-meta { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .88); }
.reel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.reel-price { font: 600 19px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reel-link { min-height: 40px; padding: 0 14px; font-size: 14px; }

.reel-progress { position: absolute; z-index: 5; top: 16px; left: 50%; width: calc(var(--fw) - 28px); transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; }
.seg { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .42); overflow: hidden; }
.seg-fill { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.seg[data-state="done"] .seg-fill { transform: scaleX(1); }
.seg[data-state="active"] .seg-fill { animation: seg-fill var(--story) linear forwards; }
@keyframes seg-fill { to { transform: scaleX(1); } }
.reel.is-paused .seg-fill,
.reel.is-paused .reel-frame[data-pos="active"] .frame > img { animation-play-state: paused; }

.reel-controls { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }

@media (min-width: 720px) { .reel { --fw: min(300px, 40vw); } }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: min(760px, calc(100vh - var(--header-h))); }
  .reel { --fw: min(310px, 24vw); --peek-x: -47%; }
}
@media (min-width: 980px) and (max-width: 1359px) { .reel { --peek-x: -38%; } }

/* ---------- Browse ---------- */
.browse { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 8px var(--gutter) clamp(48px, 7vw, 88px); }

.categories { min-height: 56px; margin: 0 calc(var(--gutter) * -1) 22px; }
.cat-list { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.cat-list::-webkit-scrollbar { display: none; }
.cat-list > li { scroll-snap-align: start; flex-shrink: 0; }
.cat {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 12px 0 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cat .i { width: 18px; height: 18px; }
.cat:hover { background: #FFF3F6; border-color: #EDC2CE; }
.cat[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--on-pink); font-weight: 600; }
.cat-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat[aria-pressed="true"] .cat-count { background: rgba(255, 255, 255, .6); color: var(--on-pink); }
@media (min-width: 900px) {
  .categories { margin: 0 0 26px; }
  .cat-list { flex-wrap: wrap; overflow: visible; padding: 0; }
}

.workspace { display: block; }
.sidebar { display: none; }
@media (min-width: 900px) {
  .workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 32px; align-items: start; }
  .sidebar { display: block; position: sticky; top: calc(var(--header-h) + 20px); }
}
.sidebar-note { display: flex; gap: 8px; margin-top: 16px; padding: 0 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.sidebar-note .i { width: 16px; height: 16px; margin-top: 3px; color: var(--deep); }

/* Filter panel */
.filter-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px 18px 8px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.filter-title { font-size: 19px; letter-spacing: -.02em; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-head + .fgroup { margin-top: 8px; }
.fgroup legend, .fgroup-label { display: block; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
/* Float the legend so it sits inside the padding instead of on the fieldset's top border */
.fgroup legend { float: left; width: 100%; }
.fgroup legend + * { clear: both; }

.check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: 15px; cursor: pointer; }
.check input { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; opacity: 0; cursor: pointer; }
.check-box { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: #fff; transition: background-color .15s, border-color .15s; }
.check-box .i { width: 14px; height: 14px; stroke-width: 3; color: var(--on-pink); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease-out); }
.check input:checked + .check-box { background: var(--pink); border-color: var(--pink); }
.check input:checked + .check-box .i { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 3px solid var(--deep); outline-offset: 2px; }
.check:hover .check-box { border-color: var(--ink); }
.check-n { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px;
  padding: 0 40px 0 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23201B1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font-size: 16px; cursor: pointer;
}
.select:hover { border-color: var(--ink); }
.select-sm { width: auto; min-height: 44px; font-size: 15px; font-weight: 500; }

.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; right: 0; top: 50%; width: 46px; height: 28px; margin: -14px 0 0; opacity: 0; cursor: pointer; }
.switch-track { position: relative; width: 46px; height: 28px; flex-shrink: 0; border-radius: 999px; background: #F1E8EC; border: 1.5px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--line-strong); transition: transform .25s var(--ease-out), background-color .2s; }
.switch input:checked + .switch-track { background: var(--pink); border-color: var(--pink); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--deep); outline-offset: 2px; }

/* Results */
.results-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.035em; }
.result-count { margin-top: 4px; font-size: 14px; color: var(--muted); }
.results-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.filter-btn .i { width: 17px; height: 17px; }
.filter-count:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: var(--on-pink); font-size: 12px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sort .select-sm { max-width: 160px; }
@media (max-width: 559px) {
  .results-bar { flex-wrap: wrap; align-items: center; }
  .results-bar > div:first-child { flex: 1 1 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .result-count { margin-top: 0; }
  .results-tools { flex: 1 1 100%; }
  .results-tools .filter-btn { flex: 0 0 auto; padding-inline: 18px; }
  .results-tools .sort { flex: 1 1 0; }
  .sort .select-sm { max-width: none; width: 100%; }
}
@media (min-width: 900px) {
  .filter-btn { display: none; }
  .sort label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .sort .select-sm { max-width: none; }
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 13px; border-radius: 999px; background: var(--blush); color: #8E0F29; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.fchip .i { width: 15px; height: 15px; }
.fchip:hover { background: #FFD5DF; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.place { position: relative; height: 100%; }
.place .frame { transition: box-shadow .3s var(--ease); }
.price-tag {
  position: absolute; z-index: 2; top: 10px; left: 10px; max-width: calc(100% - 64px);
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  font: 600 14px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame-meta { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip .i { width: 12px; height: 12px; fill: currentColor; stroke-width: 0; }
.chip-dark { background: rgba(32, 27, 30, .88); color: #fff; font-weight: 500; }

.save {
  position: absolute; z-index: 3; top: 6px; right: 6px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
}
.save::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: rgba(255, 255, 255, .96); transition: transform .2s var(--ease); }
.save .i { position: relative; width: 18px; height: 18px; transition: fill .2s, stroke .2s; }
.save:hover::before { transform: scale(1.08); }
.save[aria-pressed="true"] .i { fill: var(--pink); stroke: var(--pink); }
.save.pop .i, .btn.pop .i { animation: pop .45s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

.place-copy { padding: 12px 2px 0; }
.place-type { font-size: 13px; font-weight: 500; color: var(--deep); }
.place-title { margin-top: 3px; font-size: 19px; line-height: 1.22; letter-spacing: -.025em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.place-link::after { content: ''; position: absolute; z-index: 1; inset: 0; border-radius: var(--r-frame); }
.place-link:focus-visible { outline: none; }
.place:has(.place-link:focus-visible) .frame { outline: 3px solid var(--deep); outline-offset: 3px; }
.place:has(.place-link:focus-visible) .place-title { text-decoration: underline; text-underline-offset: 3px; }
.place:hover .place-title { color: var(--deep); }
.place-loc { display: flex; align-items: flex-start; gap: 5px; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.place-loc .i { width: 14px; height: 14px; margin-top: 1px; }
.place-specs { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.place-contact { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); min-width: 0; }
.place-contact .i { width: 15px; height: 15px; }
.place-contact span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.place-contact b { font-weight: 500; color: var(--ink); }

/* Hover plays the film preview (pointer devices only) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .place:hover .frame > img { transform: translateX(calc((100cqw - 100%) * var(--to, .8))) scale(1.03); transition: transform 7s linear; }
  .place:hover .frame-progress { transform: scaleX(1); transition: transform 7s linear; }
  .place .frame-progress { transition: transform .4s var(--ease); }
  .place:hover .frame { box-shadow: 0 22px 44px -26px rgba(46, 13, 28, .6); }
}

@media (max-width: 639px) {
  .place-title { font-size: 16px; }
  .place-contact .role { display: none; }
  .price-tag { top: 8px; left: 8px; font-size: 13px; padding: 6px 8px; }
  .save { top: 3px; right: 3px; }
  .frame-meta { left: 8px; bottom: 9px; }
}

.empty { padding: 56px 24px; text-align: center; background: var(--paper); border: 1.5px dashed #E5CCD5; border-radius: var(--r-panel); }
.empty > .i { width: 32px; height: 32px; margin: 0 auto 14px; color: var(--deep); }
.empty h3 { font-size: 24px; letter-spacing: -.03em; }
.empty p { max-width: 36ch; margin: 10px auto 22px; color: var(--muted); }

.load-row { padding-top: 38px; text-align: center; }
.load-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.load-row .btn[hidden] + .load-note { margin-top: 0; }

/* ---------- Owners band ---------- */
.owners { max-width: var(--maxw); margin: 0 auto clamp(56px, 7vw, 96px); width: 100%; padding: 0 var(--gutter); }
.owners-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 34px;
  padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) 0;
  border-radius: 32px; background: var(--pink); color: var(--on-pink);
}
.owners-kicker { font-size: 15px; font-weight: 600; }
.owners-copy h2 { margin: 12px 0 16px; font-size: clamp(38px, 5.2vw, 72px); line-height: .98; letter-spacing: -.045em; }
.owners-copy p { max-width: 31em; font-size: 17px; line-height: 1.6; }
.owners-copy .btn { margin-top: 26px; }
.owners-steps { display: grid; gap: 18px; }
.owners-steps li { display: flex; gap: 14px; align-items: flex-start; }
.owners-steps h3 { font-size: 19px; letter-spacing: -.02em; }
.owners-steps p { margin-top: 3px; font-size: 15px; line-height: 1.55; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--on-pink); color: #fff; font: 600 15px/1 var(--display); }
.owners-art { width: calc(100% + clamp(48px, 10vw, 128px)); max-width: none; height: 190px; margin: 0 calc(clamp(24px, 5vw, 64px) * -1); object-fit: cover; object-position: 88% 50%; }
@media (min-width: 900px) {
  .owners-card { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(40px, 5vw, 64px); min-height: 520px; align-content: space-between; }
  .owners-copy { max-width: 560px; }
  .owners-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 760px; }
  .owners-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; margin: 0; object-position: 100% 50%; }
}
@media (min-width: 1200px) { .owners-steps { max-width: 820px; } }

/* ---------- Detail ---------- */
.detail { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 18px var(--gutter) 80px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.crumbs .i { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.detail-head { display: grid; gap: 18px; margin: 6px 0 30px; }
.detail-type { font-size: 15px; font-weight: 600; color: var(--deep); }
.detail-title { margin: 6px 0 12px; font-size: clamp(40px, 5.6vw, 76px); line-height: .98; letter-spacing: -.048em; }
.detail-loc { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--muted); }
.detail-loc .i { width: 17px; height: 17px; }
.detail-price { font: 600 clamp(32px, 3.6vw, 46px)/1.05 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.detail-includes { max-width: 32ch; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-actions .btn { min-height: 44px; padding: 0 18px; }
.detail-actions .btn[aria-pressed="true"] { background: var(--blush); border-color: #F4C3CF; color: #8E0F29; }
.detail-actions .btn[aria-pressed="true"] .i { fill: var(--pink); stroke: var(--pink); }
@media (min-width: 900px) {
  .detail-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
  .detail-price-wrap { text-align: right; }
  .detail-includes { margin-left: auto; }
  .detail-actions { justify-content: flex-end; }
}

.detail-grid { display: grid; gap: 30px; grid-template-areas: "film" "body" "contact"; }
.detail-film { grid-area: film; width: 100%; max-width: 340px; margin: 0 auto; }
.detail-film .frame { view-transition-name: film; }
.detail-body { grid-area: body; min-width: 0; }
.contact-card { grid-area: contact; }
@media (min-width: 760px) {
  .detail-grid { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); grid-template-areas: "film body" "film contact"; column-gap: 40px; align-items: start; }
  .detail-film { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
}
@media (min-width: 1200px) {
  .detail-grid { grid-template-columns: 320px minmax(0, 1fr) 344px; grid-template-areas: "film body contact"; }
  .contact-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

.play-btn {
  position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(20, 10, 15, .5);
  transition: transform .2s var(--ease);
}
.play-btn:hover { transform: translateX(-50%) translateY(-1px); }
.play-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: var(--on-pink); }
.play-dot .i { width: 15px; height: 15px; fill: currentColor; stroke-width: 0; }
.play-btn small { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.frame.is-playing > img { animation: kenburns-loop 11s ease-in-out infinite alternate; }
.film-caption { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.film-caption .i { width: 15px; height: 15px; }

.block-title { margin-bottom: 12px; font-size: 20px; letter-spacing: -.025em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin-top: 3px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 36px; }
.tags li { padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.detail-story h2 { max-width: 26ch; margin-bottom: 12px; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.03em; }
.detail-story p { max-width: 62ch; font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.detail-meta { display: grid; gap: 6px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.detail-meta a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.contact-kicker { font-size: 14px; font-weight: 600; color: var(--deep); }
.contact-card h2 { margin: 6px 0 18px; font-size: 26px; line-height: 1.12; letter-spacing: -.03em; }
.person { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; background: var(--blush); color: #8E0F29; font: 600 17px/1 var(--display); letter-spacing: -.02em; }
.person-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.person-role, .person-company { font-size: 14px; line-height: 1.4; color: var(--muted); }
.methods { margin-bottom: 18px; }
.methods a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.methods .i { color: var(--muted); }
.method-label { display: block; font-size: 13px; color: var(--muted); }
.method-value { display: block; font-weight: 500; overflow-wrap: anywhere; }
.methods a:hover .method-value { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-actions .btn { padding: 0 12px; }
.contact-note { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--canvas); font-size: 14px; line-height: 1.55; color: var(--muted); }
.contact-note .i { width: 18px; height: 18px; margin-top: 2px; color: var(--deep); }

.similar { margin-top: clamp(52px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
.similar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.similar-head h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.035em; }
.cards-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(158px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
.cards-row::-webkit-scrollbar { display: none; }
.cards-row > li { scroll-snap-align: start; }
@media (min-width: 760px) {
  .cards-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
}

.contact-bar {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 249, 250, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.contact-bar .btn { padding: 0 12px; }
@media (min-width: 760px) { .contact-bar { display: none !important; } }
@media (max-width: 759px) {
  body[data-view="detail"] .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-brand { font: 700 23px/1 var(--display); letter-spacing: -.055em; }
.footer-tag { margin-top: 6px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links button { min-height: 44px; font-size: 14px; color: var(--ink-2); }
.footer-links button:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* ---------- Dialogs ---------- */
dialog {
  width: min(560px, calc(100% - 28px)); max-height: min(92dvh, 920px);
  padding: 0; border: 0; border-radius: 28px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(36, 18, 28, .45);
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(32, 22, 28, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialog-in .35s var(--ease-out); }
  dialog[open]::backdrop { animation: fade-in .3s ease; }
  dialog.sheet[open] { animation: sheet-in .4s var(--ease-out); }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }

.dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; }
.dialog-art { width: 100%; height: 150px; object-fit: cover; object-position: center 58%; background: var(--canvas); }
.dialog-body { padding: 30px 30px 30px; }
.dialog-kicker { font-size: 14px; font-weight: 600; color: var(--deep); }
.dialog-title { margin: 8px 0 12px; padding-right: 36px; font-size: clamp(28px, 4.4vw, 36px); line-height: 1.06; letter-spacing: -.04em; }
.dialog-art + .dialog-body .dialog-title { padding-right: 0; }
.dialog-lede { font-size: 16px; line-height: 1.65; color: var(--muted); }
.steps { display: grid; gap: 18px; margin: 26px 0 28px; }
.steps li { display: flex; gap: 14px; }
.steps .step-n { background: var(--blush); color: #8E0F29; }
.steps h3 { font-size: 18px; letter-spacing: -.02em; }
.steps p { margin-top: 3px; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 520px) { .dialog-body { padding: 26px 22px 26px; } .dialog-art { height: 118px; } }

.credits { display: grid; gap: 2px; margin-top: 20px; font-size: 15px; }
.credits li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.credits a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.credits b { font-weight: 500; color: var(--ink); }

/* Form */
.feature-form { display: grid; gap: 16px; margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choices legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { width: 100%; float: left; }
.choices legend + * { clear: both; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--blush); border-color: var(--deep); color: #8E0F29; }
.choice input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 2px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field > label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(253, 24, 67, .16); }
textarea.input { min-height: 110px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(176, 0, 32, .14); }
.field-hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; font-weight: 500; color: var(--error); }
.form-alert { padding: 12px 14px; border-radius: 12px; background: #FDECEF; color: var(--error); font-size: 14px; line-height: 1.5; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-success { padding: 30px 0 6px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--blush); color: var(--deep); }
.success-icon .i { width: 28px; height: 28px; stroke-width: 2.4; }
.form-success h3 { font-size: 26px; letter-spacing: -.03em; }
.form-success p { max-width: 34ch; margin: 10px auto 22px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) .success-icon { animation: pop .6s var(--ease-out); }
}

/* Filter sheet */
dialog.sheet { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; }
dialog.sheet:not([open]) { display: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; }
.sheet-head h2 { font-size: 22px; letter-spacing: -.03em; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 20px 10px; }
.sheet-body .filter-panel { padding: 0; border: 0; border-radius: 0; }
.sheet-body .filter-head { display: none; }
.sheet-body .filter-head + .fgroup { margin-top: 0; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.sheet-foot #sheetApply { flex: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: 0 14px 40px -12px rgba(32, 16, 24, .5);
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 759px) { body[data-view="detail"] .toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ---------- View transitions ---------- */
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-group(film) { animation-duration: .55s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reel-frame[data-pos="active"] .frame > img, .frame.is-playing > img { animation: none !important; }
  .seg[data-state="active"] .seg-fill { animation: none !important; transform: scaleX(1); }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Forced colors (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn, .icon-btn, .cat, .fchip, .choice span, .header-link, .search { border: 1px solid ButtonText; }
  .cat[aria-pressed="true"], .saved-link[aria-pressed="true"], .choice input:checked + span { outline: 2px solid Highlight; outline-offset: 1px; }
  .check input:checked + .check-box, .switch input:checked + .switch-track { background: Highlight; border-color: Highlight; }
  .check-box .i { color: HighlightText; }
  .switch-track::after { background: ButtonText; }
  .switch input:checked + .switch-track::after { background: HighlightText; }
  .save[aria-pressed="true"] .i, .saved-link[aria-pressed="true"] .i { fill: Highlight; stroke: Highlight; }
  .seg-fill, .frame-progress { background: CanvasText; }
  .place-link::after { border: 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .demo-bar, .hero, .owners, .contact-bar, .sidebar, .results-tools, .load-row, .save, .play-btn, .similar, .toast,
  .skip-link, .categories, .active-filters, .detail-actions, .contact-actions, .footer-links, .crumbs { display: none !important; }
  body { background: #fff; }
  .place { break-inside: avoid; }
  body { display: block; min-height: 0; }
  .frame { container-type: normal; }
  .contact-card { box-shadow: none; padding: 16px; }
  /* printed sheet: photo left, contact pinned right, details between.
     Block flow rather than grid: Chrome moves a grid row that doesn't fit to the next page whole */
  .detail-grid { display: block !important; position: relative; min-height: 580px; }
  .detail-grid::after { content: ''; display: block; clear: both; }
  .detail-film { float: left; width: 140px; max-width: none; margin: 0 22px 12px 0 !important; position: static !important; }
  .detail-body { margin-right: 242px; display: flow-root; }
  .contact-card { position: absolute !important; top: 0; right: 0; width: 220px; margin: 0 !important; }
  /* a listing prints as a single sheet: brand on top instead of the page footer */
  body[data-view="detail"] .site-footer { display: none; }
  .detail::before { content: 'PlaceWorth.'; display: block; margin-bottom: 14px; font: 700 18px/1 var(--display); letter-spacing: -.05em; }
  .detail .similar, .detail { padding-bottom: 0; margin-bottom: 0; }
  .detail-film .frame { view-transition-name: none; }
  .detail-title { font-size: 34px; }
  .detail-story h2, .contact-card h2 { font-size: 18px; }
  .detail-story p { font-size: 13px; line-height: 1.5; }
  .facts > div { padding-block: 7px; }
  .facts dd { font-size: 14px; }
  .tags { margin-block: 12px; gap: 6px; }
  .tags li { padding: 4px 10px; font-size: 12px; }
  .detail-story { margin-top: 16px; }
  .detail-meta { margin-top: 14px; padding-top: 10px; font-size: 12px; }
  .detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .frame > img { transform: none !important; width: 100%; object-position: calc(var(--x, .5) * 100%) 50%; }
}
