/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060610;
  --bg2: #0a0a1a;
  --bg3: #0e0e1e;
  --surface: rgba(255,255,255,0.045);
  --surface2: rgba(255,255,255,0.08);
  --surface3: rgba(255,255,255,0.13);
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.16);
  --text: #f0f0ff;
  --text2: #9090b0;
  --text3: #6060a0;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --gradient: linear-gradient(135deg, #8b5cf6, #ec4899);
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
  --lime: #84cc16;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(ellipse 110% 60% at 10% 0%, rgba(139,92,246,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 100%, rgba(236,72,153,0.06) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,6,16,0.78);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.55) 35%, rgba(236,72,153,0.45) 65%, transparent 100%);
  opacity: 0.75;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 22px; display:flex; align-items:center; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text2); transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  padding: 8px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--gradient); color: #fff;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 22px rgba(139,92,246,0.28);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 0 36px rgba(139,92,246,0.45); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-weight: 600;
  background: var(--gradient); color: #fff; border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 22px rgba(139,92,246,0.22);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 14px; font-size: 16px; font-weight: 700;
  background: var(--gradient); color: #fff; border: none; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  box-shadow: 0 0 40px rgba(139,92,246,0.32), inset 0 1px 0 rgba(255,255,255,0.14);
  position: relative; overflow: hidden;
}
.btn-hero::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 0 65px rgba(139,92,246,0.52), inset 0 1px 0 rgba(255,255,255,0.14); }
.btn-hero:hover::after { left: 150%; }
.btn-hero svg { width: 20px; height: 20px; }
.btn-hero.large { padding: 18px 40px; font-size: 18px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 14px; font-size: 15px; font-weight: 600;
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.26); transform: translateY(-2px); background: var(--surface); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding: 120px 24px 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  gap: 60px;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.22;
  animation: blobFloat 12s ease-in-out infinite;
  will-change: transform;
}
.blob-1 { width: 720px; height: 720px; background: var(--purple); top: -160px; left: -220px; animation-delay: 0s; }
.blob-2 { width: 620px; height: 620px; background: var(--pink); top: 22%; right: -160px; animation-delay: 4s; }
.blob-3 { width: 520px; height: 520px; background: #6366f1; bottom: -160px; left: 22%; animation-delay: 8s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(28px, -38px) scale(1.05); }
  66% { transform: translate(-18px, 22px) scale(0.97); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.32);
  font-size: 12px; font-weight: 600; color: #c4b5fd;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(139,92,246,0.16), inset 0 0 16px rgba(139,92,246,0.06);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 10px var(--green); }
  50% { opacity: 0.4; box-shadow: 0 0 3px var(--green); }
}

.hero-title {
  font-size: clamp(44px, 6.5vw, 76px); font-weight: 900;
  line-height: 1.03; letter-spacing: -2.5px; margin-bottom: 22px;
}
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px; color: var(--text2); line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 28px; border-radius: 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px); width: fit-content;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.22), 0 8px 40px rgba(0,0,0,0.35);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
}
.stat-num.live-pulse {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s infinite;
}
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-divider { width: 1px; height: 36px; background: var(--border2); }

/* ===== PHONE MOCKUP ===== */
.hero-visual {
  position: relative; z-index: 1; flex-shrink: 0;
}
.phone-mockup {
  width: 280px; height: 540px;
  background: var(--bg3);
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.18),
    0 0 80px rgba(139,92,246,0.22),
    0 40px 100px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden; position: relative;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: var(--bg); border-radius: 12px; z-index: 10;
}
.phone-screen { width: 100%; height: 100%; display: flex; flex-direction: column; }
.phone-map-bg {
  flex: 1; position: relative;
  background: linear-gradient(135deg, #090e1c 0%, #0c1222 50%, #090e1c 100%);
  overflow: hidden;
}
.phone-map-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(139,92,246,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(139,92,246,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-dot {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%; cursor: pointer;
  transform: translate(-50%, -50%);
}
.dot-green { background: var(--green); box-shadow: 0 0 14px var(--green); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.dot-red { background: var(--red); box-shadow: 0 0 14px var(--red); }
.dot-orange { background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.map-pulse {
  position: absolute; inset: -6px; border-radius: 50%; opacity: 0.3;
  animation: mapPulse 2s ease-out infinite;
}
.map-pulse.green { border: 2px solid var(--green); }
.map-pulse.yellow { border: 2px solid var(--yellow); }
.map-pulse.red { border: 2px solid var(--red); animation-delay: 0.5s; }
.map-pulse.orange { border: 2px solid var(--orange); animation-delay: 1s; }
@keyframes mapPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}
.map-label {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 9px; font-weight: 600; color: var(--text);
  background: rgba(0,0,0,0.88); padding: 3px 7px; border-radius: 6px;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.map-dot:hover .map-label { opacity: 1; }

.phone-bottom-sheet {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 10px 16px 16px;
}
.sheet-handle {
  width: 36px; height: 4px; background: var(--border2); border-radius: 2px;
  margin: 0 auto 12px;
}
.sheet-venue {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.venue-info { display: flex; flex-direction: column; gap: 2px; }
.venue-info strong { font-size: 13px; font-weight: 700; }
.venue-type-tag {
  font-size: 10px; color: var(--text3); font-weight: 500;
}
.queue-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px;
}
.red-badge { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.queue-bar-wrap { display: flex; align-items: center; gap: 8px; }
.queue-bar-track {
  flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.queue-bar-fill { height: 100%; border-radius: 3px; }
.queue-score { font-size: 10px; color: var(--text3); white-space: nowrap; }

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  position: relative; z-index: 1;
}
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--purple); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 50px); font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text2); max-width: 500px; line-height: 1.65; margin-bottom: 64px; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px;
}
.feature-card {
  padding: 30px; border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s, background 0.3s;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: linear-gradient(var(--bg3), var(--bg3)) padding-box,
              linear-gradient(135deg, rgba(139,92,246,0.55), rgba(236,72,153,0.38)) border-box;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 36px rgba(139,92,246,0.08);
}
.feature-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ===== QUEUE EXPLAINER ===== */
.queue-explainer { padding: 80px 24px; position: relative; z-index: 1; }
.explainer-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.explainer-text h2 {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -1px;
  margin-bottom: 16px; margin-top: 8px;
}
.explainer-text > p { font-size: 16px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; }
.explainer-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.explainer-list li { display: flex; gap: 14px; align-items: flex-start; }
.check {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  background: rgba(34,197,94,0.15); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 1px;
  box-shadow: 0 0 14px rgba(34,197,94,0.18);
}
.explainer-list strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.explainer-list span { font-size: 13px; color: var(--text2); line-height: 1.5; }

.queue-card-demo {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.22), 0 20px 60px rgba(0,0,0,0.45);
  border-radius: 20px; padding: 26px; backdrop-filter: blur(16px);
}
.qcd-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text2);
  margin-bottom: 20px;
}
.qcd-dot { width: 8px; height: 8px; border-radius: 50%; }
.green-dot { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.qcd-time { margin-left: auto; font-family: monospace; font-size: 11px; color: var(--text3); }
.qcd-venues { display: flex; flex-direction: column; gap: 14px; }
.qcd-row { display: flex; align-items: center; gap: 10px; }
.qcd-name { font-size: 13px; font-weight: 600; min-width: 130px; }
.qcd-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.qcd-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.qcd-mins { font-size: 12px; font-weight: 700; min-width: 45px; text-align: right; }
.qcd-mins.green { color: var(--green); }
.qcd-mins.red { color: var(--red); }
.qcd-mins.yellow { color: var(--yellow); }
.qcd-mins.orange { color: var(--orange); }
.qcd-mins.lime { color: var(--lime); }

/* ===== CTA ===== */
.cta-section {
  padding: 100px 24px; position: relative; z-index: 1;
}
.cta-inner {
  max-width: 600px; margin: 0 auto; text-align: center;
  position: relative; padding: 68px 48px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.28), 0 40px 100px rgba(0,0,0,0.55);
  border-radius: 28px; overflow: hidden;
}
.blob-cta-1 {
  width: 330px; height: 330px; background: var(--purple);
  top: -130px; left: -130px;
}
.blob-cta-2 {
  width: 280px; height: 280px; background: var(--pink);
  bottom: -110px; right: -110px; animation-delay: 4s;
}
.cta-inner h2 {
  font-size: clamp(32px, 4vw, 50px); font-weight: 800;
  letter-spacing: -1.5px; margin-bottom: 12px; position: relative; z-index: 1;
}
.cta-inner p { font-size: 17px; color: var(--text2); margin-bottom: 32px; position: relative; z-index: 1; }
.cta-inner .btn-hero { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border); padding: 28px 24px;
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-note { font-size: 13px; color: var(--text3); }

/* ===== MAP PAGE ===== */
body.mappage {
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
}
.map-nav {
  height: 60px; background: rgba(6,6,16,0.97);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
  flex-shrink: 0; z-index: 10000; position: sticky; top: 0;
}
.map-nav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.55) 40%, rgba(236,72,153,0.35) 70%, transparent 100%);
  opacity: 0.65;
}
.map-nav-logo { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.map-nav-sep { width: 1px; height: 24px; background: var(--border); }
.map-nav-title { font-size: 13px; color: var(--text2); font-weight: 500; }
.map-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-login-btn {
  padding: 7px 15px; border-radius: 9px; font-size: 12px; font-weight: 700;
  background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.35);
  color: #c4b5fd; text-decoration: none; transition: all .15s; white-space: nowrap;
}
.nav-login-btn:hover { background: rgba(139,92,246,.25); border-color: rgba(139,92,246,.55); color: #ddd6fe; }
.user-menu-wrap { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px;
  border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 12px; font-weight: 600;
  transition: all .15s; font-family: 'Inter', sans-serif;
}
.user-menu-btn:hover { background: rgba(255,255,255,.09); border-color: var(--border2); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg,#8b5cf6,#ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #0e0e1e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px; padding: 8px; min-width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8); z-index: 99999;
  animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:none } }
@keyframes slideFromRight { from { opacity:0; transform:translateX(30px) } to { opacity:1; transform:none } }
@keyframes slideUp { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:none } }
.ud-info { padding: 8px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 6px; }
.ud-name { font-size: 13px; font-weight: 700; }
.ud-email { font-size: 11px; color: var(--text2); margin-top: 2px; }
.ud-checkin-status { font-size: 11px; color: #86efac; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.ud-item {
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; background: none; border: none;
  color: var(--text2); cursor: pointer; transition: all .12s;
  font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px;
}
.ud-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ud-item.danger { color: #fca5a5; }
.ud-item.danger:hover { background: rgba(239,68,68,.1); }
.checkin-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); color: #86efac;
}

.map-layout { flex: 1; display: flex; overflow: hidden; }

/* SIDEBAR */
.sidebar {
  width: 340px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto;
  transition: transform 0.3s;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.sidebar-header {
  padding: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  background: var(--bg2);
  position: sticky; top: 0; z-index: 5;
}
.sidebar-header h2 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

/* Search */
.search-wrap { position: relative; margin-bottom: 10px; }
.search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text3); pointer-events: none;
}
.search-input {
  width: 100%; padding: 10px 12px 10px 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 13px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus { border-color: rgba(139,92,246,0.5); box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }

/* Filters */
.filter-section { padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.filter-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text3); margin-bottom: 8px; display: block;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; transition: all 0.15s; user-select: none;
}
.chip:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }
.chip.active {
  background: rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.45); color: #c4b5fd;
  box-shadow: 0 0 14px rgba(139,92,246,0.22);
}
.chip.active-green {
  background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.32); color: #86efac;
  box-shadow: 0 0 12px rgba(34,197,94,0.16);
}
.chip.active-blue { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #93c5fd; }

.age-row { display: flex; align-items: center; gap: 10px; }
.age-row label { font-size: 12px; color: var(--text2); white-space: nowrap; font-weight: 500; }
.age-select {
  flex: 1; padding: 7px 10px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 12px; outline: none;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
  -webkit-color-scheme: dark;
}
.age-select:focus { border-color: rgba(139,92,246,0.5); box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
.age-select option { background: #0a0a1a; color: #f0f0ff; }

/* Results */
.results-header {
  padding: 12px 16px 8px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.results-count { font-size: 12px; color: var(--text3); font-weight: 600; }
.sort-select {
  padding: 5px 8px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 7px; color: var(--text2); font-size: 11px; outline: none;
  font-family: 'Inter', sans-serif; cursor: pointer;
  color-scheme: dark;
  -webkit-color-scheme: dark;
  transition: border-color 0.2s;
}
.sort-select:focus { border-color: rgba(139,92,246,0.4); }
.sort-select option { background: #0a0a1a; color: #f0f0ff; }
.venue-list { flex: none; overflow-y: visible; padding: 0 8px 16px; min-height: 160px; }

.venue-item {
  padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 4px;
  transition: all 0.15s; background: var(--surface);
}
.venue-item:hover { background: var(--surface2); border-color: var(--border); }
.venue-item.active {
  background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.32);
  box-shadow: 0 0 20px rgba(139,92,246,0.1);
}
.venue-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.venue-item-name { font-size: 14px; font-weight: 700; }
.venue-item-type {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: var(--surface2); color: var(--text3); flex-shrink: 0; margin-top: 2px;
}
.venue-item-type.club { background: rgba(139,92,246,0.12); color: #c4b5fd; }
.venue-item-type.bar { background: rgba(59,130,246,0.12); color: #93c5fd; }
.venue-item-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.age-tag { font-size: 11px; color: var(--text3); font-weight: 500; }
.genre-tag {
  font-size: 10px; color: var(--text3); background: var(--surface2);
  padding: 2px 7px; border-radius: 4px; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue-row { display: flex; align-items: center; gap: 8px; }
.queue-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.queue-text { font-size: 12px; font-weight: 700; }
.queue-mini-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.queue-mini-fill { height: 100%; border-radius: 2px; }

/* MAP */
#map { width: 100%; height: 100%; position: absolute; inset: 0; }

/* POPUP */
.leaflet-popup-content-wrapper {
  background: rgba(8,8,22,0.97) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.22), 0 24px 64px rgba(0,0,0,0.75) !important;
  padding: 0 !important; overflow: hidden !important;
  backdrop-filter: blur(24px) !important;
}
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-content { margin: 0 !important; width: auto !important; }

.popup-card { width: 280px; }
.popup-header {
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(236,72,153,0.08));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.popup-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.popup-name { font-size: 16px; font-weight: 800; }
.popup-type-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  background: rgba(139,92,246,0.18); color: #c4b5fd; flex-shrink: 0; margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.popup-type-badge.bar { background: rgba(59,130,246,0.18); color: #93c5fd; }

.popup-queue-block {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.popup-queue-status { font-size: 13px; font-weight: 700; }
.popup-queue-mins { font-size: 18px; font-weight: 900; }
.queue-progress { margin-top: 8px; }
.queue-progress-track {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.queue-progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

.popup-body { padding: 14px 16px; }
.popup-desc { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.popup-details { display: flex; flex-direction: column; gap: 8px; }
.popup-detail { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.popup-detail-icon { width: 16px; color: var(--text3); flex-shrink: 0; }
.popup-detail-icon svg { width: 14px; height: 14px; }
.popup-detail-label { color: var(--text3); min-width: 80px; }
.popup-detail-value { color: var(--text); font-weight: 500; }
.popup-genres { display: flex; flex-wrap: wrap; gap: 4px; }
.popup-genre {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: var(--surface2); color: var(--text3); font-weight: 500;
}

.popup-footer {
  padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.popup-update { font-size: 10px; color: var(--text3); }
.popup-ig {
  font-size: 11px; font-weight: 600; color: #c4b5fd;
  display: flex; align-items: center; gap: 4px;
}
.popup-ig:hover { color: var(--purple); }

/* ── Apple-style clean marker ── */
/* mk-icon replaces leaflet-div-icon so no white background/border from Leaflet */
.mk-icon {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  padding: 0 !important;
}
.mk-wrap {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: visible;
}
.mk-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  position: relative; z-index: 2;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
.mk-icon:hover .mk-dot { transform: scale(1.45); }
.mk-ring {
  position: absolute; inset: 1px;
  border-radius: 50%;
  border: 1.5px solid;
  animation: markerPulse 2.8s ease-out infinite;
  pointer-events: none; z-index: 1;
}

/* Legacy override kept for safety */
.leaflet-div-icon-clean {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

/* MARKER CUSTOM */
.custom-marker {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-weight: 800; font-size: 10px; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.custom-marker:hover { transform: scale(1.28); }
.marker-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  animation: markerPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes markerPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* LANG TOGGLE */
.lang-toggle {
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: var(--text2);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  cursor: pointer; letter-spacing: .4px; transition: all .15s;
}
.lang-toggle:hover { background: rgba(255,255,255,.1); color: var(--text); border-color: rgba(255,255,255,.22); }

/* CHECK-IN MODAL */
.ci-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  font-family: 'Inter', sans-serif;
}
.ci-sheet {
  width: 100%; max-width: 480px;
  background: #0a0a1c;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.7);
  animation: slideUp .28s cubic-bezier(.16,1,.3,1);
}
.ci-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.15); margin: 0 auto 18px;
}
.ci-venue-name {
  font-size: 18px; font-weight: 800; letter-spacing: -.4px;
  color: #f0f0ff; margin-bottom: 16px;
}
.ci-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #5050a0; margin-bottom: 10px;
}
.ci-vibes {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.ci-vibe-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px; border-radius: 13px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.ci-vibe-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.ci-vibe-btn.active { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.45); }
.ci-vibe-emoji { font-size: 22px; }
.ci-vibe-text { font-size: 11px; font-weight: 600; color: var(--text2); }
.ci-vibe-btn.active .ci-vibe-text { color: #c4b5fd; }
.ci-textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px;
  resize: none; height: 68px; margin-bottom: 16px;
  transition: border-color .15s;
}
.ci-textarea:focus { outline: none; border-color: rgba(139,92,246,.45); }
.ci-textarea::placeholder { color: #4040a0; }
.ci-actions { display: flex; gap: 8px; }
.ci-cancel {
  flex: 1; padding: 13px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  color: var(--text2); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.ci-cancel:hover { background: rgba(255,255,255,.08); }
.ci-confirm {
  flex: 2; padding: 13px; border-radius: 12px; cursor: pointer;
  border: none; background: var(--gradient);
  color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  box-shadow: 0 0 20px rgba(139,92,246,.3);
  transition: opacity .15s, transform .15s;
}
.ci-confirm:hover { opacity: .9; transform: translateY(-1px); }

/* LAYER PICKER */
.layer-picker-wrap {
  margin-bottom: 14px !important;
  margin-left: 14px !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.layer-picker-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,6,16,0.93);
  backdrop-filter: blur(24px);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  transition: background .15s, color .15s;
}
.layer-picker-toggle:hover { background: rgba(20,20,40,0.97); color: var(--text); }
.layer-picker-panel {
  flex-direction: column;
  gap: 3px;
  background: rgba(6,6,16,0.95);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.65);
  position: absolute;
  bottom: 48px;
  left: 0;
  min-width: 130px;
}
.layer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
  width: 100%;
  text-align: left;
}
.layer-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.layer-btn.active {
  background: rgba(139,92,246,.16);
  border-color: rgba(139,92,246,.35);
  color: #c4b5fd;
}
.layer-btn-icon { display: flex; align-items: center; flex-shrink: 0; }
.layer-btn-label { }

@media (max-width: 768px) {
  .layer-picker-panel {
    flex-direction: row;
    bottom: 48px;
    left: 0;
    min-width: unset;
    padding: 5px;
    gap: 2px;
  }
  .layer-btn {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 8px;
    width: auto;
    min-width: 44px;
    text-align: center;
  }
  .layer-btn-label {
    font-size: 9px;
    line-height: 1;
  }
}

/* LOADING */
.map-loading {
  position: absolute; inset: 0; background: var(--bg2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 500; gap: 16px;
}
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 22px rgba(139,92,246,0.22);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* UPDATE TICKER */
.update-ticker {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(6,6,16,0.93);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 100px; padding: 8px 20px;
  font-size: 12px; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(14px); z-index: 400;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(139,92,246,0.12), 0 8px 28px rgba(0,0,0,0.45);
}
.update-ticker .badge-dot { width: 6px; height: 6px; }

/* No results */
.no-results {
  padding: 40px 16px; text-align: center; color: var(--text3);
}
.no-results p { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text2); }
.no-results span { font-size: 12px; }

/* Hide Leaflet attribution bar */
.leaflet-control-attribution { display: none !important; }

/* User location dot */
.user-loc-icon { background: transparent !important; border: none !important; }
.user-loc-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #3b82f6; border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  animation: locPulse 2.2s ease-out infinite;
}
@keyframes locPulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.55), 0 2px 8px rgba(0,0,0,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(59,130,246,0),  0 2px 8px rgba(0,0,0,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0),    0 2px 8px rgba(0,0,0,0.45); }
}
/* Locate-me button */
.locate-btn {
  width: 34px; height: 34px; margin-bottom: 4px;
  background: rgba(6,6,16,0.93); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--text2); transition: all 0.15s;
}
.locate-btn:hover { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.4); color: #60a5fa; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .explainer-inner { grid-template-columns: 1fr; }
  .map-layout { flex-direction: column; }

  /* Section 1: search bar — compact */
  .sidebar {
    width: 100%; height: auto; flex-shrink: 0;
    border-right: none; border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .sidebar-header {
    padding: 8px 12px; border-bottom: 1px solid var(--border);
    position: static; z-index: auto;
  }
  .sidebar-header h2 { display: none; }
  .search-wrap { margin-bottom: 0; }

  /* Section 2: horizontal filter strip */
  .filters-row {
    display: flex; flex-direction: row; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-bottom: none; height: 46px; align-items: stretch;
  }
  .filters-row::-webkit-scrollbar { display: none; }
  .filter-section {
    flex-shrink: 0; border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 0 12px; display: flex; align-items: center; gap: 6px;
  }
  .filter-section--wishlist { border-right: none; }
  .filter-label { display: none; }
  .filter-chips { flex-wrap: nowrap; }
  .age-row label { display: none; }
  .age-select { padding: 4px 8px; font-size: 12px; }

  .results-header { display: none; }
  .venue-list { display: none; }
}
@media (max-width: 600px) {
  .nav-links .nav-link { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .map-nav-title { display: none; }
}

/* ══════════════════════════════════════════════
   POPUP HERO  — premium gradient header
══════════════════════════════════════════════ */
.popup-hero {
  height: 112px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px 13px;
}
/* dot-grid texture */
.popup-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 1;
}
/* bottom-fade so text is always readable */
.popup-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.popup-hero-content { position: relative; z-index: 2; }
.popup-hero-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px;
  margin-bottom: 7px;
}
/* override old .popup-name to work inside hero */
.popup-hero .popup-name {
  font-size: 17px; font-weight: 800; letter-spacing: -.4px;
  color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.7);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* override badge inside hero */
.popup-hero .popup-type-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .7px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9); flex-shrink: 0; margin-top: 2px;
}
.popup-hero-status {
  display: flex; align-items: center; gap: 6px; margin-bottom: 7px;
}
.popup-hero-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  animation: markerPulse 2.8s ease-out infinite;
}
.popup-hero-status-text { font-size: 12px; font-weight: 700; }
.popup-hero-mins { font-size: 11px; color: rgba(255,255,255,.55); }
.popup-hero-bar-track {
  height: 3px; background: rgba(255,255,255,.15);
  border-radius: 2px; overflow: hidden;
}
.popup-hero-bar-fill {
  height: 100%; border-radius: 2px; transition: width .5s ease;
}

/* ── Badges row ── */
.popup-badges {
  padding: 9px 16px 8px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.05);
  min-height: 36px;
}

/* ── Popup action buttons row ── */
.popup-actions {
  display: flex; gap: 7px;
  padding: 0 16px 14px;
}
.popup-action-checkin {
  flex: 1; padding: 10px 10px; border-radius: 11px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(139,92,246,.32);
  background: rgba(139,92,246,.12); color: #c4b5fd;
  font-family: 'Inter', sans-serif; transition: all .15s; text-align: center;
}
.popup-action-checkin:hover { background: rgba(139,92,246,.22); }
.popup-action-checkin.checked-in {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.3); color: #86efac;
}
.popup-action-checkin.login-prompt {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08); color: #5050a0;
  font-size: 11px;
}
.popup-action-directions {
  padding: 10px 12px; border-radius: 11px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: var(--text2);
  font-family: 'Inter', sans-serif; transition: all .15s;
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  white-space: nowrap;
}
.popup-action-directions:hover { background: rgba(255,255,255,.1); color: var(--text); }
.popup-action-directions.active {
  background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.32); color: #c4b5fd;
}

/* phone / website links */
.popup-phone-link {
  color: var(--text); text-decoration: none; font-weight: 500;
  transition: color .12s;
}
.popup-phone-link:hover { color: #c4b5fd; }
.popup-website-link {
  font-size: 10px; font-weight: 700; letter-spacing: .2px;
  color: #8b5cf6; text-decoration: none;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2);
  transition: all .12s;
}
.popup-website-link:hover { background: rgba(139,92,246,.2); color: #a78bfa; }

/* ══════════════════════════════════════════════
   DIRECTIONS PANEL
══════════════════════════════════════════════ */
.directions-panel {
  position: absolute; top: 0; right: 0;
  height: 100%; width: 300px;
  background: rgba(6,6,16,.98);
  border-left: 1px solid rgba(255,255,255,.08);
  z-index: 500;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 64px rgba(0,0,0,.7);
  animation: slideFromRight .22s ease;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(24px);
}

/* Header */
.dir-header {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  background: linear-gradient(160deg, rgba(139,92,246,.1) 0%, rgba(236,72,153,.04) 100%);
}
.dir-header-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 14px;
}
.dir-to-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 3px;
}
.dir-title {
  font-size: 15px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text); line-height: 1.2; max-width: 200px;
}
.dir-close {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: rgba(255,255,255,.06); color: var(--text2);
  font-size: 14px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-family: 'Inter', sans-serif; margin-top: 2px;
}
.dir-close:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

/* Main stats block */
.dir-main-stats {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.dir-walk-block {
  display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0;
}
.dir-walk-mins {
  font-size: 44px; font-weight: 900; letter-spacing: -3px;
  line-height: 1; color: #c4b5fd;
}
.dir-walk-unit {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text3); margin-top: 2px;
}
.dir-meta-rows {
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid rgba(255,255,255,.07); padding-left: 14px;
}
.dir-meta-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: var(--text2);
}

/* Google Maps button */
.dir-gmaps-btn {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  color: var(--text2); font-size: 12px; font-weight: 700;
  text-decoration: none; transition: all .15s; cursor: pointer;
  font-family: 'Inter', sans-serif; box-sizing: border-box;
}
.dir-gmaps-btn:hover {
  background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.3); color: #c4b5fd;
}

/* Steps list */
.dir-steps {
  flex: 1; overflow-y: auto; padding: 12px 12px 8px;
}
.dir-steps::-webkit-scrollbar { width: 3px; }
.dir-steps::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* Individual step — timeline layout */
.dir-step {
  display: flex; align-items: flex-start; gap: 0; padding: 0;
}
.dir-step-left {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 38px;
}
.dir-step-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text2);
}
.dir-route-line {
  width: 2px; flex: 1; min-height: 20px;
  background: linear-gradient(to bottom, rgba(139,92,246,.35), rgba(139,92,246,.08));
  margin: 4px 0;
}
.dir-step-body {
  flex: 1; min-width: 0;
  padding: 5px 4px 14px 8px;
}
.dir-step:last-child .dir-step-body { padding-bottom: 4px; }
.dir-step-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  line-height: 1.4; margin-bottom: 3px;
}
.dir-step-dist { font-size: 10px; color: var(--text3); font-weight: 500; }

/* Loading & error state */
.dir-loading {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px; text-align: center;
}
.dir-spinner { color: #8b5cf6; animation: dir-spin .9s linear infinite; }
.dir-loading-text { margin-top: 12px; font-size: 13px; color: var(--text3); font-weight: 500; }
@keyframes dir-spin { to { transform: rotate(360deg); } }

/* Footer */
.dir-footer {
  padding: 9px 14px; border-top: 1px solid rgba(255,255,255,.05);
  font-size: 10px; color: var(--text3); flex-shrink: 0;
  text-align: center; display: flex; align-items: center;
  justify-content: center; gap: 5px;
}

/* ══════════════════════════════════════════════
   DEV MODE BANNER
══════════════════════════════════════════════ */
.dev-mode-banner {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 600;
  background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.32);
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; color: #fde68a;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all .15s; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.dev-mode-banner:hover { background: rgba(251,191,36,.24); }

/* ══════════════════════════════════════════════
   MOBILE BOTTOM SHEET
══════════════════════════════════════════════ */
.mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.6);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 55vh;
  overflow: hidden;
}
.mobile-sheet.open {
  transform: translateY(0);
}
.mobile-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  margin: 10px auto 0;
}
.mobile-sheet-content {
  padding: 14px 18px 24px;
  overflow-y: auto;
  max-height: calc(55vh - 24px);
}
.mobile-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mobile-sheet-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}
.mobile-sheet-meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}
.mobile-sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,.07);
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-sheet-queue {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid;
  margin-bottom: 14px;
  font-size: 13px;
}
.mobile-sheet-queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: markerPulse 2.8s ease-out infinite;
}
.mobile-sheet-details { margin-bottom: 14px; }
.mobile-sheet-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 10px;
}
.mobile-sheet-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text2);
}
.mobile-sheet-row span:last-child {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  max-width: 55%;
}
.mobile-sheet-actions {
  display: flex;
  gap: 10px;
}
.mobile-sheet-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-sheet-btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,.3);
}
/* ── Crowdly Score pill (venue list) ─────────────────────────────────────── */
.cs-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid;
  letter-spacing: .3px;
  flex-shrink: 0;
}

/* ── Crowdly Score ring (recommendation card) ───────────────────────────── */
.cs-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  background: conic-gradient(var(--purple) calc(var(--cs) * 1%), rgba(255,255,255,.06) 0);
  box-shadow: 0 0 0 3px rgba(139,92,246,.2);
  color: #fff;
  flex-shrink: 0;
}

/* ── Recommendation card ─────────────────────────────────────────────────── */
.rec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin: 0 0 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,.18) 0%, rgba(59,130,246,.12) 100%);
  border: 1px solid rgba(139,92,246,.35);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.rec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,.06), transparent);
  pointer-events: none;
}
.rec-card:hover { border-color: rgba(139,92,246,.6); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(139,92,246,.2); }
.rec-card-crown { font-size: 18px; flex-shrink: 0; }
.rec-card-body  { flex: 1; min-width: 0; }
.rec-card-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #c4b5fd; margin-bottom: 2px; }
.rec-card-name  { font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-card-sub   { font-size: 10px; color: rgba(196,181,253,.7); margin-top: 1px; }

/* ── Wishlist button (venue list row) ───────────────────────────────────── */
.wl-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text3);
  padding: 0 2px;
  line-height: 1;
  transition: color .15s, transform .15s;
  flex-shrink: 0;
}
.wl-btn:hover  { color: #f472b6; transform: scale(1.2); }
.wl-btn.active { color: #f472b6; }

/* ── Wishlist filter button (sidebar) ──────────────────────────────────── */
.wishlist-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.wishlist-filter-btn:hover { border-color: #f472b6; color: #f472b6; }
.wishlist-filter-btn.active { background: rgba(244,114,182,.12); border-color: rgba(244,114,182,.4); color: #f472b6; }

/* ── Venue item wishlist highlight ─────────────────────────────────────── */
.venue-item.wishlisted { border-color: rgba(244,114,182,.2); }

/* ── Quick vote buttons ─────────────────────────────────────────────────── */
.vote-block { margin: 10px 0 8px; }
.vote-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: 7px; }
.vote-btns  { display: flex; gap: 6px; }
.vote-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.2;
}
.vote-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--text); transform: translateY(-1px); }
.vote-btn span  { font-size: 10px; }
.vote-btn em    { font-style: normal; font-size: 10px; font-weight: 800; color: var(--purple); }

/* ── User stats in dropdown ─────────────────────────────────────────────── */
.ud-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin: 6px 0;
  padding: 8px 0;
}
.ud-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.ud-stat:last-child { border-right: none; }
.ud-stat-num { font-size: 16px; font-weight: 900; color: #fff; }
.ud-stat-lbl { font-size: 9px; color: var(--text3); text-align: center; line-height: 1.3; }
.ud-fav {
  font-size: 11px;
  color: var(--text2);
  padding: 0 10px 6px;
}
.ud-fav strong { color: var(--text); }

.mobile-sheet-btn-secondary {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
}
