/* ============================================================
   Bharat Darshan — tourism explorer
   Design: warm cream + deep teal + terracotta
   ============================================================ */

:root {
  --bg: #fbf8f2;
  --bg-soft: #f5eee2;
  --surface: #ffffff;
  --surface-2: #f7f1e7;
  --ink: #15232b;
  --ink-soft: #3d4c55;
  --muted: #5f6e77;
  --line: #e9e1d3;
  --brand: #0d6e6e;
  --brand-2: #118079;
  --brand-ink: #074b4b;
  --accent: #c34d26;
  --accent-soft: #fbe9e1;
  --on-brand: #ffffff;
  --on-accent: #ffffff;
  --gold: #d9a13b;
  --shadow-sm: 0 2px 8px rgba(21, 35, 43, .06);
  --shadow: 0 14px 34px -16px rgba(21, 35, 43, .28);
  --shadow-lg: 0 40px 80px -30px rgba(8, 30, 34, .45);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1280px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hi: "Noto Sans Devanagari", var(--font);
}

[data-theme="dark"] {
  --bg: #0d1417;
  --bg-soft: #121c20;
  --surface: #162127;
  --surface-2: #1c2a30;
  --ink: #e9f0f3;
  --ink-soft: #c3d0d6;
  --muted: #8fa1a9;
  --line: #26363d;
  --brand: #2ba4a0;
  --brand-2: #37bdb5;
  --brand-ink: #8fe3dc;
  --accent: #f18a63;
  --accent-soft: #33231d;
  --gold: #e6b45c;
  --on-brand: #04211f;
  --on-accent: #2b1206;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  overflow-anchor: none;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--surface); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ---------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(145deg, var(--brand), #0a4f52);
  display: grid; place-items: center;
  color: #fff; font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow-sm);
}
.brand-text strong {
  display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  font-family: var(--font-hi);
}
.brand-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------ language switcher */
.lang-switch { position: relative; }
.lang-btn {
  height: 40px; min-width: 40px; padding: 0 9px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.lang-btn:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); }
.lang-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang-current { line-height: 1; }
.lang-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  min-width: 176px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang-pop[hidden] { display: none; }
.lang-pop button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); text-align: left;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-pop button:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.lang-pop button.is-active {
  color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent);
}
.lang-pop small { color: var(--muted); font-size: 10px; font-weight: 500; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
  position: relative;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); }

.hub-link {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 9px 12px; border-radius: 10px;
}
.hub-link:hover { background: var(--surface-2); color: var(--ink); }

/* ---------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(217, 161, 59, .34), transparent 62%),
    radial-gradient(700px 380px at 4% 110%, rgba(17, 128, 121, .5), transparent 60%),
    linear-gradient(135deg, #082f33 0%, #0b4a4c 46%, #0d6e6e 100%);
  color: #fff;
  padding: 46px 20px 118px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #ffe6b8; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-hi);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 800;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: #ffd79a; }
.hero p.lede {
  margin-top: 14px; max-width: 58ch;
  color: #cfeeee; font-size: clamp(14px, 1.6vw, 17px);
}
.hero p.lede b { color: #fff; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #ffd79a; color: #3b2607; box-shadow: 0 12px 26px -14px rgba(255, 215, 154, .9); }
.btn-primary:hover { background: #ffe3b8; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.26); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* search card overlapping hero */
.search-dock {
  position: relative; z-index: 2;
  max-width: var(--max); margin: -74px auto 0;
  padding: 0 20px;
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.search-field {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.search-field:focus-within { border-color: var(--brand); background: var(--surface); }
.search-field svg { flex: none; color: var(--muted); }
.search-field input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: 15px; font-weight: 500;
}
.search-field input::placeholder { color: var(--muted); font-weight: 400; }
.search-field kbd {
  font-family: inherit; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 6px; background: var(--surface);
}
.search-stats {
  display: flex; gap: 18px; padding: 0 6px; white-space: nowrap;
}
.search-stats div { text-align: left; }
.search-stats b { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.search-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------- toolbar */

/* Normal document flow: state bar upar ki UI ke saath hi upar chala jata
   hai aur card content use dhakke se upar dhakel deta hai (koi overlay
   nahi). Upar se nikalte waqt sirf dhire-dhire fade hota hai. */
.toolbar-wrap {
  position: relative;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
  opacity: var(--fadeTop, 1);
}
.toolbar {
  max-width: var(--max); margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.segmented {
  display: flex; gap: 4px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 13px;
}
.segmented button {
  padding: 8px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm);
}
.segmented button:hover { color: var(--ink); }
.segmented {
  max-width: 100%; overflow-x: auto; scrollbar-width: thin;
  scroll-behavior: smooth;
}
.state-select-wrap select { min-width: 190px; max-width: 260px; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  padding: 11px 38px 11px 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
}
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.toolbar-spacer { flex: 1; }

.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.view-toggle button {
  padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.view-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

.chips-scroll {
  max-width: var(--max); margin: 0 auto;
  padding: 0 20px 12px;
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .n { font-size: 11px; color: var(--muted); font-weight: 700; }
.chip[aria-pressed="true"] .n { color: color-mix(in srgb, var(--bg) 74%, transparent); }

/* subtle extra filters — default band */}
.more-filters { max-width: var(--max); margin: 0 auto; padding: 0 20px 10px; }
.more-filters summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--muted); list-style: none;
  padding: 4px 0;
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: '▾'; font-size: 10px; transition: transform .15s ease; }
.more-filters[open] summary::after { transform: rotate(180deg); }
.more-filters summary:hover { color: var(--brand); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 9px; }
.tag-chip {
  padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
}
.tag-chip:hover { border-color: var(--brand); color: var(--brand); }
.tag-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tag-chip .n { opacity: .7; margin-left: 4px; font-size: 10.5px; }

/* Scroll push + fade:
   Koi sticky ya overlay nahi. Cards ka content normal flow me hi upar ki UI
   ko dhakke se upar dhakel deta hai (jaise WSJ / normal page scroll).
   Upar ki UI sticky header ke neeche jaate waqt hi dhire-dhire fade hoti
   hai — fade sirf itna ki woh header ke neeche "gayab" lagne lage, layout
   me apni jagah rakhti hai. Scroll wapas karne par 100% wapas. */
#topShell,
#filterShell {
  opacity: var(--fadeTop, 1);
}
#filterShell {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
#resultsShell {
  position: relative;
  background: var(--bg);
}

/* ---------------------------------------------------------- content */

main { max-width: var(--max); margin: 0 auto; padding: 26px 20px 60px; }

.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.results-head h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.results-head h2 span { color: var(--muted); font-weight: 500; font-size: 15px; letter-spacing: 0; }
.results-count { font-size: 13px; color: var(--muted); }
.results-count b { color: var(--ink); }
.global-note { color: var(--accent); font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
  animation: rise .45s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

.card-media {
  position: relative; aspect-ratio: 4 / 2.85; overflow: hidden;
  background: linear-gradient(140deg, #0d6e6e, #0a3d40);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card-media img { transform: scale(1.05); }
.media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 46px; opacity: .9;
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 22, 24, .55), transparent 46%);
  pointer-events: none;
}
.badge-cat {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: rgba(9, 34, 36, .62);
  border: 1px solid rgba(255,255,255,.24);
  padding: 5px 10px; border-radius: 99px;
  backdrop-filter: blur(6px);
}

.dist-tag {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.card-body p {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.card-foot .best { display: inline-flex; align-items: center; gap: 5px; }
.foot-right { display: inline-flex; align-items: center; gap: 9px; }
.details-link { font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.details-link:hover { gap: 8px; }
.distance-pill { color: var(--accent); font-weight: 700; }

/* skeleton */
.skeleton {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.skeleton .sk-img { height: 190px; }
.skeleton .sk-line { height: 12px; margin: 12px 16px; border-radius: 6px; }
.skeleton .sk-line.w60 { width: 60%; }
.skeleton .sk-img, .skeleton .sk-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--bg-soft) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* empty */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 70px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.empty-state .big { font-size: 44px; margin-bottom: 10px; }
.empty-state h3 { font-size: 19px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.empty-state .btn { margin-top: 16px; background: var(--brand); color: var(--on-brand); }

/* ---------------------------------------------------------- map */

.map-shell { display: none; }
.map-shell.is-active { display: block; }
#map {
  height: min(72vh, 720px); min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 14px 2px 0; font-size: 12px; color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* leaflet pin */
.pin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.leaflet-popup-content { margin: 10px 12px; width: 210px !important; }
.pop-card img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.pop-card h4 { font-size: 14px; line-height: 1.25; margin-bottom: 3px; }
.pop-card p { font-size: 11.5px; color: #667; margin-bottom: 7px; }
.pop-card a {
  font-size: 12px; font-weight: 700; color: #0d6e6e;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ---------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 20, 23, .62);
  backdrop-filter: blur(6px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; z-index: 1;
  width: min(940px, 100%); max-height: min(88vh, 860px);
  background: var(--surface);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  /* minmax(0, 1fr) zaroori hai — warna content column apni poori height
     (881px) le leta hai aur modal ke andar detail scroll nahi hoti. */
  grid-template-rows: minmax(0, 1fr);
  animation: pop .28s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.modal-media { position: relative; align-self: start; height: auto; min-height: 300px; background: #0a3d40; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; position: absolute; inset: 0; }
.modal-media .media-fallback { font-size: 68px; }
.modal-media .media-count {
  position: absolute; left: 12px; bottom: 46px; z-index: 2;
  background: rgba(8, 25, 28, .68); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
}
.gallery-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; gap: 5px; padding: 8px 10px; overflow-x: auto;
  background: linear-gradient(transparent, rgba(8, 25, 28, .72));
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip button {
  flex: none; width: 44px; height: 38px; border-radius: 7px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: rgba(255,255,255,.16);
}
.gallery-strip button[aria-pressed="true"] { border-color: #fff; }
.gallery-strip img { position: static; width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: #33444c;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.modal-content {
  padding: 26px 28px 24px;
  overflow-y: auto; overscroll-behavior: contain;
  min-height: 0;   /* grid child ko shrink hone do, tabhi scroll aayega */
}
.modal-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.pill.brand { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); border-color: transparent; }
.pill.auto { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--ink-soft); border-color: transparent; }
.auto-note {
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  border-left: 3px solid var(--gold); padding: 2px 0 2px 10px; margin: -6px 0 18px;
}
.new-pill {
  display: inline-block; vertical-align: middle;
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px; margin-left: 6px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.modal-content h2 { font-size: clamp(23px, 3vw, 31px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 8px; }
.modal-content .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.modal-content .desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.modal-section { margin-bottom: 18px; }
.modal-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.hl-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hl-list li {
  font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 9px;
}
.local-name { font-size: 12.5px; color: var(--muted); margin: -8px 0 14px; }
.local-name b { color: var(--ink-soft); font-family: var(--font-hi); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag-list li {
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  padding: 4px 9px; border-radius: 99px;
}
.more-links { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.more-links summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); list-style: none;
}
.more-links summary::-webkit-details-marker { display: none; }
.more-links summary::after { content: ' →'; }
.more-links .link-row { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; }
.more-links a {
  font-size: 11.5px; font-weight: 600; color: var(--brand);
  text-decoration: underline; text-underline-offset: 2px;
}
.more-links a:last-child { color: var(--accent); }
.best-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.nearby-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.nearby-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.nearby-item .ni-open {
  display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 12px; text-align: left; cursor: pointer;
  background: transparent; border: 0; font: inherit; color: inherit;
}
.nearby-item .ni-open:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.nearby-item .ni-main {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; flex: 1; min-width: 0;
}
.nearby-item > .ni-tag { margin-right: 12px; }
.nearby-item .ni-open .ni-main { padding: 0; }
.nearby-item b, .nearby-item a {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nearby-item a { text-decoration: underline; text-underline-offset: 2px; color: var(--brand); }
.nearby-item .ni-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.nearby-item .ni-tag {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 99px; padding: 3px 8px; white-space: nowrap;
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.modal-actions .btn { padding: 10px 15px; font-size: 13px; }
.btn-solid { background: var(--brand); color: var(--on-brand); }
.btn-solid:hover { background: var(--brand-2); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.credit { font-size: 11px; color: var(--muted); margin-top: 16px; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------- footer + toast */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 34px 20px 40px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-inner strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--brand); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .modal-card { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-media { height: 220px; }
  .modal-media img { position: absolute; height: 100%; }
  .search-card { grid-template-columns: 1fr; }
  .search-stats { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
  .toolbar-wrap { position: static; margin-top: 16px; }
  /* Chhote screen par fade nahi - bilkul normal scroll. */
  #topShell, #filterShell, .toolbar-wrap { opacity: 1; }
  .toolbar { padding: 10px 16px; }
  .toolbar-spacer { display: none; }
  .view-toggle { margin-left: auto; }
}

@media (max-width: 600px) {
  .header-inner { padding: 10px 14px; gap: 8px; }
  .brand-text span { display: none; }
  .hub-link { display: none; }
  .hero { padding: 34px 16px 100px; }
  .hero h1 { max-width: 100%; }
  .search-dock { padding: 0 14px; }
  .search-card { padding: 12px; border-radius: 18px; }
  .toolbar { gap: 8px; }
  .segmented button { padding: 7px 11px; font-size: 12px; }
  .chips-scroll { padding: 0 14px 10px; }
  .more-filters { padding: 0 14px 10px; }
  main { padding: 20px 14px 50px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 11px 12px 12px; }
  .card-body h3 { font-size: 14.5px; }
  .card-body p { font-size: 12px; -webkit-line-clamp: 2; }
  .card-foot { font-size: 11px; flex-wrap: wrap; gap: 6px; }
  .badge-cat { font-size: 9.5px; padding: 4px 8px; left: 9px; top: 9px; }
  
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  #topShell, #filterShell, .toolbar-wrap { opacity: 1; }
}

/* print */
@media print {
  .site-header, .hero-actions, .toolbar-wrap, .search-dock, .site-footer, 