body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #f8fafc;
    background-color: #0f172a;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.sidebar {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 380px;
    max-height: calc(100vh - 48px);
    z-index: 2;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 16px 0;
}

.tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tab-content {
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.tab-content.active {
    display: flex;
}

.resort-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 4px;
}

.country-group h3 {
    font-size: 14px;
    color: #c084fc;
    margin: 0 0 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.list-item {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

.list-item .name {
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.list-item .status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-hotel:hover { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #93c5fd; }
.btn-package:hover { background: rgba(168, 85, 247, 0.2); border-color: #a855f7; color: #d8b4fe; }
.btn-apres:hover { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; color: #fcd34d; }

.status-ikon { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-epic { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-other { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-osm-notable { background: rgba(167, 139, 250, 0.2); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.4); }
.status-indoor-slope { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.status-dry-slope { background: rgba(234, 88, 12, 0.2); color: #ea580c; border: 1px solid rgba(234, 88, 12, 0.4); }
.status-na { background: transparent; color: #64748b; border: 1px solid rgba(255,255,255,0.1); }

.resort-details {
    flex-grow: 1;
}

.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    text-align: center;
    color: #64748b;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

/* Resort Details Styling */
.resort-header-img {
    width: calc(100% + 48px);
    margin: -24px -24px 16px -24px;
    height: 120px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.resort-card {
    animation: fadeIn 0.4s ease-out;
}

.weather-block {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.weather-title {
    font-size: 11px;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.weather-main {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-sub {
    font-size: 13px;
    color: #e0f2fe;
    margin-top: 4px;
}

.weather-icon {
    font-size: 32px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: #94a3b8;
    font-size: 14px;
    gap: 12px;
}
.loading-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.resort-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: capitalize;
}

.resort-country {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
}

.stat-value span {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.planner-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.planner-title {
    font-size: 13px;
    color: #c084fc;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Premium Trip Planner Styles (Commercial & iOS Optimized) */
.premium-planner-container {
    margin-top: 16px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-planner-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.premium-planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.premium-planner-header h3 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.premium-planner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.premium-btn {
    text-decoration: none;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 44px; /* iOS Human Interface tap target minimum */
}

.premium-btn:hover, .premium-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Individual button commercial styling */
.btn-hotel { border-left: 3px solid #fbbf24; }
.btn-hotel:hover { border-color: #fbbf24; background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(255,255,255,0.05)); }

.btn-flight { border-left: 3px solid #38bdf8; }
.btn-flight:hover { border-color: #38bdf8; background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(255,255,255,0.05)); }

.btn-airbnb { border-left: 3px solid #fb7185; }
.btn-airbnb:hover { border-color: #fb7185; background: linear-gradient(90deg, rgba(251, 113, 133, 0.15), rgba(255,255,255,0.05)); }

.btn-package { border-left: 3px solid #a855f7; }
.btn-package:hover { border-color: #a855f7; background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), rgba(255,255,255,0.05)); }

.btn-train { border-left: 3px solid #34d399; }
.btn-train:hover { border-color: #34d399; background: linear-gradient(90deg, rgba(52, 211, 153, 0.15), rgba(255,255,255,0.05)); }

.btn-apres { border-left: 3px solid #f97316; }
.btn-apres:hover { border-color: #f97316; background: linear-gradient(90deg, rgba(249, 115, 22, 0.15), rgba(255,255,255,0.05)); }

.premium-btn.full-width {
    grid-column: 1 / -1;
    margin-top: 10px;
    justify-content: center;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-left: none;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.premium-btn.full-width:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.map-watermark {
    position: absolute;
    bottom: 30px;
    right: 24px;
    z-index: 10;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    pointer-events: none; /* Let clicks pass through to the map */
}

/* Remove old watermark from sidebar */
.watermark {
}

/* Map Watermark */
.map-watermark {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    z-index: 10;
}

/* Search Container */
.search-container {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90vw;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.country-filter {
    padding: 16px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 90%;
    background-position-y: 50%;
}

.country-filter option {
    background: rgba(15, 23, 42, 0.95);
    color: white;
}

.btn-reset {
    padding: 0 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}

.btn-reset:active {
    transform: scale(0.95);
}

.active-radar {
    background: rgba(56, 189, 248, 0.5) !important;
    border-color: rgba(56, 189, 248, 0.8) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

#resort-search {
    width: 100%;
    padding: 16px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#resort-search:focus {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.15);
}

#resort-search::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-results {
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 14px 24px;
    cursor: pointer;
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
}

.search-result-item span.country {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}
.search-result-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
}

/* Country Accordions */
.country-accordion {
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.country-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default arrow */
    background: rgba(15, 23, 42, 0.4);
    transition: background 0.2s ease;
}

.country-summary::-webkit-details-marker {
    display: none;
}

.country-summary:hover {
    background: rgba(56, 189, 248, 0.1);
}

.country-accordion[open] .country-summary {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.country-resorts {
    padding: 8px;
    background: rgba(0,0,0,0.2);
}

.country-resorts .list-item {
    margin-bottom: 4px;
    border-radius: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
}

.country-resorts .list-item:last-child {
    margin-bottom: 0;
}

/* Glass Popup for POIs */
.glass-popup .mapboxgl-popup-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0;
    overflow: hidden;
}
.glass-popup .mapboxgl-popup-tip {
    border-top-color: rgba(255, 255, 255, 0.9);
}

.btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

/* Mapbox Popup Styling Overrides */
.mapboxgl-popup-content {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: rgba(15, 23, 42, 0.85);
}
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: rgba(15, 23, 42, 0.85);
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: rgba(15, 23, 42, 0.85);
}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: rgba(15, 23, 42, 0.85);
}
.mapboxgl-popup-close-button {
    color: #94a3b8;
}
.mapboxgl-popup-close-button:hover {
    color: #fff;
    background: none;
}

/* Mobile Responsiveness (iOS & Android) */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    #map {
        width: 100%;
        height: 45vh;
        position: relative;
    }
    
    .sidebar {
        width: 100%;
        height: 55vh;
        max-height: 55vh;
        position: relative;
        top: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
        border-right: none;
        border-left: none;
        border-bottom: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
        padding: 20px;
    }
    
    .map-watermark {
        bottom: 57vh; /* Positioned just above the sidebar on mobile */
        right: 10px;
        font-size: 10px;
    }
    
    .planner-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    }
    
    .stat-grid {
        gap: 10px;
    }
    
    .resort-header-img {
        height: 140px; /* Shorter image header on mobile */
        width: calc(100% + 40px);
        margin: -20px -20px 16px -20px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .search-container {
        top: 10px;
        width: 95vw;
        max-width: 95vw;
    }
    
    .search-container > div {
        flex-wrap: wrap; /* Allow wrapping on small screens */
    }
    
    .country-filter {
        flex-grow: 1;
        padding: 12px 16px;
    }
    
    #resort-search {
        padding: 12px 16px;
        width: 100%;
    }
    
    .btn-reset {
        padding: 12px 16px;
    }
    
    .mapboxgl-ctrl-top-right {
        top: 110px; /* Push Mapbox geocoder below our search bar on mobile */
    }
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 15px currentColor; }
    100% { box-shadow: 0 0 5px currentColor; }
}

.status-epic { animation: glow-pulse 2s infinite ease-in-out; }
.status-ikon { animation: glow-pulse 2s infinite ease-in-out; animation-delay: 1s; }
.olympic-badge {
    animation: glow-pulse 2.5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.youtube-btn {
    position: absolute;
    bottom: 24px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
}

.youtube-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.05);
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-container.playing iframe {
    opacity: 1;
}

.video-container.playing .resort-header-img,
.video-container.playing .youtube-btn {
    opacity: 0;
    pointer-events: none;
}

#btn-refresh {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

#btn-refresh:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

#btn-refresh:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* --- Mobile Responsiveness (iOS & Android) --- */
@media (max-width: 768px) {
    .sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 55dvh;
        border-radius: 28px 28px 0 0;
        padding: 20px;
        box-sizing: border-box;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .mapboxgl-ctrl-top-right {
        top: 10px;
        right: 10px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .resort-card {
        padding: 12px;
    }
    
    .resort-title {
        font-size: 20px;
    }
    
    .video-container {
        height: 180px;
    }
    
    .btn-planner, .action-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .stats-grid {
        gap: 8px;
    }
}

/* Floating Top Right Controls */
.floating-controls-tr {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}
.btn-icon {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}
.btn-icon:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Floating Random Button (Roll the Dice) */
.btn-floating-random {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5), inset 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-floating-random:hover {
    transform: translateX(-50%) scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.7), inset 0 2px 0 rgba(255,255,255,0.4);
}
.dice-icon {
    font-size: 28px;
    animation: wiggle 2s infinite;
}
.dice-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.video-modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.video-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-modal.hidden .video-modal-content {
    transform: scale(0.95);
}
.iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.video-modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.video-modal-close-btn:hover {
    opacity: 1;
}

/* Remove old search container styles */
.search-container {
    display: none !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .btn-floating-random {
        bottom: 30px;
        padding: 14px 28px;
    }
    .dice-icon {
        font-size: 24px;
    }
    .dice-text {
        font-size: 16px;
    }
    .video-modal-content {
        width: 100%;
        border-radius: 0;
    }
    .video-modal-close-btn {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px; height: 40px;
        z-index: 10;
    }
}
