/* === tokens.css === */
/* ══════════════════════════════════════════════════
   Events Near Me Now — Design Tokens
   Base tokens (main product — LIGHT theme).
   Product overrides in tokens-worldcup.css, etc.
   ══════════════════════════════════════════════════ */

:root {
  /* ── Surfaces (warm cream light theme) ── */
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-2: #F2EDE4;
  --surface-3: #E8E2D8;
  --border: rgba(0, 0, 0, 0.08);

  /* ── Text (dark charcoal) ── */
  --text: #1A1A1A;
  --text-secondary: #5A5650;
  --text-dim: #9A9590;

  /* ── Brand — Primary (warm orange) ── */
  --accent: #F7A058;
  --accent-glow: rgba(247, 160, 88, 0.15);
  --accent-hover: #F59040;
  --accent-soft: rgba(247, 160, 88, 0.08);

  /* ── Brand — Secondary (teal) ── */
  --teal: #0AA881;
  --teal-glow: rgba(10, 168, 129, 0.15);
  --teal-hover: #089A75;
  --teal-soft: rgba(10, 168, 129, 0.08);

  /* ── Brand — CTA / Urgent ── */
  --coral: #E85D5D;
  --coral-glow: rgba(232, 93, 93, 0.15);
  --coral-hover: #D04E4E;

  /* ── Brand — Highlight (stars/ratings) ── */
  --highlight: #F5D75A;
  --highlight-glow: rgba(245, 215, 90, 0.15);

  /* ── Semantic colors ── */
  --green: #2BA84A;
  --blue: #3080D0;
  --pink: #D04070;
  --purple: #7050C0;

  /* ── Radius ── */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* ── Safe area ── */
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* ── Glassmorphism (light mode) ── */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* ── Elevation / Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* ── Skeleton / Loading ── */
  --skeleton-base: var(--surface-2);
  --skeleton-shine: var(--surface-3);
}


/* === tokens-worldcup.css === */
/* FWC26 Edition — Light football theme
   Playful, warm, football-colored. Not dark and brooding.
   Pitch green primary, gold secondary, warm cream base. */
:root {
  /* ── Surfaces (warm cream — inherited from base tokens) ── */
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-2: #F2EDE4;
  --surface-3: #E8E2D8;
  --border: rgba(0, 0, 0, 0.08);

  /* ── Text (dark — inherited) ── */
  --text: #1A1A1A;
  --text-secondary: #5A5650;
  --text-dim: #9A9590;

  /* ── Brand — Primary (pitch green) ── */
  --accent: #007A47;
  --accent-hover: #009456;
  --accent-glow: rgba(0, 122, 71, 0.15);
  --accent-soft: rgba(0, 122, 71, 0.08);

  /* ── Brand — Secondary (gold) ── */
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.18);
  --gold-hover: #E0BF4A;
  --gold-soft: rgba(212, 175, 55, 0.10);

  /* ── Football greens ── */
  --green: #007A47;
  --green-light: #00C875;
  --green-glow: rgba(0, 200, 117, 0.12);

  /* ── Field accent (for borders, dividers) ── */
  --field-line: rgba(0, 122, 71, 0.15);
  --field-line-hover: rgba(0, 122, 71, 0.3);

  /* ── Glassmorphism (light mode) ── */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* ── Trophy gradient (gold) ── */
  --trophy-gradient: linear-gradient(135deg, #D4AF37 0%, #F5E6A3 50%, #D4AF37 100%);

  /* ── Dark chrome (header + bottom nav) ── */
  --chrome-bg: #0D2818;
  --chrome-text: #FAF7F0;
  --chrome-text-dim: rgba(250, 247, 240, 0.55);
  --chrome-border: rgba(212, 175, 55, 0.3);

  --radius: 14px;
}


/* === base.css === */
/* ══════════════════════════════════════════════════
   Base — Reset, Typography, Layout Primitives
   ══════════════════════════════════════════════════ */

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* RTL support */
[dir="rtl"] .header { direction: rtl; }
[dir="rtl"] .input-area { direction: rtl; }
[dir="rtl"] .message { direction: rtl; text-align: right; }

/* Responsive base */
@media (max-width: 600px) {
  .header { padding: 12px 16px; }
  .chat-container { padding: 16px; }
  .input-area { padding: 12px 16px 20px; }
  .ad-free-badge { display: none; }
}


/* === components.css === */
/* ══════════════════════════════════════════════════
   Shared Components
   ══════════════════════════════════════════════════ */

/* ── Header ── */
.header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 100;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}
.logo:hover { opacity: 0.85; }

.logo-wrap { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.logo-sub { font-size: 11px; color: var(--text-dim); font-weight: 400; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.header-btn {
  background: transparent; border: none;
  color: var(--text-secondary); border-radius: 10px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.header-btn:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.header-btn svg { width: 20px; height: 20px; }

.new-search-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.new-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.new-search-btn svg { width: 12px; height: 12px; }
.new-search-btn.visible { display: flex; }

.prefs-header-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 7px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}
.prefs-header-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.ad-free-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  opacity: 0.6;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.location-badge:hover {
  border-color: var(--accent);
  color: var(--text);
}

.location-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ── User Identity ── */
.user-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.user-pill:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
}

.user-email-short {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 48px; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.user-dropdown.open { display: flex; flex-direction: column; }
.user-dropdown button {
  background: none; border: none;
  color: var(--text); padding: 10px 14px;
  text-align: left; font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; border-radius: 8px;
  transition: background 0.15s;
  display: flex; align-items: center;
  letter-spacing: 0.01em;
}
.user-dropdown button:hover { background: rgba(0,0,0,0.05); }
.user-dropdown button svg { flex-shrink: 0; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.signin-header-btn {
  display: none;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.signin-header-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Sign-in Modal ── */
.signin-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.signin-modal-overlay.open { display: flex; }
.signin-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 90%; max-width: 360px;
  text-align: center;
}
.signin-modal h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.signin-modal p { color: var(--text-secondary); font-size: 13px; margin: 0 0 20px; }
.signin-modal input {
  width: 100%; padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
  outline: none; transition: border-color 0.2s;
}
.signin-modal input:focus { border-color: var(--accent); }
.signin-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.signin-modal-actions button {
  flex: 1; padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.signin-modal-actions .signin-cancel {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
}
.signin-modal-actions .signin-submit {
  background: var(--accent); border: none; color: #000;
}
.signin-modal-actions .signin-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 16px; margin: 12px 0 8px;
  background: #fff; color: #333; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.google-signin-btn:hover { background: #f8f8f8; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.google-signin-btn img { width: 18px; height: 18px; }
.signin-divider { text-align: center; color: var(--text-dim); font-size: 12px; margin: 8px 0; }

/* ── Chat Container ── */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

/* ── Welcome State ── */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 20px;
  margin: auto 0;
  animation: fadeUp 0.6s ease-out;
}

.welcome h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1A1A1A 30%, var(--accent) 70%, var(--teal, var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-input-wrapper {
  max-width: 480px; width: 100%;
  display: flex; gap: 10px;
  align-items: flex-end;
  margin-top: 20px; margin-bottom: 8px;
}
.welcome-input-wrapper .input-field { flex: 1; }

.welcome-location {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 500;
  color: var(--text); cursor: pointer;
  margin-top: 16px; margin-bottom: 8px;
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.welcome-location:hover { background: var(--accent-soft); transform: translateY(-1px); }

.welcome-location-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.welcome-location-live {
  font-size: 11px; color: var(--text-dim);
  padding-left: 8px; border-left: 1px solid var(--border);
}

.quick-asks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 24px;
  max-width: 480px; width: 100%;
}
.quick-ask {
  padding: 14px; background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.quick-ask:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.welcome-footer {
  margin-top: 24px; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.3px;
}

/* Quick chips (horizontal scroll variant) */
.quick-chips {
  display: flex; gap: 8px; padding: 10px 16px;
  overflow-x: auto; flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
}
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chip {
  flex-shrink: 0; padding: 8px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all 0.15s; white-space: nowrap;
}
.quick-chip:hover {
  border-color: rgba(0,0,0,0.08);
  background: var(--surface-2);
  color: var(--text);
}
.quick-chip:active { transform: scale(0.96); }

@media (min-width: 601px) {
  .quick-asks {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
  }
}

/* ── Email Signup ── */
.signup-card {
  margin-top: 28px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 400px; width: 100%; text-align: center;
}
.signup-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.signup-card p {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 14px; line-height: 1.4;
}
.signup-form { display: flex; gap: 8px; }
.signup-form input {
  flex: 1; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.signup-form input:focus { border-color: var(--accent); }
.signup-form input::placeholder { color: var(--text-dim); }
.signup-btn {
  padding: 10px 18px; background: var(--accent);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.signup-btn:hover { background: var(--accent-hover); }
.signup-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.signup-success {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  animation: fadeUp 0.4s ease-out;
}
.signup-checkmark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.signup-checkmark svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.signup-success-text { font-size: 14px; font-weight: 600; color: var(--text); }
.signup-success-sub { font-size: 12px; color: var(--text-secondary); }
.signup-error { font-size: 12px; color: var(--coral); margin-top: 8px; }

/* ── Messages ── */
.message {
  max-width: 720px; width: 100%;
  margin: 0 auto;
  animation: fadeUp 0.3s ease-out;
}
.message.user { display: flex; justify-content: flex-end; }
.message.user .bubble {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  max-width: 80%; font-size: 15px; line-height: 1.5;
}
.message.assistant .bubble {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px var(--radius-sm) var(--radius-sm) 2px;
  padding: 20px 24px;
  font-size: 16px; line-height: 1.6;
  color: var(--text); font-weight: 400;
}
.message.assistant .bubble .highlight-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.highlight-icon { display: flex; align-items: center; color: var(--accent); }
.message.assistant .bubble p { margin-bottom: 6px; }
.message.assistant .bubble p:last-child { margin-bottom: 0; }

/* Chat messages (worldcup variant) */
.chat-view { display: flex; flex-direction: column; height: 100%; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 16px 10px;
  -webkit-overflow-scrolling: touch;
}

/* ── Input Area ── */
.input-area {
  padding: 16px 24px 24px;
  flex-shrink: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.input-area.hidden { display: none; }

.input-wrapper {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 10px; align-items: flex-end;
}

.input-field {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text); font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none; resize: none;
  min-height: 48px; max-height: 120px;
  line-height: 1.4; transition: border-color 0.2s;
}
.input-field::placeholder { color: var(--text-dim); }
.input-field:focus { border-color: var(--accent); }

.send-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--coral);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.send-btn:hover { background: var(--coral-hover); transform: scale(1.05); }
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.send-btn svg { width: 20px; height: 20px; fill: var(--bg); }

/* Chat input (worldcup variant) */
.chat-input-wrap {
  padding: 12px 16px 16px; flex-shrink: 0; position: relative;
  padding-bottom: calc(16px + var(--safe-bottom));
}
.chat-input-container {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chat-input-container:focus-within {
  border-color: rgba(247, 160, 88, 0.3);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow);
}
.chat-input {
  width: 100%; background: transparent; border: none;
  border-radius: 16px; padding: 14px 52px 14px 18px;
  color: var(--text); font-size: 15px; outline: none;
  font-family: inherit; resize: none;
  min-height: 48px; max-height: 120px; line-height: 1.4;
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--teal, var(--accent)); border: none; color: #fff;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 2px 8px rgba(10, 168, 129, 0.3);
}
.chat-send svg {
  width: 16px; height: 16px; stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.chat-send:hover { background: var(--teal-hover, var(--accent-hover)); transform: scale(1.08); }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

/* Typing indicator */
.msg-typing { display: inline-flex; gap: 5px; padding: 14px 4px; }
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim); animation: bounce 1.4s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  position: relative;
  animation: fadeUp 0.3s ease-out;
}
.modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.modal-content .modal-sub {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 20px; line-height: 1.4;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-dim); font-size: 24px;
  cursor: pointer; padding: 4px 8px;
  transition: color 0.2s; border-radius: 6px;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.modal-body p {
  font-size: 15px; line-height: 1.6;
  color: var(--text-secondary); margin-bottom: 14px;
}
.modal-body p strong { color: var(--text); }

.modal-btn {
  width: 100%; padding: 12px;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.modal-btn-primary { background: var(--accent); color: #fff; }
.modal-btn-primary:hover { background: var(--accent-hover); }
.modal-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Location Picker Modal ── */
.location-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
.location-modal-overlay.active { display: flex; }

.location-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; max-width: 400px; width: 100%;
  animation: fadeUp 0.3s ease-out;
}
.location-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.location-modal-subtitle {
  font-size: 13px; color: var(--text-dim); margin-bottom: 20px;
}
.location-modal-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.location-modal-input:focus { border-color: var(--accent); }
.location-modal-input::placeholder { color: var(--text-dim); }

.location-modal-detect {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--accent-glow); border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  width: 100%; font-family: 'DM Sans', sans-serif; margin-bottom: 12px;
}
.location-modal-detect:hover { background: rgba(0,180,216,0.25); }

.location-modal-input-wrap { position: relative; margin-bottom: 12px; }
.location-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px; overflow-y: auto; z-index: 10; display: none;
}
.location-suggestions.active { display: block; }
.location-suggestion {
  padding: 10px 16px; font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: background 0.15s;
}
.location-suggestion:hover { background: var(--surface-3); color: var(--text); }

.location-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.location-modal-cancel {
  padding: 8px 18px; background: none; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-secondary); font-size: 13px;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.location-modal-cancel:hover { border-color: var(--text-dim); color: var(--text); }

/* ── Toast ── */
.nmn-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); color: var(--text);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 20px; border-radius: 12px;
  font-size: 13px; z-index: 9999;
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-width: 340px; text-align: center; line-height: 1.4;
}
.nmn-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nmn-toast a { color: var(--coral); text-decoration: underline; cursor: pointer; }

/* ── My Events Panel ── */
.my-events-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.my-events-overlay.open { opacity: 1; pointer-events: auto; }
.my-events-panel {
  background: var(--surface-2); border-radius: 16px;
  width: 90%; max-width: 480px; max-height: 80vh;
  overflow-y: auto; padding: 24px;
}
.my-events-panel h3 { margin: 0 0 16px; font-size: 18px; }
.my-events-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 10px;
  background: var(--bg); margin-bottom: 8px;
}
.my-events-item-info { flex: 1; }
.my-events-item-title { font-weight: 600; font-size: 14px; }
.my-events-item-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.my-events-item-synced { font-size: 11px; color: #50c878; margin-top: 2px; }
.my-events-remove {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 16px; padding: 4px;
  opacity: 0.5; transition: opacity 0.2s;
}
.my-events-remove:hover { opacity: 1; color: #e06090; }
.my-events-empty { text-align: center; color: var(--text-dim); padding: 32px 0; }

/* ── Preferences Modal ── */
.interest-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.interest-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s;
  font-size: 13px; color: var(--text-secondary);
}
.interest-chip:hover { border-color: var(--accent); color: var(--text); }
.interest-chip.selected {
  border-color: var(--accent); background: var(--accent-glow); color: var(--text);
}
.interest-chip input { display: none; }

/* Prefs chat */
.prefs-chat { display: flex; flex-direction: column; height: 360px; }
.prefs-chat-messages {
  flex: 1; overflow-y: auto; padding: 8px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.prefs-msg { display: flex; max-width: 88%; }
.prefs-msg.ai { align-self: flex-start; }
.prefs-msg.user { align-self: flex-end; }
.prefs-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.5; word-wrap: break-word;
}
.prefs-msg.ai .prefs-bubble {
  background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px;
}
.prefs-msg.user .prefs-bubble {
  background: var(--accent); color: #fff; border-bottom-right-radius: 4px;
}
.prefs-chat-input-row {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.prefs-chat-input {
  flex: 1; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.prefs-chat-input:focus { border-color: var(--accent); }
.prefs-chat-input::placeholder { color: var(--text-dim); }
.prefs-chat-send {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.prefs-chat-send:hover { background: var(--accent-hover); }
.prefs-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.prefs-confirm-bar {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.prefs-confirm-btn {
  flex: 1; padding: 10px; border: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.prefs-confirm-btn.primary { background: var(--accent); color: #fff; }
.prefs-confirm-btn.primary:hover { background: var(--accent-hover); }
.prefs-confirm-btn.secondary {
  background: var(--surface-2); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.prefs-confirm-btn.secondary:hover { border-color: var(--accent); color: var(--text); }

/* Calendar sync toggle */
.calendar-sync-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(80,200,120,0.08); border-radius: 10px;
  border: 1px solid rgba(80,200,120,0.2); cursor: pointer;
  user-select: none; margin-bottom: 12px;
}
.csr-left { display: flex; align-items: center; gap: 10px; }
.csr-icon { font-size: 18px; }
.csr-label { font-size: 13px; font-weight: 500; color: var(--text); }
.csr-sublabel { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.csr-toggle {
  width: 40px; height: 24px; border-radius: 12px;
  background: rgba(0,0,0,0.08); position: relative;
  transition: background 0.2s; flex-shrink: 0;
}
.csr-toggle.on { background: #50c878; }
.csr-toggle-knob {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
}
.csr-toggle.on .csr-toggle-knob { transform: translateX(16px); }

/* Calendar connect prompt */
.cal-connect-prompt {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px; padding: 12px 16px; width: 240px; z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-size: 12px; line-height: 1.5; color: var(--text-secondary);
}
.cal-connect-prompt::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--surface-2);
}
.cal-connect-prompt strong { color: var(--text); }
.cal-connect-prompt .cal-prompt-actions { display: flex; gap: 8px; margin-top: 8px; }
.cal-connect-prompt .cal-prompt-actions button {
  flex: 1; padding: 6px 8px; border-radius: 6px; font-size: 11px; cursor: pointer; border: none;
}
.cal-prompt-connect { background: var(--coral); color: #fff; font-weight: 600; }
.cal-prompt-ics { background: rgba(0,0,0,0.06); color: var(--text-secondary); }

/* Upgrade */
.modal-btn-upgrade {
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff; margin-bottom: 8px;
}
.modal-btn-upgrade:hover { opacity: 0.9; }
.upgrade-badge {
  display: inline-block; padding: 2px 8px;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.upgrade-features { list-style: none; margin: 12px 0 20px; }
.upgrade-features li {
  font-size: 13px; color: var(--text-secondary);
  padding: 6px 0; display: flex; align-items: center; gap: 8px;
}
.upgrade-features li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════════════
   Phase 2 — Category Browse Strip (Airbnb-style)
   ══════════════════════════════════════════════════ */
.category-strip {
  max-width: 520px; width: 100%;
  margin-top: 20px;
}
.category-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 12px 16px; min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}
.category-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.category-item:active { transform: scale(0.97); }

.category-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--surface-2);
  border-radius: 10px;
}
.category-name {
  font-size: 11px; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   Phase 2 — Bottom Navigation Bar (mobile)
   ══════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 8px 0 calc(8px + var(--safe-bottom));
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 400px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 6px 12px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 10px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: color var(--duration-fast);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item:hover { color: var(--text-secondary); }
.bottom-nav-item.active:hover { color: var(--accent); }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  /* Add bottom padding so content isn't hidden behind nav */
  .chat-container { padding-bottom: 80px; }
  .welcome { margin-bottom: 0; }
}

/* ══════════════════════════════════════════════════
   Phase 2 — "Powered by" footer refinement
   ══════════════════════════════════════════════════ */
.welcome-tagline {
  margin-top: 32px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px; width: 100%;
}
.welcome-tagline-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5;
}
.welcome-tagline-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
}
.welcome-tagline-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ══════════════════════════════════════════════════
   Phase 2 — Skeleton Loading & Search State
   ══════════════════════════════════════════════════ */
.skeleton-results {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; align-self: stretch;
}
.search-status-text {
  transition: opacity 0.3s ease;
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg,
    var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.title { height: 18px; width: 70%; margin-bottom: 14px; }
.skeleton-image {
  height: 120px;
  background: linear-gradient(90deg,
    var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════
   Phase 4 — Map View (Leaflet)
   ══════════════════════════════════════════════════ */
.map-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: none; flex-direction: column;
  background: var(--bg);
}
.map-overlay.active { display: flex; }

.map-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  z-index: 10;
}
.map-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 16px; color: var(--text);
}
.map-close-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: all 0.2s;
}
.map-close-btn:hover { background: var(--surface-2); color: var(--text); }
.map-close-btn svg { width: 18px; height: 18px; }

.map-container {
  flex: 1; position: relative;
}
#mapCanvas {
  width: 100%; height: 100%;
}

/* Leaflet marker overrides */
.map-marker {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid #fff;
}
.map-marker-inner {
  transform: rotate(45deg);
  font-size: 14px; line-height: 1;
}
.map-marker-music { background: #8B5CF6; }
.map-marker-food { background: #F59E0B; }
.map-marker-comedy { background: #EC4899; }
.map-marker-sports { background: #10B981; }
.map-marker-free { background: #06B6D4; }
.map-marker-festival { background: #F97316; }
.map-marker-art { background: #A855F7; }
.map-marker-family { background: #3B82F6; }
.map-marker-default { background: var(--accent); }

.map-marker-user {
  width: 16px; height: 16px;
  background: #4285F4;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.25), 0 2px 8px rgba(0,0,0,0.3);
}

/* Map popup */
.map-popup .leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  padding: 0;
}
.map-popup .leaflet-popup-content {
  margin: 0; font-family: 'DM Sans', sans-serif;
  min-width: 200px;
}
.map-popup .leaflet-popup-tip {
  background: var(--surface);
  border: 1px solid var(--border);
}
.map-popup-card {
  padding: 12px 14px;
}
.map-popup-name {
  font-weight: 600; font-size: 14px;
  margin-bottom: 4px; line-height: 1.3;
}
.map-popup-meta {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 6px; line-height: 1.4;
}
.map-popup-venue {
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 8px;
}
.map-popup-cta {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.map-popup-cta:hover { opacity: 0.85; }

/* Drawer (bottom sheet on map) */
.map-drawer {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  max-height: 50vh;
  transform: translateY(calc(100% - 52px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.map-drawer.expanded { transform: translateY(0); }
.map-drawer-handle {
  display: flex; justify-content: center;
  padding: 10px 0 6px;
  cursor: pointer;
}
.map-drawer-handle::after {
  content: ''; width: 36px; height: 4px;
  background: var(--surface-3); border-radius: 2px;
}
.map-drawer-header {
  padding: 0 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.map-drawer-title {
  font-weight: 600; font-size: 15px; color: var(--text);
}
.map-drawer-count {
  font-size: 12px; color: var(--text-dim);
}
.map-drawer-list {
  padding: 0 16px 16px; overflow-y: auto;
  max-height: calc(50vh - 80px);
}
.map-drawer-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}
.map-drawer-item:last-child { border-bottom: none; }
.map-drawer-item:hover { opacity: 0.7; }
.map-drawer-item-emoji {
  font-size: 20px; flex-shrink: 0; padding-top: 2px;
}
.map-drawer-item-info { flex: 1; min-width: 0; }
.map-drawer-item-name {
  font-weight: 600; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-drawer-item-meta {
  font-size: 11px; color: var(--text-secondary); margin-top: 2px;
}

/* "View on map" button that appears after search results */
.view-on-map-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
  margin-top: 8px;
  font-family: inherit;
}
.view-on-map-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.view-on-map-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}


/* === event-cards.css === */
/* ══════════════════════════════════════════════════
   Event Cards — Main + World Cup variants
   ══════════════════════════════════════════════════ */

/* ── Main Product Event Cards ── */
.events-grid {
  max-width: 720px; width: 100%; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  animation: fadeUp 0.4s ease-out;
  align-items: stretch;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; cursor: pointer;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.event-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0; transition: opacity 0.25s;
}
.event-card:hover {
  border-color: var(--card-accent, var(--accent));
  transform: translateY(-3px) perspective(600px) rotateX(1deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.event-card:hover::before { opacity: 1; }

.event-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 10px; min-height: 20px;
}
.event-category {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--card-accent, var(--accent));
}
.event-price {
  font-size: 13px; font-weight: 600;
  color: var(--green);
  background: rgba(80, 200, 120, 0.1);
  padding: 2px 10px; border-radius: 10px;
}
.event-price.paid { color: var(--text-secondary); background: var(--surface-2); }

.event-name {
  font-size: 17px; font-weight: 600;
  line-height: 1.3; margin-bottom: 8px; color: var(--text);
}
.event-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--text-secondary);
}
.event-meta-row { display: flex; align-items: center; gap: 6px; }
.distance-badge {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(0, 168, 107, 0.15); color: #50c878;
  font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.event-meta-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  display: flex; align-items: center; color: var(--text-dim);
}
.event-description {
  margin-top: 10px; font-size: 13px; color: var(--text-dim);
  line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.event-vibe {
  display: inline-block; align-self: flex-start;
  margin-top: 12px; margin-bottom: 4px;
  font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 14px;
  background: var(--accent-glow); color: var(--accent);
  letter-spacing: 0.3px;
}
.event-cta-row { margin-top: auto; padding-top: 14px; }
.event-cta {
  display: inline-block; padding: 8px 20px;
  background: var(--coral); color: var(--bg);
  font-size: 13px; font-weight: 600;
  border-radius: 20px; text-decoration: none;
  transition: all 0.2s;
}
.event-cta:hover { background: var(--coral-hover); transform: translateY(-1px); }

/* Category color accents */
.event-card[data-category="music"] { --card-accent: #e06090; }
.event-card[data-category="food"] { --card-accent: #f0a050; }
.event-card[data-category="art"] { --card-accent: #9070e0; }
.event-card[data-category="comedy"] { --card-accent: #e0d050; }
.event-card[data-category="sports"] { --card-accent: #50c878; }
.event-card[data-category="festival"] { --card-accent: #e07040; }
.event-card[data-category="outdoor"] { --card-accent: #50b0a0; }
.event-card[data-category="family"] { --card-accent: #70b0e0; }
.event-card[data-category="nightlife"] { --card-accent: #c050e0; }
.event-card[data-category="workshop"] { --card-accent: #70c0a0; }
.event-card[data-category="market"] { --card-accent: #d0a060; }
.event-card[data-category="theater"] { --card-accent: #e08080; }
.event-card[data-category="networking"] { --card-accent: #5090e0; }

/* Save/heart + share buttons */
.save-event-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px 6px; color: var(--text-dim);
  opacity: 0.5; transition: all 0.2s;
  display: flex; align-items: center; margin-left: 8px;
}
.save-event-btn:hover { opacity: 1; color: #e06090; }
.save-event-btn.saved { opacity: 1; color: #e06090; }
.save-event-btn.saved svg { fill: #e06090; }

.share-event-btn {
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  padding: 4px 6px; display: flex; align-items: center;
  opacity: 0.5; transition: all 0.2s;
}
.share-event-btn:hover { opacity: 1; color: var(--accent); }

.add-cal-btn, .map-link-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 2px 4px; margin-left: auto;
  display: flex; align-items: center;
  transition: color 0.2s; opacity: 0.5; text-decoration: none;
}
.add-cal-btn:hover, .map-link-btn:hover { color: var(--accent); opacity: 1; }

/* ── World Cup / SXSW AI Event Cards ── */
.ai-events-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px;
}
@media (min-width: 500px) {
  .ai-events-grid { grid-template-columns: repeat(2, 1fr); }
}

.ai-event-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column; gap: 5px;
}
.ai-event-card:hover {
  transform: translateY(-3px) perspective(600px) rotateX(1deg);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.aec-category-badge {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 6px; margin-bottom: 2px;
}
.aec-price-badge {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px; margin-bottom: 2px;
}
.ai-event-card .aec-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text);
}
.aec-datetime { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.aec-location { font-size: 12px; color: var(--text-secondary); }
.aec-location-row { display: flex; align-items: center; gap: 6px; }
.aec-distance-badge {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(0,168,107,0.15); color: var(--green, var(--green-light, #50c878));
  font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.aec-desc {
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px;
}
.aec-vibe-pill {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 500; color: var(--accent);
  background: var(--accent-glow); border-radius: 20px;
  padding: 4px 10px; margin-top: 4px;
}
.aec-official-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; color: var(--green, var(--green-light, #50c878));
  background: var(--green-glow, rgba(80,200,120,0.1));
  border: 1px solid rgba(0,168,107,0.25);
  border-radius: 20px; padding: 3px 10px; margin-bottom: 2px;
}
.ai-event-card.is-official { border-left: 3px solid rgba(0,168,107,0.35); }

.aec-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.aec-cta-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: #000;
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 20px;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.15s; white-space: nowrap; flex-shrink: 0;
}
.aec-cta-btn:hover { opacity: 0.85; }
.aec-save-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
  cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.aec-save-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.aec-save-btn.saved {
  color: #e06060; border-color: rgba(224,96,96,0.4);
  background: rgba(224,96,96,0.08);
}
.aec-loading { color: var(--text-dim); font-size: 13px; padding: 8px 0; }

@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
}


/* === animations.css === */
/* ══════════════════════════════════════════════════
   Animations — Keyframes + Transitions
   ══════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes prefsDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* ── Radar Search Animation ── */
.searching {
  max-width: 720px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 32px 0;
  animation: fadeUp 0.3s ease-out;
}

.radar-container {
  position: relative; width: 100px; height: 100px;
}
.radar-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  color: var(--accent); z-index: 2;
  animation: pinBounce 2s ease-in-out infinite;
}
.radar-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  animation: radarPing 2.4s ease-out infinite;
}
.radar-ring:nth-child(2) { animation-delay: 0s; }
.radar-ring:nth-child(3) { animation-delay: 0.6s; }
.radar-ring:nth-child(4) { animation-delay: 1.2s; }

@keyframes radarPing {
  0% { width: 20px; height: 20px; opacity: 0.6; transform: translate(-50%, -50%) scale(0.5); }
  100% { width: 100px; height: 100px; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.1); }
}

.radar-status {
  font-size: 13px; color: var(--text-dim); text-align: center;
  height: 18px; position: relative;
}
.radar-status span {
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; transition: opacity 0.4s ease;
}
.radar-status span.fade-out { opacity: 0; }

.thinking-content {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 14px;
}
.thinking-dots { display: flex; gap: 4px; }
.thinking-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Prefs typing */
.prefs-typing {
  display: flex; align-self: flex-start; gap: 4px;
  padding: 12px 16px; background: var(--surface-2);
  border-radius: 16px; border-bottom-left-radius: 4px;
}
.prefs-typing span {
  width: 6px; height: 6px; background: var(--text-dim);
  border-radius: 50%; animation: prefsDot 1.2s infinite;
}
.prefs-typing span:nth-child(2) { animation-delay: 0.2s; }
.prefs-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Skeleton / Shimmer (for future use) ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   Phase 5 — Polish & Micro-interactions
   ══════════════════════════════════════════════════ */

/* ── Heart save pop animation ── */
@keyframes heartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.save-event-btn.pop { animation: heartPop 0.4s ease-out; }
.aec-save-btn.pop { animation: heartPop 0.4s ease-out; }

/* ── Staggered entrance for cards ── */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.event-card.animate-in,
.ai-event-card.animate-in {
  animation: cardEnter 0.35s ease-out both;
}

/* ── Category pill press effect ── */
.category-item:active {
  transform: scale(0.93);
  transition: transform 0.1s ease;
}
.quick-ask:active, .quick-chip:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* ── Bottom nav transition ── */
.bottom-nav-item {
  transition: color 0.2s ease, transform 0.15s ease;
}
.bottom-nav-item:active { transform: scale(0.9); }

/* ── Smooth modal/overlay entrances ── */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Share button ripple ── */
@keyframes rippleOut {
  0% { box-shadow: 0 0 0 0 rgba(247, 160, 88, 0.3); }
  100% { box-shadow: 0 0 0 12px rgba(247, 160, 88, 0); }
}
.share-event-btn.ripple { animation: rippleOut 0.4s ease-out; }

/* ── Toast entrance ── */
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

/* ── View on map button pulse ── */
.view-on-map-btn {
  animation: fadeUp 0.3s ease-out;
}


/* === style.css === */
/* ══════════════════════════════════════════════════
   FWC26 Local Guide — Product-Specific Styles
   Appended after shared CSS by build.js
   ══════════════════════════════════════════════════ */

/* ── Header overrides (FWC26 dark chrome) ── */
.header {
  padding: 12px 20px;
  border-bottom: 2px solid var(--gold);
  background: var(--chrome-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header .logo {
  color: var(--gold);
  background: var(--trophy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.header .logo-sub {
  color: var(--chrome-text-dim);
}
.header .logo-ball {
  color: var(--gold);
}
.header-right { gap: 6px; }

.user-avatar {
  width: 26px; height: 26px;
  background: rgba(250, 247, 240, 0.1);
  color: var(--chrome-text-dim);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  border: 1px solid rgba(250, 247, 240, 0.15);
}
.user-avatar.signed-in {
  background: var(--gold);
  color: #0D2818;
  border-color: var(--gold);
}
.user-avatar:hover { border-color: var(--gold); }

/* ── View switching ── */
.main { flex: 1; overflow: hidden; position: relative; }

.view {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: none; flex-direction: column;
}
.view.active { display: flex; }

/* ── Schedule link (header) ── */
.schedule-link {
  font-size: 12px; color: var(--chrome-text-dim);
  cursor: pointer; padding: 5px 12px;
  border-radius: 20px; border: 1px solid rgba(250, 247, 240, 0.15);
  transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}
.schedule-link:hover {
  border-color: var(--gold);
  color: var(--chrome-text);
}

/* ── City switcher (header pill) ── */
.city-switcher {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.15); border-radius: 20px;
  font-size: 12px; color: var(--chrome-text-dim);
  cursor: pointer; transition: all 0.2s; position: relative;
}
.city-switcher:hover { border-color: var(--gold); color: var(--chrome-text); }

.city-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2s ease-in-out infinite;
}

.city-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  margin-top: 6px; padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: none; z-index: 110;
  max-height: 300px; overflow-y: auto;
}
.city-dropdown.visible { display: block; }

.city-dropdown-item {
  padding: 10px 14px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s; color: var(--text-secondary);
}
.city-dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.city-dropdown-item.active { color: var(--accent); font-weight: 600; }

/* ── City selector (welcome page inline picker) ── */
.city-selector-wrap {
  width: auto; max-width: 320px;
  margin-top: 16px; margin-bottom: 4px;
}

.city-selector-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px; cursor: pointer;
  transition: all 0.2s; color: var(--text-secondary);
  font-size: 13px; font-family: inherit;
}
.city-selector-btn:hover,
.city-selector-btn:focus {
  border-color: rgba(0, 122, 71, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 122, 71, 0.1);
}

.city-selector-btn .cs-icon {
  width: 20px; height: 20px;
  color: var(--accent); flex-shrink: 0;
}
.city-selector-btn .cs-label {
  flex: 1; text-align: left; color: var(--text-secondary);
}
.city-selector-btn .cs-label.has-city {
  color: var(--text); font-weight: 500;
}
.city-selector-btn .cs-arrow {
  color: var(--text-dim); font-size: 12px;
  flex-shrink: 0; transition: transform 0.2s;
}

.city-selector-list {
  display: none; position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 8px 0; z-index: 200;
  max-height: 280px; overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
.city-selector-list.open { display: block; }

.city-selector-list .cs-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  transition: background 0.15s;
  font-size: 14px; color: var(--text-secondary);
}
.city-selector-list .cs-item:hover { background: var(--surface-2); color: var(--text); }
.city-selector-list .cs-item.active { color: var(--accent); font-weight: 600; }
.city-selector-list .cs-item .cs-item-venue {
  font-size: 11px; color: var(--text-dim); margin-left: auto;
}
.city-selector-list .cs-divider {
  height: 1px; background: var(--border); margin: 4px 0;
}
.city-selector-list .cs-item-home {
  color: var(--text-dim); font-size: 13px;
}

/* ── City grid (browse all — secondary page) ── */
.city-picker { padding: 24px 16px 100px; }

.city-picker-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700; text-align: center;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.city-picker-sub {
  text-align: center; font-size: 13px;
  color: var(--text-secondary); margin-bottom: 24px;
}

.city-grid {
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}

.city-group-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 8px;
  padding-left: 2px;
}
.city-group-grid {
  display: flex; flex-direction: column; gap: 6px;
}

.city-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  cursor: pointer; transition: all 0.2s; position: relative;
  display: flex; align-items: center; gap: 14px;
}
.city-card:hover {
  border-color: rgba(0, 122, 71, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.city-card:active { transform: scale(0.98); }
.city-card-flag { font-size: 26px; flex-shrink: 0; }
.city-card-info { flex: 1; min-width: 0; }
.city-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.city-card-venue { font-size: 12px; color: var(--text-dim); line-height: 1.3; margin-top: 2px; }
.city-card-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 10px;
  display: none; flex-shrink: 0; white-space: nowrap;
  background: rgba(0, 200, 117, 0.12); color: var(--green-light);
  border: 1px solid rgba(0, 200, 117, 0.2);
}
.city-card-badge.visible { display: inline-block; }
.city-card::after {
  content: '\203A'; font-size: 18px; color: var(--text-dim);
  margin-left: auto; flex-shrink: 0; transition: color 0.2s;
}
.city-card:hover::after { color: var(--accent); }

/* Flag wave animation on hover */
@keyframes flagWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}
.city-card:hover .city-card-flag {
  animation: flagWave 0.5s ease-in-out;
}

/* Match context live dot */
.match-card-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light); position: absolute;
  top: 10px; right: 10px;
  animation: pulse 2s ease-in-out infinite;
}
.match-card-group {
  font-size: 10px; color: var(--text-dim);
  margin-top: 2px; text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-option {
  text-align: center; margin-top: 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-size: 14px; color: var(--text-secondary);
  transition: all 0.2s;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.home-option:hover { border-color: rgba(0, 122, 71, 0.3); color: var(--text); }

.browse-all-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 12px; color: var(--text-dim);
  cursor: pointer; transition: color 0.2s;
  background: none; border: none; font-family: inherit;
}
.browse-all-link:hover { color: var(--accent); }

/* ── Match context strip ── */
.match-context {
  padding: 10px 16px; display: flex; gap: 10px;
  overflow-x: auto; flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.match-context::-webkit-scrollbar { display: none; }
.match-context:empty { display: none; }

.match-card {
  flex-shrink: 0; background: var(--green-glow);
  border: 1px solid rgba(0, 107, 63, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px; min-width: 180px;
  position: relative; overflow: hidden;
}
.match-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 107, 63, 0.08) 0%, transparent 100%);
  border-radius: inherit; pointer-events: none;
}
.match-card-teams {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.match-card-time { font-size: 12px; color: var(--green-light); }
.match-card-venue { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ── Welcome state (chat-first landing) ── */
.chat-welcome {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; padding: 24px 20px 16px;
  text-align: center; min-height: 0;
  position: relative;
}
/* Pitch-themed ambient glow behind welcome */
.chat-welcome::before {
  content: ''; position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 440px; height: 440px; border-radius: 50%;
  background:
    /* Center dot */
    radial-gradient(circle at 50% 50%, rgba(0, 122, 71, 0.18) 0%, rgba(0, 122, 71, 0.18) 4px, transparent 4px),
    /* Halfway line (horizontal) */
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(0, 122, 71, 0.10) calc(50% - 1px), rgba(0, 122, 71, 0.10) calc(50% + 1px), transparent calc(50% + 1px)),
    /* Base glow — stronger */
    radial-gradient(
      circle,
      rgba(0, 122, 71, 0.08) 0%,
      rgba(212, 175, 55, 0.05) 40%,
      transparent 70%
    );
  pointer-events: none; z-index: 0;
}
.chat-welcome > * { position: relative; z-index: 1; }

/* Pitch center circle — more visible */
.chat-welcome::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border: 2.5px solid rgba(0, 122, 71, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Compact mode when city feed is visible */
.chat-welcome.compact {
  flex: none; justify-content: flex-start; padding-top: 20px;
}
.chat-welcome.hidden { display: none; }

.chat-welcome p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5; max-width: 400px;
  margin-bottom: 18px; flex-shrink: 0;
}

.welcome-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: #B8941F;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px; padding: 5px 14px;
  margin-bottom: 14px; flex-shrink: 0;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.welcome-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.welcome-hero {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.5px; margin-bottom: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #0D2818 40%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-rotating {
  transition: opacity 0.4s ease; min-height: 2.2em;
}
.welcome-rotating.fade-out { opacity: 0; }

.welcome-chat-input {
  width: 100%; max-width: 480px; margin-bottom: 12px;
}
.welcome-chat-input .chat-input-container {
  border-color: rgba(0, 122, 71, 0.3);
  background: var(--surface-2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 122, 71, 0.08);
}
.welcome-chat-input .chat-input {
  font-size: 16px; padding: 16px 56px 16px 20px; min-height: 54px;
}
.welcome-chat-input .chat-input::placeholder {
  color: var(--text-secondary);
}
.welcome-chat-input .chat-send {
  width: 38px; height: 38px; bottom: 9px; right: 9px;
}

.chat-welcome-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; width: 100%; max-width: 480px;
  flex-shrink: 0; margin-top: 4px;
}
.chat-welcome-grid .quick-ask {
  padding: 9px 16px 9px 14px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--text-dim);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s; text-align: left;
  line-height: 1.3; white-space: nowrap;
}
/* Category-colored left borders */
.chat-welcome-grid .quick-ask:nth-child(1) { border-left-color: #D4AF37; } /* Match Day — gold */
.chat-welcome-grid .quick-ask:nth-child(2) { border-left-color: #29B6F6; } /* Watch Parties — blue */
.chat-welcome-grid .quick-ask:nth-child(3) { border-left-color: #FFB74D; } /* Food — orange */
.chat-welcome-grid .quick-ask:nth-child(4) { border-left-color: #007A47; } /* Fan Zones — green */
.chat-welcome-grid .quick-ask:nth-child(5) { border-left-color: #CE93D8; } /* After Party — purple */
.chat-welcome-grid .quick-ask:nth-child(6) { border-left-color: #4DD0E1; } /* Free Events — teal */
.chat-welcome-grid .quick-ask:hover {
  border-color: rgba(0, 122, 71, 0.3);
  background: rgba(0, 122, 71, 0.05);
  color: var(--text);
  transform: translateY(-1px);
}
/* Preserve left border color on hover */
.chat-welcome-grid .quick-ask:nth-child(1):hover { border-left-color: #D4AF37; }
.chat-welcome-grid .quick-ask:nth-child(2):hover { border-left-color: #29B6F6; }
.chat-welcome-grid .quick-ask:nth-child(3):hover { border-left-color: #FFB74D; }
.chat-welcome-grid .quick-ask:nth-child(4):hover { border-left-color: #007A47; }
.chat-welcome-grid .quick-ask:nth-child(5):hover { border-left-color: #CE93D8; }
.chat-welcome-grid .quick-ask:nth-child(6):hover { border-left-color: #4DD0E1; }
.chat-welcome-grid .quick-ask:active { transform: scale(0.97); }

.welcome-footer-tag {
  margin-top: 20px; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.3px;
}

/* ── City feed ── */
.city-feed {
  padding: 0 16px 16px; display: none;
}
.city-feed.visible { display: block; }

.city-feed-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px; padding: 0 2px;
}
.city-feed-title {
  font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.city-feed-badge {
  font-size: 11px; color: var(--accent);
  background: rgba(0, 122, 71, 0.1);
  border: 1px solid rgba(0, 122, 71, 0.2);
  padding: 3px 8px; border-radius: 12px; font-weight: 600;
}

.feed-cards {
  display: flex; flex-direction: column; gap: 10px;
}
.feed-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.15s; cursor: default;
}
.feed-card:hover { border-color: rgba(0, 122, 71, 0.3); }

.feed-card-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.feed-card-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.feed-card-icon.type-event  { background: rgba(0, 200, 117, 0.15); color: var(--green-light); }
.feed-card-icon.type-news   { background: rgba(59, 130, 246, 0.18); color: #60A5FA; }
.feed-card-icon.type-tip    { background: rgba(0, 122, 71, 0.18); color: var(--accent); }
.feed-card-icon.type-alert  { background: rgba(239, 68, 68, 0.18); color: #F87171; }
.feed-card-icon.type-social { background: rgba(168, 85, 247, 0.18); color: #C084FC; }

.feed-card-meta {
  display: flex; flex-direction: column; min-width: 0;
}
.feed-card-source {
  font-size: 11px; color: var(--text-dim); font-weight: 500;
}
.feed-card-time {
  font-size: 10px; color: var(--text-dim); opacity: 0.7;
}
.feed-card-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.35; margin-bottom: 4px;
}
.feed-card-summary {
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.feed-loading {
  text-align: center; padding: 20px;
  color: var(--text-dim); font-size: 13px;
}

/* ── Schedule view ── */
.schedule-view-container { padding: 16px 16px 100px; }

.schedule-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.schedule-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
}
.schedule-filters {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.schedule-filter-input {
  flex: 1; min-width: 160px; padding: 9px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-size: 13px; font-family: inherit; outline: none;
}
.schedule-filter-input:focus { border-color: var(--accent); }
.schedule-filter-input::placeholder { color: var(--text-dim); }

.schedule-filter-select {
  padding: 9px 28px 9px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-family: inherit;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  outline: none;
}
.schedule-filter-select:focus { border-color: var(--accent); }

.schedule-stage { margin-bottom: 28px; }
.schedule-stage-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.schedule-day { margin-bottom: 20px; }
.schedule-day-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--accent);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.schedule-match {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: linear-gradient(135deg, #0D2818, #0F3322);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  cursor: pointer; transition: all 0.2s;
}
.schedule-match:hover { border-color: rgba(212, 175, 55, 0.4); }
.schedule-match-time {
  font-size: 13px; color: var(--gold);
  font-weight: 700; min-width: 65px;
}
.schedule-match-info { flex: 1; min-width: 0; }
.schedule-match-teams { font-size: 14px; font-weight: 600; color: #FAF7F0; }
.schedule-match-venue {
  font-size: 12px; color: rgba(250, 247, 240, 0.6); margin-top: 2px;
}
.schedule-match-city { font-size: 11px; color: rgba(250, 247, 240, 0.4); }

.schedule-star {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(250, 247, 240, 0.08); border: 1px solid rgba(250, 247, 240, 0.15);
  color: rgba(250, 247, 240, 0.4); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.schedule-star:hover { border-color: var(--gold); color: var(--gold); }
.schedule-star.flagged {
  background: var(--gold-glow);
  border-color: var(--gold); color: var(--gold);
}

.schedule-empty {
  text-align: center; padding: 60px 20px; color: var(--text-dim);
}
.schedule-empty-icon { font-size: 40px; margin-bottom: 12px; }
.schedule-empty-title {
  font-size: 16px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}

/* ── Detail sheet ── */
.detail-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200; display: none;
  opacity: 0; transition: opacity 0.3s;
}
.detail-overlay.visible { display: block; opacity: 1; }

.detail-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 201; transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 85vh; overflow-y: auto;
  padding-bottom: var(--safe-bottom);
}
.detail-sheet.visible { transform: translateY(0); }

.detail-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0;
}
.detail-content { padding: 20px 20px 30px; }
.detail-cat-bar { height: 4px; border-radius: 2px; margin-bottom: 16px; }
.detail-name {
  font-size: 22px; font-weight: 700;
  line-height: 1.3; margin-bottom: 12px;
}
.detail-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.detail-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
}
.detail-meta-item .dmi-icon { font-size: 18px; }
.detail-vibe {
  font-size: 14px; color: var(--text-dim);
  font-style: italic; margin-bottom: 16px;
}
.detail-actions { display: flex; gap: 10px; }
.detail-actions .btn-primary {
  flex: 1; text-align: center;
  text-decoration: none; display: block;
}
.detail-actions .btn-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Registration modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 400; display: none;
  opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.visible { display: block; opacity: 1; }

.modal-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 401; transform: translateY(100%);
  transition: transform 0.3s ease-out;
  padding: 24px 24px calc(30px + var(--safe-bottom));
  max-height: calc(100dvh - 40px);
  overflow-y: auto; visibility: hidden;
}
.modal-sheet.visible { transform: translateY(0); visibility: visible; }

.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 20px;
}

.form-group { margin-bottom: 14px; }
.form-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
  display: block; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; color: var(--text);
  font-size: 15px; outline: none; font-family: inherit;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

.form-checkbox-group {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.form-checkbox {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  font-size: 13px; color: var(--text-secondary);
  user-select: none;
}
.form-checkbox:hover { border-color: rgba(0, 122, 71, 0.3); }
.form-checkbox.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.form-checkbox input { display: none; }

.team-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.team-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--accent-soft);
  border: 1px solid var(--accent); border-radius: 20px;
  font-size: 12px; color: var(--accent); font-weight: 500;
}
.team-tag-remove {
  cursor: pointer; font-size: 14px; line-height: 1;
  color: var(--accent); opacity: 0.7;
}
.team-tag-remove:hover { opacity: 1; }

.team-suggestions {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; margin-top: 4px; z-index: 10;
  max-height: 160px; overflow-y: auto; display: none;
}
.team-suggestions.visible { display: block; }
.team-suggestion {
  padding: 10px 14px; font-size: 13px; cursor: pointer;
  transition: background 0.15s; color: var(--text-secondary);
}
.team-suggestion:hover { background: var(--surface-2); color: var(--text); }

.btn-primary {
  width: 100%; padding: 14px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0, 122, 71, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(0, 122, 71, 0.35);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Install banner ── */
.install-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 16px;
  z-index: 50; display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-width: 440px; margin: 0 auto;
}
.install-banner.visible { display: block; }
.install-banner .ib-title {
  font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.install-banner .ib-text {
  font-size: 13px; color: var(--text-secondary); margin-bottom: 12px;
}
.install-banner .ib-actions { display: flex; gap: 10px; }
.install-banner .ib-install {
  flex: 1; padding: 10px; border-radius: 10px;
  background: var(--accent); color: #fff;
  border: none; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.install-banner .ib-dismiss {
  padding: 10px 16px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 14px;
  cursor: pointer; font-family: inherit;
}

/* ── Toast notification ── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 20px;
  z-index: 500; font-size: 14px; color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease; pointer-events: none;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
.app-footer {
  padding: 16px 0; text-align: center;
  color: var(--text-dim); font-size: 11px; line-height: 1.5;
}
.app-footer a { color: var(--accent); text-decoration: none; }

/* ── FWC26 chat-input overrides (dark theme) ── */
.chat-input-container {
  background: var(--surface);
  border-color: rgba(0, 122, 71, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.chat-input-container:focus-within {
  border-color: rgba(0, 122, 71, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(0, 122, 71, 0.1);
}

.chat-send {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent);
  box-shadow: none;
}
.chat-send svg { stroke: #fff; }
.chat-send:hover { background: var(--accent-hover); }

/* ── FWC26 msg overrides ── */
.msg { margin-bottom: 20px; }
.msg-user {
  background: var(--surface-2); color: var(--text);
  padding: 12px 16px; border-radius: 18px 18px 4px 18px;
  font-size: 14px; line-height: 1.6;
  width: fit-content; max-width: 80%; margin-left: auto;
}
.msg-ai {
  padding: 4px 0; font-size: 14px;
  line-height: 1.7; max-width: 100%;
  color: var(--text-secondary);
}
.msg-ai a:not(.aec-cta-btn) { color: var(--accent); text-decoration: none; }
.msg-ai a:not(.aec-cta-btn):hover { text-decoration: underline; }

/* ── Event card overrides (score-card left accent) ── */
.ai-event-card {
  border-left: 4px solid var(--accent);
}
.ai-event-card .aec-name {
  font-size: 16px; font-weight: 700;
}
.ai-event-card .aec-category-badge {
  font-weight: 600; font-size: 11px; letter-spacing: 0.3px;
}

/* ── Quick chip overrides (FWC26 dark) ── */
.quick-chip {
  border-color: rgba(0, 0, 0, 0.05);
}
.quick-chip:hover {
  border-color: rgba(0, 122, 71, 0.4);
  background: rgba(0, 122, 71, 0.07);
  color: var(--text);
}

/* ── Saved events badge ── */
.saved-count-badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  background: var(--accent); color: #000;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Back-to-top ── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #000; border: none;
  font-size: 18px; cursor: pointer; z-index: 50;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 122, 71, 0.3);
  transition: all 0.2s;
}
.back-to-top:hover { transform: scale(1.1); }
.back-to-top.visible { display: flex; }

/* ── Scrollbar (hidden) ── */
::-webkit-scrollbar { width: 0; height: 0; }

/* ── Map View ── */
.map-view-container {
  position: relative; width: 100%; height: 100%;
}
.wc-map-canvas {
  position: absolute; top: 0; left: 0; right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0));
  z-index: 1; background: var(--surface-2);
}

/* Centered hero search overlay on map */
.map-hero {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 10; width: calc(100% - 32px); max-width: 520px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 16px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  transition: all 0.3s var(--ease-out);
  max-height: 80vh; overflow-y: auto;
}
.map-hero.chatting {
  top: 8px; max-height: calc(100vh - 80px);
  text-align: left; align-items: stretch;
}
.map-hero.chatting .map-hero-title,
.map-hero.chatting .map-hero-badge,
.map-hero.chatting .map-hero-chips { display: none; }

.map-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  background: rgba(0, 122, 71, 0.06);
  border: 1px solid rgba(0, 122, 71, 0.15);
  border-radius: 20px; padding: 4px 10px;
  margin-bottom: 8px; text-transform: uppercase;
  letter-spacing: 0.3px;
}

.map-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 12px;
}

.map-hero-input { width: 100%; margin-bottom: 10px; }
.map-hero-input .chat-input-container {
  border-color: var(--field-line);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.map-hero-input .chat-input {
  font-size: 15px; padding: 14px 52px 14px 18px;
}

.map-hero-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center;
}
.map-hero-chips .quick-chip {
  font-size: 12px; padding: 6px 12px;
}

.map-hero-messages {
  width: 100%; max-height: 50vh; overflow-y: auto;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .map-hero { top: 24px; max-width: 560px; padding: 24px 28px 20px; }
  .map-hero-title { font-size: 28px; }
}

/* Map recenter button */
.map-recenter {
  position: absolute; bottom: 50%; right: 12px;
  z-index: 10; width: 40px; height: 40px;
  border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
  color: var(--accent);
}
.map-recenter:hover {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-lg);
}

/* Map legend (broadcast-style category bar) */
.map-legend {
  position: absolute; top: 12px; left: 12px;
  z-index: 10; display: flex; gap: 3px;
  background: rgba(13, 40, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-top: 2px solid var(--gold);
  border-radius: 14px; padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.map-legend-item {
  padding: 7px 12px; border-radius: 10px;
  background: transparent; border: none;
  font-size: 12px; cursor: pointer; color: rgba(250, 247, 240, 0.65);
  transition: all 0.15s; font-family: inherit; font-weight: 500;
  white-space: nowrap;
}
.map-legend-item.active {
  background: var(--gold); color: #0D2818;
  font-weight: 700;
}
.map-legend-item:hover:not(.active) {
  background: rgba(250, 247, 240, 0.1);
  color: var(--chrome-text);
}

/* Map markers (FWC26 shield/badge shape) */
.wc-marker {
  width: 38px; height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  border: 2.5px solid #fff; cursor: pointer;
  transition: transform 0.15s;
}
.wc-marker:hover { transform: rotate(-45deg) scale(1.2); }
.wc-marker > * { transform: rotate(45deg); }
.wc-marker-fan-zone { background: #007A47; animation: fanZonePulse 3s ease-in-out infinite; }
.wc-marker-watch-party { background: #1E88E5; }
.wc-marker-food { background: #F57C00; }
.wc-marker-nightlife { background: #AB47BC; }
.wc-marker-culture { background: #8D6E63; }
.wc-marker-pre-game { background: #D4AF37; }
.wc-marker-default { background: #78909C; }
@keyframes fanZonePulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(0,0,0,0.35); }
  50% { box-shadow: 0 3px 12px rgba(0,0,0,0.35), 0 0 12px rgba(0, 122, 71, 0.5); }
}

.wc-marker-user {
  width: 16px; height: 16px; border-radius: 50%;
  background: #4285F4; border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(66,133,244,0.3), 0 2px 6px rgba(0,0,0,0.2);
}

/* Leaflet popup override for FWC26 */
.wc-popup .leaflet-popup-content-wrapper {
  background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.wc-popup .leaflet-popup-tip { background: var(--surface); }
.wc-popup .leaflet-popup-content {
  margin: 14px 16px; font-family: 'DM Sans', sans-serif;
}
.wc-popup-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.wc-popup-meta {
  font-size: 12px; color: var(--text-dim); margin-bottom: 8px;
}
.wc-popup-actions { display: flex; gap: 8px; }
.wc-popup-btn {
  padding: 6px 12px; border-radius: 8px; font-size: 12px;
  font-weight: 600; cursor: pointer; border: none;
  font-family: inherit; transition: all 0.15s;
}
.wc-popup-btn-primary {
  background: var(--accent); color: #fff !important;
  text-decoration: none !important; display: inline-block;
}
.wc-popup-btn-primary:hover { background: var(--accent-hover); }
.wc-popup-btn-secondary {
  background: var(--surface-2); color: var(--text) !important;
  border: 1px solid var(--border);
  text-decoration: none !important; display: inline-block;
}

@media (min-width: 768px) {
  .map-legend { top: 16px; left: 16px; }
}

/* ── Profile sections ── */
.profile-section {
  margin-bottom: 16px; padding: 14px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.profile-section-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-dim); margin-bottom: 8px;
}

/* ── Utility ── */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ══════════════════════════════════════════════════
   Responsive — Desktop
   ══════════════════════════════════════════════════ */

@media (min-width: 600px) {
  .city-feed { padding: 0 24px 20px; }
  .feed-card { padding: 16px 18px; }
}

@media (min-width: 768px) {
  html { background: #F0EBE0; }
  body {
    max-width: 960px; margin: 0 auto;
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
  }
  .header { padding: 14px 32px; }
  .logo { font-size: 20px; }

  .city-grid { max-width: 700px; }
  .city-group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .city-picker-title { font-size: 32px; }
  .city-selector-wrap { max-width: 340px; }

  .chat-welcome { padding: 0 48px 24px; }
  .welcome-hero { font-size: 36px; }
  .chat-welcome p { font-size: 15px; max-width: 500px; margin-bottom: 6px; }
  .welcome-chat-input { max-width: 560px; margin-bottom: 14px; }
  .welcome-chat-input .chat-input { font-size: 17px; min-height: 56px; }
  .chat-welcome-grid { max-width: 560px; gap: 10px; }
  .chat-welcome-grid button { padding: 10px 18px; font-size: 14px; }

  .chat-messages { padding: 20px 48px 12px; }
  .chat-input-wrap { padding: 12px 48px 20px; }
  .chat-input-container { max-width: 680px; margin: 0 auto; }

  .schedule-view-container { padding: 20px 32px 100px; }

  .modal-sheet {
    max-width: 480px; left: 50%; right: auto;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px; bottom: auto; top: 50%;
  }
  .modal-sheet.visible { transform: translate(-50%, -50%); visibility: visible; }

  .detail-sheet {
    max-width: 520px; left: 50%; right: auto;
    transform: translateX(-50%) translateY(100%);
  }
  .detail-sheet.visible { transform: translateX(-50%) translateY(0); }

  .install-banner { left: 50%; right: auto; transform: translateX(-50%); }
}

@media (min-width: 1100px) {
  body { max-width: 1100px; }

  .chat-welcome { padding: 0 80px 28px; }
  .welcome-hero { font-size: 40px; }
  .chat-welcome p { font-size: 16px; max-width: 560px; }
  .chat-welcome-grid { max-width: 620px; gap: 10px; }
  .chat-welcome-grid button { padding: 11px 20px; font-size: 15px; }
  .welcome-chat-input { max-width: 620px; }
  .welcome-chat-input .chat-input { font-size: 18px; min-height: 58px; }

  .chat-messages { padding: 20px 80px 12px; }
  .chat-input-wrap { padding: 12px 80px 20px; }

  .city-feed { padding: 0 80px 24px; }
}

/* ══════════════════════════════════════════════════
   Phase 3 — Horizontal City Scroll Strip
   ══════════════════════════════════════════════════ */
.city-scroll-strip {
  width: 100%; max-width: 560px;
  margin: 16px auto 0;
}
.city-scroll-strip-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-dim); margin-bottom: 10px;
  text-align: center;
}
.city-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.city-scroll::-webkit-scrollbar { display: none; }

.city-scroll-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--text-secondary); white-space: nowrap;
}
.city-scroll-item:hover {
  border-color: rgba(0, 122, 71, 0.4);
  color: var(--text);
}
.city-scroll-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent); font-weight: 600;
}
.city-scroll-item .city-flag {
  font-size: 16px; line-height: 1;
}

/* ══════════════════════════════════════════════════
   Phase 3 — Match Countdown Enhancement
   ══════════════════════════════════════════════════ */
.match-countdown {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--green-light, #00C875);
}
.match-countdown .countdown-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light, #00C875);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Bottom Navigation (dark chrome — matches header) ── */
.wc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--chrome-bg);
  border-top: 2px solid var(--gold);
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

.wc-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: none;
  border-top: 2px solid transparent;
  margin-top: -2px;
  background: none;
  cursor: pointer;
  color: var(--chrome-text-dim);
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.wc-bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.wc-bottom-nav-item.active {
  color: var(--gold);
  border-top-color: var(--gold);
  font-weight: 600;
}

.wc-bottom-nav-item:hover {
  color: var(--gold);
}

/* Account for bottom nav in views */
.main {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
}

/* Map view needs to account for bottom nav + search bar */
#view-map {
  padding-bottom: 0; /* Map handles its own spacing */
}

/* Compact map search bar (replaces giant hero) */
.map-search-bar {
  position: absolute;
  bottom: calc(56px + env(safe-area-inset-bottom, 0) + 48px);
  left: 12px;
  right: 12px;
  z-index: 800;
  background: #fff;
  border-radius: 16px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text, #1a1a1a);
  background: transparent;
}

.map-search-bar input::placeholder {
  color: var(--text-secondary, #888);
}

.map-search-bar button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent, #007A47);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-search-chips {
  position: absolute;
  bottom: calc(56px + env(safe-area-inset-bottom, 0) + 8px);
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 14px 2px;
  scrollbar-width: none;
  z-index: 800;
}

.map-search-chips::-webkit-scrollbar { display: none; }

.map-search-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--field-line, #e5e5e5);
  background: #fff;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text, #1a1a1a);
  transition: all 0.2s;
}

.map-search-chip:hover {
  border-color: var(--accent, #007A47);
  color: var(--accent, #007A47);
}

/* ══════════════════════════════════════════════════
   V2: Map-first home — top search bar
   ══════════════════════════════════════════════════ */

.map-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  padding: 10px 12px 8px;
  display: flex; flex-direction: column; gap: 8px;
}

.map-top-row {
  display: flex; align-items: center; gap: 8px;
}

.map-top-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 9px 12px;
}

.map-top-search-icon {
  color: var(--chrome-text-dim);
  flex-shrink: 0;
}

.map-top-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--chrome-text);
}
.map-top-input::placeholder { color: var(--chrome-text-dim); }

.map-chat-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.2s;
}
.map-chat-btn:hover {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
}

.map-top-chips {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.map-top-chips::-webkit-scrollbar { display: none; }

.map-top-chip {
  flex-shrink: 0;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--chrome-text-dim);
  font-size: 12px; font-family: 'DM Sans', sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.map-top-chip.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.map-top-chip:hover:not(.active) {
  border-color: rgba(255,255,255,0.25);
  color: var(--chrome-text);
}

/* Update map canvas to start below top bar (~96px) */
.wc-map-canvas {
  top: 96px !important;
}

/* Recenter: position above pull-up peek (140px + nav 56px + safe) */
.map-recenter {
  bottom: calc(56px + env(safe-area-inset-bottom, 0) + 156px) !important;
  right: 12px;
}

/* ══════════════════════════════════════════════════
   V2: Pull-up Discovery Panel
   ══════════════════════════════════════════════════ */

.pullup-panel {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0));
  height: calc(100% - 96px); /* full height between top bar and nav */
  background: var(--chrome-bg);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--chrome-border);
  z-index: 15;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

/* Three states */
.pullup-panel.peek    { transform: translateY(calc(100% - 140px)); }
.pullup-panel.mid     { transform: translateY(35%); }
.pullup-panel.open    { transform: translateY(0); }

/* Toggle icon flips when open */
.pullup-panel.open .pullup-toggle-btn svg,
.pullup-panel.mid .pullup-toggle-btn svg {
  transform: rotate(180deg);
}

.pullup-handle-wrap {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0 6px;
  cursor: grab;
}
.pullup-handle-wrap:active { cursor: grabbing; }

.pullup-handle-bar {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2);
}

.pullup-header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 10px;
}

.pullup-count {
  font-size: 13px; font-weight: 600;
  color: var(--chrome-text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.pullup-toggle-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--chrome-text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.pullup-toggle-btn svg { transition: transform 0.3s; }
.pullup-toggle-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--chrome-text);
}

.pullup-list {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 12px 16px;
}

.pullup-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--chrome-text-dim);
  font-size: 13px;
}

/* Pull-up event cards */
.pullup-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pullup-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}
.pullup-card:active { transform: scale(0.98); }

.pullup-card-icon {
  font-size: 22px; flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.pullup-card-body { flex: 1; min-width: 0; }

.pullup-card-name {
  font-size: 14px; font-weight: 600;
  color: var(--chrome-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}

.pullup-card-meta {
  font-size: 12px; color: var(--chrome-text-dim);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.pullup-card-cat {
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 8px;
  background: rgba(0,168,107,0.15);
  color: var(--green-light);
  text-transform: capitalize;
}

/* Distance badge — the V2 core UX primitive */
.pullup-dist {
  flex-shrink: 0;
  font-size: 12px; font-weight: 700;
  color: var(--gold);
  text-align: right;
  line-height: 1.2;
  min-width: 36px;
}

.pullup-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--chrome-text-dim);
  font-size: 13px;
}

/* Chat back button (when chat opened from map) */
.chat-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 12px 0 16px;
  padding: 8px 16px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.chat-back-btn:hover { border-color: var(--accent); color: var(--accent); }


