:root {
    /* Primary Colors (Orange) */
    --primary-color: #f57c00;
    --primary-hover: #e65100;
    --primary-light: rgba(245, 124, 0, 0.08);
    --primary-gradient: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);

    /* Accent Colors - Using orange as main accent */
    --accent-blue: #f57c00;
    --accent-green: #34a853;
    --accent-yellow: #fbbc05;
    --accent-red: #ea4335;
    --accent-purple: #8e44ad;

    /* Text Colors */
    --text-color: #202124;
    --text-secondary: #5f6368;
    --text-muted: #70757a;

    /* Background Colors */
    --bg-color: #ffffff;
    --bg-subtle: #f8f9fa;
    --bg-hover: #f1f3f4;

    /* Google Maps Style - Clean whites */
    --gm-card-bg: #ffffff;
    --gm-card-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --gm-card-shadow-hover: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    --gm-btn-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);

    /* Shadows - Google Maps style */
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.3);
    --shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    --shadow-xl: 0 5px 10px rgba(0, 0, 0, 0.2), 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 12px rgba(245, 124, 0, 0.4);

    /* Border Radius - Google Maps uses 8px consistently */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card Utility - Google Maps style */
.gm-card {
    background: var(--gm-card-bg);
    box-shadow: var(--gm-card-shadow);
    border-radius: var(--radius);
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Control Dock - Google Maps style vertical stack */
.map-controls-dock {
    position: absolute;
    bottom: 110px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.map-controls-dock>* {
    pointer-events: auto;
}

/* Unified Dock Button Styles - Google Maps style */
.dock-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--gm-btn-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition), color var(--transition);
    color: var(--text-secondary);
    position: relative;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
}

.dock-btn:hover {
    background: var(--bg-hover);
    color: var(--text-color);
}

.dock-btn:active {
    background: #e8eaed;
}

.dock-btn.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dock-btn.active:hover {
    background: rgba(245, 124, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Search Container - Google Maps style top-left card */
#search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    width: 408px;
    max-width: calc(100vw - 80px);
}

/* Custom Search Bar - Google Maps style */
.custom-search {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--gm-card-shadow);
    transition: box-shadow var(--transition-smooth);
    padding: 0 12px;
    height: 48px;
}

.search-input-wrapper:hover {
    box-shadow: var(--gm-card-shadow-hover);
}

.search-input-wrapper:focus-within {
    box-shadow: var(--gm-card-shadow-hover);
}

.search-icon {
    color: var(--primary-color);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    width: 100%;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Mapbox Controls Customization - Google Maps style */
.ylsoo-ctrl-bottom-right {
    bottom: 120px;
    right: 10px;
}

.ylsoo-ctrl-group {
    background: #fff !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--gm-btn-shadow) !important;
    overflow: hidden;
    border: none !important;
}

.ylsoo-ctrl-group button {
    width: 40px !important;
    height: 40px !important;
    border-bottom: 1px solid #e8eaed !important;
    transition: background-color var(--transition);
    background: #fff !important;
}

.ylsoo-ctrl-group button:last-child {
    border-bottom: none !important;
}

.ylsoo-ctrl-group button:hover {
    background-color: var(--bg-hover) !important;
}

.ylsoo-ctrl-icon {
    color: var(--text-secondary);
}

/* Pegman Icon - Google Maps style */
.pegman-icon {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Pegman_icon.svg/1200px-Pegman_icon.svg.png');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: grab;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-color);
}

/* Search Suggestions Dropdown - Google Maps style */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    animation: fadeIn 0.15s ease-out;
}

.search-suggestions.active {
    display: block;
}

.suggestions-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color var(--transition);
    border-left: 3px solid transparent;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--bg-hover);
}

.suggestion-item.active {
    border-left-color: var(--primary-color);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition);
}

.suggestion-item:hover .suggestion-icon,
.suggestion-item.active .suggestion-icon {
    background: var(--primary-color);
    color: white;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover .suggestion-title,
.suggestion-item.active .suggestion-title {
    color: var(--primary-color);
}

.suggestion-address {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Search Footer */
.search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-subtle);
    border-top: 1px solid #e8eaed;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.search-footer svg {
    color: var(--accent-green);
}

/* No results state */
.no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.no-results-text {
    font-size: 14px;
    font-weight: 500;
}

/* Loading state */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 12px;
    color: var(--text-secondary);
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-hover);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Search Result Marker */
.search-result-marker {
    cursor: pointer;
    animation: markerDrop 0.3s ease-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.search-result-marker:hover {
    transform: scale(1.1);
}

@keyframes markerDrop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* My Location Button - now styled by .dock-btn */

/* Layer Control - Google Maps style bottom-left */
.layer-control {
    position: absolute;
    bottom: 24px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
}

.layer-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--gm-btn-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
    background-image: url('/images/streets-preview.png');
    background-size: cover;
    background-position: center;
}

.layer-icon:hover {
    border-color: var(--primary-color);
    box-shadow: var(--gm-card-shadow-hover);
}

.layer-icon svg {
    display: none;
}

/* Layer Menu - Google Maps style */
.layer-menu {
    background: #fff;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--gm-card-shadow);
    display: none;
    flex-direction: row;
    gap: 8px;
}

.layer-control:hover .layer-menu {
    display: flex;
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.style-option:hover {
    background: var(--bg-hover);
}

.style-option input {
    display: none;
}

.style-preview {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition);
}

.style-option input:checked+.style-preview {
    border-color: var(--primary-color);
}

.style-option span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.style-option input:checked~span {
    color: var(--primary-color);
}

/* Previews */
.style-preview.streets {
    background-image: url('/images/streets-preview.png');
}

.style-preview.satellite {
    background-image: url('/images/satellite-preview.png');
}

.style-preview.outdoors {
    background-image: url('/images/outdoors-preview.png');
}

/* Mapbox Controls - Hidden (using custom controls) */
.ylsoo-ctrl-bottom-right {
    display: none !important;
}

.ylsoo-ctrl-group {
    border-radius: var(--radius);
    box-shadow: var(--gm-btn-shadow);
}

/* Pegman Icon - now styled by .dock-btn */
.pegman-icon {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Pegman_icon.svg/1200px-Pegman_icon.svg.png');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: grab;
}

.pegman-icon:active {
    cursor: grabbing;
}

.pegman-dragging #map {
    cursor: crosshair !important;
}

.street-view-mode #map {
    cursor: crosshair !important;
}

/* Floating Pegman (Custom Drag) */
.floating-pegman {
    position: fixed;
    pointer-events: none;
    /* Important: lets clicks pass through to map */
    z-index: 9999;
    transform: translate(-50%, -100%);
    /* Center horizontally, bottom aligned */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-pegman .pegman-image {
    width: 40px;
    height: 40px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Pegman_icon.svg/1200px-Pegman_icon.svg.png');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.floating-pegman .pegman-hitbox {
    width: 20px;
    height: 20px;
    background: rgba(255, 165, 0, 0.5);
    /* Orange semi-transparent */
    border: 2px solid white;
    border-radius: 50%;
    margin-top: -10px;
    /* Overlap slightly */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Map Footer - Google Maps minimal attribution style */
.map-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 4px 10px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.map-footer a,
.map-footer span,
.map-footer div {
    pointer-events: auto;
}

.footer-left span {
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    gap: 12px;
}

.footer-right a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

@media print {

    .search-container,
    .layer-control,
    .pegman-ctrl,
    .ylsoo-ctrl-group,
    .map-footer,
    .floating-pegman,
    .ylsoo-ctrl-bottom-right,
    /* Hide Mapbox attribution/logo */
    .ylsoo-ctrl-bottom-left,
    .btn-3d-ctrl {
        display: none !important;
    }

    #map {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
    }

    body,
    html {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* 3D Button - now styled by .dock-btn */
.btn-3d-ctrl {
    font-weight: bold;
    font-size: 12px;
}

/* Adjust Mapbox attribution */
.ylsoo-ctrl-bottom-right {
    bottom: 0;
    z-index: 0;
    display: none !important;
    /* Hide default Mapbox attribution */
}

.ylsoo-ctrl-bottom-left {
    bottom: 0;
    z-index: 0;
    display: none !important;
    /* Hide default Mapbox logo */
}

.ylsoo-ctrl-logo,
.ylsoo-ctrl-attrib {
    display: none !important;
}

/* Share Button - now styled by .dock-btn */

/* Traffic Button - now styled by .dock-btn */

/* Directions Button - Google Maps style, next to layer control */
.btn-directions-ctrl {
    position: absolute;
    top: auto;
    bottom: 24px;
    left: 76px;
    right: auto;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--gm-btn-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: var(--primary-color);
    transition: background-color var(--transition), box-shadow var(--transition);
    z-index: 10;
}

.btn-directions-ctrl:hover {
    background: var(--bg-hover);
    box-shadow: var(--gm-card-shadow-hover);
}

.btn-directions-ctrl.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Routing Panel - Google Maps style side panel */
.routing-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 408px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e8eaed;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
}

.routing-panel.active {
    transform: translateX(0);
}

.routing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.routing-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.btn-voice {
    background: var(--bg-subtle);
    border: 2px solid transparent;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.btn-voice:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-voice.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-voice.speaking {
    animation: speaking 0.6s ease-in-out infinite;
}

@keyframes speaking {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.close-routing-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #5f6368;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-routing-btn:hover {
    background: #f1f3f4;
}

.routing-inputs {
    padding: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.dest-icon {
    background: #EA4335;
}

.route-input {
    width: 100%;
    padding: 12px 14px 12px 48px;
    border: 1px solid #e8eaed;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
    color: var(--text-color);
}

.route-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(245, 124, 0, 0.15);
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.autocomplete-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 50px 12px 50px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.15s;
}

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

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item .place-name {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 2px;
}

.suggestion-item .place-address {
    font-size: 12px;
    color: #5f6368;
}

.travel-modes {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.travel-mode {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #5f6368;
}

.travel-mode:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.travel-mode.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.travel-mode svg {
    opacity: 0.8;
    transition: opacity var(--transition);
}

.travel-mode.active svg {
    opacity: 1;
}

.travel-mode span {
    font-size: 12px;
    font-weight: 600;
}

.route-summary {
    padding: 20px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    margin: 16px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.route-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-4);
    position: relative;
}

.summary-time {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.summary-distance {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

.summary-eta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.9;
    position: relative;
}

.route-instructions {
    padding: 0 var(--space-5) var(--space-5);
}

.route-instructions h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-color);
}

.instructions-list {
    max-height: 400px;
    overflow-y: auto;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.instruction-step:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #4285F4;
}

.instruction-icon {
    width: 32px;
    height: 32px;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: #5f6368;
    font-size: 14px;
    font-weight: 600;
}

.instruction-text {
    flex: 1;
}

.instruction-text .main {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.instruction-text .distance {
    font-size: 12px;
    color: #5f6368;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px;
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.3s 0.1s forwards;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-color);
}

/* Premium Popup Styles */
.premium-popup-container {
    font-family: 'Inter', sans-serif;
    min-width: 200px;
}

.premium-popup-coords {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-family: monospace;
    background: var(--bg-subtle);
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
}

.premium-popup-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
    margin-bottom: 4px;
}

.premium-popup-btn svg {
    width: 20px;
    height: 20px;
}

.premium-popup-btn:hover {
    background: var(--bg-subtle);
    border-color: #d0d0d0;
    color: var(--primary-color);
}

.premium-popup-btn.copied {
    background: #e6f4ea;
    border-color: #ceead6;
    color: #1e8e3e;
}

.popup-home-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

@media print {

    /* ... existing print styles ... */
    .btn-share-ctrl,
    .modal-overlay {
        display: none !important;
    }
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    min-width: 200px;
    z-index: 2000;
    animation: fadeIn 0.1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.1s;
}

.context-menu-item:hover {
    background: #f1f3f4;
}

.context-icon {
    margin-right: 12px;
    color: #5f6368;
    display: flex;
    align-items: center;
}

.context-text {
    display: flex;
    flex-direction: column;
}

.coords-display {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.submit-btn:hover {
    background: #1557b0;
}

/* Map Scale Control */
.ylsoo-ctrl-scale {
    background: rgba(255, 255, 255, 0.75) !important;
    border: none !important;
    border-radius: 4px;
    padding: 0 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #202124;
    text-shadow: 0 0 2px white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* POI Sidebar - Google Maps style */
.poi-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 408px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e8eaed;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.poi-sidebar.active {
    transform: translateX(0);
}

.poi-header {
    height: 200px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.poi-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.poi-image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.poi-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poi-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.poi-image-placeholder svg {
    fill: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.poi-sidebar-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.poi-content {
    padding: var(--space-6);
    animation: slideUp 0.3s ease-out;
}

.poi-tab-content {
    display: none;
    padding: var(--space-6);
    animation: slideUp 0.3s ease-out;
}

.poi-tab-content.active {
    display: block;
}

.poi-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.poi-category {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(245, 124, 0, 0.2);
}

.poi-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.poi-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid var(--bg-hover);
    background: white;
    color: var(--text-secondary);
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-btn.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

/* Tabs */
.poi-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.poi-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.poi-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
}

.poi-tab-content {
    display: none;
    padding: 16px;
}

.poi-tab-content.active {
    display: block;
}

/* POI Sections */
.poi-section {
    margin-bottom: 20px;
}

.poi-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poi-section p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

/* POI Meta (category + votes) */
.poi-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.poi-rating {
    display: flex;
    gap: 8px;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* Verified Badge */
.verified-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.verified-badge svg {
    fill: #2e7d32;
}

/* POI Tags */
.poi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poi-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-hover);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Website Link */
.website-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.website-link:hover {
    text-decoration: underline;
}

/* POI Title in sidebar */
.poi-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Reviews */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Small Buttons */
.btn-sm {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e8eaed;
    color: var(--text-color);
}

.add-review-box {
    background: var(--bg-hover);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.rating-input {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    margin-bottom: 10px;
}

.rating-input span:hover,
.rating-input span.active {
    color: #ffd700;
}

#new-review-comment {
    width: 100%;
    margin-bottom: 10px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.review-user-info {
    flex: 1;
}

.review-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-stars {
    color: #ffd700;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-comment {
    font-size: 14px;
    color: var(--text-primary);
}

.no-reviews {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

/* New Place Modal */
#add-poi-modal {
    width: 400px;
    text-align: left;
}

/* POI Form Modal */
.poi-form-modal {
    width: 400px;
    text-align: left;
}

.poi-form-modal h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #5f6368;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f57c00;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: #f57c00;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

/* POI Marker */
.poi-marker {
    width: 28px;
    height: 28px;
    background-image: url('https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/generic_business-71.png');
    background-size: cover;
    cursor: pointer;
    transition: all var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.poi-marker:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hide Mapbox Geocoder Attribution */
.ylsoo-ctrl-geocoder--powered-by {
    display: none !important;
}

@media (max-width: 768px) {

    /* Search Container Mobile */
    #search-container {
        width: calc(100vw - 32px);
        top: 12px;
    }

    .ylsoo-ctrl-geocoder--input {
        height: 50px;
        font-size: 15px;
    }

    /* Control Dock Mobile */
    .map-controls-dock {
        bottom: 100px;
        right: 12px;
        gap: 10px;
    }

    .dock-btn {
        width: 44px;
        height: 44px;
    }

    /* Routing Panel Mobile */
    .routing-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .routing-header {
        padding: var(--space-4);
    }

    .routing-header h2 {
        font-size: 18px;
    }

    .route-summary {
        margin: var(--space-4);
        padding: var(--space-5);
    }

    .summary-time {
        font-size: 28px;
    }

    /* POI Sidebar Mobile */
    .poi-sidebar {
        width: 100vw;
    }

    .poi-header {
        height: 180px;
    }

    .poi-content h2 {
        font-size: 22px;
    }

    /* Layer Control Mobile */
    .layer-control {
        bottom: 36px;
        left: 8px;
    }

    .layer-icon {
        width: 56px;
        height: 56px;
    }

    /* Directions Button Mobile */
    .btn-directions-ctrl {
        bottom: 36px;
        left: 74px;
        width: 44px;
        height: 44px;
    }

    /* Footer Mobile */
    .map-footer {
        font-size: 10px;
        height: 24px;
        padding: 0 var(--space-3);
    }

    .footer-right {
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {

    /* Smaller touch targets for very small screens */
    .dock-btn {
        width: 42px;
        height: 42px;
    }

    .map-controls-dock {
        gap: 8px;
    }

    .routing-inputs {
        padding: var(--space-4);
    }

    .travel-modes {
        padding: 0 var(--space-4) var(--space-4);
        gap: 8px;
    }

    .travel-mode {
        padding: 10px 6px;
    }

    .travel-mode span {
        font-size: 11px;
    }

    /* Hide some footer links on very small screens */
    .footer-right a:nth-child(2),
    .footer-right a:nth-child(3) {
        display: none;
    }
}

/* ========================================
   COLLECTIONS / TRIP PLANNER STYLES
   ======================================== */

/* Save button in POI actions */
#poi-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

#poi-save-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

/* Collections Modal Overlay */
.collections-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.collections-modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.2s ease-out;
}

.collections-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.collections-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.close-modal-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 24px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
}

.close-modal-btn:hover {
    background: var(--bg-hover);
}

.collections-modal-body {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* POI Preview in modal */
.poi-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.poi-preview-icon {
    font-size: 24px;
}

.poi-preview-name {
    font-weight: 500;
    color: var(--text-color);
}

/* Collections List in picker */
.collections-list {
    margin-bottom: 16px;
}

.collection-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
    border: 1px solid transparent;
}

.collection-picker-item:hover {
    background: var(--bg-hover);
}

.collection-picker-item.saved {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.collection-icon {
    font-size: 20px;
}

.collection-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-color);
}

.collection-check {
    font-size: 18px;
    color: var(--text-muted);
}

.collection-picker-item.saved .collection-check {
    color: #667eea;
}

.no-collections {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 14px;
}

/* Create Collection Section */
.create-collection-section {
    border-top: 1px solid #e8eaed;
    padding-top: 16px;
}

.btn-create-collection {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px dashed #d0d0d0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-create-collection:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.create-collection-form {
    padding-top: 12px;
}

.create-collection-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 12px;
}

.create-collection-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.icon-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.icon-option {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.icon-option:hover {
    background: var(--bg-hover);
}

.icon-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.create-collection-form .form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.create-collection-form .btn-cancel,
.create-collection-form .btn-save {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.create-collection-form .btn-cancel {
    background: transparent;
    border: 1px solid #d0d0d0;
    color: var(--text-secondary);
}

.create-collection-form .btn-cancel:hover {
    background: var(--bg-hover);
}

.create-collection-form .btn-save {
    background: var(--primary-color);
    border: none;
    color: white;
}

.create-collection-form .btn-save:hover {
    background: var(--primary-hover);
}

/* Collections Panel */
.collections-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 10000;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.collections-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
    min-height: 60px;
}

.collections-panel-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.collections-panel-header .back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background-color var(--transition);
}

.collections-panel-header .back-btn:hover {
    background: var(--bg-hover);
}

.close-panel-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 24px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel-btn:hover {
    background: var(--bg-hover);
}

.collections-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

.empty-state .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.collection-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.collection-card:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}

.collection-card-icon {
    font-size: 28px;
}

.collection-card-info {
    flex: 1;
}

.collection-card-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px 0;
}

.collection-card-info .item-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.delete-collection-btn {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}

.collection-card:hover .delete-collection-btn {
    opacity: 1;
}

.delete-collection-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Collection Items List */
.collection-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-poi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.collection-poi-item:hover {
    background: var(--bg-hover);
}

.collection-poi-item .poi-emoji {
    font-size: 24px;
}

.collection-poi-item .poi-info {
    flex: 1;
}

.collection-poi-item .poi-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 2px 0;
}

.collection-poi-item .poi-category {
    font-size: 12px;
    color: var(--text-secondary);
}

.remove-poi-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}

.collection-poi-item:hover .remove-poi-btn {
    opacity: 1;
}

.remove-poi-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Collections Toast */
.collections-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* ========================================
   WEATHER WIDGET STYLES
   ======================================== */

/* Weather Widget */
.weather-widget {
    position: absolute;
    top: 68px;
    left: 10px;
    z-index: 99;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--gm-card-shadow);
    padding: 8px 12px;
    cursor: pointer;
    transition: all var(--transition);
    max-width: 180px;
}

.weather-widget:hover {
    box-shadow: var(--gm-card-shadow-hover);
}

.weather-widget.loading .weather-content {
    opacity: 0.5;
}

.weather-widget.error {
    opacity: 0.7;
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.weather-desc {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Weather Details Popup */
.weather-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease-out;
}

.weather-details-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 320px;
    max-width: 90vw;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: scaleIn 0.2s ease-out;
}

.close-weather-details {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.close-weather-details:hover {
    background: var(--bg-hover);
}

.weather-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.weather-details-header img {
    width: 64px;
    height: 64px;
}

.weather-details-temp {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
}

.weather-details-desc {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-top: 4px;
}

.weather-details-city {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-detail-item .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.weather-detail-item .value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.weather-mock-notice {
    margin-top: 16px;
    padding: 10px;
    background: #fff3cd;
    border-radius: var(--radius);
    font-size: 12px;
    color: #856404;
    text-align: center;
}

/* POI Weather Section */
.poi-weather-section {
    padding: 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.poi-weather {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poi-weather img {
    width: 32px;
    height: 32px;
}

.poi-weather-temp {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.poi-weather-desc {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .weather-widget {
        top: auto;
        bottom: 120px;
        left: 10px;
        padding: 6px 10px;
    }

    .weather-icon {
        width: 28px;
        height: 28px;
    }

    .weather-temp {
        font-size: 14px;
    }

    .weather-desc {
        display: none;
    }

    .collections-panel {
        width: 100vw;
    }

    .collections-modal {
        width: 95vw;
        max-height: 90vh;
    }
}

/* ========================================
   LIVE LOCATION SHARING STYLES
   ======================================== */

/* Share Modal */
.live-share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease-out;
}

.live-share-modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 380px;
    max-width: 90vw;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.2s ease-out;
}

.live-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.live-share-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.live-share-header .close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
}

.live-share-header .close-btn:hover {
    background: var(--bg-hover);
}

.live-share-body {
    padding: 20px;
}

.share-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.share-status.active {
    background: #e8f5e9;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s infinite;
}

.share-link-section {
    margin-bottom: 20px;
}

.share-link-section label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.share-link-input {
    display: flex;
    gap: 8px;
}

.share-link-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-subtle);
}

.share-link-input button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

.share-link-input button:hover {
    background: var(--primary-hover);
}

.share-actions {
    margin-top: 16px;
}

.btn-stop-sharing {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition);
}

.btn-stop-sharing:hover {
    background: #dc2626;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.duration-options button {
    padding: 14px;
    background: var(--bg-subtle);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
}

.duration-options button:hover {
    background: var(--bg-hover);
}

.duration-options button.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Custom Duration Section */
.custom-duration-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.custom-duration-divider::before,
.custom-duration-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.custom-duration-divider span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.custom-duration-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-duration-inputs {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.duration-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.duration-input-group input {
    width: 70px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
}

.duration-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.duration-input-group input::-webkit-inner-spin-button,
.duration-input-group input::-webkit-outer-spin-button {
    opacity: 1;
}

.duration-input-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-duration-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background-color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.custom-duration-btn:hover {
    background: var(--primary-hover);
}

/* Live Location Marker */
.live-location-marker {
    position: relative;
    width: 24px;
    height: 24px;
}

.live-marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.live-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Live Viewing Banner */
.live-viewing-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4285f4;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.live-viewing-banner .live-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-viewing-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

.live-viewing-banner button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Live Toast */
.live-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* ========================================
   POI PHOTOS STYLES
   ======================================== */

.poi-photos-section {
    margin-top: 16px;
}

.poi-photos-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.poi-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.poi-photo-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
}

.poi-photo-thumb:hover {
    transform: scale(1.05);
}

.poi-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poi-add-photo-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 2px dashed #d0d0d0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.poi-add-photo-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Photo Viewer Modal */
.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.photo-viewer-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.photo-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.photo-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-viewer-nav.prev {
    left: 20px;
}

.photo-viewer-nav.next {
    right: 20px;
}

.photo-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
}

/* ========================================
   FUEL & CHARGING STATIONS STYLES
   ======================================== */

/* Fuel Station Markers */
.fuel-station-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
}

.fuel-station-marker.fuel {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.fuel-station-marker.charging {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
}

.fuel-station-marker svg {
    width: 18px;
    height: 18px;
}

.fuel-station-marker:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

/* Station Popup */
.fuel-station-popup {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 320px;
    max-width: 90vw;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.station-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.station-popup-header .station-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.station-popup-header .station-icon.fuel {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.station-popup-header .station-icon.charging {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.station-popup-header .station-info {
    flex: 1;
}

.station-popup-header .station-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.station-popup-header .station-distance {
    font-size: 13px;
    color: var(--text-secondary);
}

.station-popup-header .close-popup {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
}

.station-popup-header .close-popup:hover {
    background: var(--bg-hover);
}

.station-popup-body {
    padding: 16px;
}

.station-popup-body .station-detail {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.station-popup-body .station-detail strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.station-popup-actions {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
}

.btn-navigate-station {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.btn-navigate-station:hover {
    background: var(--primary-hover);
}

/* Fuel Filter Modal */
.fuel-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease-out;
}

.fuel-filter-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 300px;
    max-width: 90vw;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.2s ease-out;
}

.fuel-filter-content h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    text-align: center;
    color: var(--text-color);
}

.fuel-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fuel-filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-subtle);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.fuel-filter-btn:hover {
    background: var(--bg-hover);
}

.fuel-filter-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.fuel-filter-btn .filter-icon {
    font-size: 24px;
}

.fuel-filter-btn span:last-child {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.fuel-filter-close {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.fuel-filter-close:hover {
    background: var(--bg-hover);
}

/* Fuel Toast */
.fuel-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Fuel Button Loading State */
.btn-fuel-ctrl.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========================================
   TURN-BY-TURN NAVIGATION STYLES
   ======================================== */

/* Start Navigation Button */
.btn-start-navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.btn-start-navigation:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-start-navigation svg {
    width: 20px;
    height: 20px;
}

/* AR View Button */
.btn-ar-view {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, #111, #333);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.btn-ar-view:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: white;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease-out;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.nav-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    font-size: 36px;
}

.nav-content {
    flex: 1;
}

.nav-distance {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-instruction {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 4px;
}

.nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-subtle);
    border-top: 1px solid #e0e0e0;
}

.nav-eta-section {
    display: flex;
    flex-direction: column;
}

.nav-eta-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.nav-eta-time {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.nav-end-btn {
    padding: 10px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.nav-end-btn:hover {
    background: #dc2626;
}

/* Navigation Toast */
.nav-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Mobile adjustments for navigation */
@media (max-width: 480px) {
    .nav-header {
        padding: 16px;
    }

    .nav-icon-container {
        width: 52px;
        height: 52px;
    }

    .nav-icon {
        font-size: 28px;
    }

    .nav-distance {
        font-size: 26px;
    }

    .nav-instruction {
        font-size: 14px;
    }
}