/* 📍 Visitor Tracker — Global Strategic Styles */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #005db5;
  --primary-dim: #0052a0;
  --on-primary: #f6f7ff;
  --surface: #f8f9fa;
  --on-surface: #2b3437;
  --surface-container: #eaeff1;
  --surface-container-high: #e3e9ec;
  --surface-container-highest: #dbe4e7;
  --on-surface-variant: #586064;
  --outline-variant: #abb3b7;
  --error: #9f403d;
}

/* ── Base Resilience ── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--on-surface);
    background-color: var(--surface);
    overflow-x: hidden;
}

/* ── Leaflet Precision Styling ── */
.leaflet-container {
    font-family: 'Inter', sans-serif !important;
}

.custom-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
}

.custom-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.9);
}

.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

/* ── UI Components & Animations ── */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

@keyframes bounce-in {
    0% { transform: translate(-50%, 100px); opacity: 0; }
    60% { transform: translate(-50%, -10px); opacity: 1; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.animate-bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ── Modal Orchestration ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* ── Scrollbar Stealth ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Mobile Sidebar Logic ── */
@media (max-width: 768px) {
    #sb {
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        height: 100% !important;
    }
    
    #sb.mobile-active {
        transform: translateX(0);
    }
    
    main {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .tc {
        width: 100% !important;
    }
}