  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface2: #f5f5f7;
    --border: #e0e0e5;
    --border-light: #f0f0f2;
    --text: #1d1d1f;
    --text2: #6e6e73;
    --text3: #aeaeb2;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --red: #ff3b30;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --sheet-shadow: 0 -4px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
  }

  /* ── DESKTOP LAYOUT ──────────────────────────────────── */
  .app {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* HEADER */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 68px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    z-index: 700;
    gap: 16px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
  }

  /* Highway shield logo */
  .logo-shield {
    flex-shrink: 0;
    display: block;
    height: 36px;
    width: auto;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .logo-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text);
  }

  .logo-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--text3);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  /* About button */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
  }

  .header-pill-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e03d00;
    background: rgba(224,61,0,0.08);
    color: #e03d00;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
    letter-spacing: 0.01em;
  }
  .header-pill-btn:hover { background: #e03d00; color: #fff; }

  .about-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .about-btn:hover { border-color: var(--text); color: var(--text); background: var(--surface2); }

  /* Hamburger — hidden on desktop, shown on mobile */
  .hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .hamburger-btn span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--text2);
    border-radius: 2px;
    transition: all 0.2s;
  }

  .hamburger-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    min-width: 180px;
    overflow: hidden;
    z-index: 1000;
  }
  .hamburger-menu.open { display: block; }
  .hamburger-menu button {
    display: block;
    width: 100%;
    padding: 13px 18px;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s;
  }
  .hamburger-menu button:hover { background: var(--surface2); }
  .hamburger-menu button + button { border-top: 1px solid var(--border-light); }

  /* ── ABOUT PANEL ── */
  .about-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100vw;
    background: var(--surface);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* desktop: columns each scroll independently */
  }

  .about-panel.open { transform: translateX(0); }

  .about-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    backdrop-filter: blur(2px);
  }
  .about-overlay.open { opacity: 1; pointer-events: all; }

  /* Header bar */
  .about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
  }

  .about-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
  }

  .about-close {
    background: var(--surface2);
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .about-close:hover { background: var(--border); }

  /* Two-column content area */
  .about-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
  }

  /* Left: editorial text */
  .about-text-col {
    flex: 1;
    overflow-y: auto;
    padding: 48px 52px;
    border-right: 1px solid var(--border-light);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .about-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 16px;
  }

  .about-headline {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 28px;
  }

  .about-text-col p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.1px;
    max-width: 580px;
  }

  .about-text-col p.lead {
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.65;
    letter-spacing: -0.2px;
  }

  .about-signature {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
  }

  .about-signature p {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 4px !important;
  }

  .about-signature .bio {
    font-size: 12px;
    color: var(--text3);
    margin-top: 12px !important;
    max-width: 440px;
  }

  /* Right: connect sidebar */
  .about-sidebar {
    width: 320px;
    flex-shrink: 0;
    padding: 48px 36px;
    overflow-y: auto;
    background: var(--surface2);
    display: flex;
    flex-direction: column;
    gap: 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }

  .about-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    border: 1px solid var(--border-light);
  }
  .about-link:hover { border-color: var(--border); box-shadow: var(--card-shadow); }
  .about-link .link-icon { font-size: 17px; flex-shrink: 0; }
  .about-link .link-sub { font-size: 11px; color: var(--text3); font-weight: 400; margin-top: 1px; }

  /* Contact form */
  .contact-form { display: flex; flex-direction: column; gap: 9px; }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: none;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder { color: var(--text3); }

  .contact-submit {
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
    margin-top: 2px;
  }
  .contact-submit:hover { opacity: 0.82; }
  .contact-submit:disabled { opacity: 0.45; cursor: default; }

  .contact-success {
    display: none;
    text-align: center;
    padding: 16px;
    color: #34c759;
    font-size: 13px;
    font-weight: 500;
    background: #f0fff4;
    border-radius: var(--radius-sm);
    border: 1px solid #b7f5c8;
  }

  /* Mobile about: single scrollable column, contact below text */
  @media (max-width: 768px) {
    .about-panel { overflow-y: auto; }
    .about-content {
      flex-direction: column;
      overflow: visible; /* let the panel itself scroll */
      min-height: 0;
    }
    .about-text-col {
      overflow: visible; /* no inner scroll — panel scrolls */
      padding: 28px 24px;
      border-right: none;
    }
    .about-sidebar {
      width: 100%;
      padding: 28px 24px;
      border-top: 1px solid var(--border-light);
      background: var(--surface2);
    }
    .about-headline { font-size: 24px; }
    .about-header { padding: 16px 20px; }
  }

  /* FILTER PILLS */
  .filter-pills {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
  }

  .filter-pills::-webkit-scrollbar { display: none; }

  .pill {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text2);
    transition: all 0.15s ease;
    background: var(--bg);
    white-space: nowrap;
    letter-spacing: -0.1px;
  }

  .pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,113,227,0.04); }
  .pill.active { background: var(--text); color: #fff; border-color: var(--text); }

  .pill-more { position: relative; }

  .more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 9999;
    min-width: 200px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
  }

  .more-dropdown.open { display: block; }

  .more-dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.1s;
    gap: 12px;
  }

  .more-dropdown button:hover { background: var(--surface2); }
  .more-dropdown button.active { color: var(--accent); font-weight: 500; }

  .more-dropdown .cat-count {
    font-size: 11px;
    color: var(--text3);
    font-weight: 400;
  }

  /* HEADER STATS */
  .header-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
  }

  .stat {
    text-align: right;
  }

  .stat-num {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.1;
  }

  .stat-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* MAIN */
  .main {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
  }

  /* MAP */
  .map-panel {
    flex: 1;
    position: relative;
    order: 1;
  }

  #map {
    width: 100%;
    height: 100%;
  }

  @keyframes markerPulse {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.65; }
    70%  { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
  }

  .marker-pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    pointer-events: none;
    animation: markerPulse 1.8s ease-out infinite;
  }

  .map-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 500;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text2);
    box-shadow: var(--card-shadow);
  }

  .stats-fab { display: none; }

  /* Hide mobile sheet on desktop */
  .mobile-sheet { display: none; }

  /* GALLERY PANEL (desktop) */
  .gallery-panel {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: none;
    background: var(--surface2);
    overflow: hidden;
    order: 2;
  }

  .gallery-header {
    padding: 14px 16px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
  }

  .gallery-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
  }

  .search-box {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .search-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
  }

  .search-box::placeholder { color: var(--text3); }

  .gallery-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  /* BILLBOARD CARD */
  .billboard-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
  }

  .billboard-card:hover {
    border-color: var(--border);
    box-shadow: var(--card-shadow);
  }

  .billboard-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
  }

  .card-img {
    width: 96px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: 20px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
  }

  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: transform 0.35s ease;
  }

  .billboard-card:hover .card-img img {
    transform: scale(1.03);
  }

  .card-img .zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: 6px;
  }

  .card-img:hover .zoom-hint { opacity: 1; }

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

  .card-category {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 5px;
  }

  .card-ocr {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    letter-spacing: -0.1px;
  }

  .card-meta {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
    font-weight: 400;
  }

  .card-company {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
  }
  .card-company-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
    background: var(--surface2);
    flex-shrink: 0;
  }
  .card-company-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
  }
  .card-company-name:hover { color: var(--accent); text-decoration: underline; }

  /* DETAIL PANEL company block */
  .detail-company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--surface2);
    border-radius: 8px;
  }
  .detail-company-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    border: 1px solid var(--border);
  }
  .detail-company-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .detail-company-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .detail-company-name:hover { color: var(--accent); text-decoration: underline; }
  .detail-company-url {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* EXPANDED CARD (mobile in-place expand) */
  .billboard-card.expanded .card-img {
    display: none;
  }

  .card-expanded-content {
    display: none;
  }

  .billboard-card.expanded .card-expanded-content {
    display: block;
    margin-top: 10px;
  }

  .expanded-img {
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    cursor: zoom-in;
    max-height: 180px;
  }

  .expanded-ocr {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 400;
  }

  .expanded-meta {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.8;
  }


  /* STATS PANEL */
  .stats-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 900; opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
  }
  .stats-overlay.open { opacity: 1; pointer-events: all; }
  .stats-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 360px; max-width: 100vw;
    background: var(--surface);
    border-left: 1px solid var(--border-light);
    z-index: 901;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .stats-panel.open { transform: translateX(0); }
  .stats-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
  }
  .stats-panel-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
  .stats-panel-close {
    background: var(--surface2); border: none; border-radius: 50%;
    color: var(--text2); cursor: pointer; width: 28px; height: 28px; font-size: 12px;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s;
  }
  .stats-panel-close:hover { background: var(--border); }
  .stats-panel-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 22px; }
  .stats-section { display: flex; flex-direction: column; }
  .stats-section-title { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
  .brand-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-light); }
  .brand-row:last-child { border-bottom: none; }
  .brand-logo { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; flex-shrink: 0; background: var(--surface2); }
  .brand-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-bar-wrap { width: 56px; height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
  .brand-bar { height: 100%; background: var(--accent); border-radius: 3px; }
  .brand-count { font-size: 11px; font-weight: 600; color: var(--text3); min-width: 14px; text-align: right; }
  .cat-stat-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border-light); }
  .cat-stat-row:last-child { border-bottom: none; }
  .cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .cat-stat-name { flex: 1; font-size: 13px; color: var(--text); }
  .cat-stat-pct { font-size: 11px; font-weight: 600; color: var(--text3); min-width: 36px; text-align: right; }
  .fun-fact { background: var(--surface2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12px; line-height: 1.65; color: var(--text2); border-left: 3px solid var(--accent); }
  .fun-fact strong { color: var(--text); }
  .stat-plus-btn { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 15px; padding: 0 0 0 3px; line-height: 1; transition: color 0.15s; vertical-align: middle; }
  .stat-plus-btn:hover { color: var(--accent); }

  /* LOADING / EMPTY */
  .loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--text3);
    font-size: 13px;
    flex-direction: column;
    gap: 12px;
  }

  .spinner {
    width: 22px; height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    line-height: 1.8;
  }

  /* DETAIL PANEL (desktop — slides up in map) */
  .detail-panel {
    position: absolute;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 500px;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-radius: 14px 14px 0 0;
    padding: 48px 20px 20px;
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    z-index: 400;
    max-height: 65%;
    overflow-y: auto;
    box-shadow: 0 -6px 36px rgba(0,0,0,0.16);
  }

  .detail-panel.open { transform: translateX(-50%) translateY(0); }

  .detail-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: var(--surface2);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text2);
    cursor: pointer;
    width: 28px;
    height: 28px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 10;
  }

  .detail-close:hover { background: var(--border); }

  .detail-img-wrap {
    position: relative;
    margin-bottom: 14px;
    cursor: zoom-in;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 220px;
  }

  .detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
  }

  .detail-img-wrap:hover .detail-img {
    transform: scale(1.03);
  }

  .detail-img-zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: var(--radius-sm);
    pointer-events: none;
  }

  .detail-img-wrap:hover .detail-img-zoom-hint { opacity: 1; }

  .detail-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 8px;
  }

  .detail-ocr {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.2px;
    margin-bottom: 12px;
    color: var(--text);
  }

  .detail-coords {
    font-size: 11px;
    color: var(--text3);
    line-height: 2;
    font-weight: 400;
  }

  /* LIGHTBOX */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
  }

  .lightbox.open { display: flex; }

  .lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    cursor: default;
    pointer-events: none;
  }

  .lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9001;
    transition: background 0.15s;
  }

  .lightbox-close:hover { background: rgba(255,255,255,0.25); }

  /* Leaflet overrides for light theme */
  .leaflet-container { background: #e8e8ed; }
  .leaflet-control-zoom a {
    border-radius: 8px !important;
    font-size: 16px;
    color: var(--text) !important;
    border-color: var(--border) !important;
  }

  /* ── MOBILE ──────────────────────────────────────────── */
  @media (max-width: 768px) {
    .mobile-sheet { display: flex; }

    header {
      padding: 0 16px;
      height: 48px;
    }

    .logo-sub, .header-stats { display: none; }
    .header-pill-btn, .about-btn { display: none; }
    .hamburger-btn { display: flex; }

    .filter-pills {
      overflow-x: auto;
      flex: 1;
    }

    /* Map takes full screen */
    .main {
      flex-direction: column;
      position: relative;
    }

    .map-panel {
      flex: 1;
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
    }

    /* Hide desktop gallery */
    .gallery-panel {
      display: none;
    }

    /* ── STATS FAB ── */
    .stats-fab {
      display: flex;
      align-items: center;
      gap: 6px;
      position: absolute;
      bottom: calc(36vh + 12px);
      right: 14px;
      z-index: 590;
      background: #e03d00;
      color: #fff;
      border: none;
      border-radius: 24px;
      padding: 9px 16px 9px 12px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(224,61,0,0.45), 0 1px 4px rgba(0,0,0,0.2);
      transition: transform 0.15s, box-shadow 0.15s, bottom 0.35s cubic-bezier(0.32,0.72,0,1);
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    .stats-fab:active { transform: scale(0.95); }
    .stats-fab-icon { font-size: 15px; line-height: 1; }
    .stats-fab-label { line-height: 1; }

    /* Shift FAB when sheet is expanded or collapsed */
    .mobile-sheet.expanded ~ * .stats-fab,
    #map + .map-badge ~ .stats-fab { bottom: calc(36vh + 12px); }


    .mobile-sheet {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 600;
      background: var(--surface);
      border-radius: 16px 16px 0 0;
      box-shadow: var(--sheet-shadow);
      display: flex;
      flex-direction: column;
      /* Default: 33% height */
      height: 36vh;
      min-height: 120px;
      transition: height 0.35s cubic-bezier(0.32,0.72,0,1);
      touch-action: none;
      will-change: height;
    }

    .mobile-sheet.expanded {
      height: 88vh;
    }

    .mobile-sheet.collapsed {
      height: 72px;
    }

    /* Drag handle */
    .sheet-handle {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px 16px 8px;
      cursor: grab;
      user-select: none;
      gap: 8px;
    }

    .sheet-handle:active { cursor: grabbing; }

    .handle-bar {
      width: 36px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
    }

    .sheet-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    .sheet-count {
      font-size: 12px;
      font-weight: 600;
      color: var(--text2);
    }

    .sheet-search {
      width: 100%;
      margin: 0 16px 10px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text);
      padding: 8px 12px;
      font-family: inherit;
      font-size: 13px;
      outline: none;
      transition: border-color 0.15s;
      display: none;
    }

    .mobile-sheet.expanded .sheet-search {
      display: block;
    }

    .sheet-search:focus { border-color: var(--accent); }
    .sheet-search::placeholder { color: var(--text3); }

    /* Sheet list */
    .sheet-list {
      flex: 1;
      overflow-y: auto;
      padding: 0 10px 10px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .sheet-list::-webkit-scrollbar { display: none; }

    /* Mobile card — horizontal compact */
    .mobile-card {
      background: var(--surface);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-sm);
      margin-bottom: 8px;
      overflow: hidden;
      transition: border-color 0.15s;
    }

    .mobile-card.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(0,113,227,0.1);
    }

    .mobile-card-chevron {
      flex-shrink: 0;
      color: var(--text3);
      font-size: 14px;
      font-weight: 300;
      transition: transform 0.2s;
      margin-left: 4px;
      line-height: 1;
    }

    .mobile-card-header {
      display: flex;
      gap: 10px;
      padding: 10px 12px;
      align-items: center;
      cursor: pointer;
    }

    .mobile-card-img {
      width: 56px;
      height: 42px;
      border-radius: 6px;
      background: var(--surface2);
      flex-shrink: 0;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text3);
      font-size: 16px;
    }

    .mobile-card-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      pointer-events: none;
    }

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

    .mobile-card-ocr {
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: -0.1px;
      margin-bottom: 3px;
    }

    .mobile-card-meta {
      font-size: 11px;
      color: var(--text3);
    }

    .mobile-company {
      display: flex; align-items: center; gap: 5px; margin-top: 4px;
    }
    .mobile-company-logo {
      width: 14px; height: 14px; border-radius: 2px; object-fit: contain;
    }
    .mobile-company-name {
      font-size: 11px; font-weight: 600; color: var(--text2);
      text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mobile-company-name:hover { color: var(--accent); }

    /* Expanded card body */
    .mobile-card-expanded {
      display: none;
      padding: 0 12px 12px;
      border-top: 1px solid var(--border-light);
    }

    .mobile-card.expanded .mobile-card-expanded {
      display: block;
    }

    .mobile-expanded-img {
      width: 100%;
      border-radius: 8px;
      object-fit: contain;
      display: block;
      margin: 10px 0 10px;
      max-height: 200px;
      cursor: zoom-in;
    }

    .mobile-expanded-ocr {
      font-size: 14px;
      line-height: 1.55;
      color: var(--text);
      margin-bottom: 8px;
      font-weight: 400;
    }

    .mobile-expanded-meta {
      font-size: 11px;
      color: var(--text3);
      line-height: 2;
    }

    /* Hide desktop detail panel on mobile */
    .detail-panel { display: none; }
    .logo-sub { display: none; }
    .app { position: relative; }
    .map-badge { display: none; }

    /* Time chips: mobile — positioned by JS above sheet */
    .time-chip-bar {
      position: fixed;
      bottom: calc(36vh + 6px);
      left: 0;
      right: 0;
      border-radius: 0;
      padding: 6px 12px;
      backdrop-filter: saturate(180%) blur(16px);
      -webkit-backdrop-filter: saturate(180%) blur(16px);
      background: rgba(255,255,255,0.88);
      box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
      z-index: 580;
      transition: bottom 0.35s cubic-bezier(0.32,0.72,0,1);
    }
  }

  /* ── TIME CHIP BAR ──────────────────────────────────────── */
  .time-chip-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 450;
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    max-width: calc(100% - 24px);
  }
  .time-chip-bar::-webkit-scrollbar { display: none; }

  .time-chip {
    flex-shrink: 0;
    border: none;
    background: var(--surface2);
    color: var(--text2);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1.4;
  }
  .time-chip:hover { background: var(--border); }
  .time-chip.active {
    background: var(--accent);
    color: #fff;
  }
  .time-chip-latest.active {
    background: var(--text);
    color: #fff;
  }
  .time-chip-count {
    font-weight: 400;
    opacity: 0.7;
    font-size: 10px;
  }
