/* ── TOKENS ─────────────────────────────────────── */
:root {
  --amber:      #D4A017;
  --amber-bg:   #FDF5E0;
  --amber-txt:  #7A5A00;
  --sage:       #4A7C59;
  --sage-bg:    #EDF5F0;
  --sage-txt:   #2A5038;
  --navy:       #0A1628;
  --bg:         #FAFAFA;
  --card-bg:    #FFFFFF;
  --border:     #E4E8EF;
  --muted:      rgba(10,22,40,0.4);
  --radius-sm:  10px;
  --radius-md:  13px;
  --radius-lg:  16px;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── BASE ───────────────────────────────────────── */
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── APP SHELL ──────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 72px;
}

/* ── NAV BAR ────────────────────────────────────── */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(16px, env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
}

.nav-item i { font-size: 22px; color: var(--navy); opacity: 0.2; }
.nav-item i.nav-active { opacity: 1; }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); display: none; }
.nav-lbl { font-size: 9px; font-weight: 500; color: var(--navy); opacity: 0.3; }
.nav-lbl.nav-lbl-active { opacity: 1; }

/* ── TOPBAR / HEADER ────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 0;
}

.logo { display: flex; align-items: center; gap: 6px; }
.logo-mark {
  width: 26px; height: 26px;
  background: var(--navy);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.flag-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 9px 4px 5px;
}
.flag-pill-glass {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.flag-circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}
.flag-lang { font-size: 11px; font-weight: 600; color: var(--navy); }

.back-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.back-btn i { font-size: 15px; color: var(--navy); }

.back-btn-glass {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.back-btn-glass i { font-size: 15px; color: #fff; }
.back-btn-solid {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-btn-solid i { font-size: 15px; color: #0A1628; }

.pg-title { font-size: 14px; font-weight: 600; color: var(--navy); }

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

/* ── GREETING ───────────────────────────────────── */
.greeting-block { padding: 12px 18px 8px; }
.greeting { font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 2px; }
.subtext { font-size: 12px; color: var(--navy); opacity: 0.45; }
.app-hero-title { font-family: "Playfair Display", serif; font-size: 28px; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 4px; }
.app-hero-sub { font-size: 13px; color: rgba(10,22,40,0.45); }

/* ── SEARCH ─────────────────────────────────────── */
.search-bar {
  margin: 8px 18px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.search-ph { font-size: 13px; color: var(--navy); opacity: 0.3; }

/* ── SECTION HEADERS ────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 8px;
}
.sec-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.sec-link { font-size: 11px; color: var(--amber); font-weight: 500; }

/* ── CITY CARDS ─────────────────────────────────── */
.city-row {
  display: flex;
  gap: 10px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.city-row::-webkit-scrollbar { display: none; }

.city-card {
  min-width: 148px; height: 108px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  background: #B0A090;
}
.city-card-active { cursor: pointer; }

.city-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.78) 0%, transparent 60%);
}

.city-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--amber);
  color: #5A3800;
  font-size: 8px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.city-badge-soon {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
}
.city-info { position: absolute; bottom: 9px; left: 10px; }
.city-name { font-size: 13px; font-weight: 600; color: #fff; }
.city-sub  { font-size: 10px; color: var(--amber); margin-top: 1px; }

/* ── WEATHER STRIP ──────────────────────────────── */
.weather-strip {
  margin: 10px 18px;
  background: var(--navy);
  border-radius: 12px;
  padding: 9px 13px;
  display: flex; align-items: center; gap: 8px;
}
.weather-text { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.weather-text strong { color: var(--amber); }

/* ── ROUTE CARDS ────────────────────────────────── */
.route-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px;
  margin: 0 18px 8px;
  cursor: pointer;
}
.route-thumb {
  width: 50px; height: 50px;
  border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: #D0C8B8;
}
.route-info { flex: 1; min-width: 0; }
.route-name { font-size: 12px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-meta { font-size: 10px; color: var(--navy); opacity: 0.4; margin-top: 1px; }
.tag-row { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.tag {
  background: var(--sage-bg); color: var(--sage-txt);
  font-size: 9px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
}
.tag-gray { background: #F2F3F5; color: rgba(10,22,40,0.45); }
.tag-sage { background: var(--sage-bg); color: var(--sage-txt); }

/* ── CITY PAGE / HERO ───────────────────────────── */
.hero-wrap { position: relative; flex-shrink: 0; }
.hero-img { width: 100%; height: 230px; object-fit: cover; display: block; background: #8B6A3E; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.75) 0%, rgba(10,22,40,0.1) 55%, transparent 100%);
}
.hero-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.hero-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 18px; }
.hero-eyebrow { font-size: 10px; font-weight: 600; color: var(--amber); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 28px; color: #fff; line-height: 1.1; }
.hero-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; }

.city-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
}
.city-meta-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.city-meta-sub { font-size: 11px; color: var(--navy); opacity: 0.4; margin-top: 1px; }
.weather-pill {
  display: flex; align-items: center; gap: 4px;
  background: var(--amber-bg); border-radius: 20px; padding: 4px 10px;
  font-size: 10px; font-weight: 600; color: var(--amber-txt);
}

/* ── OPTION CARDS (city page) ───────────────────── */
.opt-cards { padding: 0 18px 16px; }
.opt-card {
  display: flex; align-items: center;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
}
.opt-card-dim { opacity: 0.55; cursor: default; }
.opt-stripe { width: 4px; align-self: stretch; flex-shrink: 0; }
.opt-body { flex: 1; padding: 13px 12px; }
.opt-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 7px; }
.opt-title-row { display: flex; align-items: flex-start; gap: 8px; flex: 1; }
.opt-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.opt-text { flex: 1; }
.opt-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.opt-desc  { font-size: 11px; color: var(--navy); opacity: 0.4; line-height: 1.4; }
.opt-time  { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; margin-left: 6px; }
.opt-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.opt-pill  {
  font-size: 10px; font-weight: 500;
  background: #F2F3F5; color: var(--muted);
  padding: 2px 8px; border-radius: 20px;
}

/* ── TOUR DETAIL ────────────────────────────────── */
.offline-pill {
  display: flex; align-items: center; gap: 4px;
  background: var(--sage-bg); color: var(--sage-txt);
  font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}

.detail-pills { display: flex; gap: 8px; padding: 0 16px 10px; }
.meta-pill {
  display: flex; align-items: center; gap: 4px;
  background: #F2F3F5; color: var(--muted);
  font-size: 10px; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
}
.meta-pill i { font-size: 11px; }

.weather-tip-bar {
  display: flex; align-items: center; gap: 8px;
  background: #FFF8EE; border-radius: 10px;
  padding: 8px 12px; margin: 0 16px 12px;
  font-size: 11px; color: #7A5000; line-height: 1.4;
}

.stops-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px 8px;
}
.progress-label { font-size: 11px; font-weight: 600; }

.stop-list { padding: 0 16px 8px; }
.stop-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F5;
  cursor: pointer;
}
.stop-row:last-child { border: none; }
.stop-row-active { background: #FFFBF0; border-radius: 10px; padding: 10px 8px; margin: 2px -8px; }
.stop-row-locked { cursor: default; }

.snum {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.snum-done   { background: var(--sage-bg); color: var(--sage-txt); }
.snum-active { background: var(--navy); color: var(--amber); }
.snum-locked { background: #F2F3F5; color: rgba(10,22,40,0.3); }

.srow-info { flex: 1; min-width: 0; }
.srow-name { font-size: 12px; font-weight: 600; color: var(--navy); }
.srow-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }

.check-circle {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-bg);
  display: flex; align-items: center; justify-content: center;
}
.auto-badge {
  font-size: 9px; font-weight: 600;
  background: var(--amber-bg); color: var(--amber-txt);
  padding: 2px 7px; border-radius: 20px;
}

.start-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); border-radius: 14px;
  padding: 14px 16px; margin: 12px 16px 20px;
  cursor: pointer;
}
.cta-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.cta-sub   { font-size: 13px; font-weight: 600; color: #fff; }
.cta-play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-bg);
  display: flex; align-items: center; justify-content: center;
}

/* ── ACTIVE WALK ────────────────────────────────── */
.screen-walk { display: flex; flex-direction: column; height: calc(100dvh - 72px); }
.map-container { flex: 1; z-index: 1; }

.walk-topbar {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  z-index: 10;
}

.next-stop-chip {
  background: var(--navy); border-radius: 10px;
  padding: 5px 12px;
}
.next-label { font-size: 9px; color: rgba(255,255,255,0.5); display: block; }
.next-dist  { font-size: 12px; font-weight: 600; color: var(--amber); }

.gmaps-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 6px 10px;
  font-size: 11px; font-weight: 600; color: var(--navy);
  cursor: pointer;
}

.audio-panel {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 14px 16px 10px;
  z-index: 10;
}

.audio-stop-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.audio-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.audio-stop-info { flex: 1; min-width: 0; }
.audio-stop-name { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-stop-sub  { font-size: 10px; color: var(--muted); margin-top: 1px; }
.auto-trigger-badge {
  display: flex; align-items: center; gap: 3px;
  background: var(--sage-bg); color: var(--sage-txt);
  font-size: 9px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px; flex-shrink: 0;
}

.progress-times {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--muted); margin-bottom: 4px;
}
.progress-track {
  height: 3px; background: #E4E8EF; border-radius: 3px;
  margin-bottom: 10px; overflow: hidden; cursor: pointer;
}
.progress-fill { height: 100%; background: var(--amber); border-radius: 3px; transition: width 0.25s linear; }

.audio-controls {
  display: flex; align-items: center; justify-content: space-around;
  margin-bottom: 10px;
}
.ctrl-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #F2F3F5;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn i { font-size: 16px; color: var(--navy); }
.play-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

.walk-actions { display: flex; gap: 8px; }
.act-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px; font-size: 10px; font-weight: 600; color: var(--navy);
  background: var(--card-bg);
}
.act-btn i { font-size: 13px; }
.act-btn-amber { border-color: var(--amber); color: var(--amber-txt); background: var(--amber-bg); }

/* ── LANDMARKS ──────────────────────────────────── */
.landmarks-tip {
  display: flex; align-items: center; gap: 7px;
  background: var(--amber-bg); border-radius: 10px;
  padding: 8px 12px; margin: 0 16px 12px;
  font-size: 10px; color: var(--amber-txt); line-height: 1.4;
}
.lm-list { padding: 0 16px 8px; }
.lm-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 10px; margin-bottom: 10px;
  cursor: pointer;
}
.lm-thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #D0C8B8; }
.lm-info { flex: 1; min-width: 0; }
.lm-name { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-dist { font-size: 10px; color: var(--amber); font-weight: 600; margin-bottom: 5px; }
.lm-tags { display: flex; gap: 4px; margin-bottom: 7px; }

.ride-cta {
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: 10px; font-weight: 600; color: var(--navy);
  background: var(--card-bg); width: 100%;
}

/* ── RIDE OVERLAY / SHEET ───────────────────────── */
.ride-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.5);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.ride-sheet {
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  width: 100%; max-width: 430px;
}
.ride-sheet-header { margin-bottom: 16px; position: relative; }
.ride-sheet-title { font-size: 11px; color: var(--muted); display: block; margin-bottom: 3px; }
.ride-sheet-place { font-size: 16px; font-weight: 600; color: var(--navy); display: block; }
.ride-close {
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: #F2F3F5;
  display: flex; align-items: center; justify-content: center;
}
.ride-close i { font-size: 14px; color: var(--navy); }

.ride-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ride-opt-btn {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: 13px;
  padding: 12px 14px; color: var(--navy);
}
.ride-opt-btn i:first-child { font-size: 20px; color: var(--amber); }
.ride-opt-name { font-size: 14px; font-weight: 600; }
.ride-opt-sub  { font-size: 11px; color: var(--muted); }

.ride-cancel {
  width: 100%; padding: 12px;
  background: #F2F3F5; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--navy); text-align: center;
}

/* ── DOWNLOADS ──────────────────────────────────── */
.storage-bar { background: #F2F3F5; border-radius: 12px; padding: 12px 14px; margin: 0 16px 4px; }
.storage-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.storage-label { font-size: 12px; font-weight: 600; color: var(--navy); }
.storage-val   { font-size: 10px; color: var(--muted); }
.storage-track { height: 5px; background: #E4E8EF; border-radius: 5px; overflow: hidden; }
.storage-fill  { height: 100%; background: var(--amber); border-radius: 5px; }

.dl-list { padding: 0 16px 8px; }
.dl-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px;
}
.dl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dl-thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: #C8B89A; }
.dl-info { flex: 1; }
.dl-name { font-size: 12px; font-weight: 600; color: var(--navy); }
.dl-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.dl-prog-wrap { background: #F2F3F5; border-radius: 4px; height: 4px; overflow: hidden; margin-bottom: 8px; }
.dl-prog-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.dl-status-row { display: flex; align-items: center; justify-content: space-between; }
.dl-status { font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.dl-btn {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-size: 10px; font-weight: 600; color: var(--navy);
}
.dl-btn i { font-size: 12px; }
.dl-btn-get { border-color: var(--amber); color: var(--amber-txt); background: var(--amber-bg); }
.dl-btn-del { border-color: #FFCDD2; color: #B71C1C; }

/* ── LEAFLET OVERRIDES ──────────────────────────── */
.leaflet-control-zoom a { color: var(--navy) !important; }
.leaflet-control-attribution { display: none; }

/* ── PIN GATE ───────────────────────────────────── */
#pin-gate {
  position: fixed;
  inset: 0;
  background: #0A1628;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
}

.pin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
  padding: 0 24px;
}

.pin-logo { margin-bottom: 12px; }

.pin-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #fff;
  margin-bottom: 6px;
}

.pin-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 36px;
}

.pin-dots {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  transition: background 0.15s, border-color 0.15s;
}

.pin-dot-filled {
  background: #D4A017;
  border-color: #D4A017;
}

.pin-error {
  font-size: 12px;
  color: #FF6B6B;
  height: 18px;
  margin-bottom: 24px;
  text-align: center;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.pin-key {
  height: 64px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.1s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-key:active {
  background: rgba(212,160,23,0.25);
  border-color: #D4A017;
  transform: scale(0.95);
}

.pin-key-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-10px); }
  40%       { transform: translateX(10px); }
  60%       { transform: translateX(-8px); }
  80%       { transform: translateX(8px); }
}

.pin-shake { animation: pin-shake 0.4s ease; }

/* ── AUDIO FOOTER ───────────────────────────────── */
#audio-footer {
  position: fixed;
  bottom: 72px;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #0A1628;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 90;
}
.af-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.af-badge {
  width: 26px; height: 26px; border-radius: 50%;
  background: #D4A017; color: #5A3800;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.af-text { flex: 1; min-width: 0; }
.af-name { font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-prog-wrap { height: 2px; background: rgba(255,255,255,0.15); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.af-prog { height: 100%; background: #D4A017; border-radius: 2px; transition: width 0.25s linear; }
.af-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.af-btn { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.af-btn i { font-size: 13px; color: rgba(255,255,255,0.7); }
.af-play { background: rgba(212,160,23,0.2); }
.af-play i { color: #D4A017 !important; }

/* ── EXPLORE CARDS (home) ───────────────────────── */
.explore-cards { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.explore-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid #E4E8EF;
  border-radius: 13px; padding: 12px 14px; cursor: pointer;
}
.explore-card-dim { opacity: 0.55; cursor: default; }
.explore-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.explore-info { flex: 1; }
.explore-title { font-size: 13px; font-weight: 600; color: #0A1628; margin-bottom: 2px; }
.explore-desc  { font-size: 11px; color: rgba(10,22,40,0.4); }
.coming-pill { font-size: 9px; font-weight: 600; background: #F2F3F5; color: rgba(10,22,40,0.4); padding: 3px 8px; border-radius: 20px; }

/* ── CITY CARD UPDATES ──────────────────────────── */
.city-tagline { font-size: 9px; font-weight: 600; color: #D4A017; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
.city-country { font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 1px; }

/* ── ROUTE LIST PAGE ────────────────────────────── */
.route-list-page { padding: 8px 16px 16px; }
.route-card-full {
  display: flex; align-items: center;
  background: #fff; border: 1.5px solid #E4E8EF;
  border-radius: 14px; overflow: hidden; margin-bottom: 10px; cursor: pointer;
}
.route-thumb-lg { width: 90px; height: 90px; flex-shrink: 0; background: #C8A87A; }
.route-card-body { flex: 1; padding: 12px; min-width: 0; }
.route-subtitle { font-size: 11px; color: rgba(10,22,40,0.4); margin: 2px 0 6px; line-height: 1.3; }
.route-stats-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.stat-pill { display: flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; background: #F2F3F5; color: rgba(10,22,40,0.5); padding: 2px 8px; border-radius: 20px; }
.stat-pill i { font-size: 10px; }

/* ── DIRECTION TOGGLE ───────────────────────────── */
.direction-toggle { display: flex; gap: 8px; padding: 0 16px 12px; }
.dir-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1.5px solid #E4E8EF; border-radius: 10px; padding: 8px; font-size: 11px; font-weight: 600; color: rgba(10,22,40,0.5); background: #fff; }
.dir-btn-active { border-color: #D4A017; color: #7A5A00; background: #FDF5E0; }

/* ── RIDE TO START BAR ──────────────────────────── */
.ride-to-start-bar { display: flex; align-items: center; justify-content: space-between; background: #FDF5E0; border-radius: 10px; padding: 10px 12px; margin: 0 16px 10px; gap: 8px; }
.ride-to-start-info { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #7A5A00; flex: 1; }
.ride-to-start-info strong { font-weight: 600; }
.ride-sm-btn { display: flex; align-items: center; gap: 4px; background: #D4A017; color: #5A3800; border-radius: 8px; padding: 6px 10px; font-size: 10px; font-weight: 600; flex-shrink: 0; }

/* ── DIST BADGE ON STOP ROWS ────────────────────── */
.dist-badge { font-size: 10px; font-weight: 500; color: rgba(10,22,40,0.4); background: #F2F3F5; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }

/* ── NO AUDIO DESCRIPTION ───────────────────────── */
.no-audio-desc { display: flex; flex-direction: column; align-items: center; padding: 12px 0 8px; text-align: center; }
.no-audio-text { font-size: 12px; color: rgba(10,22,40,0.6); line-height: 1.6; }

/* ── SEARCH OVERLAY ─────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.55);
  z-index: 200;
  display: flex; flex-direction: column;
}
.search-modal {
  background: #fff;
  border-radius: 0 0 20px 20px;
  display: flex; flex-direction: column;
  max-height: 85vh;
}
.search-modal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #E4E8EF;
}
.search-input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  color: #0A1628;
}
.search-results { overflow-y: auto; padding: 8px 0; }
.search-result-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
}
.search-result-row:hover { background: #FAFAFA; }
.sr-icon { width: 32px; height: 32px; border-radius: 8px; background: #FDF5E0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sr-info { flex: 1; min-width: 0; }
.sr-name { font-size: 13px; font-weight: 600; color: #0A1628; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub  { font-size: 11px; color: rgba(10,22,40,0.4); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty { padding: 24px; text-align: center; font-size: 13px; color: rgba(10,22,40,0.35); }

/* ── DOWNLOADS EMPTY STATE ──────────────────────── */
.downloads-empty { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 24px; text-align: center; }
.empty-title { font-size: 15px; font-weight: 600; color: #0A1628; margin-bottom: 8px; }
.empty-sub   { font-size: 12px; color: rgba(10,22,40,0.4); line-height: 1.6; margin-bottom: 20px; }
.empty-cta   { background: #0A1628; color: #fff; border-radius: 12px; padding: 12px 24px; font-size: 13px; font-weight: 600; }
.dl-tap-hint { font-size: 10px; color: #D4A017; margin-top: 2px; }

/* ── LANGUAGE PICKER ────────────────────────────── */
.lang-opt { width: 100%; text-align: left; }
.lang-opt-active { border-color: #4A7C59 !important; background: #EDF5F0 !important; }

/* ── LANDMARK AUDIO PARTS ───────────────────────── */
.audio-part-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #F0F2F5; cursor: pointer; }
.ap-num { width: 20px; height: 20px; border-radius: 50%; background: #FDF5E0; color: #7A5A00; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ap-info { flex: 1; }
.ap-title { font-size: 11px; font-weight: 600; color: #0A1628; }
.ap-dur   { font-size: 10px; color: rgba(10,22,40,0.4); margin-top: 1px; }

/* ── HOME MARKETING SECTION ─────────────────────── */
.home-marketing { padding: 0 0 20px; }

.hm-section { padding: 24px 18px 8px; border-top: 1px solid #F0F2F5; }
.hm-section:first-child { border-top: none; }

.hm-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: #0A1628;
  margin-bottom: 4px;
}
.hm-section-sub { font-size: 12px; color: rgba(10,22,40,0.4); margin-bottom: 14px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.faq-item { background: #fff; border: 1.5px solid #E4E8EF; border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; gap: 10px; text-align: left;
  font-size: 13px; font-weight: 500; color: #0A1628;
  background: none; cursor: pointer;
}
.faq-icon { font-size: 14px; color: rgba(10,22,40,0.4); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-a { font-size: 12px; color: rgba(10,22,40,0.6); line-height: 1.6; padding: 0 14px 13px; }

/* Cities map */
.cities-map-wrap { border-radius: 14px; overflow: hidden; margin-bottom: 12px; border: 1.5px solid #E4E8EF; }
.cities-map { height: 200px; width: 100%; background: #E8EDF5; }

.city-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip {
  display: flex; align-items: center; gap: 6px;
  background: #F2F3F5; border-radius: 20px;
  padding: 5px 10px 5px 7px;
  font-size: 11px; font-weight: 500; color: rgba(10,22,40,0.5);
}
.city-chip-active { background: #FDF5E0; color: #7A5A00; }
.city-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(10,22,40,0.2); }
.city-chip-dot-active { background: #D4A017; }
.city-chip-live {
  font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: #D4A017; color: #5A3800; padding: 1px 5px; border-radius: 20px; margin-left: 2px;
}

/* CTA section */
.hm-cta-section { background: #0A1628; border-radius: 16px; margin: 16px 18px; padding: 20px 18px !important; border-top: none !important; }
.hm-cta-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.hm-cta-sub   { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; margin-bottom: 16px; }
.hm-cta-btn {
  background: #D4A017; color: #5A3800;
  border-radius: 10px; padding: 10px 20px;
  font-size: 13px; font-weight: 600;
}

/* Footer */
.hm-footer { padding: 16px 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hm-footer-logo { display: flex; align-items: center; gap: 6px; font-family: 'Playfair Display', serif; font-size: 14px; color: #0A1628; }
.hm-footer-links { display: flex; gap: 16px; }
.hm-footer-links a { font-size: 11px; color: rgba(10,22,40,0.4); text-decoration: none; }
.hm-footer-copy { font-size: 10px; color: rgba(10,22,40,0.3); }

/* ── ROUTE DIST + RIDE ROW ──────────────────────── */
.route-dist-ride { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.route-dist-pill { display: flex; align-items: center; gap: 4px; font-size: 10px; color: rgba(10,22,40,0.45); }
.route-dist-pill i { font-size: 10px; color: #D4A017; }

/* ── EXPLORE BROWSE TAB ─────────────────────────── */
.lm-scroll-row {
  display: flex; gap: 10px;
  padding: 0 18px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.lm-scroll-row::-webkit-scrollbar { display: none; }
.lm-scroll-card { min-width: 130px; flex-shrink: 0; cursor: pointer; }
.lm-scroll-thumb {
  width: 130px; height: 90px;
  border-radius: 12px; overflow: hidden;
  position: relative; background: #C0B090;
  margin-bottom: 6px;
}
.lm-scroll-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lm-scroll-name { font-size: 11px; font-weight: 600; color: #0A1628; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-scroll-city { font-size: 10px; color: rgba(10,22,40,0.4); margin-top: 1px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 24px;
}
.cat-card {
  border-radius: 12px;
  padding: 12px 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; min-height: 72px;
}
.cat-label { font-size: 10px; font-weight: 600; text-align: center; line-height: 1.2; }

/* ── WALK FULL SCREEN (izi-style) ───────────────── */
.screen-walk-full {
  position: relative;
  height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-full {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Top controls float over map */
.walk-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  z-index: 10;
  pointer-events: none;
}
.walk-topbar > * { pointer-events: all; }

/* Bottom sheet slides up over map */
.walk-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 10;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(10,22,40,0.12);
}

.walk-sheet-handle {
  width: 36px; height: 4px;
  background: #E4E8EF;
  border-radius: 2px;
  margin: 10px auto 0;
}

.walk-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  gap: 12px;
}

.walk-sheet-info { flex: 1; min-width: 0; }
.walk-sheet-title { font-size: 15px; font-weight: 600; color: #0A1628; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk-sheet-prog  { font-size: 11px; font-weight: 500; margin-top: 2px; }

.start-tour-btn {
  background: #0A1628;
  color: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.start-tour-btn-ride {
  background: #FDF5E0;
  color: #7A5A00;
  border: 1.5px solid #D4A017;
  display: flex;
  align-items: center;
  gap: 5px;
}

.far-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FDF5E0;
  border-radius: 10px;
  padding: 9px 12px;
  margin: 0 16px 8px;
  font-size: 11px;
  color: #7A5A00;
  line-height: 1.4;
  flex-wrap: wrap;
}
.far-warning strong { font-weight: 600; }
.start-anyway-btn {
  font-size: 11px; font-weight: 600;
  color: #0A1628; text-decoration: underline;
  background: none; margin-left: auto;
}

/* Stop cards horizontal scroll */
.stop-cards-row {
  display: flex;
  gap: 10px;
  padding: 4px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stop-cards-row::-webkit-scrollbar { display: none; }

.stop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  width: 90px;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.stop-card-active {
  opacity: 1;
  transform: scale(1.04);
}

.stop-card-thumb {
  width: 90px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #C8A87A;
  flex-shrink: 0;
}
.stop-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stop-card-active .stop-card-thumb {
  outline: 2.5px solid #D4A017;
  outline-offset: 1px;
}

.stop-card-ring {
  position: absolute;
  top: 4px; right: 4px;
}

.stop-card-playing-dot {
  position: absolute;
  bottom: 5px; left: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D4A017;
  border: 1.5px solid #fff;
}

.stop-card-num  { font-size: 10px; font-weight: 700; color: #0A1628; line-height: 1; }
.stop-card-name { font-size: 9px; color: rgba(10,22,40,0.55); text-align: center; line-height: 1.3; max-width: 88px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Audio bar pinned at bottom of sheet */
.walk-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 6px;
  border-top: 1px solid #F0F2F5;
  gap: 10px;
}

.walk-audio-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.walk-audio-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #0A1628;
  color: #D4A017;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.walk-audio-text { flex: 1; min-width: 0; }
.walk-audio-name { font-size: 11px; font-weight: 600; color: #0A1628; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk-audio-prog-wrap { height: 2px; background: #E4E8EF; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.walk-audio-prog { height: 100%; background: #D4A017; border-radius: 2px; transition: width 0.25s linear; }

.walk-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.wc-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #F2F3F5;
  display: flex; align-items: center; justify-content: center;
}
.wc-btn i { font-size: 14px; color: #0A1628; }
.wc-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0A1628;
  display: flex; align-items: center; justify-content: center;
}

/* ── MY TOURS SUB-TABS ──────────────────────────── */
.sub-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 16px 12px;
}
.sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 10px;
  border: 1.5px solid #E4E8EF;
  font-size: 12px;
  font-weight: 600;
  color: rgba(10,22,40,0.4);
  background: #fff;
  cursor: pointer;
}
.sub-tab-active {
  border-color: #D4A017;
  color: #7A5A00;
  background: #FDF5E0;
}

/* ── HEART BUTTON ───────────────────────────────── */
.heart-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F2F3F5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.heart-btn i { font-size: 15px; color: rgba(10,22,40,0.3); }
.heart-active { background: #FFF0F0; }
.heart-active i { color: #E53935; }

/* ── LANDMARK CARD UPDATES ──────────────────────── */
.lm-name-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lm-dist-ride-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }

/* ── PIN LOCKOUT ────────────────────────────────── */
.pin-lockout { text-align: center; padding: 20px 0; }
.pin-lockout-text { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.pin-lockout-sub  { font-size: 12px; color: rgba(255,255,255,0.4); }
.pin-attempts { text-align: center; margin-bottom: 8px; }
.pin-attempts span { font-size: 11px; font-weight: 600; color: #E53935; }
