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

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

body {
    font-family: 'Kalam', 'Roboto Mono', monospace;
    background: #1a1a1a;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027 0%, #1a1a1a 50%, #0f2027 100%);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.5s ease-in, gradientFlow 3s ease-in-out infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.splash-screen.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.splash-content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.splash-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
    animation: treeGlow 2s ease-in-out infinite, treeSway 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes treeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.8)) drop-shadow(0 0 15px rgba(220, 38, 38, 0.4));
        transform: scale(1.05);
    }
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-2deg) scale(1);
    }
    50% {
        transform: rotate(2deg) scale(1.05);
    }
}

.splash-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #dc2626 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
    font-family: 'Mountains of Christmas', 'Kalam', cursive;
    letter-spacing: 2px;
}

.splash-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    min-height: 24px;
    font-family: 'Kalam', cursive;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.splash-footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 10;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.8;
    white-space: pre-line;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes footerFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes footerGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                    0 0 40px rgba(34, 197, 94, 0.2),
                    inset 0 0 20px rgba(220, 38, 38, 0.1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5),
                    0 0 60px rgba(34, 197, 94, 0.4),
                    inset 0 0 30px rgba(220, 38, 38, 0.2);
    }
}

@keyframes footerGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes teamTextPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(34, 197, 94, 0.6),
                     0 0 20px rgba(220, 38, 38, 0.4),
                     0 2px 4px rgba(0, 0, 0, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.9),
                     0 0 30px rgba(220, 38, 38, 0.6),
                     0 2px 4px rgba(0, 0, 0, 0.8);
        transform: scale(1.05);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
}

@keyframes wishTextShimmer {
    0%, 100% {
        text-shadow: 0 0 8px rgba(34, 197, 94, 0.5),
                     0 2px 4px rgba(0, 0, 0, 0.6);
    }
    50% {
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.8),
                     0 0 25px rgba(220, 38, 38, 0.5),
                     0 2px 4px rgba(0, 0, 0, 0.6);
    }
}

.splash-subtitle::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
    color: rgba(34, 197, 94, 0.8);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.main-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.map-wrapper {
    flex: 1;
    position: relative;
    width: calc(100vw - 380px);
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.light-preset-control {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.4;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dimmer-control {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dimmer-control.visible {
    opacity: 1;
    pointer-events: auto;
}

.dimmer-control-inner {
    display: flex;
    flex-direction: row;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    align-items: center;
    min-width: 400px;
    max-width: 500px;
    position: relative;
}

.light-preset-control.collapsed {
    gap: 0;
}

.light-preset-control.collapsed .preset-btn:not(.active) {
    width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

.light-preset-control.collapsed .preset-btn.active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-preset-control:hover {
    opacity: 1;
    gap: 8px;
}

.light-preset-control.collapsed:hover .preset-btn:not(.active) {
    width: 48px;
    opacity: 1;
    pointer-events: auto;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease 0.1s;
}

.preset-btn {
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.preset-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.preset-btn.active {
    background: rgba(34, 197, 94, 0.3);
    border: 2px solid rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.preset-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(220, 38, 38, 0.3));
    z-index: -1;
    animation: presetGlow 2s ease-in-out infinite;
}

@keyframes presetGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.preset-icon {
    width: 24px;
    height: 24px;
    color: #fff;
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.preset-btn:hover .preset-icon {
    transform: scale(1.2) rotate(5deg);
}


.preset-btn.active .preset-icon {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.8));
    animation: iconPulse 1.5s ease-in-out infinite;
}


@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}


.preset-dawn .preset-icon {
    filter: drop-shadow(0 0 4px rgba(255, 165, 0, 0.6)) drop-shadow(0 0 2px rgba(255, 192, 203, 0.4));
}

.preset-dawn.active .preset-icon {
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 192, 203, 0.6));
}

.preset-dawn.active {
    background: rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.4);
}

.preset-day .preset-icon {
    filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.6)) drop-shadow(0 0 2px rgba(255, 215, 0, 0.4));
}

.preset-day.active .preset-icon {
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.preset-day.active {
    background: rgba(255, 255, 0, 0.2);
    border-color: rgba(255, 255, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
}

.preset-dusk .preset-icon {
    filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.6)) drop-shadow(0 0 2px rgba(75, 0, 130, 0.4));
}

.preset-dusk.active .preset-icon {
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.8)) drop-shadow(0 0 4px rgba(75, 0, 130, 0.6));
}

.preset-dusk.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.preset-night .preset-icon {
    filter: drop-shadow(0 0 4px rgba(70, 130, 180, 0.6)) drop-shadow(0 0 2px rgba(25, 25, 112, 0.4));
}

.preset-night.active .preset-icon {
    filter: drop-shadow(0 0 8px rgba(70, 130, 180, 0.8)) drop-shadow(0 0 4px rgba(25, 25, 112, 0.6));
}

.preset-night.active {
    background: rgba(70, 130, 180, 0.2);
    border-color: rgba(70, 130, 180, 0.6);
    box-shadow: 0 0 15px rgba(70, 130, 180, 0.4);
}

.map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.preset-label {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.expand-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.collapse-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 1010;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.expand-btn:hover,
.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.expand-btn:active,
.collapse-btn:active {
    transform: scale(0.95);
}

.expand-btn svg,
.collapse-btn svg {
    width: 18px;
    height: 18px;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: #000;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.fullscreen-overlay.active {
    display: flex !important;
}

.fullscreen-overlay.active ~ .main-container,
.main-container:has(~ .fullscreen-overlay.active) {
    display: none !important;
}

.fullscreen-overlay.active .side-panel {
    display: flex !important;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

.fullscreen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.fullscreen-label {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.fullscreen-overlay .collapse-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1010;
    pointer-events: auto;
}

.fullscreen-map-container {
    flex: 1;
    width: calc(100vw - 380px);
    height: 100%;
    position: relative;
    margin-right: 0;
}

.fullscreen-map {
    width: 100%;
    height: 100%;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 16px;
    font-weight: 500;
}

.error-message {
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-text {
    font-size: 16px;
    color: #ff6b6b;
    max-width: 400px;
}

.mapboxgl-ctrl-group {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mapboxgl-ctrl button {
    background-color: transparent !important;
    color: #fff !important;
}

.mapboxgl-ctrl button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.mapboxgl-ctrl-logo {
    opacity: 0.7;
}

.mapboxgl-ctrl-attrib {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    border-radius: 4px;
    padding: 4px 8px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: 'Roboto Mono', monospace !important;
}

.mapboxgl-ctrl-attrib a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
}

.mapboxgl-ctrl-attrib a:hover {
    color: rgba(34, 197, 94, 0.9) !important;
    text-decoration: underline;
}

.mapboxgl-ctrl-heatmap {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapboxgl-ctrl-heatmap svg {
    width: 20px;
    height: 20px;
}

.mapboxgl-ctrl-heatmap:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mapboxgl-ctrl-heatmap:active {
    background-color: rgba(255, 255, 255, 0.15);
}

.mapboxgl-ctrl-heatmap.active {
    background-color: rgba(145, 154, 168, 0.8);
}

.mapboxgl-ctrl-heatmap.active svg {
    opacity: 1;
}

.mapboxgl-ctrl-heatmap.loading {
    pointer-events: none;
    opacity: 0.6;
}

.mapboxgl-ctrl-heatmap.loading svg {
    animation: heatmap-pulse 1.5s ease-in-out infinite;
}

@keyframes heatmap-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.side-panel {
    width: 380px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.panel-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Mountains of Christmas', 'Kalam', cursive;
    letter-spacing: 1px;
}

.panel-title::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.3) 0%, 
        rgba(34, 197, 94, 0.3) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: panelTitleGradientFlow 4s ease-in-out infinite;
}

.panel-title:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(34, 197, 94, 0.3);
}

.panel-title:hover::before {
    opacity: 1;
}

.panel-title.active {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                0 0 40px rgba(34, 197, 94, 0.2);
    animation: panelTitleActiveGlow 2s ease-in-out infinite;
}

.panel-title.active::before {
    opacity: 1;
}

.panel-title.road-so-far-active {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.95) 0%, 
        rgba(178, 34, 34, 0.9) 25%,
        rgba(139, 0, 0, 0.95) 50%,
        rgba(178, 34, 34, 0.9) 75%,
        rgba(139, 0, 0, 0.95) 100%);
    background-size: 200% 100%;
    border: 3px solid rgba(220, 20, 60, 0.9);
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.7),
                0 0 50px rgba(139, 0, 0, 0.5),
                0 0 75px rgba(220, 20, 60, 0.3),
                inset 0 0 30px rgba(0, 0, 0, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: 'Mountains of Christmas', 'Kalam', cursive;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
                 0 0 30px rgba(220, 20, 60, 0.7),
                 0 0 45px rgba(255, 255, 255, 0.5),
                 0 3px 6px rgba(0, 0, 0, 1);
    animation: supernaturalBackgroundFlow 4s ease-in-out infinite;
}

.panel-title.road-so-far-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%);
    animation: supernaturalSweep 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    filter: blur(1px);
}

.panel-title.road-so-far-active::after {
    content: 'THE ROAD SO FAR';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 0;
    animation: supernaturalFlicker 1.8s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.panel-title.road-so-far-active:hover {
    border-color: rgba(255, 20, 60, 1);
    box-shadow: 0 0 35px rgba(220, 20, 60, 0.9),
                0 0 60px rgba(139, 0, 0, 0.6),
                0 0 85px rgba(220, 20, 60, 0.4),
                inset 0 0 40px rgba(0, 0, 0, 0.7),
                inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

@keyframes supernaturalBackgroundFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes supernaturalSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

@keyframes supernaturalFlicker {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    10% {
        opacity: 0.4;
    }
    20% {
        opacity: 0.1;
        transform: scale(0.98);
    }
    30% {
        opacity: 0.5;
        transform: scale(1.01);
    }
    40% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.25;
        transform: scale(1);
    }
    60% {
        opacity: 0.4;
    }
    70% {
        opacity: 0.15;
        transform: scale(0.99);
    }
    80% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.3;
        transform: scale(1);
    }
}



@keyframes panelTitleGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes panelTitleActiveGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                    0 0 40px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6),
                    0 0 50px rgba(34, 197, 94, 0.3);
    }
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.panel-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-top: 8px;
    padding-left: 16px;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.search-container-top {
    position: fixed;
    top: 20px;
    left: calc((100% - 380px) / 2);
    transform: translateX(-50%);
    width: 400px;
    max-width: calc(100% - 420px);
    z-index: 300;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.search-container-top.collapsed {
    opacity: 0.3;
    pointer-events: auto;
}

.search-container-top.collapsed:hover {
    opacity: 1;
}

.search-container-top.collapsed .search-input-top {
    cursor: pointer;
}

.search-container-top:not(.collapsed),
.search-container-top.has-input,
.search-container-top.has-focus {
    opacity: 1 !important;
}

.search-input-top {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-input-top::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-top:focus {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.search-results-top {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-results-top.has-results {
    display: block;
}

.search-results-top::-webkit-scrollbar {
    width: 6px;
}

.search-results-top::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results-top::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.search-results-top::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    color: #fff;
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
}

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

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(34, 197, 94, 0.9);
}

.search-result-item.from-cards {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid rgba(34, 197, 94, 0.6);
}

.search-result-item.from-cards:hover {
    background: rgba(34, 197, 94, 0.2);
}

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

.search-result-item .result-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.nav-buttons-group {
    display: flex;
    gap: 12px;
}

.country-group {
    margin-bottom: 8px;
}

.country-group:first-child {
    margin-top: 0;
}

.country-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Kalam', cursive;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    margin-top: 16px;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: all 0.3s ease;
}

.country-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-group:first-child .country-header {
    margin-top: 0;
}

.country-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(34, 197, 94, 0.3);
}

.country-header-toggle {
    font-size: 12px;
    color: rgba(34, 197, 94, 0.8);
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.country-header-flag {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    width: 28px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.country-header-text {
    line-height: 1.2;
}

.country-header-greeting {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
    font-style: italic;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.country-header:hover .country-header-greeting {
    opacity: 1;
    max-height: 50px;
}

.country-header-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 12px;
}

.country-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 10000px;
    opacity: 1;
}

.country-group.collapsed .country-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.model-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transform-origin: center top;
    margin: 0;
}

.model-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(34, 197, 94, 0.4),
                0 0 60px rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 20px;
    min-height: auto;
}

.model-card.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                0 0 40px rgba(34, 197, 94, 0.2);
    animation: cardActiveGlow 2s ease-in-out infinite;
}

.model-card.classic-city:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(220, 38, 38, 0.4),
                0 0 40px rgba(255, 215, 0, 0.3),
                0 0 50px rgba(34, 197, 94, 0.3);
    animation: classicCityHoverGlow 2s ease-in-out infinite;
}

.model-card.classic-city.active {
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.5),
                0 0 40px rgba(255, 215, 0, 0.4),
                0 0 60px rgba(34, 197, 94, 0.4),
                0 0 80px rgba(220, 38, 38, 0.2);
    animation: classicCityActiveGlow 2s ease-in-out infinite;
}

@keyframes classicCityHoverGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                    0 0 30px rgba(220, 38, 38, 0.4),
                    0 0 40px rgba(255, 215, 0, 0.3),
                    0 0 50px rgba(34, 197, 94, 0.3);
    }
    25% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                    0 0 40px rgba(255, 215, 0, 0.5),
                    0 0 50px rgba(34, 197, 94, 0.4),
                    0 0 60px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                    0 0 30px rgba(34, 197, 94, 0.5),
                    0 0 40px rgba(220, 38, 38, 0.4),
                    0 0 50px rgba(255, 215, 0, 0.3);
    }
    75% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                    0 0 40px rgba(220, 38, 38, 0.5),
                    0 0 50px rgba(255, 215, 0, 0.4),
                    0 0 60px rgba(34, 197, 94, 0.3);
    }
}

@keyframes classicCityActiveGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(220, 38, 38, 0.5),
                    0 0 40px rgba(255, 215, 0, 0.4),
                    0 0 60px rgba(34, 197, 94, 0.4),
                    0 0 80px rgba(220, 38, 38, 0.2);
    }
    25% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.6),
                    0 0 50px rgba(34, 197, 94, 0.5),
                    0 0 70px rgba(220, 38, 38, 0.4),
                    0 0 90px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.6),
                    0 0 45px rgba(220, 38, 38, 0.5),
                    0 0 65px rgba(255, 215, 0, 0.4),
                    0 0 85px rgba(34, 197, 94, 0.2);
    }
    75% {
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.7),
                    0 0 55px rgba(255, 215, 0, 0.6),
                    0 0 75px rgba(34, 197, 94, 0.5),
                    0 0 95px rgba(220, 38, 38, 0.3);
    }
}

@keyframes cardActiveGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                    0 0 40px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6),
                    0 0 50px rgba(34, 197, 94, 0.3);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    padding: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 3s ease-in-out infinite;
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(34, 197, 94, 0.1);
}

.model-card:hover .card-icon {
    width: 96px;
    height: 96px;
    padding: 8px;
    flex-shrink: 0;
}

.model-card:hover .card-icon-img {
    transform: scale(1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.9));
    animation: iconFloat 1s ease-in-out infinite, iconSpin 2s ease-in-out infinite;
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 
        0 0 0 3px rgba(34, 197, 94, 0.5),
        0 0 50px rgba(34, 197, 94, 0.8),
        inset 0 0 40px rgba(34, 197, 94, 0.3);
}

.model-card:hover .card-content {
    margin-top: 8px;
}

.model-card.active .card-icon-img {
    animation: iconActive 1.5s ease-in-out infinite;
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 
        0 0 0 3px rgba(34, 197, 94, 0.5),
        0 0 40px rgba(34, 197, 94, 0.8),
        inset 0 0 40px rgba(34, 197, 94, 0.3);
}

.model-card:hover .card-icon {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}

.model-card.active .card-icon {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.1) 50%, transparent 100%);
}

.card-emoji {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: emojiFloat 3s ease-in-out infinite;
}

.model-card:hover .card-emoji {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.8));
    animation: emojiFloat 1s ease-in-out infinite, emojiSpin 2s ease-in-out infinite;
}

.model-card.active .card-emoji {
    animation: emojiActive 1.5s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes iconSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes iconActive {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.8));
    }
    50% {
        transform: scale(1.2) rotate(10deg);
        filter: drop-shadow(0 0 30px rgba(34, 197, 94, 1));
    }
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes emojiSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes emojiActive {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.8));
    }
    50% {
        transform: scale(1.3) rotate(15deg);
        filter: drop-shadow(0 0 25px rgba(34, 197, 94, 1));
    }
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* .card-icon styles moved to top with enhanced styling */

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    line-height: 1.4;
    font-family: 'Mountains of Christmas', 'Kalam', cursive;
    letter-spacing: 0.5px;
}

.card-easter-egg {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-style: italic;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Kalam', cursive;
}

.model-card:hover .card-easter-egg,
.model-card.active .card-easter-egg {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    margin-top: 8px;
}

.card-city {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.nav-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: var(--long-press-progress, 0%);
    background: linear-gradient(90deg, 
        #dc2626 0%, 
        #ef4444 25%,
        #f59e0b 50%,
        #22c55e 75%,
        #16a34a 100%);
    background-size: 200% 100%;
    transition: width 0.03s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5), 
                0 0 16px rgba(220, 38, 38, 0.4),
                inset 0 0 8px rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

.nav-btn.long-press-active::before {
    opacity: 1;
    transform: scaleX(1);
    animation: progressShimmer 2s linear infinite, progressGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7), 
                0 0 24px rgba(220, 38, 38, 0.5),
                inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.nav-btn.long-press-loading::before {
    animation: loadingPulse 0.6s ease-in-out infinite, progressShimmer 2s linear infinite, progressGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.9), 
                0 0 32px rgba(220, 38, 38, 0.7),
                inset 0 0 16px rgba(255, 255, 255, 0.4);
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(34, 197, 94, 0.9), 
                    0 0 32px rgba(220, 38, 38, 0.7),
                    inset 0 0 16px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 20px rgba(34, 197, 94, 1), 
                    0 0 40px rgba(220, 38, 38, 0.9),
                    inset 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

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

@keyframes progressGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.nav-btn.road-so-far-active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prev-btn {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.25) 0%, 
        rgba(255, 165, 0, 0.15) 50%,
        rgba(220, 38, 38, 0.25) 100%);
    background-size: 200% 100%;
    border-color: rgba(220, 38, 38, 0.4);
    overflow: hidden;
    animation: prevBtnGradientFlow 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(220, 38, 38, 0.2);
}

.prev-btn::after {
    content: '🎁';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    animation: giftFloat 2s ease-in-out infinite;
    pointer-events: none;
}

.prev-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.4) 0%, 
        rgba(255, 165, 0, 0.3) 50%,
        rgba(220, 38, 38, 0.4) 100%);
    background-size: 200% 100%;
    border-color: rgba(220, 38, 38, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(220, 38, 38, 0.5),
                0 0 40px rgba(255, 165, 0, 0.3);
    animation: prevBtnGradientFlow 1.5s ease-in-out infinite,
               prevBtnHoverGlow 2s ease-in-out infinite;
    transform: translateY(-2px) scale(1.02);
}

.prev-btn:hover:not(:disabled)::after {
    opacity: 1;
    animation: giftFloat 1s ease-in-out infinite,
               giftSpin 2s ease-in-out infinite;
}

.next-btn {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.25) 0%, 
        rgba(255, 215, 0, 0.15) 50%,
        rgba(34, 197, 94, 0.25) 100%);
    background-size: 200% 100%;
    border-color: rgba(34, 197, 94, 0.4);
    overflow: hidden;
    animation: nextBtnGradientFlow 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(34, 197, 94, 0.2);
}

.next-btn::after {
    content: '✨';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    animation: sparkleFloat 2s ease-in-out infinite;
    pointer-events: none;
}

.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.4) 0%, 
        rgba(255, 215, 0, 0.3) 50%,
        rgba(34, 197, 94, 0.4) 100%);
    background-size: 200% 100%;
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(34, 197, 94, 0.5),
                0 0 40px rgba(255, 215, 0, 0.3);
    animation: nextBtnGradientFlow 1.5s ease-in-out infinite,
               nextBtnHoverGlow 2s ease-in-out infinite;
    transform: translateY(-2px) scale(1.02);
}

.next-btn:hover:not(:disabled)::after {
    opacity: 1;
    animation: sparkleFloat 1s ease-in-out infinite,
               sparklePulse 1.5s ease-in-out infinite;
}

@keyframes prevBtnGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes nextBtnGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes prevBtnHoverGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                    0 0 25px rgba(220, 38, 38, 0.5),
                    0 0 40px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                    0 0 35px rgba(220, 38, 38, 0.7),
                    0 0 55px rgba(255, 165, 0, 0.5);
    }
}

@keyframes nextBtnHoverGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                    0 0 25px rgba(34, 197, 94, 0.5),
                    0 0 40px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                    0 0 35px rgba(34, 197, 94, 0.7),
                    0 0 55px rgba(255, 215, 0, 0.5);
    }
}

@keyframes giftFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-3px);
    }
}

@keyframes giftSpin {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    25% {
        transform: translateY(-50%) rotate(-10deg);
    }
    75% {
        transform: translateY(-50%) rotate(10deg);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(3px);
    }
}

@keyframes sparklePulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.btn-text {
    display: block;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.prev-btn .btn-text {
    padding-left: 24px;
}

.next-btn .btn-text {
    padding-right: 24px;
}

.prev-btn:hover:not(:disabled) .btn-text {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.6),
                 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: textShimmer 2s ease-in-out infinite;
}

.next-btn:hover:not(:disabled) .btn-text {
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6),
                 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: textShimmer 2s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.dimmer-section {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.dimmer-header {
    display: none;
}

.dimmer-label {
    display: none;
}

.dimmer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dimmer-main-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dimmer-control .dimmer-btn {
    position: relative;
    height: 40px;
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Roboto Mono', monospace;
    padding: 0 20px;
    font-size: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dimmer-btn::after {
    content: 'Building Colors';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.dimmer-btn:hover::after,
.dimmer-btn.dimmer-active::after,
.dimmer-btn.dimmer-dragging::after {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    transform: translateY(-50%) scale(1.05);
    animation: dimmerLabelPulse 2s ease-in-out infinite;
}

@keyframes dimmerLabelPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    }
}

.dimmer-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.3) 0%, 
        rgba(255, 165, 0, 0.3) 25%,
        rgba(34, 197, 94, 0.3) 50%,
        rgba(34, 197, 94, 0.4) 75%,
        rgba(220, 38, 38, 0.3) 100%);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: dimmerGradientFlow 4s ease-in-out infinite;
}

.dimmer-btn:hover::before,
.dimmer-btn.dimmer-active::before {
    opacity: 1;
}

@keyframes dimmerGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.dimmer-control .dimmer-value-box {
    width: 60px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dimmer-control .dimmer-value-box:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.dimmer-value-box #dimmer-value-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto Mono', monospace;
}

.dimmer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(34, 197, 94, 0.2);
}

.dimmer-btn.dimmer-active {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                0 0 40px rgba(34, 197, 94, 0.2);
    animation: dimmerActiveGlow 2s ease-in-out infinite;
}

@keyframes dimmerActiveGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                    0 0 40px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6),
                    0 0 50px rgba(34, 197, 94, 0.3);
    }
}

.dimmer-btn.dimmer-dragging {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5),
                0 0 60px rgba(34, 197, 94, 0.3);
    transform: scale(1.02);
}

.dimmer-btn-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, 
        rgba(220, 38, 38, 0.6) 0%, 
        rgba(255, 165, 0, 0.5) 25%,
        rgba(255, 215, 0, 0.4) 50%,
        rgba(34, 197, 94, 0.5) 75%,
        rgba(34, 197, 94, 0.6) 100%);
    background-size: 200% 100%;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 8px 0 0 8px;
    animation: dimmerFillShimmer 3s ease-in-out infinite;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1),
                0 0 15px rgba(34, 197, 94, 0.3);
}

@keyframes dimmerFillShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

.dimmer-btn-text {
    position: relative;
    z-index: 3;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7),
                 0 0 8px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    margin-left: auto;
}

.dimmer-btn:hover .dimmer-btn-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7),
                 0 0 12px rgba(34, 197, 94, 0.6);
    transform: scale(1.05);
}

.dimmer-btn.dimmer-active .dimmer-btn-text {
    animation: dimmerTextPulse 2s ease-in-out infinite;
}

.dimmer-btn.dimmer-dragging .dimmer-btn-text {
    animation: dimmerTextPulse 1s ease-in-out infinite;
}

@keyframes dimmerTextPulse {
    0%, 100% {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7),
                     0 0 8px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7),
                     0 0 15px rgba(34, 197, 94, 0.7);
        transform: scale(1.08);
    }
}

.dimmer-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.dimmer-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.2s ease;
}

.dimmer-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.dimmer-input::-webkit-inner-spin-button,
.dimmer-input::-webkit-outer-spin-button {
    opacity: 0.5;
}

.dimmer-control .dimmer-reset-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dimmer-reset-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.3) 0%, 
        rgba(34, 197, 94, 0.3) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dimmer-reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(180deg) scale(1.1);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.dimmer-reset-btn:hover::before {
    opacity: 1;
}

.dimmer-reset-btn:active {
    transform: rotate(180deg) scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.dimmer-reset-btn svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 1400px) {
    .side-panel {
        width: 320px;
    }
    
    .map-wrapper {
        width: calc(100vw - 320px);
    }
}

@media (max-width: 1200px) {
    .side-panel {
        width: 280px;
    }
    
    .map-wrapper {
        width: calc(100vw - 280px);
    }
    
    .panel-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .map-wrapper {
        width: 100vw;
        height: 60vh;
    }
    
    .side-panel {
        width: 100%;
        height: 40vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .panel-content {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .model-card {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .map-header {
        padding: 10px 12px;
    }
    
    .preset-label {
        font-size: 14px;
    }
    
    .expand-btn {
        width: 32px;
        height: 32px;
    }
    
    .expand-btn svg {
        width: 16px;
        height: 16px;
}

.christmas-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    will-change: opacity;
}

.christmas-transition-overlay.active {
    opacity: 1;
}

.christmas-transition-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.christmas-transition-overlay .snowflakes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.christmas-transition-overlay .snowflake {
    position: absolute;
    font-size: 36px;
    color: rgba(255, 255, 255, 1);
    animation: snowflakeFall linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    z-index: 1;
}

.christmas-transition-overlay .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.christmas-transition-overlay .star {
    position: absolute;
    font-size: 36px;
    color: rgba(255, 215, 0, 1);
    animation: starTwinkle 1s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    z-index: 1;
}

.christmas-transition-overlay .sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.christmas-transition-overlay .sparkle {
    position: absolute;
    font-size: 40px;
    color: rgba(255, 255, 255, 1);
    animation: sparklePop 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    z-index: 1;
}

@keyframes snowflakeFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes sparklePop {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

.model-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card.slide-in {
    animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 768px) {
    .splash-icon {
        font-size: 60px;
    }
    
    .splash-title {
        font-size: 28px;
    }
    
    .splash-subtitle {
        font-size: 16px;
    }
}
