﻿    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; }
    body {
        font-family: 'Plus Jakarta Sans', sans-serif;
        background: #080810;
        color: #C9D1E3;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; }

    :root {
        --r: #16A34A;
        --r2: #22C55E;
        --r-glow: rgba(22,163,74,0.22);
        --r-bg: rgba(22,163,74,0.08);
        --bg: #080810;
        --bg2: #0D0D18;
        --bg3: #101020;
        --card: rgba(255,255,255,0.04);
        --card-border: rgba(255,255,255,0.08);
        --text: #C9D1E3;
        --muted: #606880;
        --white: #fff;
    }

    /* ─── NAVBAR ─── */
    .nav {
        position: sticky; top: 0; z-index: 999;
        background: rgba(8,8,16,0.92);
        backdrop-filter: blur(24px) saturate(1.5);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--card-border);
        height: 66px;
        display: flex; align-items: center;
    }
    .nav-wrap { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
    .logo { display: flex; align-items: center; gap: 10px; }
    .logo-icon {
        width: 36px; height: 36px; border-radius: 10px;
        background: linear-gradient(135deg, var(--r), #15803D);
        display: flex; align-items: center; justify-content: center;
        font-size: 16px; flex-shrink: 0;
        box-shadow: 0 4px 14px var(--r-glow);
    }
    .logo-text { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
    .logo-text span { color: var(--r2); }
    .nav-end { display: flex; align-items: center; gap: 10px; }
    .btn-back {
        font-size: 13.5px; font-weight: 700; color: var(--muted);
        padding: 8px 16px; border-radius: 9px;
        border: 1px solid var(--card-border); transition: all .2s;
        display: inline-flex; align-items: center; gap: 6px;
    }
    .btn-back:hover { color: #fff; border-color: rgba(255,255,255,0.15); }

    /* ─── MAIN LAYOUT ─── */
    .main-layout {
        display: flex;
        height: calc(100vh - 66px);
    }

    /* ─── SIDEBAR ─── */
    .sidebar {
        width: 400px;
        flex-shrink: 0;
        background: var(--bg2);
        border-right: 1px solid var(--card-border);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .filter-section {
        padding: 20px;
        border-bottom: 1px solid var(--card-border);
    }

    .filter-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--white);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .filter-title i { color: var(--r2); }

    .filter-group { margin-bottom: 14px; }
    .filter-label {
        font-size: 12px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    .filter-input {
        width: 100%;
        padding: 10px 14px;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--card-border);
        border-radius: 10px;
        color: var(--white);
        font-size: 14px;
        font-family: inherit;
        transition: border-color .2s;
        outline: none;
    }
    .filter-input:focus { border-color: var(--r); }
    .filter-input::placeholder { color: var(--muted); }

    .range-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .range-wrap input[type="range"] {
        flex: 1;
        -webkit-appearance: none;
        height: 6px;
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
        outline: none;
    }
    .range-wrap input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px; height: 18px;
        border-radius: 50%;
        background: var(--r);
        cursor: pointer;
        box-shadow: 0 2px 8px var(--r-glow);
    }
    .range-value {
        min-width: 55px;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: var(--r2);
    }

    .btn-search {
        width: 100%;
        padding: 12px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--r), #15803D);
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        font-family: inherit;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all .25s;
        box-shadow: 0 4px 16px var(--r-glow);
    }
    .btn-search:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--r-glow); }
    .btn-search:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    /* ─── SHOP LIST ─── */
    .shop-list {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
    }
    .shop-list::-webkit-scrollbar { width: 4px; }
    .shop-list::-webkit-scrollbar-track { background: transparent; }
    .shop-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

    .shop-card {
        background: var(--card);
        border: 1px solid var(--card-border);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all .2s;
    }
    .shop-card:hover, .shop-card.active {
        border-color: rgba(22,163,74,0.3);
        background: var(--r-bg);
    }
    .shop-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    .shop-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--white);
    }
    .shop-distance {
        font-size: 12px;
        font-weight: 700;
        color: var(--r2);
        background: var(--r-bg);
        padding: 3px 10px;
        border-radius: 20px;
        white-space: nowrap;
    }
    .shop-info {
        font-size: 13px;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .shop-info i { font-size: 12px; color: var(--r2); flex-shrink: 0; }
    .shop-types {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 8px;
    }
    .shop-type-tag {
        font-size: 11px;
        font-weight: 600;
        color: #60A5FA;
        background: rgba(96,165,250,0.1);
        border: 1px solid rgba(96,165,250,0.15);
        padding: 2px 8px;
        border-radius: 6px;
    }

    .no-results {
        text-align: center;
        padding: 40px 20px;
        color: var(--muted);
    }
    .no-results i { font-size: 40px; margin-bottom: 12px; display: block; }
    .no-results p { font-size: 14px; }

    .loading-state {
        text-align: center;
        padding: 40px 20px;
        color: var(--muted);
    }
    .spinner {
        width: 30px; height: 30px;
        border: 3px solid rgba(255,255,255,0.1);
        border-top-color: var(--r);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 12px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .location-prompt {
        text-align: center;
        padding: 60px 20px;
        color: var(--muted);
    }
    .location-prompt i { font-size: 48px; margin-bottom: 16px; display: block; color: var(--r2); }
    .location-prompt h3 { font-size: 16px; color: var(--white); margin-bottom: 8px; }
    .location-prompt p { font-size: 13px; margin-bottom: 20px; }
    .btn-locate {
        padding: 10px 24px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--r), #15803D);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 16px var(--r-glow);
    }

    /* ─── MAP ─── */
    .map-container {
        flex: 1;
        position: relative;
    }
    #map { width: 100%; height: 100%; }

    /* ─── RESPONSIVE ─── */
    @media(max-width: 768px) {
        .main-layout { flex-direction: column-reverse; }
        .sidebar { width: 100%; height: 50vh; border-right: none; border-top: 1px solid var(--card-border); }
        .map-container { height: 50vh; }
    }

    /* ─── LOCATE ME BUTTON ON MAP ─── */
    .map-locate-btn {
        position: absolute;
        bottom: 24px;
        right: 24px;
        z-index: 10;
        width: 44px; height: 44px;
        border-radius: 12px;
        background: rgba(8,8,16,0.9);
        border: 1px solid var(--card-border);
        color: var(--white);
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .2s;
        backdrop-filter: blur(12px);
    }
    .map-locate-btn:hover { border-color: var(--r); color: var(--r2); }

    .shop-count {
        font-size: 13px;
        color: var(--muted);
        padding: 0 12px 8px;
        font-weight: 600;
    }
    .shop-count strong { color: var(--r2); }

    /* ─── DEVELOPMENT BANNER ─── */
    .dev-banner {
        background: linear-gradient(90deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08));
        border-bottom: 1px solid rgba(245,158,11,0.25);
        text-align: center;
        padding: 10px 20px;
        font-size: 13px;
        font-weight: 700;
        color: #F59E0B;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .dev-banner i { font-size: 16px; }