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

:root {
  --bg: #080608;
  --surface: rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.09);
  --text: #f5f0eb;
  --muted: rgba(245,240,235,0.5);
  --dim: rgba(245,240,235,0.25);
  --gold: #e8b84b;
  --gold-light: #f5cc70;
  --neon-pink: #ff4d8d;
  --neon-blue: #4db8ff;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 1rem);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 65dvh;
  min-height: 340px;
  max-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,6,8,0.05) 0%,
    rgba(8,6,8,0.2) 30%,
    rgba(8,6,8,0.75) 65%,
    rgba(8,6,8,0.97) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 1.75rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.hero-title {
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 0.4rem;
}

.hero-title-sub {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-pill {
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

/* ── Tab nav ── */
.tab-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(8,6,8,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-nav-inner { display: flex; height: 100%; align-items: center; }

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dim);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
}

.tab-btn.active { color: var(--gold); }
.tab-icon { font-size: 1.3rem; line-height: 1; }
.tab-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Content ── */
.content { padding: 1.5rem 0 2rem; min-height: 50dvh; }

/* ── Section headers ── */
.section-header { padding: 0 1.25rem; margin-bottom: 1rem; }
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ── Bar cards (big scroll) ── */
.scroll-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.25rem 1.25rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.scroll-row::-webkit-scrollbar { display: none; }

.bar-card {
  position: relative;
  flex: 0 0 270px;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--border);
}

.bar-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bar-card:hover img { transform: scale(1.04); }

.bar-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,6,8,0.97) 0%, rgba(8,6,8,0.4) 55%, transparent 100%);
}

.bar-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
}

.bar-card-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-free  { background: rgba(74,158,107,0.25); color: #6ee09b; border: 1px solid rgba(74,158,107,0.3); }
.badge-floors { background: rgba(232,184,75,0.15); color: var(--gold); border: 1px solid rgba(232,184,75,0.25); }
.badge-cover { background: rgba(255,77,141,0.15); color: #ff8cb5; border: 1px solid rgba(255,77,141,0.25); }

.bar-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.bar-card-tag {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}

.save-btn {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(8,6,8,0.65);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.save-btn.saved { color: #e05555; }

/* ── Bar list (vertical for bars tab) ── */
.bar-list { display: flex; flex-direction: column; }

.bar-list-item {
  display: flex;
  gap: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bar-list-item:first-child { border-top: 1px solid var(--border); }
.bar-list-item:active { background: var(--surface); }

.bar-list-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.bar-list-body {
  flex: 1;
  padding: 0.85rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.bar-list-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.bar-list-tag {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

.bar-list-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.bar-list-save {
  padding: 1rem 0.85rem;
  font-size: 1rem;
  color: var(--dim);
  cursor: pointer;
  border: none;
  background: none;
  flex-shrink: 0;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
}
.bar-list-save.saved { color: #e05555; }

/* ── Crawl timeline ── */
.crawl-intro {
  padding: 0 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.crawl-timeline { padding: 0 1.25rem; display: flex; flex-direction: column; gap: 0; }

.crawl-stop {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.crawl-stop::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.crawl-stop:last-child::before { display: none; }

.crawl-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #080608;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.crawl-stop-content { flex: 1; min-width: 0; }

.crawl-stop-time {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.crawl-stop-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.crawl-stop-why {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.crawl-stop-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Tips grid ── */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 1.25rem;
}

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.tip-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.tip-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.tip-body { font-size: 0.73rem; color: var(--muted); line-height: 1.5; }

/* ── Food cards ── */
.food-list { display: flex; flex-direction: column; }

.food-item {
  display: flex;
  gap: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.food-item:first-child { border-top: 1px solid var(--border); }
.food-item:active { background: var(--surface); }

.food-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.food-body {
  flex: 1;
  padding: 0.8rem;
  min-width: 0;
}

.food-type {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.food-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.food-tag { font-size: 0.7rem; color: var(--muted); }

/* ── Saved ── */
.saved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 1.25rem;
}

.saved-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.saved-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.saved-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,6,8,0.92) 0%, transparent 60%);
}
.saved-item-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; }
.saved-item-type { font-size: 0.58rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.1rem; }
.saved-item-name { font-size: 0.8rem; font-weight: 700; color: #fff; line-height: 1.2; }
.saved-remove {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(8,6,8,0.75);
  border: none;
  color: #e05555;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.empty-state .icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }

/* ── Bottom sheet ── */
.sheet-backdrop {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sheet-backdrop.visible { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 301;
  background: #110e11;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--border);
  max-height: 92dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
}
.sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.sheet-hero-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.sheet-content { padding: 1.25rem 1.25rem 1.5rem; }

.sheet-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.sheet-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.sheet-tag { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

.sheet-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sheet-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.sheet-meta-icon { font-size: 0.95rem; }

.sheet-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.6rem;
  margin-top: 1.25rem;
  display: block;
}

.tip-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.tip-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.82rem; color: var(--muted); line-height: 1.45;
}
.tip-list li::before { content: '→'; color: var(--gold); flex-shrink: 0; }

.must-try-box {
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.must-try-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.sheet-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.btn-primary {
  flex: 1;
  padding: 0.9rem;
  background: var(--gold);
  color: #080608;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: background 0.15s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-secondary.saved { color: #e05555; border-color: rgba(224,85,85,0.3); }
