    /* ===== SELF-HOSTED INTER FONT ===== */
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin-ext.woff2') format('woff2');
      unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 500;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 500;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin-ext.woff2') format('woff2');
      unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 600;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 600;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin-ext.woff2') format('woff2');
      unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url('/static/vendor/fonts/inter-latin-ext.woff2') format('woff2');
      unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    }

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

    :root {
      --bg: #f6f8fa;
      --surface: #ffffff;
      --surface-2: #f0f2f5;
      --border: #d8dee4;
      --text: #1f2328;
      --text-secondary: #656d76;
      --text-dim: #8b949e;
      --accent: #0969da;
      --green: #1a7f37;
    }

    /* ===== SKIP LINK ===== */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      z-index: 10000;
      background: var(--accent);
      color: #fff;
      padding: 8px 16px;
      border-radius: 0 0 6px 6px;
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      transition: top 0.15s ease;
    }
    .skip-link:focus {
      top: 0;
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    body {
      font-family: 'Inter', -apple-system, sans-serif;
      background: var(--bg);
      color: var(--text);
      height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* ===== HEADER ===== */
    header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 0 20px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      z-index: 1000;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

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

    .logo-img {
      width: 42px;
      height: 42px;
      flex-shrink: 0;
    }

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

    .logo-name {
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: 0.04em;
      text-transform: lowercase;
    }

    .logo-full {
      font-size: 10.5px;
      font-weight: 500;
      color: var(--text-dim);
      margin-top: 2px;
      letter-spacing: 0.01em;
    }

    .header-sep {
      width: 1px;
      height: 20px;
      background: var(--border);
    }

    .header-stats {
      display: flex;
      gap: 16px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .header-stats strong { color: var(--text); font-weight: 600; }

    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-link {
      font-size: 12px;
      color: var(--text-secondary);
      text-decoration: none;
      padding: 4px 8px;
      border-radius: 4px;
    }

    .header-link:hover { color: var(--text); background: var(--surface-2); }

    /* ===== FOOTER ===== */
    .site-footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 10px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      gap: 12px;
    }

    .footer-disclaimer {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.4;
      margin: 0;
    }

    .footer-links {
      display: flex;
      gap: 12px;
      flex-shrink: 0;
    }

    .footer-links a {
      font-size: 11px;
      color: var(--text-secondary);
      text-decoration: none;
      white-space: nowrap;
    }

    .footer-links a:hover { color: var(--text); text-decoration: underline; }

    /* ===== MAIN LAYOUT ===== */
    .main {
      flex: 1;
      display: flex;
      overflow: hidden;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
      width: 360px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .sidebar-header {
      padding: 14px 14px 10px;
      border-bottom: 1px solid var(--border);
    }

    .sidebar-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 2px;
    }

    .sidebar-desc {
      font-size: 11px;
      color: var(--text-dim);
    }

    .controls {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .filter-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
    }

    .search-input {
      width: 100%;
      padding: 9px 10px 9px 32px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 13px;
      font-family: inherit;
      outline: none;
    }

    .search-input:focus { border-color: var(--accent); }
    .search-input::placeholder { color: var(--text-dim); }

    .search-wrap {
      position: relative;
    }

    .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-dim);
      font-size: 13px;
      pointer-events: none;
    }

    .filter-row {
      display: flex;
      gap: 6px;
    }

    .filter-select {
      flex: 1 1 0;
      min-width: 0; /* prevent long option text from stretching the select past its flex share */
      padding: 8px 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
      font-family: inherit;
      outline: none;
      cursor: pointer;
    }

    .filter-select:focus { border-color: var(--accent); }

    .filter-input {
      flex: 1 1 0;
      min-width: 0;
      padding: 8px 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
      font-family: inherit;
      outline: none;
    }

    .filter-input:focus { border-color: var(--accent); }
    .radius-select { flex: 0 0 86px; }

    .filter-options {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px 8px;
      font-size: 11px;
      color: var(--text-secondary);
    }

    .filter-options label {
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
    }

    .filter-options input { accent-color: var(--accent); }

    .active-filters {
      display: none;
      gap: 5px;
      flex-wrap: wrap;
      padding: 8px 14px;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }

    .active-filters.visible { display: flex; }

    .filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      max-width: 100%;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 3px 8px;
      background: var(--bg);
      color: var(--text-secondary);
      font-size: 11px;
      line-height: 1.2;
    }

    .filter-chip button {
      border: 0;
      background: transparent;
      color: var(--text-dim);
      cursor: pointer;
      font-size: 13px;
      line-height: 1;
      padding: 0;
    }

    /* ===== NEAR ME BUTTON ===== */
    .near-me-btn {
      width: 100%;
      padding: 8px 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      outline: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: background 0.1s, border-color 0.1s, color 0.1s;
    }

    .near-me-btn:not(.active):hover {
      background: var(--surface-2);
      border-color: var(--accent);
    }

    .near-me-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      justify-content: space-between;
    }

    .near-me-btn.active .near-me-clear { display: inline-flex; }

    .near-me-btn.loading { cursor: wait; opacity: 0.75; }

    .near-me-clear {
      display: none;
      background: rgba(255,255,255,0.22);
      color: #fff;
      border: none;
      border-radius: 3px;
      width: 18px;
      height: 18px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 13px;
      line-height: 1;
      padding: 0;
      margin-left: auto;
      flex-shrink: 0;
    }

    .near-me-clear:hover { background: rgba(255,255,255,0.35); }

    .near-me-error {
      font-size: 11px;
      color: #b91c1c;
      padding: 4px 2px 0;
      line-height: 1.35;
    }

    .near-me-error.warn { color: #92400e; }

    .svc-distance {
      font-size: 11px;
      font-weight: 600;
      color: var(--accent);
      margin-left: auto;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    /* User location marker */
    .user-loc-marker { position: relative; width: 18px; height: 18px; }
    .user-loc-marker-dot {
      width: 14px; height: 14px;
      background: var(--accent);
      border: 2.5px solid #fff;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0,0,0,0.35);
      position: absolute;
      top: 2px; left: 2px;
    }
    .user-loc-marker-ring {
      width: 18px; height: 18px;
      border: 2px solid var(--accent);
      border-radius: 50%;
      position: absolute;
      top: 0; left: 0;
      animation: pulse-ring 1.4s ease-out infinite;
      opacity: 0.6;
    }

    .results-bar {
      padding: 8px 14px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: var(--text-secondary);
      background: var(--bg);
    }

    .clear-btn {
      background: none;
      border: none;
      color: var(--accent);
      cursor: pointer;
      font-size: 11px;
      font-family: inherit;
    }

    .clear-btn:hover { text-decoration: underline; }

    .results-list {
      flex: 1;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: var(--border) var(--surface);
    }

    .results-list::-webkit-scrollbar { width: 5px; }
    .results-list::-webkit-scrollbar-track { background: var(--surface); }
    .results-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

    .service-card {
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      border-left: 3px solid transparent;
      cursor: pointer;
      transition: background 0.1s, border-color 0.15s;
    }

    .service-card:hover { background: var(--surface-2); }
    .service-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface-2); }
    .service-card.active { background: #eff6ff; border-left-color: var(--accent); }

    .svc-head {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      justify-content: space-between;
    }

    .svc-name {
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 3px;
      line-height: 1.3;
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: baseline;
      gap: 6px;
    }

    .svc-cat-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
      position: relative;
      top: 0px;
    }

    .svc-actions {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
    }

    .svc-action {
      min-width: 28px;
      height: 24px;
      padding: 0 7px;
      border: 1px solid var(--border);
      border-radius: 5px;
      background: var(--surface);
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
    }

    .svc-action:hover {
      background: var(--surface-2);
      text-decoration: none;
    }

    .svc-tag {
      display: inline-block;
      font-size: 10px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      margin-right: 6px;
    }

    .svc-meta {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 2px;
    }

    .svc-desc {
      font-size: 11.5px;
      color: var(--text-secondary);
      line-height: 1.4;
      margin-top: 3px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .svc-desc mark,
    .detail-desc mark {
      background: #fef08a;
      color: inherit;
      padding: 0 1px;
      border-radius: 2px;
    }

    .svc-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 2px;
      flex-wrap: wrap;
    }

    .svc-quality {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      display: inline-block;
      flex-shrink: 0;
    }

    .q-complete { background: #16a34a; }
    .q-partial { background: #ca8a04; }
    .q-minimal { background: #dc2626; }

    .svc-source {
      font-size: 9px;
      font-weight: 600;
      padding: 1px 5px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .src-gov { background: #dbeafe; color: #1e40af; }
    .src-osm { background: #d1fae5; color: #065f46; }

    .svc-ready {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .ready-ready { background: #dcfce7; color: #166534; }
    .ready-verify { background: #fef3c7; color: #92400e; }
    .ready-low { background: #fee2e2; color: #991b1b; }

    .svc-approx {
      font-size: 9px;
      font-weight: 600;
      padding: 1px 5px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      background: #fef3c7;
      color: #92400e;
      border: 1px dashed #d97706;
    }

    .svc-vintage {
      font-size: 9px;
      font-weight: 600;
      padding: 1px 5px;
      border-radius: 3px;
      letter-spacing: 0.03em;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .v-recent { background: var(--surface-2); color: var(--text-secondary); }
    .v-old    { background: #fef3c7; color: #92400e; }
    .v-stale  { background: #fee2e2; color: #b91c1c; }

    .vintage-age {
      font-weight: 400;
      color: var(--text-dim);
      margin-left: 4px;
    }

    .svc-confidence {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      margin-top: 8px;
    }

    .confidence-pill {
      min-width: 0;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 4px 5px;
      background: var(--bg);
    }

    .confidence-pill.warn {
      background: #fffbeb;
      border-color: #fde68a;
    }

    .confidence-pill.bad {
      background: #fef2f2;
      border-color: #fecaca;
    }

    .confidence-label {
      display: block;
      font-size: 8.5px;
      font-weight: 700;
      color: var(--text-dim);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .confidence-value {
      display: block;
      margin-top: 1px;
      font-size: 10.5px;
      font-weight: 600;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .detail-approx-note {
      margin-top: 8px;
      padding: 8px 10px;
      background: #fffbeb;
      border: 1px solid #fde68a;
      border-radius: 6px;
      font-size: 11px;
      color: #92400e;
      line-height: 1.4;
    }

    .detail-vintage-note {
      margin-top: 8px;
      padding: 8px 10px;
      background: #fef2f2;
      border: 1px solid #fecaca;
      border-radius: 6px;
      font-size: 11px;
      color: #991b1b;
      line-height: 1.4;
    }

    .detail-actions {
      display: flex;
      gap: 6px;
      margin: 12px 0 4px;
      flex-wrap: wrap;
    }

    .detail-action {
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
      background: var(--bg);
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 12px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }

    .detail-action:hover {
      background: var(--surface-2);
      border-color: var(--text-dim);
      text-decoration: none;
    }

    .detail-action.primary {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .detail-action.primary:hover {
      background: #0860c4;
      border-color: #0860c4;
    }

    .detail-action.primary-green {
      background: #16a34a;
      color: #fff;
      border-color: #16a34a;
    }

    .detail-action.primary-green:hover {
      background: #15803d;
      border-color: #15803d;
    }

    .detail-section {
      margin-top: 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 10px 12px;
    }

    .detail-section-title {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      margin-bottom: 8px;
    }

    .copyable {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .copy-btn {
      background: none;
      border: 1px solid transparent;
      border-radius: 3px;
      padding: 1px 4px;
      cursor: pointer;
      font-size: 11px;
      color: var(--text-dim);
      font-family: inherit;
      transition: all 0.15s;
      line-height: 1;
    }

    .copy-btn:hover {
      background: var(--surface-2);
      border-color: var(--border);
      color: var(--text-secondary);
    }

    .copy-btn.copied {
      color: #16a34a;
    }

    .no-results {
      padding: 32px 12px;
      text-align: center;
      color: var(--text-dim);
      font-size: 12px;
    }

    /* ===== MAP ===== */
    .map-area {
      flex: 1;
      position: relative;
    }

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

    .loading-overlay {
      position: absolute;
      inset: 0;
      background: var(--bg);
      display: flex;
      z-index: 999;
    }

    .loading-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse-dot 1s ease-in-out infinite;
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 1; }
    }

    /* ===== SKELETON LOADING ===== */
    @keyframes shimmer {
      0% { background-position: -400px 0; }
      100% { background-position: 400px 0; }
    }

    .skeleton-sidebar {
      width: 360px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      flex-shrink: 0;
      overflow: hidden;
    }

    .skeleton-header {
      padding: 14px 14px 10px;
      border-bottom: 1px solid var(--border);
    }

    .skeleton-filters {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .skeleton-bar {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }

    .skeleton-line {
      height: 12px;
      border-radius: 4px;
      background: linear-gradient(90deg, var(--surface-2) 25%, #e8eaee 37%, var(--surface-2) 63%);
      background-size: 800px 100%;
      animation: shimmer 1.6s ease-in-out infinite;
      margin-bottom: 6px;
    }

    .skeleton-line.short { height: 10px; }
    .skeleton-line.w40 { width: 40%; }
    .skeleton-line.w50 { width: 50%; }
    .skeleton-line.w60 { width: 60%; }
    .skeleton-line.w70 { width: 70%; }
    .skeleton-line.w80 { width: 80%; }
    .skeleton-line.w90 { width: 90%; }

    .skeleton-input {
      height: 36px;
      border-radius: 6px;
      background: linear-gradient(90deg, var(--surface-2) 25%, #e8eaee 37%, var(--surface-2) 63%);
      background-size: 800px 100%;
      animation: shimmer 1.6s ease-in-out infinite;
    }

    .skeleton-input.short { height: 32px; }

    .skeleton-row {
      display: flex;
      gap: 6px;
    }

    .skeleton-select {
      flex: 1;
      height: 34px;
      border-radius: 6px;
      background: linear-gradient(90deg, var(--surface-2) 25%, #e8eaee 37%, var(--surface-2) 63%);
      background-size: 800px 100%;
      animation: shimmer 1.6s ease-in-out infinite;
    }

    .skeleton-card {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
    }

    .skeleton-badges {
      display: flex;
      gap: 6px;
      margin-top: 6px;
    }

    .skeleton-badge {
      height: 16px;
      width: 48px;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--surface-2) 25%, #e8eaee 37%, var(--surface-2) 63%);
      background-size: 800px 100%;
      animation: shimmer 1.6s ease-in-out infinite;
    }

    .skeleton-badge.wide { width: 72px; }

    .skeleton-map {
      flex: 1;
      background: var(--surface-2);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .skeleton-map-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-dim);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    /* ===== DETAIL PANEL ===== */
    .detail {
      position: absolute;
      bottom: 16px; left: 16px;
      max-width: 380px;
      width: calc(100% - 32px);
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--detail-cat-color, var(--accent));
      border-radius: 8px;
      padding: 18px 18px 14px;
      z-index: 998;
      display: none;
      box-shadow: 0 6px 32px rgba(0,0,0,0.15);
      max-height: 70vh;
      overflow-y: auto;
      scrollbar-width: thin;
    }

    .detail::-webkit-scrollbar { width: 5px; }
    .detail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .detail.visible {
      display: block;
      animation: detail-slide-up 0.25s ease-out;
    }

    @keyframes detail-slide-up {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .detail-x {
      position: sticky;
      top: 0;
      float: right;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      width: 28px; height: 28px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      z-index: 1;
      transition: background 0.15s, color 0.15s;
    }

    .detail-x:hover { color: var(--text); background: var(--surface-2); }

    .detail-name {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 4px;
      padding-right: 36px;
      line-height: 1.3;
    }

    .detail-loc {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .detail-loc-dist {
      font-weight: 600;
      color: var(--accent);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .detail-desc {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
      margin: 8px 0 12px;
    }

    .detail-desc.clamped {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .detail-desc-toggle {
      background: none;
      border: none;
      color: var(--accent);
      font-size: 11px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      padding: 2px 0;
      margin-top: 2px;
    }

    .detail-desc-toggle:hover { text-decoration: underline; }

    .detail-grid {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 4px 10px;
      font-size: 12px;
    }

    .dl { color: var(--text-dim); }
    .dv { color: var(--text); word-break: break-word; }
    .dv a { color: var(--accent); text-decoration: none; }
    .dv a:hover { text-decoration: underline; }

    /* Tag colors */
    .t-food{background:#dcfce7;color:#166534} .t-housing{background:#fef3c7;color:#92400e}
    .t-health{background:#dbeafe;color:#1e40af} .t-mental_health{background:#ede9fe;color:#5b21b6}
    .t-legal{background:#ffedd5;color:#9a3412} .t-employment{background:#d1fae5;color:#065f46}
    .t-education{background:#cffafe;color:#155e75} .t-disability{background:#fae8ff;color:#86198f}
    .t-family{background:#fee2e2;color:#991b1b} .t-community{background:#dcfce7;color:#14532d}
    .t-financial{background:#fef9c3;color:#854d0e} .t-alcohol_drugs{background:#fee2e2;color:#b91c1c}
    .t-information{background:#dbeafe;color:#1e3a8a} .t-transport{background:#f1f5f9;color:#475569}
    .t-personal_care{background:#ede9fe;color:#6d28d9} .t-technology{background:#e0e7ff;color:#3730a3}
    .t-other{background:var(--surface-2);color:var(--text-secondary)}

    /* ===== CATEGORY CHIPS ===== */
    .cat-chips {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 997;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      padding: 10px 12px;
      pointer-events: none;
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .cat-chip {
      pointer-events: auto;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      font-size: 11px;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
      box-shadow: 0 1px 2px rgba(0,0,0,0.06);
      user-select: none;
      flex-shrink: 0;
    }

    .cat-chip:hover { border-color: var(--text-dim); }

    .cat-chip.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .cat-chip .chip-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .cat-chip.active .chip-dot { background: #fff !important; }

    .cat-chip .chip-count {
      font-size: 10px;
      opacity: 0.7;
    }

    .map-controls {
      position: absolute;
      bottom: 28px;
      right: 10px;
      z-index: 800;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }

    .map-search {
      display: none;
      gap: 6px;
      align-items: center;
    }

    .map-search.visible { display: flex; }

    .map-search-btn {
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--surface);
      color: var(--text);
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
      cursor: pointer;
      font-size: 11px;
      font-weight: 600;
      padding: 7px 10px;
      font-family: inherit;
    }

    .map-search-btn:hover { border-color: var(--accent); }
    .map-search-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .map-search-btn.clear { display: none; padding: 7px 8px; }
    .map-search-btn.clear.visible { display: inline-flex; }

    /* ===== DETAIL BADGES ===== */
    .detail-badges {
      display: flex;
      gap: 6px;
      align-items: center;
      margin: 6px 0 8px;
      flex-wrap: wrap;
    }

    .detail-quality {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-secondary);
    }

    .detail-quality .svc-quality { width: 8px; height: 8px; }

    .leaflet-top.leaflet-left { top: 80px; }

    /* ===== MAP CONTROLS ===== */
    .leaflet-bar {
      border: 1px solid var(--border) !important;
      border-radius: 8px !important;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
      overflow: hidden;
    }
    .leaflet-bar a {
      width: 32px !important;
      height: 32px !important;
      line-height: 32px !important;
      font-family: Inter, system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 500 !important;
      color: var(--text) !important;
      background: var(--surface) !important;
      border-bottom: 1px solid var(--border) !important;
      transition: background 0.15s ease;
    }
    .leaflet-bar a:last-child { border-bottom: none !important; }
    .leaflet-bar a:hover {
      background: var(--bg) !important;
      color: var(--accent) !important;
    }
    .leaflet-control-attribution {
      font-family: Inter, system-ui, sans-serif !important;
      font-size: 10px !important;
      background: rgba(255,255,255,0.85) !important;
      padding: 2px 6px !important;
      border-radius: 4px 0 0 0 !important;
    }
    .leaflet-control-attribution a { color: var(--accent) !important; }

    /* ===== MAP TOGGLES ===== */
    .map-toggles {
      display: flex;
      gap: 6px;
    }
    .map-toggle-btn {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 6px 12px;
      font-family: Inter, system-ui, sans-serif;
      font-size: 12px;
      font-weight: 500;
      color: var(--text);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      transition: background 0.15s ease, color 0.15s ease;
    }
    .map-toggle-btn:hover { background: var(--bg); color: var(--accent); }
    .map-toggle-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

    /* ===== MAP LEGEND ===== */
    .map-legend {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }
    .map-legend-toggle {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 5px 10px;
      font-family: Inter, system-ui, sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      transition: background 0.15s ease;
    }
    .map-legend-toggle:hover { background: var(--bg); }
    .map-legend-body {
      display: none;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 10px;
      margin-bottom: 6px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      max-height: 260px;
      overflow-y: auto;
    }
    .map-legend.open .map-legend-body { display: block; }
    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 500;
      color: var(--text);
      padding: 2px 0;
      white-space: nowrap;
    }
    .legend-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      border: 2px solid #fff;
      box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
      flex-shrink: 0;
    }
    .legend-dot-approx {
      background: rgba(255,255,255,0.85) !important;
      border: 2px dashed #64748b;
      box-shadow: none;
    }

    .boundary-label {
      font-family: Inter, system-ui, sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: #0969da;
      background: rgba(255,255,255,0.85);
      border: 1px solid rgba(9,105,218,0.3);
      border-radius: 4px;
      padding: 2px 6px;
      box-shadow: none;
    }

    .sa3-label {
      font-family: Inter, system-ui, sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: #854d0e;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(250,204,21,0.5);
      border-radius: 4px;
      padding: 2px 6px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }

    /* ===== HIGHLIGHT MARKER ===== */
    @keyframes pulse-ring {
      0% { transform: scale(1); opacity: 0.6; }
      100% { transform: scale(2.5); opacity: 0; }
    }

    .marker-highlight {
      width: 20px; height: 20px;
      position: relative;
    }

    .marker-highlight-dot {
      width: 12px; height: 12px;
      background: var(--accent);
      border: 2.5px solid #fff;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0,0,0,0.35);
      position: absolute;
      top: 4px; left: 4px;
    }

    .marker-highlight-ring {
      width: 20px; height: 20px;
      border: 2px solid var(--accent);
      border-radius: 50%;
      position: absolute;
      top: 0; left: 0;
      animation: pulse-ring 1.2s ease-out infinite;
    }

    /* ===== NEARBY PROMPT ===== */
    .nearby-prompt {
      position: absolute;
      inset: 0;
      z-index: 996;
      display: none;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .nearby-prompt.visible { display: flex; }

    .nearby-prompt-card {
      pointer-events: auto;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px 32px;
      text-align: center;
      box-shadow: 0 4px 24px rgba(0,0,0,0.12);
      max-width: 320px;
      animation: prompt-in 0.4s ease-out;
    }

    @keyframes prompt-in {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .nearby-prompt-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }

    .nearby-prompt-desc {
      font-size: 13px;
      color: var(--text-dim);
      margin-bottom: 20px;
    }

    .nearby-prompt-btn {
      width: 100%;
      padding: 10px 16px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      margin-bottom: 8px;
      transition: background 0.15s;
    }

    .nearby-prompt-btn:hover { background: #0860c4; }

    .nearby-prompt-dismiss {
      width: 100%;
      padding: 8px 16px;
      background: none;
      color: var(--text-secondary);
      border: none;
      font-size: 12px;
      font-family: inherit;
      cursor: pointer;
    }

    .nearby-prompt-dismiss:hover { color: var(--text); }

    /* ===== STREAM PROGRESS BAR ===== */
    .stream-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 28px;
      background: var(--surface);
      border-top: 1px solid var(--border);
      z-index: 998;
      display: none;
      align-items: center;
      padding: 0 12px;
    }

    .stream-bar.visible { display: flex; }

    .stream-bar-fill {
      position: absolute;
      left: 0; top: 0; bottom: 0;
      background: rgba(9,105,218,0.06);
      transition: width 0.4s ease;
      width: 0%;
    }

    .stream-bar-text {
      position: relative;
      font-size: 11px;
      color: var(--text-secondary);
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .stream-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse-dot 1s ease-in-out infinite;
    }

    /* ===== DOWNLOAD BUTTON ===== */
    .download-btn {
      background: none;
      border: none;
      color: var(--accent);
      cursor: pointer;
      font-size: 11px;
      font-family: inherit;
      display: flex;
      align-items: center;
      gap: 3px;
    }

    .download-btn:hover { text-decoration: underline; }

    /* ===== MAP MARKERS ===== */
    .svc-marker { background: none !important; border: none !important; }
    .marker-dot {
      width: 10px; height: 10px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0,0,0,0.3);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      cursor: pointer;
    }
    .marker-dot:hover {
      transform: scale(1.5);
      box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }
    .marker-dot.marker-approx {
      width: 14px; height: 14px;
      background: rgba(255,255,255,0.85);
      border: 2px dashed;
      box-sizing: border-box;
    }

    /* Leaflet overrides */
    .leaflet-popup-content-wrapper{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:6px;}
    .leaflet-popup-tip{background:var(--surface);}

    .svc-tooltip {
      font-family: Inter, system-ui, sans-serif;
      font-size: 12px;
      font-weight: 500;
      padding: 4px 8px;
      border-radius: 4px;
      border: 1px solid var(--border);
      box-shadow: 0 2px 6px rgba(0,0,0,0.12);
      max-width: 220px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cluster-tooltip {
      font-family: Inter, system-ui, sans-serif;
      font-size: 11px;
      font-weight: 500;
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid var(--border);
      box-shadow: 0 2px 8px rgba(0,0,0,0.12);
      line-height: 1.5;
    }

    .cluster-pie {
      background: none !important;
      border: none !important;
      filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
      transition: transform 0.15s ease;
    }
    .cluster-pie:hover { transform: scale(1.12); }

    /* ===== MOBILE TABS ===== */
    .mobile-tabs {
      display: none;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .mobile-tab {
      flex: 1;
      padding: 10px 12px;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      color: var(--text-secondary);
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
    }

    .mobile-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    @media(max-width:768px){
      header { padding: 0 12px; }
      .logo-img { width: 28px; height: 28px; }
      .logo-name { font-size: 15px; }
      .logo-full { display: none; }
      .header-stats { display: none; }
      .header-link.desktop { display: none; }
      .header-link { padding: 4px 6px; font-size: 12px; }
      .header-left { gap: 8px; }
      .header-right { gap: 4px; }
      .header-sep { display: none; }

      .site-footer { flex-direction: column; padding: 8px 12px; text-align: center; gap: 6px; }
      .footer-links { gap: 10px; }

      .mobile-tabs { display: flex; }

      .main { position: relative; }

      .sidebar {
        width: 100%;
        border-right: none;
        position: absolute;
        inset: 0;
        z-index: 500;
      }

      .map-area {
        position: absolute;
        inset: 0;
      }

      body[data-mobile-view="list"] .map-area { display: none; }
      body[data-mobile-view="map"] .sidebar { display: none; }

      .detail {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        max-height: 60vh;
        overflow-y: auto;
        padding: 14px;
        border-left-width: 4px;
      }

      .cat-chips {
        padding: 8px;
        gap: 4px;
      }

      .leaflet-top.leaflet-left { top: 8px; }

      .sidebar-header { padding: 12px 12px 8px; }
      .controls { padding: 10px 12px; }
      .results-bar { padding: 8px 12px; }

      .map-controls { bottom: 16px; right: 8px; }

      .skeleton-sidebar { width: 100%; }
      .skeleton-map { display: none; }
    }
