:root {
    
    --bg-grad-start: #022c22;
    --bg-grad-mid: #064e3b;    
    --bg-grad-end: #0f172a;    
    
    --glass-bg: rgba(6, 78, 59, 0.2);
    --glass-border: rgba(52, 211, 153, 0.2);
    --glass-blur: 20px;
    
    --text-primary: #ecfdf5;   
    --text-secondary: #6ee7b7; 
    
    --accent-primary: #4ade80; 
    --accent-glow: rgba(74, 222, 128, 0.5);
    
    --card-bg: rgba(2, 44, 34, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.4);
    
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="minimal"] {
    --bg-grad-start: #f8fafc;
    --bg-grad-mid: #eff6ff;
    --bg-grad-end: #f0fdf4;
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-blur: 12px;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    
    --accent-primary: #059669;
    --accent-glow: rgba(5, 150, 105, 0.2);
    
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

[data-theme="high-contrast"] {
    --bg-grad-start: #000000;
    --bg-grad-mid: #000000;
    --bg-grad-end: #000000;
    
    --glass-bg: #000000;
    --glass-border: #ffffff;
    --glass-blur: 0px;
    
    --text-primary: #ffffff;
    --text-secondary: #ffff00;
    
    --accent-primary: #00ffff;
    --accent-glow: transparent;
    
    --card-bg: #000000;
    --shadow-color: transparent;
}


*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-grad-start), var(--bg-grad-mid), var(--bg-grad-end));
    background-size: 300% 300%;
    animation: gradientFlow 20s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* A0ccessibility focus indicator thingy */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

[data-theme="high-contrast"] :focus-visible {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
    background-color: #333;
}

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


.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border-radius: 1.5rem;
    transition: transform 0.4s var(--ease-elastic), box-shadow 0.4s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 20px 40px -10px var(--shadow-color);
    border-color: var(--accent-primary);
}

[data-theme="high-contrast"] .glass-panel {
    border: 2px solid #ffffff;
    border-radius: 0.5rem;
    box-shadow: none;
    backdrop-filter: none;
}

.neu-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="minimal"] .neu-input {
    background: #f1f5f9;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="high-contrast"] .neu-input {
    background: #000;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
    border-radius: 0;
}

.neu-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, #15803d, var(--accent-primary));
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

[data-theme="minimal"] .btn-primary {
    background: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="high-contrast"] .btn-primary {
    background: #000;
    border: 2px solid #ffff00;
    color: #ffff00;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-primary:hover::after {
    transform: translateY(0);
}

.floating-card {
    animation: float 8s ease-in-out infinite;
    will-change: transform;
}

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

.glow-text {
    text-shadow: 0 0 15px var(--accent-glow);
}

[data-theme="high-contrast"] .glow-text {
    text-shadow: none;
}

/* Map Specifics */
.map-placeholder {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="minimal"] .map-placeholder {
    background: #e2e8f0;
}

.map-grid {
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    width: 100%;
    height: 100%;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.pulse-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 24px; height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 25px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}
 
.perspective-1000 {
    perspective: 1000px;
}

/* phone site s */
.details-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
}
.collapsed .details-content {
    max-height: 0;
    opacity: 0;
}
.chevron {
    transition: transform 0.3s ease;
}
.collapsed .chevron {
    transform: rotate(-90deg);
}

/* Hide default Leaflet routing container */
.leaflet-routing-container-hide {
    display: none !important;
}
