  @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

  :root {
    --ink: #1C1C1E;
    --paper: #FFFDF7;
    --mid: #8C8C86;
    --accent: #3A3A3C;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; overflow: hidden; }
  body { font-family: 'Space Grotesk', sans-serif; background: var(--paper); }

  .app { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
  .screen { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--paper); }
  .screen.active { display: flex; }

  .masthead {
    position: absolute; top: 0; left: 0; right: 0; z-index: 25;
    padding: 18px 20px 14px;
    background: linear-gradient(180deg, rgba(18,18,18,.9), rgba(18,18,18,0));
    display: flex; justify-content: space-between; align-items: flex-start;
  }
  .brand { color: var(--paper); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
  .brand-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
  .hint { color: var(--mid); font-family: 'JetBrains Mono', monospace; font-size: 10px; margin-top: 4px; }
  .notice { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--paper); font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 8px 14px; border-radius: 20px; opacity: .85; text-align: center; }

  /* ---------- GLOBAL BOTTOM NAV ---------- */
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--ink);
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    box-shadow: 0 -6px 20px rgba(0,0,0,.2);
  }
  .nav-item { cursor: pointer; }
  .nav-home {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: var(--mid); padding: 6px 14px;
    border-radius: 12px; background: rgba(255,255,255,.06);
  }
  .nav-home.active { color: var(--paper); background: rgba(255,255,255,.12); }
  .nav-home .nav-icon { font-size: 17px; line-height: 1; }
  .nav-home .nav-label { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; }
  .nav-location {
    flex: 1;
    background: rgba(255,255,255,.9);
    color: var(--ink);
    border-radius: 14px;
    padding: 12px 0;
    text-align: center;
  }
  .nav-location .nav-label { font-weight: 700; font-size: 14px; }
  .drawer-overlay {
    position: fixed; inset: 0; z-index: 160;
    background: rgba(0,0,0,.4);
    display: none;
  }
  .drawer-overlay.open { display: block; }
  .drawer {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    background: var(--paper);
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
    display: flex; flex-direction: column;
    padding: 22px 20px;
    overflow-y: auto;
  }
  .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .drawer-title { font-size: 17px; font-weight: 700; color: var(--ink); }
  .drawer-close { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: var(--ink); }
  .drawer-search {
    width: 100%; padding: 11px 14px; border-radius: 12px;
    border: 1px solid rgba(0,0,0,.15); background: white;
    font-family: 'Space Grotesk', sans-serif; font-size: 13px;
    margin-bottom: 18px; outline: none;
  }
  .drawer-search:focus { border-color: var(--accent); }
  .drawer-section-label {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mid);
    letter-spacing: .06em; text-transform: uppercase;
    margin: 14px 0 8px;
  }
  .drawer-group { margin-bottom: 4px; }
  .drawer-country { font-weight: 700; font-size: 13px; color: var(--ink); padding: 8px 0 2px; }
  .drawer-city { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--mid); padding: 4px 0 4px 12px; }
  .drawer-neigh {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; margin: 3px 0 3px 20px;
    background: white; border: 1px solid rgba(0,0,0,.08); border-radius: 10px;
    cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink);
  }
  .drawer-neigh:hover { border-color: var(--accent); }
  .drawer-neigh .count { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mid); }
  .drawer-place {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; margin: 3px 0; background: white;
    border: 1px solid rgba(0,0,0,.08); border-radius: 10px; cursor: pointer;
  }
  .drawer-place:hover { border-color: var(--accent); }
  .drawer-place .icon { font-size: 14px; }
  .drawer-place .info .name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
  .drawer-place .info .loc { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--mid); }
  .drawer-empty { font-size: 12.5px; color: var(--mid); padding: 20px 0; text-align: center; }
  .location-btn {
    width: 100%; padding: 13px 16px; border-radius: 12px;
    background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.08);
    font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink);
    margin-bottom: 8px; cursor: pointer; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
  }
  .location-btn .chev { color: var(--mid); font-size: 12px; }
  .location-options { margin: -2px 0 10px; }
  .location-option {
    padding: 10px 16px; margin-bottom: 4px; border-radius: 10px;
    background: white; border: 1px solid rgba(0,0,0,.08);
    font-size: 13px; color: var(--ink); cursor: pointer;
  }
  .location-option.selected { border-color: var(--accent); color: var(--accent); font-weight: 700; }

  /* ---------- SCREEN 1: HOME ---------- */
  .s1-map { position: absolute; inset: 0; background: #e8e5dc; overflow: hidden; }
  .cluster-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 20;
  }
  .s1-grid { position: absolute; inset: 0; background-image: linear-gradient(#00000010 1px, transparent 1px), linear-gradient(90deg, #00000010 1px, transparent 1px); background-size: 40px 40px; }
  .area-cluster { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 10; }
  .cluster-ring { width: 64px; height: 64px; border-radius: 50%; background: rgba(18,18,18,.06); border: 1.5px dashed rgba(18,18,18,.25); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
  .cluster-core { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: white; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; }
  .cluster-label { background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 12px; font-weight: 700; font-size: 12px; white-space: nowrap; }
  .cluster-sub { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--mid); margin-top: 3px; }
  .you-are-here { position: absolute; z-index: 12; }
  .you-pulse { width: 40px; height: 40px; border-radius: 50%; background:rgba(58,58,60,.14); position: absolute; top: -12px; left: -12px; animation: pulse 2.2s infinite ease-out; }
  @keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
  .you-dot { width: 14px; height: 14px; background: var(--accent); border-radius: 50%; border: 3px solid var(--paper); }

  /* ---------- SCREEN 2: AREA ---------- */
  .s2-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  .s2-map { position: relative; background: #e8e5dc; overflow: hidden; flex: 0 0 38vh; }
  .back-btn { position: absolute; top: 16px; left: 16px; z-index: 15; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
  .s2-badge { position: absolute; top: 16px; left: 60px; z-index: 15; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; }
  .pin2 { position: absolute; transform: translate(-50%,-100%); cursor: pointer; transition: opacity .2s; }
  .pin2-marker { width: 28px; height: 28px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--ink); display: flex; align-items: center; justify-content: center; border: 2px solid var(--paper); box-shadow: 0 3px 8px rgba(0,0,0,.2); font-size: 12px; }
  .pin2-marker span { transform: rotate(45deg); }
  .pin2.dimmed { opacity: .15; pointer-events: none; }
  .s2-side { flex: 1; overflow-y: auto; position: relative; padding-bottom: 70px; }
  .filter-stack {
    position: sticky; top: 0; z-index: 15;
    background: var(--paper);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 4px 10px rgba(0,0,0,.03);
  }
  .filters { display: flex; gap: 7px; padding: 12px 18px; overflow-x: auto; }
  .filters + .filters { padding-top: 0; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-label {
    font-family: 'JetBrains Mono', monospace; font-size: 8.5px; color: var(--mid);
    letter-spacing: .06em; text-transform: uppercase; padding: 6px 18px 0;
  }
  .chip { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; background: white; border: 1px solid rgba(0,0,0,.15); padding: 6px 11px; border-radius: 18px; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
  .chip.active { background: var(--accent); border-color: var(--accent); color: white; }
  .it-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mid); padding: 12px 18px 8px; }
  .it-row { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid rgba(0,0,0,.07); cursor: pointer; }
  .it-row.hidden { display: none; }
  .it-row:hover { background: rgba(255,255,255,.6); }
  .it-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }

  .it-text .name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
  .it-text .cat { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--mid); margin-top: 2px; }
  .it-arrow { color: var(--mid); font-size: 14px; margin-left: auto; }

  /* ---------- SCREEN 3: DETAIL ---------- */
  .s3-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  .s3-minimap { height: 90px; background: #e8e5dc; position: relative; flex-shrink: 0; display: flex; align-items: center; padding: 0 16px; gap: 10px; }
  .s3-back { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; flex-shrink: 0; }
  .s3-mini-route { flex: 1; height: 100%; position: relative; overflow: hidden; border-radius: 10px; background: #dcd8cd; }
  .s3-mini-grid { position: absolute; inset: 0; background-image: linear-gradient(#00000012 1px, transparent 1px), linear-gradient(90deg, #00000012 1px, transparent 1px); background-size: 18px 18px; }
  .s3-mini-dot { position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; top: 55%; left: 15%; border: 2px solid var(--paper); }
  .s3-mini-pin { position: absolute; width: 10px; height: 10px; background: var(--ink); border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); top: 25%; left: 75%; border: 2px solid var(--paper); }
  .s3-mini-label { position: absolute; right: 8px; bottom: 6px; font-family: 'JetBrains Mono', monospace; font-size: 8.5px; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 8px; }
  .s3-maps-btn { flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 9px; background: var(--accent); color: white; padding: 8px 10px; border-radius: 10px; text-align: center; cursor: pointer; text-decoration: none; }
  .s3-content { flex: 1; overflow-y: auto; }
  .s3-hero { aspect-ratio: 16 / 10; background: #d8d5cc; position: relative; flex-shrink: 0; overflow: hidden; }
  .s3-hero img, .s3-hero video { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
  .s3-hero .empty-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mid); font-family: 'JetBrains Mono', monospace; font-size: 11px; background: #e8e5dc; }
  .s3-tap-left, .s3-tap-right { position: absolute; top: 0; bottom: 30px; width: 30%; z-index: 5; }
  .s3-tap-left { left: 0; cursor: pointer; }
  .s3-tap-right { right: 0; cursor: pointer; }
  .s3-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 10; }
  .s3-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.3); }
  .s3-dots span.on { background: white; width: 16px; border-radius: 3px; }
  .video-badge { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,.55); color: white; font-family: 'JetBrains Mono', monospace; font-size: 9px; padding: 4px 8px; border-radius: 10px; }
  .s3-nav-btn {
    position: absolute; top: 10px; z-index: 15;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,.5); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer;
  }
  .s3-nav-prev { left: 10px; }
  .s3-nav-next { right: 50px; }
  .s3-body { padding: 18px 22px 90px; max-width: 640px; }
  .s3-cat { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
  .s3-name { font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
  .s3-loc { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mid); margin-bottom: 10px; }
  .s3-take { font-size: 13px; line-height: 1.55; color: #3d3d3a; margin-bottom: 16px; }
  .s3-section-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mid); letter-spacing: .06em; margin-bottom: 8px; text-transform: uppercase; }
  .menu-box { background: white; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
  .menu-item { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; color: var(--ink); }
  .menu-item + .menu-item { border-top: 1px solid rgba(0,0,0,.06); }
  .menu-item span:last-child { font-family: 'JetBrains Mono', monospace; color: var(--mid); }
  .s3-actions { display: flex; gap: 10px; max-width: 360px; flex-wrap: wrap; }
  .btn3 { flex: 1; padding: 12px 0; border-radius: 12px; text-align: center; font-size: 12px; font-weight: 500; border: none; cursor: pointer; font-family: 'Space Grotesk', sans-serif; text-decoration: none; display: inline-block; min-width: 120px; }
  .btn3-tiktok { background: var(--ink); color: var(--paper); }
  .btn3-maps { background: var(--accent); color: white; }
  .btn3-ig { background: rgba(0,0,0,.06); color: var(--ink); border: 1px solid rgba(0,0,0,.15); }
  .btn3-disabled { background: #ddd; color: #999; pointer-events: none; }

  @media (min-width: 700px) {
    .s2-main { flex-direction: row; }
    .s2-map { flex: 1 1 55%; }
    .s2-side { flex: 1 1 45%; border-left: 1px solid rgba(0,0,0,.08); }
    .s3-content { display: flex; flex-direction: row; overflow: hidden; }
    .s3-hero { flex: 0 0 42%; aspect-ratio: auto; height: 100%; }
    .s3-body { flex: 1; overflow-y: auto; max-width: none; }
  }
  @media (min-width: 1100px) {
    .masthead { padding: 20px 32px; }
    .s2-side { flex: 0 0 420px; }
    .s3-hero { flex: 0 0 460px; }
    .s3-body { padding: 32px 48px 90px; }
  }

