:root {
  --ink: #0f141b;
  --ink-2: #19212b;
  --ink-3: #2b3542;
  --paper: #f5efe6;
  --paper-2: #ece3d5;
  --card: #fffcf7;
  --line: #e3d8c7;
  --text: #1c1813;
  --muted: #6f665a;
  --gold: #f0a023;
  --gold-hover: #ffb23d;
  --gold-deep: #d7860a;
  --gold-lite: #f0b45e;  /* the accent as text on an ink panel */
  --on-gold: var(--ink); /* what reads on top of a solid accent */
  --clay: #c2562f;
  --sage: #2e6b57;
  --input-bg: #ffffff;
  --glass: rgba(245, 239, 230, 0.9);
  --float: rgba(255, 252, 247, 0.95);
  --map-filter: saturate(0.55) sepia(0.12) brightness(1.03);
  --art-blend: multiply;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 20, 8, 0.06), 0 14px 34px -14px rgba(28, 20, 8, 0.28);
  --shadow-lg: 0 2px 6px rgba(28, 20, 8, 0.08), 0 40px 80px -30px rgba(28, 20, 8, 0.45);
  --font-d: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-b: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font-b);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.05; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap-wide { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.center { text-align: center; }
.ok { color: var(--sage); font-weight: 600; }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.kicker { font: 600 0.75rem/1 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
svg.i { width: 1em; height: 1em; flex: none; vertical-align: -0.12em; }
.rating svg.i, .ok svg.i { color: var(--gold); }
.ok svg.i { color: var(--sage); }
.round svg.i, .slide svg.i { width: 18px; height: 18px; }
.tile-go svg.i, .done-ico svg.i { width: 18px; height: 18px; }
.done-ico svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
.cat span svg.i { width: 24px; height: 24px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--gold) 85%, transparent); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { background: transparent; border-color: var(--line); background: var(--card); }
.btn-line:hover { border-color: var(--text); }
.btn-line[aria-pressed='true'] { border-color: var(--text); }
.btn-paper { background: var(--float); color: var(--text); box-shadow: var(--shadow); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card);
  display: inline-grid; place-items: center; transition: border-color 0.2s, transform 0.2s;
}
.round:hover { border-color: var(--text); transform: translateY(-1px); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------------------------------------------------------------- Loading screen */
/* The brand film used to run for about 2.5 seconds and then take another second to clear,
   while the page underneath had been ready since 766ms. Same choreography, a third of the
   time — and app.js skips it outright after the first view of a session. */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--gold-lite) 22%, transparent), transparent 70%), var(--ink);
  clip-path: inset(0 0 0 0); transition: clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  animation: loaderFailsafe 0.6s 6s forwards; /* never trap the page if a script fails */
}
.loader.out { clip-path: inset(0 0 100% 0); }
.loader.out .loader-in { transform: translateY(-70px); opacity: 0; transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s; }
.loader-in { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 16px; }
.loader-mark { width: clamp(92px, 15vw, 128px); overflow: visible; animation: markPulse 0.7s 0.1s var(--ease) both; }
.lm { fill: none; stroke: var(--gold-lite); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.lm-init { fill: #fff; stroke: none; font: 800 40px/1 var(--font-d); letter-spacing: -0.03em; opacity: 0; animation: fadeIn 0.5s 0.75s forwards; }
.loader-logo { width: clamp(92px, 15vw, 128px); aspect-ratio: 1; object-fit: cover; border-radius: 24px; animation: markPulse 0.7s 0.05s var(--ease) both; }
.loader-word { display: flex; gap: 0.26em; align-items: baseline; margin-top: 6px; font: 800 clamp(2.4rem, 7vw, 4.4rem)/1 var(--font-d); letter-spacing: -0.04em; }
.loader-word span { display: inline-flex; overflow: hidden; padding: 0 0.04em 0.1em; }
.loader-word i { font-style: normal; display: inline-block; transform: translateY(115%) rotate(10deg); animation: letterUp 0.5s var(--ease) forwards; }
.lw-yk i { color: var(--gold-lite); animation-delay: calc(0.18s + var(--i) * 45ms); }
.lw-b i { font-weight: 500; animation-delay: calc(0.34s + var(--i) * 28ms); }
.loader-tag { font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); opacity: 0; animation: fadeIn 0.4s 0.55s forwards; }
.loader-progress { display: flex; align-items: center; gap: 12px; width: min(260px, 70vw); margin-top: 20px; font: 600 0.78rem var(--font-b); color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.loader-bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--gold-lite); transform-origin: left; transform: scaleX(0); }
.loader-pct { width: 4ch; text-align: right; }
.loader-city { position: absolute; inset: auto 0 0; height: 34vh; display: flex; align-items: flex-end; gap: 6px; padding-inline: 4vw; opacity: 0.55; pointer-events: none; }
.loader-city i { flex: 1; height: var(--h); border-top: 2px solid color-mix(in srgb, var(--gold-lite) 75%, transparent); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--gold-lite) 30%, transparent), transparent 85%); transform-origin: bottom; transform: scaleY(0); animation: growUp 0.7s var(--ease) forwards; animation-delay: calc(var(--d) * 20ms + 0.05s); }
body.loading { overflow: hidden; }
body.loading .rise, body.loading .float-chip { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes letterUp { to { transform: none; } }
@keyframes growUp { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes markPulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 22px color-mix(in srgb, var(--gold-lite) 55%, transparent)); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: #fff; transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav.solid { background: var(--glass); color: var(--text); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
body:not([data-route='home']) main { padding-top: var(--nav-h); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.4rem/1 var(--font-d); letter-spacing: -0.03em; white-space: nowrap; }
.logo em { font-style: normal; font-weight: 500; opacity: 0.82; }
.mark { width: 36px; height: 36px; flex: none; transition: transform 0.5s var(--ease); }
.logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.mark rect { fill: var(--gold); }
.mark path { fill: none; stroke: var(--on-gold); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.mark text { fill: var(--on-gold); stroke: none; font: 800 38px/1 var(--font-d); letter-spacing: -0.03em; }
img.mark { object-fit: cover; border-radius: 10px; background: var(--gold); }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; opacity: 0.86; transition: background 0.2s, opacity 0.2s; }
.nav-links a:hover, .nav-links a.on { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-saved { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; font-weight: 600; }
.nav-saved svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-saved:hover { background: rgba(127, 127, 127, 0.16); }
.nav-post b { font-size: 0.66rem; background: var(--ink); color: var(--gold-lite); padding: 3px 6px; border-radius: 6px; letter-spacing: 0.06em; }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; opacity: 0.85; transition: background 0.2s, opacity 0.2s; }
.theme-btn:hover { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.theme-btn svg { width: 18px; height: 18px; }
.nav-account { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font-weight: 600; font-size: 0.92rem; opacity: 0.9; transition: background 0.2s, opacity 0.2s; }
.nav-account:hover { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.nav-account.on { border-color: var(--gold); color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: max(720px, 100svh); overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 78%, color-mix(in srgb, var(--gold-lite) 34%, transparent), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, rgba(120, 160, 190, 0.18), transparent 70%),
    linear-gradient(180deg, #0c1117 0%, #141b24 55%, #1d1a18 100%);
}
.hero-3d { position: absolute; inset: 0; z-index: -2; }
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; animation: fade 1.4s var(--ease) both; }
.hero-3d.no3d { background: url('https://img.magnific.com/free-photo/aerial-view-downtown-mumbai-sunset_469504-13.jpg?w=740') center/cover; opacity: 0.55; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 17, 23, 0.92) 0%, rgba(12, 17, 23, 0.65) 38%, rgba(12, 17, 23, 0) 66%), linear-gradient(0deg, rgba(12, 17, 23, 0.7), transparent 30%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in { position: relative; min-height: inherit; display: grid; grid-template-columns: minmax(0, 760px) 1fr; align-items: center; padding-block: calc(var(--nav-h) + 40px) 64px; pointer-events: none; }
.hero-copy { pointer-events: auto; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.1rem); font-weight: 800; line-height: 0.94; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--gold-lite); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 2%; right: 4%; bottom: 0.02em; height: 0.09em; border-radius: 99px; background: currentColor; opacity: 0.35; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.76); margin: 22px 0 30px; max-width: 520px; }

.search { background: var(--card); color: var(--text); border-radius: 24px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: hidden; }
.search-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--ink-2); padding: 6px 6px 0; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs button { flex: none; border: 0; background: transparent; color: rgba(255, 255, 255, 0.72); padding: 11px 15px 13px; font-weight: 600; font-size: 0.9rem; border-radius: 14px 14px 0 0; transition: color 0.2s, background 0.2s; }
.search-tabs button:hover { color: #fff; }
.search-tabs button[aria-selected='true'] { background: var(--card); color: var(--text); }
.search-fields { display: flex; align-items: stretch; padding: 10px; gap: 4px; }
.f { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; border-radius: 14px; transition: background 0.2s; position: relative; }
.f + .f::before { content: ''; position: absolute; left: -2px; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.f:hover, .f:focus-within { background: var(--paper); }
.f-grow { flex-grow: 1.6; }
.f-sm { flex-grow: 0.6; }
.f span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.f input, .f select, .f .ui-field { border: 0; background: transparent; padding: 3px 0 0; font-size: 0.98rem; font-weight: 500; width: 100%; outline: none; min-width: 0; }
.go { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 16px; background: var(--gold); color: var(--on-gold); padding: 0 20px; font-weight: 700; transition: background 0.2s, transform 0.2s; }
.go:hover { background: var(--gold-hover); }
.go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hero-popular { margin-top: 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.hero-popular a { color: #fff; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); transition: background 0.2s; }
.hero-popular a:hover { background: rgba(255, 255, 255, 0.12); }

.hero-float { position: relative; height: 100%; min-height: 420px; }
.float-chip {
  pointer-events: auto; position: absolute; display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 16px;
  background: rgba(20, 27, 36, 0.62); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7); font-size: 0.82rem; color: rgba(255, 255, 255, 0.75);
  animation: bob 6s ease-in-out infinite, rise 0.9s var(--ease) both; transition: border-color 0.2s;
}
.float-chip:hover { border-color: var(--gold); }
.float-chip img { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; }
.float-chip span { display: flex; flex-direction: column; line-height: 1.3; }
.float-chip b { color: #fff; font: 700 1.05rem/1.2 var(--font-d); }
.float-chip small { font: 500 0.75rem var(--font-b); color: rgba(255, 255, 255, 0.6); }
.f1 { top: 14%; right: 6%; animation-delay: 0s, 1.8s; }
.f2 { bottom: 20%; right: 30%; animation-delay: -3s, 2.1s; }
.float-hint { position: absolute; right: 0; bottom: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.02em; }

.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: 56px 24px; }
.band-paper { background: var(--paper-2); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .kicker { color: var(--gold-lite); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.sec-actions { display: flex; gap: 8px; align-items: center; }
.sec-actions .link { margin-left: 8px; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* 3D tilt */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease), box-shadow 0.3s; transform-style: preserve-3d; will-change: transform; }
.tilt:hover { transition-duration: 0.12s, 0.3s; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; box-shadow: var(--shadow); background: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 20, 0) 35%, rgba(10, 14, 20, 0.82)); }
.tile-in { position: absolute; left: 20px; right: 56px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; transform: translateZ(40px); }
.tile-in small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-lite); }
.tile-in b { font: 700 1.4rem/1.1 var(--font-d); letter-spacing: -0.02em; margin-top: 4px; }
.tile-in em { font-style: normal; font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }
.tile-go { position: absolute; right: 16px; bottom: 18px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); transition: background 0.2s, color 0.2s; transform: translateZ(50px); }
.tile:hover .tile-go { background: var(--gold); color: var(--on-gold); }
.t0 { grid-column: span 2; grid-row: span 2; }
.t0 .tile-in b { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.t1, .t6 { grid-column: span 2; }
.t1 .tile-in b { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Rows & grids */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 3 * 20px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; margin: -10px -4px -24px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 34px 24px; }

/* Card */
.card { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card:hover { box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--float); color: var(--text); font-size: 0.74rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.badge-inline { position: static; box-shadow: none; background: var(--paper-2); }
.heart { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; }
.heart svg { width: 26px; height: 26px; fill: rgba(15, 20, 27, 0.45); stroke: #fff; stroke-width: 1.8; transition: transform 0.2s var(--ease), fill 0.2s; }
.heart:hover svg { transform: scale(1.12); }
[data-save][aria-pressed='true'] svg { fill: var(--clay); stroke: #fff; }
.btn[data-save][aria-pressed='true'] svg { stroke: var(--clay); }
.slide { position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--float); color: var(--text); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.prev { left: 10px; }
.next { right: 10px; }
.card:hover .slide, .slide:focus-visible { opacity: 1; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: background 0.2s, transform 0.2s; }
.dots i.on { background: #fff; transform: scale(1.2); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body .kicker { margin: 0; font-size: 0.68rem; }
.card-price { font-size: 0.9rem; color: var(--muted); }
.card-price small { font-size: 0.78rem; margin-left: 6px; }
.card-price b { font: 700 1.3rem/1.2 var(--font-d); color: var(--text); letter-spacing: -0.02em; }
.card h3 { font: 600 1rem/1.35 var(--font-b); letter-spacing: 0; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card .heart, .card .slide { z-index: 2; }
.card .muted { font-size: 0.9rem; }
.facts { list-style: none; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.82rem; color: var(--muted); }
.facts li + li::before { content: '·'; margin-right: 12px; color: var(--line); }
.posted { font-size: 0.78rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.card-stay { background: transparent; box-shadow: none; }
.card-stay:hover { box-shadow: none; }
.card-stay .card-media { aspect-ratio: 1 / 0.95; border-radius: var(--r); box-shadow: var(--shadow); }
.card-stay .card-body { padding: 14px 4px 2px; gap: 5px; }
.card-stay .card-price b { font: 600 1rem var(--font-b); }
.card-stay .facts { border: 0; padding: 0; margin: 0; order: 2; }
.card-stay .card-price { order: 3; margin-top: 4px; }
.card-row { display: flex; justify-content: space-between; gap: 8px; }
.rating { font-size: 0.9rem; font-weight: 500; white-space: nowrap; }

/* Stay categories */
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; padding-bottom: 4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; padding: 10px 14px; border: 1.5px solid transparent; border-radius: 16px; background: transparent; font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.cat span { font-size: 1.5rem; filter: grayscale(0.6); transition: filter 0.2s, transform 0.3s var(--ease); }
.cat:hover { color: var(--text); background: var(--card); }
.cat:hover span { transform: translateY(-2px) scale(1.08); }
.cat.on { color: var(--text); border-color: var(--text); background: var(--card); }
.cat.on span { filter: none; }
.grid-stay { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 38px 26px; }

/* Cities 3D */
.cities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.city { position: relative; display: block; border-radius: 22px; transform-style: preserve-3d; }
.city-img { display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.9); position: relative; }
.city-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 11, 16, 0.88)); }
.city-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.city:hover .city-img img { transform: scale(1.08); }
.city-txt { position: absolute; left: 16px; right: 12px; bottom: 16px; transform: translateZ(28px); display: flex; flex-direction: column; gap: 4px; }
.city-txt b { font: 700 1.35rem/1 var(--font-d); letter-spacing: -0.02em; }
.city-txt small { font-size: 0.74rem; color: rgba(255, 255, 255, 0.72); line-height: 1.35; }
.city:nth-child(even) { margin-top: 36px; }

/* Projects */
.projects { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 260px); gap: 18px; }
.project { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; box-shadow: var(--shadow); background: var(--ink); }
.project-lg { grid-row: span 2; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 20, 0.1), rgba(10, 14, 20, 0.86)); }
.project-in { position: absolute; inset: auto 22px 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; transform: translateZ(40px); }
.project-in .badge { position: static; align-self: flex-start; margin-bottom: 8px; background: var(--gold); }
.project-in small { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; }
.project-in > b { font: 700 1.7rem/1.05 var(--font-d); letter-spacing: -0.03em; }
.project-lg .project-in > b { font-size: clamp(2rem, 3.4vw, 3rem); }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.project-meta span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); font-size: 0.8rem; }

/* Tools */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tool { background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.tool h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.emi { display: grid; gap: 16px; }
.emi label { display: grid; gap: 8px; font-size: 0.9rem; }
.emi label > span { display: flex; justify-content: space-between; color: var(--muted); }
.emi output { color: var(--text); font-weight: 600; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--paper-2); outline-offset: 6px; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--gold); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 4px solid var(--gold); cursor: grab; }
.emi-out { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 6px; padding: 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.emi-out small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
.emi-out strong { font: 800 1.8rem/1.1 var(--font-d); color: var(--gold-deep); letter-spacing: -0.03em; }
.emi-out span { font-weight: 600; }
.emi-bar { height: 10px; border-radius: 99px; background: var(--clay); overflow: hidden; }
.emi-bar i { display: block; height: 100%; background: var(--sage); transition: width 0.3s var(--ease); }
.pulse { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.pulse li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.pulse-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-bar { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.pulse-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--clay)); border-radius: 99px; }
.pulse b { font-variant-numeric: tabular-nums; }

/* CTA */
.cta { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(28px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold-lite) 40%, transparent), transparent 65%); z-index: -1; }
.cta .kicker { color: var(--gold-lite); }
.cta h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; color: rgba(255, 255, 255, 0.8); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F141B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.cta-art { position: relative; min-height: 340px; perspective: 900px; }
.art-main { position: absolute; inset: 0; margin: auto; width: 88%; border-radius: 28px; transform: rotateY(-14deg) rotateX(6deg); box-shadow: 0 60px 80px -40px rgba(0, 0, 0, 0.9); animation: bob 7s ease-in-out infinite; }
.art-coin { position: absolute; width: 34%; right: 0; bottom: -4%; border-radius: 22px; transform: rotate(8deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8); animation: bob 5s ease-in-out -2s infinite; }

/* ---------------------------------------------------------------- Search page */
.sp { padding-block: 20px 60px; }
.sp-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.sp-tabs::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 500; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s; }
.pill:hover { border-color: var(--text); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sp-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 18px 22px; }
.sp-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.sp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.sort select, .filters select, .filters input[type='search'], .filters input[type='date'],
.sort .ui-field, .filters .ui-field {
  height: 44px; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 12px; color: var(--text); width: 100%;
}
.sort select, .sort .ui-field { width: auto; border-radius: 999px; }
.sp-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.sp-body.with-map { grid-template-columns: 280px minmax(0, 1fr) minmax(0, 0.9fr); }
.map-pane { display: none; }
.with-map .map-pane { display: block; position: sticky; top: calc(var(--nav-h) + 16px); height: calc(100vh - var(--nav-h) - 32px); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
#map, .d-map { width: 100%; height: 100%; background: #e8e2d6; }
.with-map .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 20px; padding: 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.fgroup { display: grid; gap: 8px; }
.flabel { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.two input { padding: 0 6px !important; font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.85rem; font-weight: 500; transition: all 0.15s; }
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.chip-lg span { padding: 11px 18px; font-size: 0.95rem; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--paper-2); position: relative; transition: background 0.2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease); }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.reset { font-size: 0.88rem; }
.only-sm { display: none; }
.pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 40px 0 12px; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text);
  font: 600 0.92rem var(--font-b); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.page-btn:hover:not([disabled]):not(.on) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.page-btn.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); cursor: default; }
.page-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.page-arrow svg { width: 17px; height: 17px; }
.page-gap { min-width: 26px; text-align: center; color: var(--muted); user-select: none; }
.empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.empty img { width: 180px; border-radius: 24px; mix-blend-mode: var(--art-blend); }
.empty .btn { margin-top: 8px; }
.page-empty { min-height: 60vh; align-content: center; }
.map-off { display: grid; place-items: center; height: 100%; color: var(--muted); padding: 20px; text-align: center; }

.pin-price span {
  display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 5px 10px; border-radius: 999px;
  background: var(--card); color: var(--text); font: 700 0.82rem/1 var(--font-b); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.pin-price:hover span, .pin-price.hot span { background: var(--ink); color: #fff; transform: translate(-50%, -50%) scale(1.12); }
.pop .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; }
.pop .leaflet-popup-content { margin: 0; width: 240px !important; }
.mini { display: grid; grid-template-columns: 84px 1fr; color: var(--text) !important; font: 0.82rem/1.35 var(--font-b); }
.mini img { width: 84px; height: 84px; object-fit: cover; }
.mini span { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mini b { font: 700 1rem var(--font-d); }
.leaflet-container { font-family: var(--font-b); }
.leaflet-tile-pane { filter: var(--map-filter); }

/* ---------------------------------------------------------------- Detail */
.detail { padding-block: 20px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--muted); padding-block: 8px 16px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs > * + *::before { content: '/'; margin-right: 6px; color: var(--line); }
.d-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.d-head h1 { font-size: clamp(1.8rem, 3.8vw, 3rem); max-width: 22ch; }
.d-head .kicker { margin-bottom: 6px; }
.d-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); align-items: center; }
.d-actions { display: flex; gap: 8px; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 230px)); gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.g { border: 0; padding: 0; background: var(--paper-2); overflow: hidden; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.3s; }
.g:hover img { transform: scale(1.04); filter: brightness(0.9); }
.g0 { grid-row: span 2; }
.g-3d { position: absolute; right: 16px; bottom: 16px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 5vw, 72px); margin-top: 36px; align-items: start; }
.d-main > * + * { margin-top: 20px; }
.d-main .h3, .saved .h3 { font-size: 1.5rem; padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--line); }
.d-price-line { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.d-price { font: 800 2.2rem/1 var(--font-d); letter-spacing: -0.03em; }
.d-inline { font-size: 1.05rem; }
.kf { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kf div { background: var(--card); padding: 14px 16px; }
.kf dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kf dd { margin: 4px 0 0; font-weight: 600; }
.host { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--paper-2); }
.host > div { display: flex; flex-direction: column; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-txt { display: inline-grid; place-items: center; background: var(--ink); color: var(--gold-lite); font: 700 0.95rem var(--font-d); }
.about { font-size: 1.05rem; max-width: 68ch; }
.amen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.amen li { display: flex; gap: 10px; align-items: center; }
.amen li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.reviews figure { margin: 0; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.reviews figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.reviews figcaption .avatar { grid-row: span 2; }
.reviews blockquote { margin: 12px 0 0; }
.d-map { height: 340px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 0; }
.nearby { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.nearby li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; }
.d-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.side-card { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.side-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.side-price b { font: 800 1.9rem/1 var(--font-d); letter-spacing: -0.03em; }
.side-price span { color: var(--muted); }
.side-price .rating { margin-left: auto; }
.side-who { display: flex; gap: 12px; align-items: center; margin: 18px 0; padding-block: 14px; border-block: 1px solid var(--line); }
.side-who > div { display: flex; flex-direction: column; }
.lead, .book { display: grid; gap: 12px; }
.lead label, .post-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; }
.lead input, .lead textarea, .post-form input, .post-form select, .post-form textarea, .post-form .ui-field {
  width: 100%; border: 1.5px solid var(--line); background: var(--input-bg); color: var(--text); border-radius: 12px; padding: 11px 12px; font-size: 0.95rem; resize: vertical; transition: border-color 0.2s;
}
.lead input:focus, .lead textarea:focus, .post-form :is(input, select, textarea):focus, .post-form .ui-field[aria-expanded='true'] { outline: none; border-color: var(--ink); }
.lead input:user-invalid, .post-form input:user-invalid { border-color: var(--clay); }
.lead .check, .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; accent-color: var(--ink); }
.book-box { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.book-box label { display: grid; gap: 2px; padding: 10px 12px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.book-box label + label { border-left: 1.5px solid var(--line); }
.book-box .wide { grid-column: span 2; border-left: 0 !important; border-top: 1.5px solid var(--line); }
.book-box input, .book-box select, .book-box .ui-field { border: 0; background: transparent; font-size: 0.95rem; padding: 0; text-transform: none; letter-spacing: 0; font-weight: 400; outline: none; width: 100%; }
.book-box label:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.bill { margin: 8px 0 0; display: grid; gap: 10px; }
.bill div { display: flex; justify-content: space-between; gap: 8px; }
.bill dt { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.bill dd { margin: 0; font-variant-numeric: tabular-nums; }
.bill .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; }
.bill .total dt { text-decoration: none; }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding-block: 12px; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-size: 1.6rem; animation: pop 0.5s var(--ease); }
.done .btn { margin-top: 8px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ---------------------------------------------------------------- Modal & 3D viewer */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.m-back { position: absolute; inset: 0; background: rgba(10, 14, 20, 0.62); backdrop-filter: blur(4px); animation: fade 0.3s; }
.modal-dark .m-back { background: radial-gradient(circle at 50% 60%, #1f2833, #07090d); }
.m-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--float); color: var(--text); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow); }
.dialog { position: relative; width: min(520px, 100%); background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); animation: rise 0.45s var(--ease); max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog-img { width: 100%; height: 200px; object-fit: cover; }
.dialog-sm { width: min(420px, 100%); }
.dialog-in { padding: 24px; display: grid; gap: 10px; }
.err-line { background: #f7dfd6; color: var(--clay); padding: 9px 12px; border-radius: 10px; font-size: 0.86rem; }
.linkish { border: 0; background: none; padding: 0; color: var(--text); font-weight: 600; cursor: pointer; }
.signin-nudge { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 20px; border-radius: var(--r); background: var(--ink); color: #fff; }
.signin-nudge p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.dialog-in h2 { font-size: 1.8rem; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.viewer { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; color: #fff; }
.viewer .m-x { position: fixed; }
.ring-stage { perspective: 1400px; display: grid; place-items: center; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: relative; width: var(--w); aspect-ratio: 3 / 2; transform-style: preserve-3d; }
.ring figure { position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--r)); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.9); }
.ring img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.viewer-bar { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.viewer-bar .round { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------------------------------------------------------------- Post */
.post { padding-block: 24px 80px; }
.post-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 4vw, 40px); border-radius: 32px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 28px; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 8px; }
.post-art { width: clamp(120px, 20vw, 220px); mix-blend-mode: var(--art-blend); animation: bob 6s ease-in-out infinite; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.post-form { display: grid; gap: 20px; }
.post-form fieldset { border: 0; margin: 0; padding: 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 14px; }
.post-form legend { float: left; width: 100%; font: 700 1.2rem var(--font-d); margin-bottom: 4px; padding: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span2 { grid-column: span 2; }
.post-form .btn-lg { justify-self: start; }
.post-preview { position: sticky; top: calc(var(--nav-h) + 20px); }

/* ---------------------------------------------------------------- Saved */
.saved { padding-block: 24px 80px; }
.saved h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.saved .h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.count { font: 600 0.85rem var(--font-b); background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 10px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.line img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.line > div { display: flex; flex-direction: column; min-width: 0; }
.empty-sm { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); }

/* ---------------------------------------------------------------- Footer & toast */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-top: 64px; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-brand { grid-column: span 2; }
/* Real paths, written by the server, so a crawler can walk from the home page to every listing page. */
.footer .seo-links { display: contents; }
.footer .seo-links h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-in a:not(.logo) { display: block; padding: 4px 0; font-size: 0.92rem; }
.footer-in a:hover { color: var(--gold); }
.foot-contact a { display: flex; align-items: center; gap: 8px; }
.foot-contact svg { width: 15px; height: 15px; opacity: 0.7; }
.sample-banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); padding: 10px 16px; border-radius: 999px; font-size: 0.85rem; box-shadow: var(--shadow-lg); }
.sample-banner button { border: 0; background: none; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; }
.chips-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-active { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 0.85rem; font-weight: 500; }
.chip-active button { border: 0; background: var(--paper-2); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.chip-active button:hover { background: var(--clay); color: #fff; }
.chip-clear { border: 0; background: none; font: inherit; font-weight: 600; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sk { display: grid; gap: 14px; }
.sk-card { border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.sk-shade, .sk-line { background: linear-gradient(90deg, var(--paper-2) 25%, var(--line) 50%, var(--paper-2) 75%); background-size: 400% 100%; animation: sheen 1.4s linear infinite; }
.sk-shade { aspect-ratio: 4 / 3; }
.sk-body { padding: 14px 16px 18px; display: grid; gap: 9px; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-line.w55 { width: 55%; }
@keyframes sheen { to { background-position: -200% 0; } }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; }
.footer-base a { color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease), visibility 0.4s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; font-size: 0.9rem; }
  .cities { grid-template-columns: repeat(3, 1fr); }
  .city:nth-child(even) { margin-top: 0; }
  .sp-body.with-map { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
  .sp-body .filters { display: none; }
  .sp-body .filters.open { display: grid; }
  .sp-body:has(.filters.open) { grid-template-columns: minmax(0, 1fr); }
  .only-sm { display: inline-flex; }
  .sp-body { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: inline-block; }
  .nav.open { background: var(--paper); color: var(--text); height: auto; box-shadow: var(--shadow-lg); }
  .nav.open .nav-in { flex-wrap: wrap; padding-block: 14px; }
  .nav.open .nav-links { display: grid; order: 3; width: 100%; grid-template-columns: 1fr 1fr; padding-bottom: 8px; }
  .nav.open .nav-links a { padding: 12px; background: var(--card); }
  .nav-actions { margin-left: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); align-items: end; padding-top: calc(var(--nav-h) + 38vh); }
  .hero-float { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 17, 23, 0.35) 0%, rgba(12, 17, 23, 0.85) 60%); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .projects { grid-template-columns: 1fr; grid-template-rows: 360px 240px 240px; }
  .project-lg { grid-row: auto; }
  .tools, .cta, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-art { min-height: 260px; }
  .d-grid { grid-template-columns: minmax(0, 1fr); }
  .d-side { position: static; }
  .post-preview { position: static; max-width: 360px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .sp-body.with-map { grid-template-columns: minmax(0, 1fr); }
  .with-map .map-pane { position: relative; top: 0; height: 60vh; order: -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav-in { gap: 8px; }
  .nav-actions { gap: 2px; }
  .nav-saved { padding: 0 8px; }
  .nav-account { padding: 0 10px; height: 38px; font-size: 0.82rem; }
  .nav-post { padding: 0 12px; height: 38px; font-size: 0.82rem; }
  .nav-post b, .nav-post span { display: none; }
  .logo { font-size: 1.2rem; gap: 8px; }
  .mark { width: 30px; height: 30px; }
  .hero { min-height: auto; }
  .hero-in { padding-block: calc(var(--nav-h) + 230px) 40px; }
  .search-fields { flex-direction: column; }
  .f + .f::before { display: none; }
  .f { border-bottom: 1px solid var(--line); border-radius: 0; }
  .go { justify-content: center; height: 50px; margin-top: 6px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .t0 { grid-row: span 2; }
  .t1 { grid-column: span 2; }
  .tile-in { left: 14px; bottom: 12px; right: 12px; }
  .tile-in b { font-size: 1.1rem; }
  .tile-in em, .tile-go { display: none; }
  .row { grid-auto-columns: 80%; }
  .cities { grid-template-columns: 1fr 1fr; gap: 12px; }
  .emi-out { grid-template-columns: 1fr 1fr; }
  .emi-main { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .g0 { grid-column: span 2; grid-row: auto; }
  .g3, .g4 { display: none; }
  .cols { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .post-art { display: none; }
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; height: 60px; }
  .line .btn { grid-column: span 2; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .pulse li { grid-template-columns: 1fr auto; }
  .pulse-bar { grid-column: span 2; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------------- dark mode */
:root[data-theme='dark'] {
  --paper: #11151b;
  --paper-2: #171e26;
  --card: #1a212a;
  --line: #2a333e;
  --text: #edf1f5;
  --muted: #9aa5b1;
  --input-bg: #10161d;
  --glass: rgba(17, 21, 27, 0.88);
  --float: rgba(26, 33, 42, 0.95);
  --map-filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.5);
  --art-blend: normal;
  --sage: #74c9a7;
  --clay: #ef9a77;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}
:root[data-theme='dark'] body { background: var(--paper); }
:root[data-theme='dark'] .card, :root[data-theme='dark'] .tool, :root[data-theme='dark'] .side-card,
:root[data-theme='dark'] .reviews figure, :root[data-theme='dark'] .nearby li, :root[data-theme='dark'] .line,
:root[data-theme='dark'] .post-form fieldset, :root[data-theme='dark'] .post-head { border: 1px solid var(--line); }
:root[data-theme='dark'] .facts { border-top-color: var(--line); }
:root[data-theme='dark'] .kf { background: var(--line); border-color: var(--line); }
:root[data-theme='dark'] .kf div { background: var(--card); }
:root[data-theme='dark'] .host { background: var(--paper-2); }
:root[data-theme='dark'] .band-paper { background: #141a21; }
:root[data-theme='dark'] .cat.on, :root[data-theme='dark'] .cat:hover { background: var(--card); }
:root[data-theme='dark'] .chip span, :root[data-theme='dark'] .pill { background: var(--card); }
:root[data-theme='dark'] .chip input:checked + span, :root[data-theme='dark'] .pill.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
:root[data-theme='dark'] .switch span { background: #2a333e; }
:root[data-theme='dark'] .card-media, :root[data-theme='dark'] .g, :root[data-theme='dark'] #map, :root[data-theme='dark'] .d-map { background: var(--paper-2); }
:root[data-theme='dark'] .card-media img, :root[data-theme='dark'] .g img, :root[data-theme='dark'] .tile img,
:root[data-theme='dark'] .city-img img, :root[data-theme='dark'] .project img, :root[data-theme='dark'] .line img { filter: brightness(0.88); }
:root[data-theme='dark'] .emi-bar { background: #3a2a24; }
:root[data-theme='dark'] .pulse-bar { background: #222b35; }
:root[data-theme='dark'] .empty-sm { border-color: var(--line); }
:root[data-theme='dark'] .signin-nudge { background: #1d2530; }
:root[data-theme='dark'] .pop .leaflet-popup-content-wrapper, :root[data-theme='dark'] .pop .leaflet-popup-tip { background: var(--card); color: var(--text); }
:root[data-theme='dark'] .mini { color: var(--text) !important; }
:root[data-theme='dark'] .leaflet-control-zoom a { background: var(--card); color: var(--text); border-color: var(--line); }
/* ink-on-ink needs a seam in dark mode */
:root[data-theme='dark'] .cta { background: #1a222c; }
:root[data-theme='dark'] .band-ink { background: #0e1319; }
:root[data-theme='dark'] .footer { border-top: 1px solid var(--line); }
.map-loading { display: grid; place-items: center; height: 100%; min-height: 160px; color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------- the header, on a phone
   Logo, saved, theme, sign-in, post and the menu button come to roughly 420px of controls
   inside a 343px content box: "Sign in" wrapped onto two lines and the burger sat eight
   pixels off the right edge of the screen, on every route. The bar keeps the logo, the one
   action that earns money, and the way into the menu. The other three move inside the menu,
   where there is room for them — display:contents above this width leaves the desktop
   header exactly as it was. */
.nav-extras { display: contents; }

@media (max-width: 620px) {
  .nav-extras { display: none; }
  /* Opened, they join the row — but ahead of the menu button, so the way to close the menu
     stays where a thumb last touched it rather than being squeezed into the middle. */
  .nav.open .nav-extras { display: flex; order: -1; gap: 8px; align-items: center; }
  .nav.open .nav-account { display: inline-flex; }
  /* No wrapping: the five of them come to about 285px and the row has 343, so letting it
     wrap only split them across two lines and left the menu button stranded mid-row. */
  .nav.open .nav-actions { flex-wrap: nowrap; }
  .nav-in { gap: 10px; }
  .logo { font-size: 1.22rem; min-height: 44px; }
  .mark { width: 32px; height: 32px; }
  .nav-post span { display: none; }
  .nav-post { padding-inline: 14px; }

  /* A 32px arrow on a photo is a miss waiting to happen. */
  .slide { width: 40px; height: 40px; }
  .heart { width: 42px; height: 42px; }
}
