:root {
    --primary: #FF7E67;
    --primary-light: #FF9B8A;
    --secondary: #4FB3AA;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --accent: #FFD93D;
    --safe-area-inset-top: env(safe-area-inset-top);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Landing */
.main-header {
    padding: calc(2.5rem + var(--safe-area-inset-top)) 1.5rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 0 0 2.5rem 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
    position: relative;
    z-index: 200;
}

.main-title {
    font-size: 2.375rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Search UI */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 0 1.5rem;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

#location-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: none;
    border-radius: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

.clear-search {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 0.75rem;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.autocomplete-item {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.autocomplete-item:hover {
    background: #f1f5f9;
}

.autocomplete-item.active {
    background: #e2e8f0;
}

.autocomplete-item .icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.autocomplete-item .name {
    font-weight: 700;
    color: var(--text-main);
}

.autocomplete-item .type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.entry-actions {
    margin-bottom: 1.5rem;
}

.btn-nearby {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    cursor: pointer;
}

.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

@media (max-width: 600px) {
    .btn-text-desktop {
        display: none;
    }
    .btn-text-mobile {
        display: inline;
    }
}

.btn-nearby:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.quick-links {
    text-align: left;
    max-width: 500px;
    margin: 0;
}

.quick-links-label {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.quick-links-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.quick-links-scroll::-webkit-scrollbar {
    display: none;
}

.quick-link-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.quick-link-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Results View */
.search-status-bar {
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

#current-search-location {
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#current-search-location::before {
    content: '📍';
}

.map-view {
    padding: 0 1.5rem 1.5rem;
    height: 300px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.filter-section {
    padding: 1rem 1.25rem 0.5rem;
    background: white;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.filters-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filter-chip:active {
    transform: translateY(0);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.filter-chip.active::before {
    content: '✓';
    font-weight: 800;
}

.results-section {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.section-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.toggle-others-btn {
    width: 100%;
    background: white;
    border: 1px dashed var(--text-muted);
    padding: 1rem;
    border-radius: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.toggle-others-btn .arrow {
    transition: transform 0.3s;
}

.toggle-others-btn.active .arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    transition: all 0.3s ease-out;
}

.collapsible-content.hidden {
    display: none;
}

.fallback-hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 1rem;
    border-radius: 1rem;
    margin: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.suggestion-chip {
    background: white;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

/* Marker Highlight */
@keyframes marker-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.marker-highlight div {
    animation: marker-pulse 0.5s ease-in-out 3;
    border: 3px solid #000 !important;
    z-index: 9999 !important;
}

/* Custom Pin Markers */
.custom-pin {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pin-teardrop {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pin-teardrop::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pin-teardrop.hollow {
    background: white !important;
}

.pin-teardrop.hollow::after {
    background: transparent;
    border: 1px solid currentColor;
}

.map-popup-card {
    min-width: 180px;
}

/* Compact Popup for Mobile */
.map-popup-compact {
    min-width: 160px;
    max-width: 220px;
}

.map-popup-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.map-popup-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
}

.map-popup-rating {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFB800;
    white-space: nowrap;
}

.map-popup-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.map-popup-level-tag {
    font-size: 10px;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.map-popup-time-mini {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.map-popup-action {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.map-popup-action:active {
    transform: scale(0.95);
}

/* Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.4;
}

.leaflet-popup-tip {
    box-shadow: none;
}


/* Results */
.results-container {
    padding-bottom: 5rem;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.time-tag {
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.time-tag:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: translateY(-1px);
}

.time-tag:active {
    transform: translateY(0);
}


.restaurant-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease-out forwards;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.restaurant-card:active {
    transform: scale(0.98);
}

.restaurant-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.decision-summary {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.decision-summary.high, .decision-summary.medium {
    background: #f0fdf4;
    color: #15803d;
}

.decision-summary.attention {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.decision-summary.info {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(79, 179, 170, 0.05);
    color: var(--secondary);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.detail-content .tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
}

.btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

/* Detail View */
.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: block;
}

.detail-header {
    padding: calc(1rem + var(--safe-area-inset-top)) 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.25rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: none;
}

.detail-content {
    padding: 1.5rem;
}

.ai-summary {
    background: #FFF9F0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid #FFE8CC;
}

.ai-summary-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #D97706;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-summary-text {
    font-size: 0.9rem;
    color: #92400E;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Floating Share Button */
/* Floating Share Button - Visual De-prioritization */
.fab {
    position: fixed;
    bottom: 2.5rem;
    right: 1.25rem;
    width: 2.75rem; /* ~44px */
    height: 2.75rem;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E8F0;
    font-size: 1.1rem;
    z-index: 1000;
    transition: var(--transition);
    cursor: pointer;
}

.fab:hover {
    transform: translateY(-2px);
    background: #F8FAFC;
    color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.fab:active {
    transform: scale(0.95);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.warning-item {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 700;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--text-main);
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0;
}

.distance-badge {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
}
.map-view {
    position: relative;
    height: 40vh;
    min-height: 300px;
    margin: 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.map-overlay-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    z-index: 1000;
    pointer-events: none;
}

.map-toggle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: auto;
    transition: var(--transition);
}

.map-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.2);
}

.map-toggle input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Homepage Redesign */
.trending-section {
    padding: 1rem 1.5rem 4rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    text-align: left;
}

.trending-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.125rem 1.25rem;
    border-radius: 1.25rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    line-height: 1.5;
}

.trending-item::after {
    content: '→';
    color: var(--primary);
    font-weight: 800;
    opacity: 0.5;
}

.trending-item:hover {
    border-color: var(--primary-light);
    background: rgba(255, 126, 103, 0.02);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 126, 103, 0.08);
}

.trending-item:hover::after {
    opacity: 1;
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
}

/* Desktop Optimization - Focus on centering and readability while keeping vertical flow */
@media (min-width: 768px) {
    /* Full-width backgrounds, centered content */
    .main-header {
        width: 100%;
        max-width: none;
        border-radius: 0 0 3rem 3rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .main-header > * {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .trending-section {
        max-width: 900px;
        margin: 0 auto;
        padding: 4rem 2rem;
    }
    
    .trending-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Results Page - Revert to Vertical Stack but center content */
    #search-results-view {
        display: block; /* Remove grid */
        height: auto;
        overflow: visible;
    }

    #search-status-bar .status-content {
        max-width: 900px;
        margin: 0 auto;
    }

    #map-container { 
        max-width: 900px;
        margin: 2rem auto !important;
        height: 450px !important;
        border-radius: 2rem !important;
        box-shadow: var(--shadow-lg);
    }
    
    .results-content-wrapper {
        display: block;
        max-width: 900px;
        margin: 0 auto;
        background: transparent;
    }
    
    .filter-section {
        position: static; /* No longer sticky on desktop for vertical flow */
        background: transparent;
        box-shadow: none;
        padding: 1.5rem 0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 2rem;
    }
    
    .results-container {
        padding: 0;
    }
    
    .restaurant-card {
        margin-bottom: 2rem;
        transition: transform 0.2s ease;
    }

    .restaurant-card:hover {
        transform: scale(1.01);
    }

    /* Detail View - Center focused */
    #detail-view {
        background: #f8fafc;
    }
    
    .detail-content {
        max-width: 800px;
        margin: 2rem auto 5rem;
        background: white;
        border-radius: 2.5rem;
        box-shadow: var(--shadow-lg);
        padding: 4rem;
    }
    
    .detail-header {
        max-width: 800px;
        margin: 1.5rem auto 0;
        background: white;
        border-radius: 1.5rem;
        padding: 1rem 1.5rem;
    }
}


.search-center-marker-inner {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
}

/* Map Popup Styles */
.map-popup-card {
    min-width: 200px;
    padding: 4px 0;
}

.map-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.map-popup-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.3;
    flex: 1; /* Take up remaining space */
}

.map-popup-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(79, 179, 170, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap; /* Don't wrap the time info */
    flex-shrink: 0; /* Don't let it be squished */
}

.map-popup-rating {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.map-popup-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}
