        /* ======== CSS Variables ======== */
        :root {
            --primary: #1e1e1e;
            --primary-light: #2c2c2c;
            --secondary: #286e9c;
            --secondary-dark: #2980b9;
            --accent: #e6bc22;
            --accent-dark: #d7782f;
            --warning: #e74c3c;
            --success: #27ae60;
            --light-gray: #2c2c2c;
            --medium-gray: #3a3a3a;
            --text-dark: #ecf0f1;
            --text-medium: #bdc3c7;
            --border-radius: 8px;
            --box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            --transition: all 0.3s ease;
            --primary-gradient: linear-gradient(135deg, #1b2838 0%, #2e3b4e 100%);
            --background-gradient: linear-gradient(180deg, #1f1f1f 0%, #2c2c2c 100%);
            --card-bg: #1f1f1f;
            --card-border: #3a3a3a;
        }
        
        /* ======== Base Styles ======== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Open Sans', 'Helvetica', Arial, sans-serif;
            background: var(--background-gradient);
            color: var(--text-dark);
            min-height: 100vh;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }
        
        /* ======== Header ======== */
        header {
            background: var(--primary-gradient);
            color: white;
            padding: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        
        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo .beer-icon {
            font-size: 2.2rem;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .logo p {
            font-size: 1rem;
            opacity: 0.9;
            margin-top: 4px;
            color: var(--text-medium);
        }
        
        /* ======== Main Layout ======== */
        #main-container {
            flex: 1;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            padding: 20px;
            gap: 20px;
            /* Mobile-first: stack vertically by default */
            display: flex;
            flex-direction: column;
        }
        
        #map-container {
            flex: 1;
            position: relative;
            height: 70vh;
            min-height: 400px;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
            overflow: hidden;
        }
        
        #map {
            background: #f0f0f0;
            height: 100% !important;
            width: 100% !important;
            min-height: 400px;
        }

        /* ======== User Location Marker ======== */
        .user-location-marker {
            background: none;
            border: none;
        }

        .user-location-icon {
            font-size: 20px;
            text-shadow: 0 0 3px rgba(0,0,0,0.5);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* ======== Controls Panel ======== */

        
        #map-controls {
            width: 100%;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--box-shadow);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        #bottom-controls {
            width: 100%;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--box-shadow);
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        #bottom-controls .control-section {
            flex: 1;
            min-width: 250px;
            margin-bottom: 0;
        }
        
        .control-section {
            margin-bottom: 15px;
        }
        
        .control-section h3 {
            margin-bottom: 12px;
            color: var(--text-dark);
            padding-bottom: 8px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .size-filter {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 8px;
        }

        .type-filter select {
            width: 100%;
            padding: 8px;
            border: 1px solid var(--card-border);
            border-radius: 4px;
            background: var(--card-bg);
            color: var(--text-dark);
            font-weight: 600;
        }
        
        .size-btn {
            padding: 10px 5px;
            border: 1px solid var(--card-border);
            border-radius: 4px;
            background: var(--card-bg);
            color: var(--text-dark);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .size-btn:hover,
        .size-btn.active {
            background: var(--secondary);
            color: white;
            border-color: var(--secondary);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        
        #add-pub-btn {
            padding: 12px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.12);
        }

        #add-pub-btn:hover {
            background: var(--accent-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        /* ======== Statistics ======== */
        .stats-container {
            display: flex;
            gap: 15px;
            text-align: center;
            margin-top: 5px;
        }
        
        .stat-card {
            flex: 1;
            background: var(--card-bg);
            border-radius: 4px;
            padding: 10px;
        }

        .stat-card .value {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-dark);
        }
        
        .stat-card .label {
            font-size: 0.8rem;
            color: var(--text-medium);
        }
        
        /* ======== Search Bar ======== */
        .search-container {
            position: absolute;
            top: 18px;
            right: 18px;
            z-index: 1000;
            width: 300px;
        }

        .search-bar {
            display: flex;
            background: var(--card-bg);
            border-radius: 8px;
            border: 1px solid var(--card-border);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            overflow: hidden;
            position: relative;
        }

        .search-bar input {
            flex-grow: 1;
            padding: 12px 15px;
            border: none;
            background: transparent;
            font-size: 1rem;
            color: var(--text-dark);
        }

        .search-bar input::placeholder {
            color: var(--text-medium);
        }

        .search-btn {
            background: var(--secondary);
            color: white;
            border: none;
            width: 50px;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-btn:hover {
            background: var(--secondary-dark);
            box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
        }

        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 300px;
            overflow-y: auto;
            background: var(--card-bg);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            border-radius: 0 0 4px 4px;
            z-index: 1001;
            display: none;
            border: 1px solid var(--card-border);
            border-top: none;
        }

        .search-results.show {
            display: block;
        }

        .search-item {
            padding: 12px 15px;
            border-bottom: 1px solid var(--card-border);
            cursor: pointer;
            transition: var(--transition);
        }

        .search-item:hover {
            background: var(--medium-gray);
        }

        .search-item:last-child {
            border-bottom: none;
        }

        .search-item .place-name {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 2px;
        }


        .search-item .place-address {
            font-size: 0.9em;
            color: var(--text-medium);
        }

        .search-item .place-type {
            font-size: 0.8em;
            color: var(--secondary);
            margin-top: 2px;
            font-style: italic;
        }

        /* ======== Map Markers ======== */
        .price-bubble {
            background: var(--accent);
            color: white;
            padding: 5px 10px;
            border-radius: 12px;
            font-weight: bold;
            font-size: 12px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            min-width: 45px;
        }
        /* ======== Charts ======== */
        #charts-section {
            width: 100%;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--box-shadow);
        }

        .charts-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .chart-wrapper {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 0;
            padding: 25px;
            min-height: 320px;
            box-shadow: none;
            position: relative;
        }

        .chart-wrapper h4 {
            margin: 0 0 20px 0;
            font-size: 0.95rem;
            color: var(--text-dark);
            text-align: left;
            font-family: 'Arial', sans-serif;
            font-weight: 600;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--card-border);
        }

        .chart-wrapper canvas {
            height: 250px !important;
        }

        .chart-empty {
            height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-medium);
            font-style: italic;
            display: none;
        }
/* New Charts Container */
#charts-container {
    max-width: 1200px;
    margin: 20px auto;
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 768px) {
    #main-container {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-areas:
            "map controls"
            "bottom bottom";
        gap: 20px;
        align-items: start;
    }

    #map-container {
        grid-area: map;
        height: 65vh;
        min-height: 450px;
    }

    #map-controls {
        grid-area: controls;
        width: auto;
        margin: 0;
    }

    #bottom-controls {
        grid-area: bottom;
    }

    /* Charts container matches map width on desktop */
    #charts-container {
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    #main-container {
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    #map-container {
        height: 60vh;
        min-height: 350px;
    }

    #map-controls {
        width: 100%;
        margin: 0;
    }

    #bottom-controls {
        width: 100%;
        margin: 0;
    }
    
    /* Charts container on mobile */
    #charts-container {
        margin: 10px auto 20px auto;
        padding: 0 10px;
        overflow: hidden;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-wrapper {
        min-height: 280px; /* ✅ Increased from 250px */
        padding: 15px;
        overflow: hidden;
        max-width: 100%;
    }
    
    .chart-wrapper canvas {
        height: 220px !important; /* ✅ Increased from 180px */
        max-width: 100% !important;
    }
    
    .chart-empty {
        height: 220px; /* ✅ Match canvas height */
    }
}
.leaflet-popup-pane {
    z-index: 9999 !important;
}

.leaflet-popup {
    z-index: 9999 !important;
}

.leaflet-popup-content-wrapper {
    z-index: 9999 !important;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--card-border);
}

.leaflet-popup-tip {
    z-index: 9999 !important;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.leaflet-popup-content {
    color: var(--text-dark);
}

        /* PWA-specific improvements */
        @media (display-mode: standalone) {
        /* Hide browser-specific elements when app is installed */
        .search-container {
            top: 10px; /* Less space needed without browser bar */
        }
        }

        /* Touch-friendly buttons */
        @media (max-width: 767px) {
        .size-btn, .day-btn, .toggle-btn {
            min-height: 44px; /* Apple's recommended touch target */
            font-size: 0.9rem;
        }
        
        /* Improve popup sizing on mobile */
        .leaflet-popup-content {
            max-width: calc(100vw - 40px) !important;
        }
        }


        /* Pull-to-refresh indicator */
        body {
        overscroll-behavior-y: contain;
        }

        /* Happy hour styling - higher specificity to override price colors */
        .price-bubble.happy-hour {
            background: #ff69b4 !important;
            animation: pulse-pink 2s infinite;
        }

        @keyframes pulse-pink {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.9; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        /* ======== Popups ======== */
        .pub-popup {
            min-width: 280px;
            max-width: 350px;
        }
        
        .pub-popup h3 {
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--text-dark);
        }
        
        .pub-popup .address {
            font-size: 0.9rem;
            color: var(--text-medium);
            margin-bottom: 15px;
        }
        
        .beer-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
            font-size:0.9rem;
        }
        
        .beer-table th {
            text-align: left;
            padding: 6px 4px;
            background: var(--medium-gray);
            border-bottom: 1px solid var(--card-border);
            font-weight: 600;
            color: var(--text-medium);
            font-size:0.8rem;
        }
        
        .beer-table td {
            padding: 6px 4px;
            border-bottom: 1px solid var(--card-border);
            font-size:0.85rem;
        }
        .beer-table th:nth-child(1),
        .beer-table td:nth-child(1) {
            width: 35%;  /* Category column */
        }

        .beer-table th:nth-child(2),
        .beer-table td:nth-child(2) {
            width: 20%;  /* Size column */
        }

        .beer-table th:nth-child(3),
        .beer-table td:nth-child(3) {
            width: 25%;  /* Price column */
        }

        .beer-table th:nth-child(4),
        .beer-table td:nth-child(4) {
            width: 20%;  /* Status column */
        }
        .beer-price {
            text-align: right;
            color: var(--warning);
            font-weight: 600;
        }

        .beer-price.happy-hour {
            background: #ff69b4;
            color: white;
            padding: 2px 6px;
            border-radius: 3px;
        }
        /* Happy hour schedule row styling */
        .beer-table tr.happy-hour-row td {
            background: var(--light-gray);
            border-bottom: 1px solid var(--card-border);
            padding: 4px;
            font-size: 0.75em;
            color: var(--text-medium);
            font-style: italic;
        }
        @media (max-width: 480px) {
            .pub-popup {
                min-width: 260px;
                max-width: 300px;
            }
            
            .beer-table {
                font-size: 0.8rem;
            }
            
            .beer-table th,
            .beer-table td {
                padding: 4px 2px;
                font-size: 0.75rem;
            }
        }
        
        .last-updated {
            font-size: 0.8rem;
            color: #95a5a6;
            margin-bottom: 15px;
        }
        
        .popup-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }
        
        .add-beer-btn {
            background: var(--secondary);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }
        
        .add-beer-btn:hover {
            background: var(--secondary-dark);
        }
        
        /* ======== Modals ======== */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 15px;
        }
        
        .modal-content {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: 0 8px 30px rgba(0,0,0,0.3);
            width: 100%;
            max-width: 500px;
            overflow: hidden;
        }
        
        .modal-header {
            background: var(--primary);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h2 {
            font-size: 1.5rem;
            margin: 0;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            transition: var(--transition);
        }
        
        .close-btn:hover {
            background: rgba(255,255,255,0.2);
        }
        
        .modal-body {
            padding: 20px;
            max-height: 70vh;
            overflow-y: auto;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .form-group input,
        .form-group select {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid var(--card-border);
            border-radius: 4px;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .form-group input:focus, 
        .form-group select:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        
        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }
        
        .modal-footer {
            padding: 15px 20px;
            background: var(--card-bg);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }
        
        .modal-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-cancel {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            color: var(--text-dark);
        }

        .btn-cancel:hover {
            background: var(--medium-gray);
        }
        
        .btn-submit {
            background: var(--accent);
            color: white;
        }
        
        .btn-submit:hover {
            background: var(--accent-dark);
        }
        
        .error {
            color: var(--warning);
            font-weight: 600;
            background: #fdecea;
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            display: none;
        }

        .address-search-container {
            position: relative;
            z-index: 1000;
        }
        .address-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-top: none;
            border-radius: 0 0 4px 4px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
        }

        .address-results.show {
            display: block;
        }

        .address-result-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid var(--card-border);
        }

        .address-result-item:hover {
            background: var(--medium-gray);
        }

        .address-result-item:last-child {
            border-bottom: none;
        }

        .address-result-item .place-name {
            font-weight: 600;
            color: var(--text-dark);
        }

        .address-result-item .place-address {
            font-size: 0.9em;
            color: var(--text-medium);
            margin-top: 2px;
        }

        
        /* ======== Footer ======== */
footer {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.seo-blurb {
    font-size: 0.9rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 30px auto 10px;
    text-align: center;
    line-height: 1.5;
}

.seo-blurb h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.seo-blurb nav {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.seo-blurb nav a {
    color: var(--text-medium);
    text-decoration: none;
}
        
        /* ======== Responsive Design ======== */

        .days-filter {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.day-btn {
    padding: 8px 4px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.85rem;
}

.day-btn:hover, 
.day-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Mobile optimization */
@media (max-width: 767px) {
    .days-filter {
        gap: 4px;
    }
    
    .day-btn {
        padding: 10px 2px;
        font-size: 0.8rem;
    }
}
.price-bubble.unavailable {
    background: #95a5a6 !important;
    color: white;
}

/* ======== Legend Styles ======== */
.legend-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.legend-item.legend-price {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.legend-bubble {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}


.legend-gradient {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg,#40D600 0%, #FF6F00 100%);
}

.legend-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0 2px;

}

.legend-bubble.happy-hour {
    background: #ff69b4;
    animation: pulse-pink 2s infinite;
}

.legend-bubble.unavailable {
    background: #95a5a6;
}

.legend-hourglass {
    font-size: 1rem;
}

.bubble-wrapper {
    position: relative;
    display: inline-block;
}

.old-price {
    position: absolute;
    top: -6px;
    left: -6px;
    font-size: 0.75rem;
}

/* Mobile legend styles */
@media (max-width: 767px) {
    .legend-container {
        gap: 6px;
    }

    .legend-item {
        font-size: 0.85rem;
    }

    .legend-bubble {
        width: 18px;
        height: 18px;
    }

    .legend-gradient {
        height: 18px;
    }

    .legend-price-labels {
        font-size: 0.75rem;
    }
}

.pub-list-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
}

.pub-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.pub-info .distance { font-size: 0.8rem; color: var(--text-medium); }
.pub-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
}
.value-score {
    font-size: 0.75rem;
    color: var(--success);
}

.value-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.toggle-btn:hover,
.toggle-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pub-list {
    border-radius: 4px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    max-height: 300px;
    overflow-y: auto;
}

.pub-list-item:hover {
    background: var(--medium-gray);
}

.pub-list-item:last-child {
    border-bottom: none;
}

/* Mobile optimization for the list */
@media (max-width: 767px) {
    .pub-list {
        max-height: 200px;
    }
    
    .pub-info h4 {
        font-size: 0.9rem;
    }
    
    .pub-price {
        font-size: 1rem;
    }
}

.price-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.happy-hour-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-bottom: 0;
    white-space: nowrap;
}

.happy-hour-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

@media (max-width: 767px) {
    .price-input-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

    /* Improved visual hierarchy */
    .search-item.existing-pub-indicator,
    .address-result-item.existing-pub-indicator {
        border-left: 4px solid var(--success);
        background: linear-gradient(90deg, #e8f5e8 0%, #f9f9f9 10%);
        color: var(--primary);
    }

    .search-item.new-location-indicator,
    .address-result-item.new-location-indicator {
        border-left: 4px solid #ffc107;
        background: linear-gradient(90deg, #fff3cd 0%, #f9f9f9 10%);
        color: var(--primary);
    }

    /* Ensure readable text on light suggestion backgrounds */
    .search-item.existing-pub-indicator .place-name,
    .address-result-item.existing-pub-indicator .place-name,
    .search-item.new-location-indicator .place-name,
    .address-result-item.new-location-indicator .place-name {
        color: var(--primary);
    }

    .search-item.existing-pub-indicator .place-address,
    .address-result-item.existing-pub-indicator .place-address,
    .search-item.new-location-indicator .place-address,
    .address-result-item.new-location-indicator .place-address {
        color: var(--primary-light);
    }

    /* Better mobile performance */
    @media (max-width: 767px) {
        .search-container {
            width: calc(100vw - 40px);
            max-width: 300px;
        }
        
        .search-results {
            max-height: 200px; /* Reduced for mobile */
        }
    }

    /* Enhanced search result visual feedback */
    .search-item:hover {
        transform: translateX(2px);
        transition: transform 0.2s ease;
    }

    .search-item.existing-pub-indicator:hover {
        background: linear-gradient(90deg, #d4edda 0%, #f1f3f4 10%);
    }

    .search-item.new-location-indicator:hover {
        background: linear-gradient(90deg, #fff3cd 0%, #f1f3f4 10%);
    }
