:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-danger: #ef4444;
    --accent-purple: #8b5cf6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 460px;
    min-width: 420px;
    height: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.brand .logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.brand-text {
    flex: 1;
}

.brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-text h1 span {
    color: var(--accent-gold);
}

.brand-text p {
    font-size: 11px;
    color: var(--text-muted);
}

.lang-selector-container {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 4px 8px;
    border-radius: 6px;
}

.lang-selector-container i {
    color: var(--primary);
    font-size: 12px;
}

.lang-selector-container select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 2px;
    cursor: pointer;
}

.lang-selector-container select:focus {
    box-shadow: none;
}

/* Disclaimer banner */
.disclaimer-banner {
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    padding: 8px 20px;
    font-size: 11px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Styles */
.planner-form {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin: 14px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title:first-child {
    margin-top: 0;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-mobile-map-toggle {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-mobile-map-toggle:hover {
    background: #2563eb;
}

.btn-add-waypoint {
    background: #1e293b;
    border: 1px solid #334155;
    color: var(--accent-emerald);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-waypoint:hover {
    background: var(--accent-emerald);
    color: #0f172a;
}

.waypoints-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.waypoint-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.waypoint-item .input-with-icon {
    flex: 1;
}

.btn-remove-waypoint {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-remove-waypoint:hover {
    background: var(--accent-danger);
    color: #fff;
}

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

.form-row {
    display: flex;
    gap: 10px;
}

.col-6 {
    flex: 1;
}

label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 5px;
}

label .label-icon {
    color: var(--primary);
    font-size: 12px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
}

.input-with-icon .start-icon { color: var(--accent-emerald); }
.input-with-icon .end-icon { color: var(--accent-danger); }
.input-with-icon .waypoint-icon { color: var(--accent-gold); }

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 8px 10px 8px 34px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13px;
    transition: all 0.2s ease;
}

select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Price Slider */
.price-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-badge {
    background: #334155;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 70px;
    text-align: center;
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.summary-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.summary-actions-row .btn-secondary-nav,
.summary-actions-row .btn-secondary-share,
.summary-actions-row .btn-secondary-pdf {
    flex: 1;
    margin-top: 0;
}

.btn-secondary-nav {
    padding: 8px 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary-nav:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

.btn-secondary-share {
    padding: 8px 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary-share:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

.btn-secondary-pdf {
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary-pdf:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* Cost Estimator Widget (B2B Fleet) */
.cost-widget {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-widget.hidden {
    display: none;
}

.cost-grid {
    background: #1e293b;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
}

.cost-lbl { color: var(--text-muted); }
.cost-val { font-weight: 600; color: #fff; }

.cost-item.highlight .cost-val {
    color: var(--accent-emerald);
    font-size: 12px;
    font-weight: 700;
}

/* Results section */
.results-container {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.results-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.badge {
    background: #334155;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--accent-gold);
    font-weight: 600;
}

.route-summary {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.route-summary.hidden {
    display: none;
}

.summary-item {
    display: flex;
    justify-content: space-between;
}

.summary-item .label {
    color: var(--text-muted);
}

.summary-item .val {
    font-weight: 600;
}

.summary-item.highlight .val {
    color: var(--accent-gold);
}

/* Driver Odometer & Mileage Verification Log Widget */
.odometer-widget {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.odometer-widget.hidden {
    display: none;
}

.widget-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.odometer-results {
    background: #1e293b;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odo-stat {
    display: flex;
    justify-content: space-between;
}

.odo-lbl {
    color: var(--text-muted);
}

.odo-val {
    font-weight: 700;
    color: #fff;
}

.odo-tag {
    margin-top: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.odo-tag.neutral { background: #334155; color: var(--text-muted); }
.odo-tag.success { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }
.odo-tag.warning { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); border: 1px solid var(--accent-gold); }

/* Stop Tabs */
.stop-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.stop-tabs.hidden {
    display: none;
}

.tab-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: var(--text-muted);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: #fff;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.hotel-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hotel-card:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-2px);
}

.hotel-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.hotel-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.hotel-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-emerald);
}

.hotel-location {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Multi-Provider comparison list */
.provider-comparison {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 5px 8px;
    margin-bottom: 6px;
    font-size: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
}

.provider-chip strong {
    color: #fff;
}

.provider-chip.cheapest {
    color: var(--accent-gold);
}

.hotel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tag {
    font-size: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--text-muted);
}

.tag.fuel-tag {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
}

.tag.parking-tag {
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

.hotel-actions {
    display: flex;
    gap: 6px;
}

.btn-sm {
    flex: 1;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-sm:hover {
    background: #1e293b;
    border-color: var(--primary);
}

.btn-sm.btn-book {
    background: var(--accent-gold);
    color: #0f172a;
    font-weight: 600;
    border: none;
}

.btn-sm.btn-book:hover {
    background: #d97706;
}

/* Map Container */
.map-container {
    flex: 1;
    height: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background: #0f172a;
}

/* Micro Leaflet Attribution text styling */
.leaflet-container .leaflet-control-attribution {
    font-size: 8px !important;
    line-height: 1.2 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    color: #94a3b8 !important;
    padding: 2px 6px !important;
    opacity: 0.55;
    border-radius: 4px 0 0 0;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.leaflet-container .leaflet-control-attribution:hover {
    opacity: 0.95;
}

.leaflet-container .leaflet-control-attribution a {
    color: #60a5fa !important;
    text-decoration: none !important;
}

.leaflet-container .leaflet-control-attribution a:hover {
    text-decoration: underline !important;
}

.map-legend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    z-index: 1000;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.color-box.route-line { background: #3b82f6; }
.color-box.stop-zone { background: #f59e0b; }
.color-box.hotel-pin { background: #10b981; }

/* Custom Marker Styling */
.custom-hotel-marker {
    background: var(--accent-emerald);
    color: #0f172a;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.custom-hotel-marker:hover {
    transform: scale(1.2);
}

.custom-stop-marker {
    background: var(--accent-gold);
    color: #0f172a;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

/* Custom Toast Modal Overlay */
.toast-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.2s ease;
}

.toast-modal-overlay.hidden {
    display: none;
}

.toast-modal-card {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    width: 380px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.toast-modal-icon {
    font-size: 36px;
    color: var(--accent-emerald);
}

.toast-modal-card p {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.4;
}

.toast-modal-card button {
    width: 100%;
    padding: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}

.toast-modal-card button:hover {
    background: var(--primary-hover);
}

/* Sidebar Footer */
.sidebar-footer {
    display: flex;
    justify-content: space-around;
    padding: 10px 16px;
    background: #0f172a;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-link-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.footer-link-btn:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Info Modal Styling */
.info-modal-card {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 480px;
    max-width: 92vw;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-modal-card .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.info-modal-card .modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.modal-close-icon:hover {
    color: #fff;
}

.info-modal-card .modal-body {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.info-modal-card .modal-body h4 {
    color: var(--accent-gold);
    font-size: 13px;
    margin-top: 6px;
}

/* Mobile Fullscreen Return Button (Hidden by default, Right Thumb Zone) */
.mobile-map-return-btn {
    display: none;
    position: fixed;
    bottom: 22%;
    right: 16px;
    left: auto;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border: 1.5px solid var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-map-return-btn:active {
    transform: scale(0.94);
}

/* ==========================================================================
   Responsive Mobile & Tablet Design (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
    body {
        overflow: hidden;
    }

    .app-container {
        flex-direction: column-reverse;
        height: 100vh;
        width: 100vw;
        position: relative;
    }

    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 86vh;
        border-right: none;
        border-top: 2px solid var(--primary);
        flex: none;
        overflow-y: auto;
    }

    .map-container {
        width: 100%;
        height: 14vh;
        min-height: 115px;
        flex: none;
        position: relative;
    }

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

    .map-legend {
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }

    /* Mobile Fullscreen Map Mode */
    .app-container.mobile-map-full .sidebar {
        display: none !important;
    }

    .app-container.mobile-map-full .map-container {
        height: 100vh !important;
    }

    .app-container.mobile-map-full .mobile-map-return-btn {
        display: flex !important;
    }

    /* Mobile Ergonomic Zoom Control Positioning (Placed UNDER Back button) */
    .leaflet-top.leaflet-right {
        top: auto !important;
        bottom: 6% !important;
        right: 16px !important;
        z-index: 9999 !important;
    }

    .leaflet-touch .leaflet-bar {
        border: 1px solid var(--border-color) !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
        overflow: hidden;
    }

    .leaflet-touch .leaflet-bar a {
        background-color: transparent !important;
        color: #fff !important;
        border-bottom: 1px solid var(--border-color) !important;
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 20px !important;
        font-weight: bold;
    }

    .leaflet-touch .leaflet-bar a:last-child {
        border-bottom: none !important;
    }
}

@media (min-width: 901px) {
    .btn-mobile-map-toggle {
        display: none !important;
    }
    .mobile-map-return-btn {
        display: none !important;
    }
}

/* Cookie Banner Glassmorphism Styling */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 580px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    font-size: 24px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.cookie-banner p {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.4;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-cookie-accept:hover {
    background: #2563eb;
}

.btn-cookie-accept:active {
    transform: scale(0.96);
}
