/* ============================================================
   SF-Kids Design System
   OpenTable-meets-Airbnb for kids activities in San Francisco
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --navy:       #0D1B2A;
  --navy2:      #1B2E42;
  --coral:      #FF6B47;
  --coral-lt:   #FFF1EE;
  --coral-dk:   #E55A38;
  --teal:       #0EA5A0;
  --teal-lt:    #E6F7F7;
  --yellow:     #FFB800;
  --yellow-lt:  #FFF8E6;
  --mid:        #374151;
  --muted:      #6B7280;
  --rule:       #E5E7EB;
  --light:      #F9FAFB;
  --white:      #FFFFFF;
  --success:    #10B981;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --nav-h:      68px;
  --max-w:      1120px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--mid);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); width: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; white-space: nowrap;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--coral);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 7px 14px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--navy); background: var(--light); text-decoration: none; }
.nav-links a.active { color: var(--coral); background: var(--coral-lt); }
.nav-cta {
  background: var(--coral); color: white !important;
  font-weight: 600 !important; border-radius: 8px;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--coral-dk) !important; }

/* ── Page wrapper ────────────────────────────────────────────── */
.page { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: none; transition: all 0.15s; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: var(--coral-dk); color: white; }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--rule); }
.btn-secondary:hover { border-color: var(--navy); background: var(--light); color: var(--navy); }
.btn-lg { font-size: 16px; padding: 16px 32px; border-radius: var(--radius); }
.btn-sm { font-size: 13px; padding: 8px 16px; }

/* ── Hero (landing) ──────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(255,107,71,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--coral);
  background: rgba(255,107,71,0.12); padding: 5px 14px;
  border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800; color: var(--white);
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 16px; max-width: 640px;
}
.hero h1 span { color: var(--coral); }
.hero-sub {
  font-size: 17px; color: #94A3B8;
  margin-bottom: 40px; max-width: 480px; line-height: 1.6;
}

/* ── Search bar ──────────────────────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: 16px;
  padding: 8px 8px 8px 0;
  display: flex; align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  gap: 0;
}
.search-field {
  display: flex; flex-direction: column;
  padding: 10px 20px; flex: 1; min-width: 0;
  border-right: 1px solid var(--rule);
}
.search-field:last-of-type { border-right: none; }
.search-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy); margin-bottom: 2px;
}
.search-field input, .search-field select {
  border: none; outline: none;
  font-size: 14px; font-weight: 500; color: var(--mid);
  background: transparent; font-family: inherit;
  width: 100%; cursor: pointer;
}
.search-field select option { color: var(--mid); }
.search-btn {
  background: var(--coral); color: white;
  border: none; border-radius: 12px;
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-right: 4px;
  transition: background 0.15s;
}
.search-btn:hover { background: var(--coral-dk); }

/* ── Category chips ──────────────────────────────────────────── */
.categories { padding: 48px 0 40px; }
.categories-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 24px;
  background: var(--light); border: 1.5px solid var(--rule);
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  text-decoration: none;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--coral-lt); border-color: var(--coral);
  color: var(--coral); text-decoration: none;
}
.cat-chip-icon { font-size: 16px; }

/* ── Section headings ────────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 20px; gap: 16px;
}
.section-head h2 {
  font-size: 22px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em;
}
.section-head a {
  font-size: 13px; font-weight: 600; color: var(--coral);
  white-space: nowrap;
}

/* ── Activity cards ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 52px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--rule); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  text-decoration: none;
}
.card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative;
}
.card-img-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--white); border-radius: 6px;
  padding: 3px 9px; font-size: 11px; font-weight: 700;
  color: var(--navy); box-shadow: var(--shadow-sm);
}
.card-img-save {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--coral);
}
.card-title {
  font-size: 15px; font-weight: 700; color: var(--navy);
  line-height: 1.3;
}
.card-provider { font-size: 12.5px; color: var(--muted); }
.card-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.card-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--muted);
  background: var(--light); padding: 3px 9px;
  border-radius: 20px;
}
.card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--rule);
}
.card-price { font-size: 15px; font-weight: 800; color: var(--navy); }
.card-price span { font-size: 12px; font-weight: 400; color: var(--muted); }
.card-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
}

/* ── How it works ────────────────────────────────────────────── */
.how-it-works {
  background: var(--light); border-radius: 20px;
  padding: 52px 48px; margin: 0 0 60px;
}
.hiw-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 28px;
}
.hiw-step { text-align: center; }
.hiw-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--coral); color: white;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.hiw-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 6px;
}
.hiw-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.hiw-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── Filters (results page) ──────────────────────────────────── */
.filters-bar {
  background: var(--white); border-bottom: 1px solid var(--rule);
  padding: 14px 0; position: sticky; top: var(--nav-h); z-index: 100;
}
.filters-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 24px;
  background: var(--white); border: 1.5px solid var(--rule);
  font-size: 13px; font-weight: 500; color: var(--mid);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: white; }
.filter-chip-arrow { font-size: 10px; }

/* ── Results layout ──────────────────────────────────────────── */
.results-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px; padding: 32px 0 60px;
  align-items: start;
}
.results-count {
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px;
}
.results-count strong { color: var(--navy); }
.map-panel {
  position: sticky; top: calc(var(--nav-h) + 56px);
  border-radius: var(--radius); border: 1px solid var(--rule);
  overflow: visible; height: 520px;
}
/* Inner map tile area clips to border-radius without blocking popups */
#sf-map { width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; }
#sf-map { width: 100%; height: 100%; }
.map-location-btn {
  position: absolute; bottom: 16px; right: 16px; z-index: 1000;
  background: var(--coral); color: #fff; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex; align-items: center; gap: 6px;
}
.map-location-btn:hover { background: #e55a38; }

/* Featured card */
.card-featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #F59E0B; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px;
  padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase;
}
.card[data-featured="true"] {
  border: 2px solid #F59E0B;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

/* ── Activity detail ─────────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px; padding: 40px 0 80px;
  align-items: start;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 10px; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 32px;
}
.gallery-main {
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}
.gallery-sm {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.gallery-sm:nth-child(3) { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); }
.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
}
.badge-age   { background: var(--yellow-lt); color: #92400E; }
.badge-price { background: var(--teal-lt); color: #065F46; }
.badge-time  { background: var(--coral-lt); color: #9A3412; }
.detail-title {
  font-size: 28px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.detail-provider {
  font-size: 14px; color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.detail-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin-bottom: 24px;
}
.stars { color: var(--yellow); letter-spacing: -2px; }
.detail-desc { font-size: 15px; color: var(--mid); line-height: 1.7; margin-bottom: 24px; }
.detail-list { list-style: none; padding: 0; margin-bottom: 24px; }
.detail-list li {
  padding: 8px 0 8px 24px; position: relative;
  font-size: 14px; color: var(--mid); border-bottom: 1px solid var(--rule);
}
.detail-list li:last-child { border-bottom: none; }
.detail-list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}

/* ── Reviews ─────────────────────────────────────────────────── */
.reviews { margin-top: 32px; }
.reviews h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.review-card {
  background: var(--light); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 12px;
}
.review-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 8px;
}
.reviewer { font-size: 13px; font-weight: 700; color: var(--navy); }
.review-date { font-size: 11.5px; color: var(--muted); }
.review-text { font-size: 13.5px; color: var(--mid); line-height: 1.55; }

/* ── Booking sidebar ─────────────────────────────────────────── */
.booking-card {
  background: var(--white); border: 1.5px solid var(--rule);
  border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow); position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.booking-card-price {
  font-size: 24px; font-weight: 800; color: var(--navy);
  margin-bottom: 20px;
}
.booking-card-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.form-group { margin-bottom: 14px; }
.form-label {
  font-size: 12px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px; display: block;
}
.form-input, .form-select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--mid);
  background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus { border-color: var(--coral); }
.time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.time-slot {
  padding: 9px; border: 1.5px solid var(--rule); border-radius: 8px;
  font-size: 13px; font-weight: 600; text-align: center;
  cursor: pointer; transition: all 0.15s; color: var(--navy);
  background: var(--white);
}
.time-slot:hover { border-color: var(--coral); color: var(--coral); }
.time-slot.selected { background: var(--coral); border-color: var(--coral); color: white; }
.booking-divider { border: none; border-top: 1px solid var(--rule); margin: 16px 0; }
.booking-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.booking-total.total { font-size: 15px; font-weight: 700; color: var(--navy); }

/* ── Booking steps ───────────────────────────────────────────── */
.step-indicator {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
  padding: 40px 0 32px;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.step.active { color: var(--navy); }
.step.done { color: var(--success); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--rule); color: var(--muted);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step.active .step-circle { background: var(--coral); color: white; }
.step.done .step-circle { background: var(--success); color: white; }
.step-line { width: 60px; height: 2px; background: var(--rule); margin: 0 4px; }
.step-line.done { background: var(--success); }
.booking-form {
  max-width: 540px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 16px; padding: 32px;
  box-shadow: var(--shadow);
}
.booking-form h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.booking-form .subtitle { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ── Confirmation ────────────────────────────────────────────── */
.confirm-wrap {
  min-height: 70vh; display: flex;
  align-items: center; justify-content: center; padding: 60px 24px;
}
.confirm-card {
  max-width: 520px; width: 100%; text-align: center;
}
.confirm-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: #D1FAE5; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.confirm-card h1 { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.confirm-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.confirm-ref {
  background: var(--light); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px 24px;
  margin: 24px 0; text-align: left;
}
.confirm-ref-row {
  display: flex; justify-content: space-between;
  font-size: 13.5px; padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.confirm-ref-row:last-child { border-bottom: none; }
.confirm-ref-row span:first-child { color: var(--muted); }
.confirm-ref-row span:last-child { font-weight: 600; color: var(--navy); }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: #94A3B8;
  padding: 52px 0 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { font-size: 20px; font-weight: 800; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; line-height: 1.55; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: white; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: #94A3B8; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px 0;
  border-top: 1px solid #1E3A5F;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 10px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-bar { flex-direction: column; padding: 12px; gap: 8px; border-radius: 16px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--rule); padding: 8px 12px; }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn { width: 100%; height: 48px; border-radius: 10px; margin: 4px 0 0; }
  .hiw-steps { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
  .map-panel { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
  .gallery-main { grid-row: auto; }
  .gallery-sm { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .booking-form { padding: 20px; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
