:root {
  --navy: #173a73;
  --blue: #3b82f6;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell {
  max-width: 430px;
  height: 100vh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.status-bar { display:flex; justify-content:space-between; align-items:center; padding:14px 20px 8px; font-size:0.84rem; font-weight:700; color:var(--navy); }
.screen-root {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 20px 118px;
  overscroll-behavior: contain;
}
.screen { animation:none; }
.screen.screen-static { animation:none; }
@keyframes driftIn { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:translateY(0);} }
@keyframes panelRise { from { opacity:0; transform:translateY(14px) scale(0.99); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes softFadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.splash-overlay { position:absolute; inset:0; display:grid; place-items:center; background:linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%); z-index:30; transition:opacity 420ms ease, transform 420ms ease; }
.splash-overlay.is-hidden { opacity:0; transform:scale(1.01); pointer-events:none; }
.splash-card { text-align:center; padding:32px 24px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.brand-badge { width:86px; height:86px; border-radius:26px; background:linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color:white; display:grid; place-items:center; font-size:1.8rem; font-weight:800; box-shadow:0 20px 35px rgba(23,58,115,0.16); }
.hero-title { margin:0; font-size:2rem; color:var(--navy); }
.hero-copy { margin:0; color:var(--muted); max-width:250px; line-height:1.6; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.topbar h1, .topbar h2, .topbar h3 { margin:0; font-size:1.2rem; }
.topbar p { margin:4px 0 0; color:var(--muted); font-size:0.9rem; }
.icon-btn, .primary-btn, .secondary-btn, .segmented-option, .selection-chip, .chip, .nav-btn { transition:transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease; }
.icon-btn:hover, .primary-btn:hover, .secondary-btn:hover, .segmented-option:hover, .selection-chip:hover, .chip:hover, .nav-btn:hover { transform:translateY(-1px); }
.icon-btn { width:42px; height:42px; border-radius:50%; border:none; background:var(--bg); color:var(--navy); display:grid; place-items:center; }
.primary-btn, .secondary-btn { border:none; border-radius:999px; padding:12px 14px; font-weight:700; }
.primary-btn { background:linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color:white; box-shadow:0 12px 24px rgba(23,58,115,0.16); }
.secondary-btn { background:var(--bg); color:var(--navy); }
.secondary-btn.active { background:rgba(23,58,115,0.12); color:var(--navy); box-shadow:inset 0 0 0 1px rgba(23,58,115,0.18); }
.hero-card { background:linear-gradient(135deg, rgba(23,58,115,0.96) 0%, rgba(59,130,246,0.9) 100%); color:white; border-radius:28px; padding:20px; position:relative; overflow:hidden; box-shadow:var(--shadow); }
.hero-card::after { content:''; position:absolute; inset:auto -30px -32px auto; width:140px; height:140px; background:rgba(255,255,255,0.14); border-radius:50%; }
.hero-card h3 { margin:0 0 8px; font-size:1.08rem; }
.hero-card p { margin:0 0 12px; font-size:0.94rem; line-height:1.55; opacity:0.95; }
.section-header { display:flex; justify-content:space-between; align-items:center; margin:18px 0 10px; }
.section-header h3 { margin:0; font-size:1rem; }
.section-header a { color:var(--blue); text-decoration:none; font-size:0.9rem; font-weight:700; }
.offer-card, .restaurant-card, .detail-card, .reward-card, .profile-card, .chat-card, .preference-card, .welcome-card, .modal-card, .search-card, .map-list-item { border:1px solid var(--line); border-radius:24px; padding:16px; background:var(--white); box-shadow:0 14px 28px rgba(15,23,42,0.04); }
.list-grid { display:grid; gap:14px; }
.offer-card { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.offer-card .pill { padding:6px 10px; border-radius:999px; background:rgba(59,130,246,0.12); color:var(--blue); font-size:0.78rem; font-weight:700; }
.restaurant-card { padding:0; overflow:hidden; margin-bottom:14px; }
.restaurant-card > img, .restaurant-card-image { width:100%; height:170px; object-fit:cover; display:block; }
.restaurant-body { padding:14px; }
.restaurant-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.restaurant-identity { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.restaurant-copy { min-width:0; flex:1; }
.restaurant-copy h4, .sheet-card-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.restaurant-copy p { margin:2px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.restaurant-logo { width:38px; height:38px; aspect-ratio:1 / 1; border-radius:50%; flex:0 0 auto; box-shadow:0 8px 18px rgba(15,23,42,0.08); background:white; object-fit:cover; object-position:center; padding:2px; display:block; overflow:hidden; box-sizing:border-box; }
.restaurant-logo.small { width:34px; height:34px; }
.restaurant-logo.tiny { width:28px; height:28px; }
.restaurant-logo.marker-badge { width:56px; height:56px; box-shadow:0 12px 24px rgba(15,23,42,0.14); }
.restaurant-top h4 { margin:0; font-size:1rem; }
.restaurant-top p { margin:2px 0 0; color:var(--muted); font-size:0.86rem; line-height:1.3; }
.hours-label { margin:4px 0 0; font-size:0.8rem; color:var(--navy) !important; font-weight:700; line-height:1.25; }
.hours-subtext { margin:2px 0 0; font-size:0.77rem; color:var(--muted) !important; line-height:1.25; }
.meta-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.restaurant-meta-row { gap:6px; margin-top:8px; }
.restaurant-meta-row .meta-pill { padding:5px 8px; font-size:0.76rem; }
.meta-pill { display:inline-flex; align-items:center; gap:4px; padding:6px 10px; border-radius:999px; background:var(--bg); color:var(--navy); font-size:0.78rem; font-weight:700; }
.offer-note { margin:8px 0 0; color:var(--muted); font-size:0.84rem; line-height:1.35; }
.price-badge { font-weight:800; color:var(--navy); }
.preference-screen { display:flex; flex-direction:column; gap:14px; }
.preference-card { display:flex; flex-direction:column; gap:12px; margin-bottom:4px; }
.section-heading h4 { margin:0 0 4px; font-size:1rem; }
.section-heading p { margin:0; }
.segmented-group, .chip-group { display:flex; flex-wrap:wrap; gap:8px; }
.segmented-option, .selection-chip, .chip { border:1px solid var(--line); border-radius:999px; padding:9px 12px; background:white; color:var(--muted); font-weight:600; }
.segmented-option.selected, .selection-chip.selected, .chip.active { color:white; background:var(--navy); border-color:var(--navy); }
.welcome-card { display:flex; flex-direction:column; gap:8px; }
.welcome-card h3 { margin:0; font-size:1rem; }
.welcome-card p { margin:0; }
.auth-screen { display:grid; gap:14px; }
.auth-card { gap:10px; }
.auth-label { font-size:0.82rem; font-weight:700; color:var(--muted); margin-top:4px; }
.auth-input { border:1px solid var(--line); border-radius:14px; padding:11px 12px; outline:none; background:#fff; }
.auth-input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(59,130,246,0.12); }
.auth-code-input { letter-spacing:0.22em; font-weight:700; text-align:center; font-size:1.05rem; }
.auth-message { border-radius:14px; padding:10px 12px; font-size:0.84rem; }
.auth-message.success { background:rgba(16,185,129,0.1); color:#065f46; border:1px solid rgba(16,185,129,0.22); }
.auth-message.error { background:rgba(239,68,68,0.1); color:#991b1b; border:1px solid rgba(239,68,68,0.22); }
.auth-switch { margin-top:8px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.auth-secondary-actions { margin-top:4px; }
.auth-section-title { margin-top:8px; font-size:0.82rem; font-weight:800; letter-spacing:0.05em; text-transform:uppercase; color:var(--navy); }
.auth-grid { display:grid; gap:10px; grid-template-columns:1fr; }
.auth-field-error { font-size:0.78rem; color:#b91c1c; margin-top:4px; }
.auth-checkbox { display:flex; align-items:flex-start; gap:8px; margin-top:8px; font-size:0.82rem; color:var(--muted); }
.auth-checkbox input { margin-top:2px; }
.auth-inline-link { color:var(--navy); font-weight:700; text-decoration:underline; }
.password-strength { margin-top:6px; display:flex; justify-content:space-between; align-items:center; font-size:0.8rem; color:var(--muted); }
.password-requirements { margin:8px 0 2px; padding:0; list-style:none; display:grid; gap:6px; }
.password-requirements li { display:flex; align-items:center; gap:8px; font-size:0.78rem; color:#64748b; }
.password-requirement-icon { width:16px; text-align:center; font-weight:700; }
.password-requirements li.met { color:#0f766e; }
.legal-screen { display:grid; gap:12px; }
.legal-card { max-height:70vh; overflow:auto; }
.legal-card h4 { margin:14px 0 6px; color:var(--navy); }
.legal-card p { margin:0; color:var(--muted); line-height:1.6; }
.profile-avatar-photo { width:56px; height:56px; border-radius:50%; object-fit:cover; border:1px solid var(--line); }
.profile-avatar-photo.small { width:36px; height:36px; border-radius:50%; }
.profile-photo-dropzone { border:1px dashed var(--line); border-radius:14px; padding:12px; display:grid; gap:8px; background:#f8fbff; }
.profile-photo-dropzone.dragging { border-color:var(--blue); background:rgba(59,130,246,0.08); }
.profile-photo-dropzone.disabled { opacity:0.7; }
.profile-photo-dropzone input[type="file"] { width:100%; }

@media (min-width: 720px) {
  .auth-grid { grid-template-columns:1fr 1fr; }
}
.row-actions { display:flex; gap:8px; margin-top:8px; }
.row-actions .primary-btn, .row-actions .secondary-btn { flex:1; display:flex; align-items:center; justify-content:center; }
.detail-hero { height:220px; border-radius:28px; overflow:hidden; margin-bottom:14px; }
.detail-hero img { width:100%; height:100%; object-fit:cover; }
.detail-card { margin-bottom:12px; }
.detail-card h4 { margin:0 0 10px; }
.detail-card p, .detail-card li { color:var(--muted); line-height:1.6; }
.chat-screen-grid { display:grid; gap:16px; }
.chat-shell { display:flex; flex-direction:column; gap:12px; min-height:0; border:1px solid var(--line); border-radius:24px; padding:14px; background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.message-list { display:flex; flex-direction:column; gap:10px; min-height:0; max-height:320px; overflow-y:auto; padding-right:4px; }
.global-eta-banner { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; margin-bottom:12px; padding:10px 12px; border-radius:14px; border:1px solid rgba(15,118,110,0.2); background:rgba(15,118,110,0.08); }
.global-eta-banner > div { display:grid; gap:2px; min-width:0; }
.global-eta-banner strong { color:#0f766e; font-size:0.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.message-group { display:flex; flex-direction:column; gap:8px; max-width:92%; }
.message-group.user { align-self:flex-end; }
.message-group.ai { align-self:flex-start; }
.message-bubble { border-radius:18px; padding:12px 14px; line-height:1.55; font-size:0.95rem; max-width:92%; box-shadow:0 8px 16px rgba(15,23,42,0.04); animation:popIn 220ms ease; }
@keyframes popIn { from { opacity:0; transform:translateY(4px);} to { opacity:1; transform:translateY(0);} }
.message-bubble.user { background:rgba(59,130,246,0.12); color:var(--navy); align-self:flex-end; }
.message-bubble.ai { background:var(--bg); color:var(--text); align-self:flex-start; }
.message-bubble.loading { display:flex; gap:6px; align-items:center; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--blue); animation:pulse 1s infinite ease-in-out; }
.dot:nth-child(2){ animation-delay:0.12s; }
.dot:nth-child(3){ animation-delay:0.24s; }
@keyframes pulse { 0%,80%,100%{ transform:scale(0.8); opacity:0.6;} 40%{ transform:scale(1); opacity:1;} }
.animate-in { animation: popIn 220ms ease; }
.chat-sidebar { display:flex; flex-direction:column; gap:12px; }
.prompt-stack { display:flex; flex-direction:column; gap:10px; }
.prompt-card { margin-bottom:0; width:100%; text-align:left; }
.message-card-stack { display:flex; flex-direction:column; gap:8px; }
.message-card-stack.horizontal { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.active-filter-strip { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.active-filter-pill { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:999px; background:rgba(23,58,115,0.1); color:var(--navy); font-size:0.78rem; font-weight:700; }
.recommendation-card { border:1px solid var(--line); border-radius:18px; padding:12px 14px; background:var(--white); text-align:left; display:flex; flex-direction:column; gap:4px; box-shadow:0 10px 20px rgba(15,23,42,0.04); }
.recommendation-card.embedded { flex-direction:row; align-items:center; gap:10px; width:min(100%, 320px); }
.recommendation-card, .prompt-card, .map-list-item { transition:transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease; }
.recommendation-card:hover, .prompt-card:hover, .map-list-item:hover { transform:translateY(-2px); box-shadow:0 14px 26px rgba(15,23,42,0.08); }
.message-card-stack.horizontal .recommendation-card.embedded { width:100%; min-width:0; align-items:flex-start; }
.message-card-stack.horizontal .recommendation-card.embedded strong,
.message-card-stack.horizontal .recommendation-card.embedded span { display:block; overflow:hidden; text-overflow:ellipsis; }
.recommendation-card span { color:var(--muted); font-size:0.84rem; }
.composer { display:flex; gap:8px; margin-top:4px; }
.composer input { flex:1; border:1px solid var(--line); border-radius:999px; padding:12px 14px; outline:none; }
.composer input:focus { border-color:var(--blue); }
.reward-card { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.points-pill { background:linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color:white; padding:10px 12px; border-radius:16px; min-width:92px; text-align:center; font-weight:800; }
.profile-card { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.avatar { width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color:white; display:grid; place-items:center; font-weight:800; }
.muted { color:var(--muted); }
.bottom-nav { position:sticky; bottom:0; display:flex; justify-content:space-around; align-items:center; gap:8px; padding:10px 10px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:rgba(255,255,255,0.96); backdrop-filter:blur(18px); z-index:20; }
.nav-btn { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; border:none; background:transparent; color:var(--muted); padding:6px 4px; font-size:0.74rem; font-weight:700; }
.nav-btn.active { color:var(--navy); }
.modal-backdrop { position:fixed; inset:0; background:rgba(15,23,42,0.38); z-index:40; display:grid; place-items:center; padding:18px; }
.modal-card { width:min(100%, 360px); padding:20px; display:flex; flex-direction:column; gap:12px; }
.modal-card h3 { margin:0; }
.modal-card label { display:block; font-weight:700; color:var(--navy); }
.modal-actions { display:flex; gap:8px; margin-top:4px; }
.modal-actions .primary-btn, .modal-actions .secondary-btn { flex:1; }
.map-screen-grid { display:grid; gap:16px; }
.map-screen-main { min-width:0; }
.map-screen-list { min-width:0; }
.map-screen-support { display:grid; gap:12px; margin-top:12px; }
.map-shell { position:relative; height:320px; border-radius:24px; overflow:hidden; background:linear-gradient(135deg, #dfefff 0%, #f9fbff 100%); border:1px solid var(--line); margin-bottom:12px; box-shadow:inset 0 0 0 1px rgba(255,255,255,0.6), 0 16px 32px rgba(15,23,42,0.06); }
.immersive-map-shell { height:460px; }
.interactive-map { position:absolute; inset:0; z-index:1; }
.map-overlay { position:absolute; inset:0; background:radial-gradient(circle at 30% 30%, rgba(59,130,246,0.22) 0%, transparent 35%), radial-gradient(circle at 70% 70%, rgba(23,58,115,0.2) 0%, transparent 38%), linear-gradient(120deg, rgba(255,255,255,0.4), transparent); z-index:2; pointer-events:none; }
.map-marker { position:absolute; transform:translate(-50%, -50%); border:none; border-radius:999px; padding:8px 10px; background:var(--navy); color:white; font-weight:700; box-shadow:0 10px 22px rgba(23,58,115,0.16); animation:markerPop 320ms ease; }
.map-marker.active { background:var(--blue); transform:translate(-50%, -50%) scale(1.08); }
@keyframes markerPop { from { transform:translate(-50%, -50%) scale(0.92); opacity:0.8; } to { transform:translate(-50%, -50%) scale(1); opacity:1; } }
.map-hint { position:absolute; left:12px; bottom:12px; padding:8px 10px; border-radius:999px; background:rgba(255,255,255,0.95); color:var(--navy); font-size:0.8rem; font-weight:700; }
.map-floating-search { position:absolute; top:14px; left:14px; z-index:4; box-shadow:0 12px 24px rgba(15,23,42,0.12); }
.map-current-location-btn { position:absolute; right:14px; top:14px; z-index:4; background:rgba(255,255,255,0.96); box-shadow:0 10px 22px rgba(15,23,42,0.12); }
.map-current-location-btn.fullscreen { right:18px; top:auto; bottom:210px; z-index:95; }
.search-card { display:flex; gap:8px; margin-bottom:12px; }
.search-card input { flex:1; border:1px solid var(--line); border-radius:999px; padding:10px 12px; }
.search-card.hidden, .map-hint.hidden, .map-floating-search.hidden, .map-topbar-hidden { display:none; }
.map-list-item { display:flex; align-items:center; gap:12px; width:100%; text-align:left; margin-bottom:10px; }
.map-sheet { position:relative; margin-top:10px; border:1px solid var(--line); border-radius:24px; padding:14px; background:white; display:none; overflow:hidden; }
.map-sheet.open { display:block; }
.sheet-header { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.sheet-photo { height:120px; border-radius:16px; background-size:cover; background-position:center; margin-bottom:10px; }
.map-sheet-card { position:absolute; left:12px; right:12px; bottom:12px; border-radius:22px; overflow:hidden; background:white; box-shadow:0 20px 35px rgba(15,23,42,0.16); border:1px solid rgba(226,232,240,0.95); display:none; z-index:5; }
.map-sheet-card.open { display:block; }
.sheet-card-image { height:128px; background-size:cover; background-position:center; }
.sheet-card-body { padding:12px 12px 14px; }
.sheet-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:8px; }
.sheet-card-heading { display:flex; gap:10px; align-items:center; }
.sheet-card-title { font-weight:800; color:var(--navy); }
.sheet-card-subtitle { font-size:0.84rem; color:var(--muted); margin-top:2px; }
.custom-marker { width:44px; height:44px; border-radius:50%; overflow:hidden; border:3px solid white; box-shadow:0 10px 22px rgba(23,58,115,0.2); background:white; display:grid; place-items:center; padding:0; }
.custom-marker img { width:100%; height:100%; object-fit:cover; object-position:center; border-radius:50%; display:block; }
.custom-marker.selected { border-color:var(--blue); box-shadow:0 0 0 4px rgba(59,130,246,0.2); }
.cluster-marker { width:46px; height:46px; border-radius:50%; background:rgba(23,58,115,0.95); color:white; display:grid; place-items:center; font-weight:800; border:3px solid white; box-shadow:0 12px 24px rgba(15,23,42,0.18); }
.location-card { overflow:hidden; }
.location-preview-shell { position:relative; height:220px; border-radius:24px; overflow:hidden; background:linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%); border:1px solid rgba(226,232,240,0.9); box-shadow:inset 0 0 0 1px rgba(255,255,255,0.65), 0 14px 28px rgba(15,23,42,0.06); }
.location-preview-map { position:absolute; inset:0; z-index:1; }
.location-preview-overlay { position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); }
.location-directions-btn { position:absolute; right:14px; bottom:14px; z-index:3; }
.location-spotlight { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:3; pointer-events:none; }
.subtle-action { padding:8px 12px; font-size:0.82rem; }
.restaurant-detail-grid { display:grid; gap:16px; }
.map-fullscreen-overlay { position:fixed; inset:0; z-index:80; background:#f4f8ff; display:flex; flex-direction:column; animation:driftIn 220ms ease; }
.map-fullscreen-topbar { position:absolute; top:16px; left:16px; right:16px; z-index:96; display:flex; align-items:center; gap:12px; }
.map-back-btn { flex:0 0 auto; background:rgba(255,255,255,0.96); box-shadow:0 10px 24px rgba(15,23,42,0.12); }
.map-floating-searchbar { display:flex; gap:10px; flex:1; padding:10px; border-radius:999px; background:rgba(255,255,255,0.96); box-shadow:0 10px 24px rgba(15,23,42,0.12); backdrop-filter:blur(18px); }
.map-floating-searchbar input { flex:1; border:none; outline:none; background:transparent; }
.map-fullscreen-canvas { position:absolute; inset:0; }
.current-location-btn { position:absolute; right:18px; bottom:180px; z-index:95; background:rgba(255,255,255,0.96); box-shadow:0 10px 24px rgba(15,23,42,0.12); }
.map-fullscreen-panel { position:absolute; left:16px; right:16px; bottom:16px; z-index:90; padding:16px; border-radius:28px; background:rgba(255,255,255,0.95); backdrop-filter:blur(24px); box-shadow:0 18px 40px rgba(15,23,42,0.16); }
.fullscreen-map-list { display:grid; gap:10px; max-height:180px; overflow:auto; }
.fullscreen-sheet-slot { position:absolute; inset:0; pointer-events:none; z-index:94; }
.map-fullscreen-overlay .map-sheet-card { display:block; position:absolute; left:16px; right:16px; bottom:220px; width:auto; z-index:94; pointer-events:auto; }
.map-empty-state { margin-bottom:0; }
.route-planner { margin-top:12px; padding-top:10px; border-top:1px dashed rgba(148, 163, 184, 0.5); display:grid; gap:10px; }
.route-mode-row { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.route-mode-btn { border:1px solid var(--line); background:#f8fbff; color:var(--navy); border-radius:12px; min-height:42px; display:flex; align-items:center; justify-content:center; gap:6px; font-weight:700; font-size:0.78rem; }
.route-mode-btn.active { border-color:#1d4ed8; background:#e8f0ff; color:#1d4ed8; box-shadow:inset 0 0 0 1px rgba(29,78,216,0.12); }
.route-mode-icon { width:16px; height:16px; display:block; }
.route-glyph { width:14px; height:14px; vertical-align:-2px; }
.route-metrics { display:flex; gap:8px; flex-wrap:wrap; }
.route-metrics span { background:rgba(29,78,216,0.1); color:#1d4ed8; border-radius:999px; padding:5px 8px; font-size:0.78rem; font-weight:700; }
.route-status { margin:0; font-size:0.82rem; color:var(--muted); }
.route-status.loading { color:#1d4ed8; }
.route-status.ready { color:#0f766e; }
.route-status.unavailable { color:#b45309; }
.route-status.error { color:#b91c1c; }
.route-options { display:grid; gap:8px; }
.route-option-btn { border:1px solid var(--line); border-radius:12px; background:#f8fbff; padding:8px 10px; text-align:left; display:grid; gap:3px; }
.route-option-btn strong { color:var(--navy); font-size:0.84rem; }
.route-option-btn span { font-size:0.76rem; color:var(--muted); }
.route-option-btn.active { border-color:#1d4ed8; background:#e8f0ff; box-shadow:inset 0 0 0 1px rgba(29,78,216,0.14); }
.nav-live-panel { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; padding:8px; border-radius:12px; background:rgba(15,118,110,0.08); border:1px solid rgba(15,118,110,0.18); }
.nav-live-panel > div { display:grid; gap:2px; }
.nav-live-panel strong { color:#0f766e; font-size:0.86rem; }
.transit-legs { display:grid; gap:8px; }
.transit-leg { display:grid; grid-template-columns:auto 1fr auto; gap:8px; align-items:center; font-size:0.78rem; color:var(--muted); }
.transit-leg-timing { grid-column:2 / -1; font-size:0.74rem; color:#475569; }
.route-disruption-list { display:grid; gap:8px; }
.route-disruption-card { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:14px; border:1px solid rgba(245,158,11,0.25); background:rgba(245,158,11,0.08); }
.route-disruption-card.high { border-color:rgba(220,38,38,0.24); background:rgba(254,226,226,0.9); }
.route-disruption-card.medium { border-color:rgba(245,158,11,0.3); background:rgba(255,247,237,0.95); }
.route-disruption-card.info { border-color:rgba(59,130,246,0.2); background:rgba(239,246,255,0.95); }
.route-disruption-card strong { display:block; color:var(--navy); font-size:0.82rem; margin-bottom:2px; }
.route-disruption-card span { display:block; color:var(--muted); font-size:0.76rem; line-height:1.45; }
.route-disruption-icon { width:24px; height:24px; display:grid; place-items:center; font-size:1rem; }
.disruption-category-heading { font-size:0.74rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; padding:8px 12px 4px; margin-top:4px; }
.transit-line-badge { --line-color:#4f46e5; background:var(--line-color); color:white; border-radius:999px; padding:3px 8px; font-weight:800; font-size:0.72rem; letter-spacing:0.01em; }
.map-fullscreen-active .app-shell { max-width:none; width:100vw; height:100vh; margin:0; border-radius:0; box-shadow:none; }
.map-fullscreen-active { overflow:hidden; }
.map-fullscreen-active .status-bar,
.map-fullscreen-active .bottom-nav { display:none; }
.map-fullscreen-active .screen-root { overflow:hidden; padding:0; height:100vh; }
.directions-interface { position:absolute; left:12px; right:12px; bottom:12px; max-height:min(62vh, 620px); overflow:auto; z-index:94; border-radius:18px; border:1px solid rgba(226,232,240,0.92); background:rgba(255,255,255,0.97); box-shadow:0 16px 30px rgba(15,23,42,0.18); padding:12px; display:grid; gap:10px; }
.directions-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.turn-step-list { display:grid; gap:8px; }
.itinerary-toggle-btn { width:100%; margin-top:4px; }
.turn-step { display:grid; grid-template-columns:24px 1fr; gap:8px; border:1px solid var(--line); border-radius:10px; padding:8px; background:#f8fbff; }
.turn-step.active { border-color:#1d4ed8; box-shadow:inset 0 0 0 1px rgba(29,78,216,0.18); background:#eef5ff; }
.turn-step-index { width:24px; height:24px; border-radius:999px; background:#1d4ed8; color:white; display:grid; place-items:center; font-size:0.72rem; font-weight:700; }
.turn-step-instruction { font-size:0.84rem; color:var(--navy); font-weight:600; }
.turn-step-meta { font-size:0.75rem; color:var(--muted); margin-top:2px; }
.gps-navigation-ui { position:absolute; left:12px; right:12px; bottom:12px; max-height:min(72vh, 720px); overflow:auto; z-index:95; border-radius:22px; border:1px solid rgba(23,58,115,0.14); background:rgba(255,255,255,0.98); box-shadow:0 24px 42px rgba(15,23,42,0.22); padding:14px; display:grid; gap:12px; }
.gps-navigation-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.gps-navigation-metrics { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.gps-navigation-metrics > div { display:grid; gap:3px; padding:10px; border-radius:14px; background:rgba(15,118,110,0.08); border:1px solid rgba(15,118,110,0.15); }
.gps-navigation-metrics strong { color:#0f766e; font-size:0.94rem; }
.gps-navigation-step { display:grid; gap:4px; padding:12px; border-radius:16px; background:#f8fbff; border:1px solid var(--line); }
.gps-navigation-step.primary { background:linear-gradient(135deg, rgba(23,58,115,0.96) 0%, rgba(59,130,246,0.92) 100%); border-color:transparent; color:white; }
.gps-navigation-step.primary strong,
.gps-navigation-step.primary span { color:white; }
.gps-step-label { font-size:0.72rem; font-weight:800; letter-spacing:0.05em; text-transform:uppercase; color:var(--muted); }
.gps-navigation-step.primary .gps-step-label { color:rgba(255,255,255,0.78); }
.toast { position:fixed; left:50%; bottom:92px; transform:translateX(-50%) translateY(20px); background:rgba(15,23,42,0.92); color:white; padding:10px 14px; border-radius:999px; opacity:0; pointer-events:none; transition:all 220ms ease; z-index:50; font-size:0.9rem; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.success { background:linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.map-screen-shell.fullscreen { position:fixed; inset:0; min-height:100vh; height:100vh; width:100vw; background:#f4f8ff; overflow:hidden; z-index:80; }
.map-screen-grid.fullscreen { display:block; height:100%; }
.map-screen-shell.fullscreen .map-screen-main { height:100%; }
.map-screen-shell.fullscreen .map-screen-main,
.map-screen-shell.fullscreen .map-shell { width:100vw; }
.map-screen-shell.fullscreen .map-shell { height:100%; margin:0; border:none; border-radius:0; box-shadow:none; }
.map-screen-shell.fullscreen .map-fullscreen-topbar-inline { left:80px; right:12px; top:12px; }
.map-screen-shell.fullscreen .leaflet-top.leaflet-left { top:76px; }
.leaflet-control-zoom { border:none !important; box-shadow:0 16px 32px rgba(15,23,42,0.18) !important; border-radius:20px !important; overflow:hidden; backdrop-filter:blur(18px); }
.leaflet-control-zoom a { width:46px !important; height:46px !important; line-height:46px !important; border:none !important; background:rgba(255,255,255,0.96) !important; color:var(--navy) !important; font-size:1.2rem !important; font-weight:800; }
.leaflet-control-zoom a + a { border-top:1px solid rgba(226,232,240,0.95) !important; }
.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus { background:#eef5ff !important; color:#1d4ed8 !important; }
.leaflet-touch .leaflet-bar a:first-child { border-top-left-radius:20px !important; border-top-right-radius:20px !important; }
.leaflet-touch .leaflet-bar a:last-child { border-bottom-left-radius:20px !important; border-bottom-right-radius:20px !important; }
.map-screen-shell.fullscreen .map-sheet-card { left:12px; right:auto; bottom:12px; width:min(360px, calc(100vw - 24px)); max-width:360px; height:min(52vh, 460px); }
.map-screen-shell.fullscreen .map-sheet-card { transform:translate(var(--sheet-offset-x, 0px), var(--sheet-offset-y, 0px)); }
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed { height:112px; }
.map-screen-shell.fullscreen .map-sheet-card.sheet-half { height:min(52vh, 460px); }
.map-screen-shell.fullscreen .map-sheet-card.sheet-expanded { height:calc(100vh - 24px); }
.map-screen-shell.fullscreen .map-sheet-card.dragging { transition:none; }
.map-screen-shell.fullscreen .map-sheet-card .sheet-card-image { display:none; }
.map-screen-shell.fullscreen .map-sheet-card .sheet-card-body { padding:10px 12px 12px; height:100%; display:flex; flex-direction:column; }
.map-screen-shell.fullscreen .map-sheet-card .sheet-drag-handle { height:18px; display:flex; align-items:center; justify-content:center; cursor:grab; touch-action:none; flex:0 0 auto; }
.map-screen-shell.fullscreen .map-sheet-card.dragging { cursor:grabbing; }
.map-screen-shell.fullscreen .map-sheet-card .sheet-drag-handle::before { content:''; width:42px; height:4px; border-radius:999px; background:rgba(148,163,184,0.8); }
.map-screen-shell.fullscreen .map-sheet-card .sheet-collapsible { flex:1; min-height:0; overflow:auto; display:grid; gap:10px; }
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .sheet-collapsible { display:none; }
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .sheet-card-body { gap:0; }
.map-screen-shell.fullscreen .map-sheet-card.sheet-half .sheet-card-summary,
.map-screen-shell.fullscreen .map-sheet-card.sheet-half .hours-label,
.map-screen-shell.fullscreen .map-sheet-card.sheet-half .hours-subtext,
.map-screen-shell.fullscreen .map-sheet-card.sheet-half .route-planner,
.map-screen-shell.fullscreen .map-sheet-card.sheet-half .row-actions,
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .sheet-card-summary,
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .hours-label,
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .hours-subtext,
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .route-planner,
.map-screen-shell.fullscreen .map-sheet-card.sheet-collapsed .row-actions { display:none; }
.map-screen-shell.fullscreen .map-sheet-card .route-planner { padding-top:0; margin-top:0; border-top:none; }
.map-screen-shell.fullscreen .map-sheet-card .route-actions { flex-wrap:wrap; }
.map-screen-shell.fullscreen .map-sheet-card .route-actions .primary-btn,
.map-screen-shell.fullscreen .map-sheet-card .route-actions .secondary-btn { flex:1 1 120px; }
.map-screen-shell .map-shell { padding-top:0; }
.map-screen-shell .map-sheet-card { max-height:calc(100% - 24px); overflow:auto; }
.map-fullscreen-topbar-inline { position:absolute; top:16px; left:16px; right:16px; z-index:96; display:flex; align-items:center; gap:12px; }
.map-screen-shell.fullscreen .map-sheet-card { z-index:94; }
.transit-stop-marker { display:flex; align-items:center; gap:8px; min-width:0; padding:5px 8px; border-radius:16px; background:rgba(255,255,255,0.96); border:1px solid rgba(226,232,240,0.94); box-shadow:0 10px 20px rgba(15,23,42,0.14); }
.transit-stop-marker.selected { border-color:#1d4ed8; box-shadow:0 0 0 3px rgba(59,130,246,0.18), 0 10px 20px rgba(15,23,42,0.14); }
.transit-stop-icon { font-size:0.95rem; line-height:1; }
.transit-stop-copy { display:grid; min-width:0; }
.transit-stop-copy strong, .transit-stop-copy span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.transit-stop-copy strong { font-size:0.72rem; color:var(--navy); }
.transit-stop-copy span { font-size:0.68rem; color:var(--muted); }
.map-screen-support > *,
.map-screen-shell.fullscreen .map-sheet-card,
.directions-interface,
.gps-navigation-ui { animation:panelRise 220ms cubic-bezier(.2,.8,.2,1); will-change:transform, opacity; }
.active-filter-pill { animation:softFadeUp 180ms ease; }
.map-screen-shell:not(.fullscreen) .map-sheet-card,
.map-screen-shell:not(.fullscreen) .directions-interface,
.map-screen-shell:not(.fullscreen) .gps-navigation-ui {
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:100%;
  max-height:none;
  margin:0;
  display:block;
  z-index:auto;
}
.map-screen-shell:not(.fullscreen) .map-sheet-card {
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 16px 32px rgba(15,23,42,0.08);
}
@media (min-width: 700px) { body { padding:20px 0; } .app-shell { border-radius:36px; min-height:860px; } .restaurant-detail-grid { grid-template-columns:1.1fr 0.9fr; align-items:start; } }
@media (min-width: 980px) {
  body { padding:24px; }
  .app-shell { max-width:min(1380px, calc(100vw - 48px)); width:calc(100vw - 48px); height:calc(100vh - 48px); display:grid; grid-template-columns:120px minmax(0, 1fr); grid-template-rows:auto 1fr; }
  .status-bar { grid-column:1 / 3; }
  .screen-root { grid-column:2; grid-row:2; padding:24px 28px 32px; }
  .bottom-nav { grid-column:1; grid-row:2; position:relative; flex-direction:column; justify-content:flex-start; align-items:stretch; border-top:none; border-right:1px solid var(--line); padding:20px 12px; gap:10px; background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.9)); }
  .nav-btn { flex:0 0 auto; align-items:flex-start; padding:12px 14px; border-radius:18px; font-size:0.82rem; }
  .nav-btn.active { background:rgba(23,58,115,0.08); }
  .list-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .chat-screen-grid { grid-template-columns:minmax(0, 1.45fr) 320px; align-items:start; }
  .message-list { max-height:calc(100vh - 250px); }
  .map-screen-grid { grid-template-columns:minmax(0, 1.2fr) 360px; align-items:start; }
  .map-screen-list { max-height:calc(100vh - 220px); overflow:auto; padding-right:4px; }
  .fullscreen-map-list { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .global-eta-banner { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .directions-interface { max-height:min(68vh, 560px); }
  .gps-navigation-ui { max-height:min(74vh, 680px); }
  .message-card-stack.horizontal { grid-template-columns:1fr; }
  .map-screen-shell.fullscreen .map-fullscreen-topbar-inline { left:12px; right:12px; top:12px; }
  .map-screen-shell.fullscreen .leaflet-top.leaflet-left { top:70px; }
}

/* ── Universal Destination ─────────────────────────────────────────────── */
.route-disruption-heading { font-size:0.74rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; padding:4px 2px 2px; }
.map-places-section { display:grid; gap:0; margin-bottom:4px; }
.map-places-heading { font-size:0.72rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; padding:8px 4px 4px; }
.map-places-searching { padding:12px 4px; font-size:0.84rem; color:var(--muted); }
.place-result-item { display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:center; padding:10px 4px; background:none; border:none; border-bottom:1px solid var(--line); text-align:left; cursor:pointer; }
.place-result-item:hover { background:rgba(59,130,246,0.05); border-radius:10px; }
.place-result-icon { width:32px; height:32px; border-radius:10px; background:linear-gradient(135deg, #e8f0ff 0%, #f0f7ff 100%); display:grid; place-items:center; font-size:1.1rem; flex-shrink:0; }
.map-list-item-info { display:grid; gap:2px; }
.map-list-item-info strong { font-size:0.86rem; color:var(--navy); }
.map-list-item-info span { font-size:0.75rem; color:var(--muted); }

/* Unified Search Autocomplete Dropdown */
.search-input-wrap { position:relative; display:flex; gap:8px; }
.search-dropdown { position:absolute; top:calc(100% + 6px); left:0; right:0; background:rgba(255,255,255,0.99); border:1px solid var(--line); border-radius:16px; box-shadow:0 16px 32px rgba(15,23,42,0.14); z-index:200; overflow:hidden; max-height:320px; overflow-y:auto; }
.search-drop-item { display:grid; grid-template-columns:36px 1fr auto; gap:10px; align-items:center; padding:10px 14px; background:none; border:none; border-bottom:1px solid var(--line); text-align:left; cursor:pointer; width:100%; }
.search-drop-item:last-child { border-bottom:none; }
.search-drop-item:hover, .search-drop-item:focus { background:rgba(59,130,246,0.06); }
.search-drop-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-size:1.2rem; flex-shrink:0; background:#f0f5ff; }
.search-drop-restaurant .search-drop-icon { background:linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.search-drop-info { display:grid; gap:1px; overflow:hidden; }
.search-drop-info strong { font-size:0.85rem; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-drop-info span { font-size:0.75rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-drop-badge { font-size:0.68rem; font-weight:700; padding:3px 7px; border-radius:999px; white-space:nowrap; }
.restaurant-badge { background:#fef3c7; color:#92400e; }
.place-badge { background:#eff6ff; color:#1d4ed8; }
.search-drop-loading { padding:10px 14px; font-size:0.84rem; color:var(--muted); }
.search-drop-empty { padding:12px 14px; font-size:0.84rem; color:var(--muted); text-align:center; }
.map-floating-searchbar { position:relative; flex:1; display:flex; gap:8px; align-items:center; }
.map-floating-searchbar .search-dropdown { top:calc(100% + 8px); left:0; right:0; }

/* GPS Navigation Service Alerts */
.gps-route-alert { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; padding:10px 12px; background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.25); border-radius:14px; margin-bottom:8px; }
.gps-alert-icon { font-size:1.2rem; }
.gps-route-alert strong { display:block; font-size:0.83rem; color:#dc2626; }
.gps-route-alert span { font-size:0.77rem; color:#b91c1c; }
.gps-alert-reroute { font-size:0.78rem; padding:6px 10px; white-space:nowrap; }
.gps-service-alerts { display:grid; gap:6px; margin-bottom:8px; }
.gps-alerts-heading { font-size:0.72rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; padding:2px 0; }
.gps-service-alert-item { display:grid; grid-template-columns:auto 1fr; gap:8px; align-items:flex-start; padding:8px 10px; border-radius:12px; background:rgba(245,158,11,0.08); border:1px solid rgba(245,158,11,0.2); }
.gps-service-alert-item.high { background:rgba(239,68,68,0.08); border-color:rgba(239,68,68,0.2); }
.gps-service-alert-item.medium { background:rgba(245,158,11,0.08); border-color:rgba(245,158,11,0.2); }
.gps-alert-line { width:28px; height:28px; border-radius:999px; background:var(--navy); color:white; display:grid; place-items:center; font-size:0.75rem; font-weight:800; flex-shrink:0; }
.gps-service-alert-item.high .gps-alert-line { background:#dc2626; }
.gps-alert-body strong { display:block; font-size:0.8rem; color:var(--navy); margin-bottom:2px; }
.gps-alert-body span { display:block; font-size:0.75rem; color:var(--muted); line-height:1.4; }

/* Destination Detail Screen */
.destination-detail-screen { display:grid; grid-template-rows:auto 1fr; height:100%; }
.destination-detail-body { padding:0 16px 24px; overflow:auto; display:grid; gap:16px; align-content:start; }
.destination-hero-icon { font-size:3rem; text-align:center; padding:20px 0 4px; line-height:1; }
.destination-info-card { display:grid; gap:0; }
.destination-info-row { display:grid; grid-template-columns:80px 1fr; gap:8px; padding:10px 0; border-bottom:1px solid var(--line); font-size:0.84rem; align-items:start; }
.destination-info-row:last-child { border-bottom:none; }
.dest-label { font-weight:700; color:var(--muted); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.03em; padding-top:1px; }
.destination-map-preview { height:160px; border-radius:16px; overflow:hidden; border:1px solid var(--line); background:#e8f0ff; }
.destination-actions { margin-top:4px; }
