/* ============================================================
   CardShow Finder — styles
   Light theme matching cardcapsule.com:
     white background, soft gray sections, steel-blue accent,
     black buttons, Fjalla One headings + Nunito body.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f2f4f5;
  --surface: #ffffff;
  --surface-2: #f7f8f9;
  --border: #e2e6ea;
  --border-soft: #eceff2;

  --text: #111111;
  --text-dim: #51606e;
  --text-faint: #8a97a3;

  --accent: #456e8e;        /* Card Capsule steel blue */
  --accent-dark: #34556e;
  --accent-soft: #e7eef3;
  --ink: #111111;           /* black buttons */
  --gold: #c8881f;
  --green: #2f8f6b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow: 0 8px 24px -14px rgba(17, 34, 51, 0.28);
  --shadow-lg: 0 20px 48px -20px rgba(17, 34, 51, 0.30);

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, .logo-text, .stat-num, .date-badge .day, .show-name {
  font-family: "Fjalla One", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* primary = black, like Card Capsule's Shop Now */
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5); }

/* accent = steel blue */
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: #cfd6dd; }

.btn-light {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}
.btn-light:hover { background: var(--surface-2); }

.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-divider { width: 1px; height: 26px; background: var(--border); }
.logo-text {
  font-family: "Fjalla One", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
}

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; transition: color 0.15s ease; }
.header-nav a:hover { color: var(--accent); }
.header-nav .btn-ghost { color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 60px 0 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, var(--accent-soft), transparent 55%),
    var(--bg);
}
.hero-glow { display: none; }
.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #cfe0ea;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(69, 110, 142, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(69, 110, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 110, 142, 0); }
}

.hero-title {
  font-family: "Anton", "Fjalla One", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.gradient-text { color: var(--accent); }
.hero-subtitle {
  max-width: 580px;
  margin: 0 auto 30px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

/* ===== Search bar ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-icon { position: absolute; left: 14px; color: var(--text-faint); }
.search-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 12px 12px 12px 44px;
}
.search-field input::placeholder { color: var(--text-faint); }

.search-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.search-select.small { padding: 10px 14px; }
.search-select:focus { border-color: var(--accent); }

/* ===== Stats ===== */
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 38px;
  margin-top: 36px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: 2.1rem;
  color: var(--accent);
}
.stat-label { font-size: 0.85rem; color: var(--text-faint); font-weight: 600; }

/* ===== Map ===== */
.map-section { padding: 8px 0 16px; }
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
#map {
  width: 100%;
  height: 420px;
  background: var(--bg-soft);
  z-index: 1;
}
.map-overlay {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-count {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  box-shadow: var(--shadow);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 14px 16px; font-family: "Nunito", sans-serif; }
.map-popup-name { font-family: "Fjalla One", sans-serif; font-size: 1.02rem; margin-bottom: 4px; color: var(--text); }
.map-popup-meta { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 3px; }
.map-popup-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--ink);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* custom map marker pin */
.pin {
  width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
}
.pin.is-free { background: var(--green); }
.pin.is-featured { background: var(--gold); }
.pin.is-new { background: #7c5cff; }
.pin span { transform: rotate(45deg); font-size: 12px; }

/* Cluster bubbles: one neutral brand color (not a legend category) + count */
.cluster-marker { background: transparent; }
.cluster-badge {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 6px rgba(69, 110, 142, 0.22);
}
.cluster-badge:hover { background: var(--accent-dark); }

/* ===== Map legend ===== */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.legend-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.legend-title {
  font-family: "Fjalla One", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-right: 2px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}
.legend-pin {
  width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.legend-pin.pin-featured { background: var(--gold); }
.legend-pin.pin-new { background: #7c5cff; }
.legend-pin.pin-free { background: var(--green); }
.legend-pin.pin-paid { background: var(--accent); }
.legend-emoji { font-size: 0.95rem; line-height: 1; }

/* ===== Sections ===== */
.section { padding: 48px 0; }
.section-head { margin-bottom: 26px; }
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); text-transform: uppercase; }
.section-sub { color: var(--text-dim); margin-top: 4px; }

/* ===== Categories ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}
.category-card:hover { transform: translateY(-3px); border-color: #cfd6dd; box-shadow: var(--shadow); }
.category-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.cat-emoji {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.cat-info { display: flex; flex-direction: column; }
.cat-name { font-weight: 700; font-size: 0.95rem; }
.cat-count { font-size: 0.8rem; color: var(--text-faint); }

/* ===== Controls / chips ===== */
.controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--text); border-color: #cfd6dd; }
.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  border: 1px solid #cfe0ea;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-weight: 700; font-family: inherit; font-size: 0.9rem;
}
.link-btn:hover { text-decoration: underline; }

/* ===== Shows grid ===== */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

.show-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.show-card:hover {
  transform: translateY(-4px);
  border-color: #cfd6dd;
  box-shadow: var(--shadow);
}
.show-card.is-featured { border-color: rgba(200, 136, 31, 0.5); }
.show-card.is-new { border-color: rgba(124, 92, 255, 0.55); box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.18); }

.show-top {
  display: flex;
  gap: 14px;
  padding: 18px 18px 14px;
}
.date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.date-badge .month {
  display: block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 0;
}
.date-badge .day {
  display: block;
  font-size: 1.55rem;
  padding: 6px 0;
  background: var(--surface-2);
  color: var(--text);
}
.show-headings { flex: 1; min-width: 0; }
.show-name {
  font-size: 1.18rem;
  line-height: 1.18;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.show-daterange { font-size: 0.82rem; color: var(--text-faint); font-weight: 600; }

/* ===== Star rating ===== */
.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.stars { display: inline-flex; letter-spacing: 1px; line-height: 1; }
.star { font-size: 0.95rem; color: #d7dde3; }
.star.full { color: var(--gold); }
.star.half {
  background: linear-gradient(90deg, var(--gold) 50%, #d7dde3 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-num { font-weight: 800; font-size: 0.85rem; color: var(--text); }
.rating-count { font-size: 0.8rem; color: var(--text-faint); }
.rating-row.light .star { color: rgba(255, 255, 255, 0.45); }
.rating-row.light .star.full { color: #ffd86b; }
.rating-row.light .rating-num { color: #fff; }
.rating-row.light .rating-count { color: rgba(255, 255, 255, 0.8); }
.rating-new {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.rating-row.light .rating-new { color: #fff; background: rgba(255,255,255,0.22); }

.featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(200, 136, 31, 0.12);
  color: var(--gold);
  font-family: "Nunito", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 7px;
}

.new-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(124, 92, 255, 0.12);
  color: #6d4bd0;
  font-family: "Nunito", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 7px;
}

.show-meta {
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.meta-row svg { color: var(--accent); flex-shrink: 0; }

.show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 16px;
  margin-top: auto;
}
.tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag-free { background: rgba(47, 143, 107, 0.1); border-color: rgba(47, 143, 107, 0.3); color: var(--green); }
.tag-paid { background: rgba(200, 136, 31, 0.1); border-color: rgba(200, 136, 31, 0.3); color: var(--gold); }
.tag-general { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); }
.tag-focus { background: var(--accent-soft); border-color: #cfe0ea; color: var(--accent-dark); }

.show-foot {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.show-foot .btn { flex: 1; padding: 9px 14px; font-size: 0.85rem; }

/* ===== Load more ===== */
.load-more-wrap { display: flex; justify-content: center; padding: 28px 0 4px; }
.load-more-wrap[hidden] { display: none; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-emoji { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 6px; color: var(--text); }
.empty-state p { margin-bottom: 18px; }

/* ===== Submit CTA ===== */
.submit-cta { padding-top: 20px; }
.submit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
}
.submit-card .section-title { color: #fff; }
.submit-card .section-sub { color: rgba(255, 255, 255, 0.85); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 30px 0;
  margin-top: 40px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-note { color: var(--text-faint); font-size: 0.85rem; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 34, 51, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(17, 34, 51, 0.18);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.modal-close:hover { background: #fff; color: var(--accent); }
.modal-close:active { transform: scale(0.93); }

.modal-h { font-size: 1.6rem; margin-bottom: 8px; }
.modal-p { color: var(--text-dim); margin-bottom: 22px; font-size: 0.95rem; }

.modal-hero {
  margin: -32px -32px 20px;
  padding: 28px 32px;
  background: var(--accent);
  color: #fff;
}
.modal-hero h3 { font-size: 1.7rem; margin-bottom: 4px; }
.modal-hero .modal-when { color: rgba(255, 255, 255, 0.9); font-weight: 700; }

.modal-desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-soft, #444);
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border, #e6e6e6);
}

.detail-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.detail-item { display: flex; gap: 12px; align-items: flex-start; }
.detail-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.detail-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.detail-value { font-size: 0.98rem; }
.detail-link { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.detail-link:hover { border-bottom-color: var(--accent); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ===== Reviews (in detail modal) ===== */
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.reviews-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reviews-head h4 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reviews-avg { font-size: 0.85rem; font-weight: 700; color: var(--text-dim); display: inline-flex; align-items: center; gap: 5px; }
.reviews-note { font-size: 0.8rem; color: var(--text-faint); margin: 6px 0 14px; }
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.reviews-empty { font-size: 0.9rem; color: var(--text-faint); }
.review-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.review-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.review-who { font-weight: 800; font-size: 0.88rem; color: var(--text); }
.review-date { font-size: 0.78rem; color: var(--text-faint); }
.review-comment { font-size: 0.92rem; line-height: 1.5; color: var(--text-dim); }

.review-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.review-stars-input { display: inline-flex; gap: 4px; }
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: #d7dde3;
  padding: 0;
  transition: color 0.1s ease, transform 0.1s ease;
}
.star-btn:hover { transform: scale(1.12); }
.star-btn.on, .star-btn.hover { color: var(--gold); }
.review-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
}
.review-input:focus { border-color: var(--accent); }
.review-form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.review-msg { font-weight: 700; font-size: 0.9rem; margin: 0; }
.review-thanks { font-weight: 700; font-size: 0.95rem; color: var(--green); margin: 0; }

/* ===== Submit form ===== */
.submit-form { display: flex; flex-direction: column; gap: 14px; }
.submit-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-dim); font-weight: 700; }
.submit-form input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
}
.submit-form input:focus { border-color: var(--accent); }
.submit-form .btn { margin-top: 6px; }
.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }
.form-focus {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.form-focus legend { font-size: 0.78rem; color: var(--text-faint); font-weight: 700; padding: 0 4px; }
.form-focus .cb {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.form-focus .cb input { width: auto; padding: 0; }
.submit-msg { font-weight: 700; font-size: 0.92rem; margin: 0; }
@media (max-width: 520px) { .form-row { flex-direction: column; gap: 14px; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.5s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .header-nav a:not(.btn) { display: none; }

  .hero { padding: 36px 0 28px; }
  .hero-badge { margin-bottom: 16px; }
  .hero-title { white-space: normal; }     /* wrap instead of clipping on narrow screens */
  .hero-subtitle { margin-bottom: 22px; }

  .search-bar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .search-select, .search-bar .btn { flex: 1; }

  /* Stats: one compact row so the map stays high on the page */
  .stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: 20px;
  }
  .stat { flex: 1 1 0; min-width: 0; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.6rem; line-height: 1.2; margin-top: 2px; }

  #map { height: 340px; }

  /* Legend: compact and centered so it doesn't look ragged */
  .map-legend { gap: 9px 14px; padding: 10px 12px; justify-content: center; }
  .legend-item { font-size: 0.78rem; }

  .section-head.row { align-items: flex-start; }
  .controls { width: 100%; }

  /* Quick-filter chips: one swipeable row instead of wrapping to two lines */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  .shows-grid { grid-template-columns: 1fr; }
  .submit-card { flex-direction: column; align-items: flex-start; }

  /* Full-screen sheet on phones. The OVERLAY scrolls (not the inner box),
     which avoids the iOS "100vh hides content behind the toolbar" trap. */
  .modal-overlay {
    padding: 0;
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;          /* honors the phone's real visible height */
    max-height: none;
    overflow: visible;           /* let the overlay do the scrolling */
    border-radius: 0;
    border: none;
    padding: 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .modal-hero { margin: -24px -24px 18px; padding: 22px 52px 22px 24px; }
  .modal-close {
    position: fixed;             /* stays put while the sheet scrolls */
    top: 14px; right: 14px;
    width: 44px; height: 44px;   /* comfortable tap target */
    font-size: 1.9rem;
  }
}
