/* ============================================
   ACOPIO COLOMBIA - Responsive Design & Aesthetics
   Modern Minimalist, Glassmorphism, Desktop & Mobile Perfect
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-dark: #090d1f;
    --bg-dark-secondary: #0f152e;
    --panel-dark: rgba(15, 21, 46, 0.88);
    --card-dark: rgba(255, 255, 255, 0.05);
    --text-dark: #f0f3fa;
    --text-muted-dark: #9aa2b8;
    --border-dark: rgba(255, 255, 255, 0.08);
    
    --bg-light: #f4f6fa;
    --bg-light-secondary: #ffffff;
    --panel-light: rgba(255, 255, 255, 0.92);
    --card-light: #ffffff;
    --text-light: #16192b;
    --text-muted-light: #646982;
    --border-light: rgba(0, 0, 0, 0.08);
    
    /* Colombian Flag Colors */
    --col-yellow: #FCD116;
    --col-blue: #003893;
    --col-red: #CE1126;
    
    /* Semantic Colors */
    --color-critical: #d92525;
    --color-severe: #e67e22;
    --color-moderate: #f39c12;
    --color-success: #27ae60;
    --color-info: #0079C1;
    --color-shelter: #8e44ad;
    --color-hospital: #e74c3c;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sidebar-width: 420px;
    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 10px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    min-height: 100%;
    width: 100%;
    font-family: var(--font-main);
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* --- Logo Styles --- */
.loader-content { text-align: center; }

.loader-logo-img {
    width: 110px;
    height: auto;
    border-radius: 16px;
    margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: block;
}

.welcome-logo-wrapper {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.main-portal-logo {
    width: 145px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.main-portal-logo:hover {
    transform: scale(1.04);
}

.sidebar-logo-img {
    width: 46px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-bar-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-bar-logo {
    width: 28px;
    height: auto;
    border-radius: 6px;
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    transition: opacity 0.5s, visibility 0.5s;
}
body.dark-mode #loading-screen { background: var(--bg-dark); }
#loading-screen.fade-out { opacity: 0; visibility: hidden; }

.loader-bar {
    width: 180px;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}
body.dark-mode .loader-bar { background: rgba(255,255,255,0.1); }

.loader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--col-yellow), var(--col-blue), var(--col-red));
    animation: loadProgress 1.1s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* --- Offline Banner --- */
.offline-banner {
    background: #e67e22;
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 9999;
    position: relative;
}

/* --- Glassmorphism --- */
.glass-panel {
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
}
body.dark-mode .glass-panel {
    background: var(--panel-dark);
    border: 1px solid var(--border-dark);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
body.light-mode .glass-panel {
    background: var(--panel-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* ============================================
   WELCOME PORTAL
   ============================================ */
.welcome-portal-view {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: radial-gradient(circle at 50% 20%, rgba(0, 56, 147, 0.05) 0%, transparent 60%);
}

body.dark-mode .welcome-portal-view {
    background: radial-gradient(circle at 50% 20%, rgba(0, 56, 147, 0.18) 0%, transparent 70%), var(--bg-dark);
}

.welcome-portal-card-container {
    width: 100%;
    max-width: 900px;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.welcome-header {
    text-align: center;
    max-width: 700px;
    margin-bottom: 32px;
}

.welcome-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(206, 17, 38, 0.08);
    color: var(--color-critical);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 30px;
    border: 1px solid rgba(206, 17, 38, 0.2);
    margin-bottom: 14px;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    background: linear-gradient(135deg, #d3a400 0%, var(--col-blue) 55%, var(--col-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 0.95rem;
    opacity: 0.78;
    line-height: 1.45;
    margin-bottom: 16px;
}

.welcome-emergency-call {
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.call-btn-pill {
    background: var(--color-critical);
    color: white;
    padding: 7px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(217, 37, 37, 0.35);
    transition: var(--transition);
}
.call-btn-pill:hover { transform: scale(1.05); }

.welcome-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
    margin-bottom: 30px;
}

.portal-action-card {
    display: flex;
    align-items: flex-start;
    padding: 22px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--card-light);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    color: inherit;
}

body.dark-mode .portal-action-card {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.portal-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
body.dark-mode .portal-action-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.portal-action-card:active { transform: scale(0.98); }

.card-icon {
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.03);
}
body.dark-mode .card-icon { background: rgba(255, 255, 255, 0.06); }

.card-text { flex: 1; }

.card-text h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-text p {
    font-size: 0.83rem;
    opacity: 0.75;
    line-height: 1.4;
}

.card-arrow {
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0.3;
    transition: transform 0.25s, opacity 0.25s;
    margin-left: 8px;
    align-self: center;
}

.portal-action-card:hover .card-arrow {
    transform: translateX(6px);
    opacity: 0.9;
}

.card-offer { border-top: 4px solid var(--color-success); }
.card-offer .card-text h2 { color: var(--color-success); }

.card-need { border-top: 4px solid var(--color-critical); }
.card-need .card-text h2 { color: var(--color-critical); }

.card-map { border-top: 4px solid var(--col-blue); }
.card-map .card-text h2 { color: var(--col-blue); }
body.dark-mode .card-map .card-text h2 { color: #64b5f6; }

.welcome-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.75;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
body.dark-mode .welcome-footer { border-top-color: var(--border-dark); }

.theme-toggle-welcome {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 20px;
    color: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
body.dark-mode .theme-toggle-welcome { border-color: var(--border-dark); }
.theme-toggle-welcome:hover { background: rgba(0,0,0,0.05); }

/* ============================================
   MAP VIEW & DASHBOARD
   ============================================ */
#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.map-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: calc(100vw - 28px);
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
}

.home-btn {
    background: var(--col-blue);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,56,147,0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
.home-btn:hover { transform: scale(1.04); }

.map-bar-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.map-bar-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.map-bar-title {
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

#sidebar {
    width: var(--sidebar-width);
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    position: relative;
    border-right: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}
body.dark-mode #sidebar { border-right-color: var(--border-dark); }

#sidebar-header {
    padding: 16px;
    padding-top: 60px;
    border-bottom: 1px solid var(--border-light);
}
body.dark-mode #sidebar-header { border-bottom-color: var(--border-dark); }

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

.logo-section { display: flex; align-items: center; gap: 10px; }

.logo-section h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #d3a400 0%, var(--col-blue) 60%, var(--col-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle { font-size: 0.78rem; font-weight: 500; opacity: 0.7; }
.header-controls { display: flex; gap: 6px; }

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
body.dark-mode .icon-btn { border-color: var(--border-dark); }
.icon-btn:hover { background: rgba(0,0,0,0.05); }

.emergency-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(206,17,38,0.08);
    border: 1px solid rgba(206,17,38,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
}
.call-link { color: var(--color-critical); text-decoration: none; }

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-critical);
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.disclaimer-banner {
    margin: 10px 14px 4px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(0,56,147,0.05), rgba(252,209,22,0.05));
    border: 1px solid rgba(0,56,147,0.15);
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    line-height: 1.45;
}
.disclaimer-title { font-weight: 700; color: var(--col-blue); margin-bottom: 4px; font-size: 0.8rem; }
body.dark-mode .disclaimer-title { color: #64b5f6; }
.disclaimer-banner p { opacity: 0.85; }

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}
.stats-container.stats-grid-7 {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px 10px;
}
body.dark-mode .stats-container { border-bottom-color: var(--border-dark); }

.stat-box {
    background: var(--card-light);
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-light);
}
body.dark-mode .stat-box { background: var(--card-dark); border-color: var(--border-dark); }

.stat-icon { font-size: 1.1rem; display: block; margin-bottom: 2px; }
.stat-value { font-size: 1.2rem; font-weight: 800; display: block; line-height: 1.2; }
.stat-value.critical { color: var(--color-critical); }
.stat-value.success { color: var(--color-success); }
.stat-value.shelter-color { color: var(--color-shelter); }
.stat-value.kitchen-color { color: #e67e22; }
.stat-value.hospital-color { color: #d92525; }
.stat-value.pet-color { color: #00b894; }
.stat-value.volunteer-color { color: #0984e3; }
.stat-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; font-weight: 600; }

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    padding: 0 4px;
}
body.dark-mode .tabs { border-bottom-color: var(--border-dark); }

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 2px 8px;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.72rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0.6;
}
.tab-icon { font-size: 1.1rem; }
.tab-btn.active { opacity: 1; border-bottom-color: var(--col-blue); color: var(--col-blue); }
body.dark-mode .tab-btn.active { color: #64b5f6; border-bottom-color: #64b5f6; }

.tab-text {
    font-size: 0.72rem;
    font-weight: 700;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 110px 16px; /* 110px bottom padding clears floating call 123 button completely! */
    box-sizing: border-box;
}

.tab-pane { display: none; animation: fadeSlideIn 0.25s ease; padding-bottom: 20px; }
.tab-pane.active { display: block; }

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

.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(128,128,128,0.3);
    border-radius: 10px;
}

/* --- Collapsible Sections --- */
.section {
    margin-top: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}
body.dark-mode .section {
    border-color: var(--border-dark);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.02);
    transition: background 0.2s ease;
    margin: 0;
}
body.dark-mode .section-header {
    background: rgba(255, 255, 255, 0.03);
}
.section-header:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.dark-mode .section-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.chevron {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    opacity: 0.6;
}
.section.collapsed .chevron {
    transform: rotate(-90deg);
}
.section.collapsed .section-content {
    display: none;
}

.section-content {
    padding: 12px 14px;
    border-top: 1px solid var(--border-light);
}
body.dark-mode .section-content {
    border-top-color: var(--border-dark);
}

/* Tips list */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tips-list li {
    font-size: 0.8rem;
    line-height: 1.4;
    padding-left: 20px;
    position: relative;
    color: var(--text-main);
}
.tips-list li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: var(--col-blue);
    font-weight: bold;
}

/* Evaluated Zones Grid */
.zones-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Ultra Professional Offline Backup & Share Section --- */
.share-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
body.dark-mode .share-section {
    border-color: var(--border-dark);
}

.share-section h3 {
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}

.share-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.35;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: white;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.share-btn:active {
    transform: translateY(0);
}

.share-btn.backup {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}
.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0c85d0);
}
.share-btn.copy {
    background: linear-gradient(135deg, #003893, #002466);
}

/* --- Admin Subtabs Navigation Pills --- */
.admin-subtabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.admin-subtab-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
body.dark-mode .admin-subtab-btn {
    border-color: var(--border-dark);
}
.admin-subtab-btn.active {
    background: var(--col-blue);
    color: white;
    border-color: var(--col-blue);
}

/* --- Missing Persons Header & List --- */
.missing-header {
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(142, 68, 173, 0.08);
    border: 1px solid rgba(142, 68, 173, 0.2);
    border-radius: var(--radius-sm);
}
.missing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Route details --- */
.route-details {
    margin-top: 10px;
    display: flex;
    gap: 14px;
}
.route-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Alert Box */
.alert-box {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}
.critical-alert {
    background: rgba(206,17,38,0.07);
    border: 1px solid rgba(206,17,38,0.2);
}
.alert-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.alert-header h3 { color: var(--color-critical); font-size: 0.95rem; font-weight: 700; }
.alert-box p { font-size: 0.83rem; margin-bottom: 4px; opacity: 0.9; }

.alert-highlight {
    margin-top: 6px;
    padding: 8px;
    background: rgba(206,17,38,0.08);
    border-radius: 6px;
    font-weight: 600;
}
.alert-highlight a { color: var(--color-critical); text-decoration: none; }

/* Forms & Inputs */
.form-header { margin-bottom: 14px; }
.form-header h3 { font-size: 1rem; margin-bottom: 4px; }
.form-subtitle { font-size: 0.8rem; opacity: 0.7; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 0.8rem; font-weight: 600; opacity: 0.85; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: white;
    color: inherit;
    font-family: inherit;
    font-size: 0.88rem;
    transition: var(--transition);
    outline: none;
}
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-dark);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--col-blue);
    box-shadow: 0 0 0 3px rgba(0,56,147,0.15);
}

.select-styled { cursor: pointer; }
.small-text { font-size: 0.76rem; opacity: 0.7; margin-bottom: 8px; }
.coord-inputs { display: flex; gap: 8px; margin-bottom: 8px; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary { background: var(--col-blue); color: white; box-shadow: 0 2px 8px rgba(0,56,147,0.25); }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-secondary { background: rgba(128,128,128,0.12); color: inherit; border: 1px solid var(--border-light); }
body.dark-mode .btn-secondary { border-color: var(--border-dark); }
.btn-danger { background: var(--color-critical); color: white; box-shadow: 0 2px 8px rgba(217,37,37,0.3); }

.hidden { display: none !important; }

/* Places List */
.filter-controls { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.search-wrapper { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; opacity: 0.5; }
.search-wrapper input { padding-left: 36px; }
.list-count { font-size: 0.76rem; opacity: 0.6; margin-bottom: 6px; font-weight: 600; }

.places-list { list-style: none; }
.place-card {
    background: white;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid var(--border-light);
    border-left: 4px solid gray;
    transition: var(--transition);
    position: relative;
}
body.dark-mode .place-card { background: var(--card-dark); border-color: var(--border-dark); }
.place-card:hover { transform: translateX(3px); }
.place-card h4 { margin-bottom: 4px; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.place-card p { font-size: 0.78rem; opacity: 0.75; }

.type-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(128,128,128,0.12); }
.place-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.place-action-btn { width: 26px; height: 26px; border: none; border-radius: 6px; background: rgba(128,128,128,0.15); cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }

.verified-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(39,174,96,0.12); color: var(--color-success); font-weight: 700; font-size: 0.72rem; padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(39,174,96,0.3); }

.btn-copy-sm {
    background: rgba(128,128,128,0.15);
    border: 1px solid var(--border-light);
    color: inherit;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-copy-sm:hover { background: rgba(128,128,128,0.25); }

/* Verification Box */
.verification-box {
    background: linear-gradient(135deg, rgba(39,174,96,0.06), rgba(0,56,147,0.06));
    border: 1.5px dashed rgba(39,174,96,0.4);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 10px;
    margin-bottom: 12px;
}
body.dark-mode .verification-box { background: linear-gradient(135deg, rgba(39,174,96,0.12), rgba(0,56,147,0.15)); border-color: rgba(39,174,96,0.5); }
.verification-box-header { font-weight: 800; font-size: 0.82rem; color: var(--color-success); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.field-hint { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: 3px; margin-bottom: 6px; }

.photo-preview-box { margin-top: 8px; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light); max-height: 160px; text-align: center; background: #000; }
.photo-preview-box img { max-width: 100%; max-height: 160px; object-fit: cover; }
.photo-badge { position: absolute; bottom: 6px; right: 6px; background: rgba(39,174,96,0.9); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 12px; }

.geo-status-box { padding: 8px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.geo-status-box.success { background: rgba(39,174,96,0.12); color: var(--color-success); border: 1px solid rgba(39,174,96,0.3); }
.geo-status-box.error { background: rgba(217,37,37,0.12); color: var(--color-critical); border: 1px solid rgba(217,37,37,0.3); }

/* Map & Overlays */
#map-container { flex: 1; position: relative; }
#map { width: 100%; height: 100%; background: #e8eaf0; }
body.dark-mode #map { background: #0a0e18; }

.map-overlay { position: absolute; z-index: 1000; }

/* ============================================
   MAP MARKERS & ANIMATED PULSE EFFECTS
   ============================================ */

/* Epicenter Pulsing Beacon */
.pulse-icon {
    position: relative;
    width: 28px;
    height: 28px;
    background: #d92525;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(217, 37, 37, 0.8), 0 4px 14px rgba(0,0,0,0.4);
    animation: epicenterPulse 1.6s ease-out infinite;
}

@keyframes epicenterPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 37, 37, 0.8), 0 4px 14px rgba(0,0,0,0.4);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 24px rgba(217, 37, 37, 0), 0 4px 14px rgba(0,0,0,0.4);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 37, 37, 0), 0 4px 14px rgba(0,0,0,0.4);
        transform: scale(0.95);
    }
}

/* Base Custom Marker */
.custom-marker {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.custom-marker:hover {
    transform: scale(1.25) translateY(-3px);
    z-index: 9999 !important;
}

.marker-emoji {
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
    line-height: 1;
}

/* CENTROS DE ACOPIO (📦) - PULSO DE COLOR VERDE ALTA VISIBILIDAD */
.marker-collection {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    border-radius: 12px;
    animation: pulseMarkerGreen 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.marker-collection::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 16px;
    border: 2.5px solid rgba(39, 174, 96, 0.85);
    opacity: 0;
    animation: expandPulseGreen 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

@keyframes pulseMarkerGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.85), 0 4px 14px rgba(0,0,0,0.35);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(39, 174, 96, 0), 0 4px 18px rgba(0,0,0,0.45);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0), 0 4px 14px rgba(0,0,0,0.35);
    }
}

@keyframes expandPulseGreen {
    0% {
        transform: scale(0.85);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

/* REFUGIOS (🏠) - PULSO MORADO */
.marker-shelter {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    border-radius: 50%;
    animation: pulseMarkerPurple 2.2s infinite;
}

@keyframes pulseMarkerPurple {
    0% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.75), 0 4px 12px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(142, 68, 173, 0), 0 4px 14px rgba(0,0,0,0.4); }
    100% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0), 0 4px 12px rgba(0,0,0,0.3); }
}

/* SOLICITUDES URGENTES (🆘) - PULSO ROJO URGENTE */
.marker-need {
    background: linear-gradient(135deg, #d92525, #900c3f);
    border-radius: 10px;
    animation: pulseMarkerRed 1.3s infinite;
}

@keyframes pulseMarkerRed {
    0% { box-shadow: 0 0 0 0 rgba(217, 37, 37, 0.9), 0 4px 12px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 0 16px rgba(217, 37, 37, 0), 0 4px 18px rgba(0,0,0,0.5); }
    100% { box-shadow: 0 0 0 0 rgba(217, 37, 37, 0), 0 4px 12px rgba(0,0,0,0.4); }
}

/* HOSPITALES (🏥) */
.marker-hospital {
    background: linear-gradient(135deg, #d92525, #c0392b);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(217,37,37,0.4);
}

/* COMEDORES DE AYUDA (🍲) */
.marker-kitchen {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(230,126,34,0.4);
}

/* ACOPIO Y REFUGIO ANIMAL (🐾) */
.marker-pet {
    background: linear-gradient(135deg, #00b894, #00897b);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,184,148,0.4);
}

/* VOLUNTARIADO Y APOYO LOGÍSTICO (🤝) */
.marker-volunteer {
    background: linear-gradient(135deg, #0984e3, #0288d1);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(9,132,227,0.4);
}

/* COMPACT MAP LEGEND */
#map-legend {
    bottom: 24px;
    left: 20px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    max-width: 220px;
    transition: var(--transition);
}
#map-legend h4 { font-size: 0.8rem; margin-bottom: 6px; font-weight: 800; }
.legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 0.73rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.epicenter-dot { background: var(--color-critical); animation: pulseDot 1.5s ease-in-out infinite; }

.floating-controls { bottom: 24px; right: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab { width: 48px; height: 48px; border-radius: 14px; background: var(--col-blue); color: white; border: none; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,56,147,0.3); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.fab:hover { transform: scale(1.06); }
.fab-small { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; }

.fab-add-center {
    background: var(--color-success) !important;
    box-shadow: 0 4px 16px rgba(39,174,96,0.4) !important;
}

.mobile-emergency-call-fab {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 1002;
    background: var(--color-critical);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(217,37,37,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(217,37,37,0.4); }
    50% { box-shadow: 0 4px 24px rgba(217,37,37,0.7); }
}

#route-panel { top: 60px; right: 20px; padding: 14px; border-radius: var(--radius); width: 250px; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.modal-content { position: relative; width: 92%; max-width: 460px; max-height: 88vh; overflow-y: auto; padding: 22px; border-radius: var(--radius); }
.modal-content.modal-admin-wide { max-width: 820px; }
.modal-actions { display: flex; gap: 8px; margin-top: 8px; }
.modal-actions .btn-primary { flex: 2; }
.modal-actions .btn-danger { flex: 1; }
.modal-close { top: 14px; right: 14px; position: absolute; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: inherit; }

/* ADMIN PANEL STYLES */
.admin-badge { background: #8e44ad; color: white; font-size: 0.68rem; font-weight: 800; padding: 3px 8px; border-radius: 12px; }
.admin-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.admin-stat-card { padding: 12px; border-radius: var(--radius-sm); background: var(--card-light); border: 1px solid var(--border-light); text-align: center; }
body.dark-mode .admin-stat-card { background: var(--card-dark); border-color: var(--border-dark); }
.admin-stat-card .val { font-size: 1.4rem; font-weight: 800; display: block; color: var(--col-blue); }

.admin-table-wrapper { overflow-x: auto; margin-top: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; text-align: left; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
body.dark-mode .admin-table th, body.dark-mode .admin-table td { border-bottom-color: var(--border-dark); }
.admin-table th { background: rgba(0,0,0,0.03); font-weight: 800; }
body.dark-mode .admin-table th { background: rgba(255,255,255,0.05); }

.admin-selfie-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-light); cursor: pointer; }

/* Toasts */
#toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: rgba(26, 29, 46, 0.92); color: white; padding: 10px 18px; border-radius: 30px; font-size: 0.82rem; font-weight: 500; animation: toastIn 0.3s ease, toastOut 0.4s ease 2.6s forwards; backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); white-space: nowrap; }

@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

.sidebar-footer { padding: 10px 14px; border-top: 1px solid var(--border-light); text-align: center; font-size: 0.72rem; opacity: 0.6; }
body.dark-mode .sidebar-footer { border-top-color: var(--border-dark); }
.sidebar-footer a { color: var(--color-info); text-decoration: none; }

/* --- RESPONSIVE ADJUSTMENTS --- */
.mobile-only { display: none; }

.mobile-menu-fab {
    position: fixed;
    top: 60px;
    left: 14px;
    z-index: 1002;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--col-blue);
    color: white;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,56,147,0.35);
}

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .welcome-portal-view { padding: 20px 14px 30px; justify-content: flex-start; }
    .welcome-portal-card-container { padding: 20px 16px; border-radius: var(--radius); }
    .welcome-header h1 { font-size: 1.8rem; }
    .welcome-subtitle { font-size: 0.85rem; }
    .welcome-actions-grid { grid-template-columns: 1fr; gap: 12px; }
    .portal-action-card { padding: 16px; }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        z-index: 2000;
    }

    #sidebar.open { transform: translateX(0); }
    #map-container { width: 100%; height: 100%; }
    .floating-controls { bottom: 80px; right: 14px; }

    /* ULTRA COMPACT LEGEND FOR MOBILE */
    #map-legend {
        bottom: 80px;
        left: 12px;
        max-width: 160px;
        padding: 6px 8px;
        font-size: 0.65rem;
        border-radius: 10px;
    }
    #map-legend h4 { font-size: 0.7rem; margin-bottom: 3px; }
    .legend-item { gap: 4px; margin-bottom: 2px; font-size: 0.62rem; }
    .legend-dot { width: 7px; height: 7px; }

    #route-panel { top: 60px; right: 12px; width: 220px; }
    .mobile-emergency-call-fab { bottom: 20px; left: 14px; padding: 10px 16px; }
    .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-container { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px 10px; }
    .stat-value { font-size: 1.15rem; }
    .contacts-grid { grid-template-columns: 1fr; }
    .welcome-footer { flex-direction: column; gap: 8px; }
}

/* ============================================
   LIVE CONNECTED USERS BADGE & MISSING STYLES
   ============================================ */
.live-connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 8px 0;
    user-select: none;
}
body.dark-mode .live-connected-badge {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: livePulse 1.4s ease-in-out infinite;
    display: inline-block;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.map-live-badge {
    margin: 0;
    padding: 3px 8px;
    font-size: 0.7rem;
}

/* Missing Persons Card in Welcome Portal */
.card-missing {
    border-left: 5px solid #8e44ad;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.05), rgba(108, 52, 131, 0.05));
}
.card-missing:hover {
    border-left-color: #9b59b6;
    box-shadow: 0 8px 24px rgba(142, 68, 173, 0.18);
}

/* Contact Admin Portal Button */
.contact-admin-bar {
    margin-top: 14px;
    text-align: center;
}
.btn-contact-portal {
    background: linear-gradient(135deg, rgba(0, 56, 147, 0.1), rgba(252, 209, 22, 0.1));
    border: 1px solid rgba(0, 56, 147, 0.25);
    color: var(--col-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}
body.dark-mode .btn-contact-portal {
    color: #64b5f6;
    border-color: rgba(100, 181, 246, 0.3);
}
.btn-contact-portal:hover {
    background: var(--col-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 56, 147, 0.25);
}

/* Missing Persons Photo Preview & Thumbnails */
.approval-notice-banner {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(142, 68, 173, 0.08);
    border: 1px solid rgba(142, 68, 173, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    color: #8e44ad;
}
body.dark-mode .approval-notice-banner { color: #d291ff; }

.missing-thumb-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--col-blue);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.missing-thumb-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: rgba(128,128,128,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.photo-preview-box {
    margin-top: 8px;
    text-align: center;
    padding: 8px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
}
.photo-preview-box img {
    max-width: 140px;
    max-height: 140px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.photo-badge {
    display: block;
    font-size: 0.72rem;
    color: var(--color-success);
    font-weight: 700;
    margin-top: 4px;
}
.field-hint {
    font-size: 0.72rem;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* ============================================
   STAT CARDS CLICKABLE FILTER & INTENSE PULSE
   ============================================ */
.stat-box {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    user-select: none;
}
.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.stat-box.active-filter {
    border: 2px solid var(--col-blue) !important;
    background: rgba(0, 56, 147, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.25), 0 4px 14px rgba(0,0,0,0.15) !important;
    transform: scale(1.05);
}
body.dark-mode .stat-box.active-filter {
    border-color: #64b5f6 !important;
    background: rgba(100, 181, 246, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.3) !important;
}

/* Category-specific Active Filter Borders */
.stat-box[data-filter="need"].active-filter { border-color: #d92525 !important; box-shadow: 0 0 0 3px rgba(217, 37, 37, 0.35) !important; }
.stat-box[data-filter="shelter"].active-filter { border-color: #8e44ad !important; box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.35) !important; }
.stat-box[data-filter="collection"].active-filter { border-color: #27ae60 !important; box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.35) !important; }
.stat-box[data-filter="kitchen"].active-filter { border-color: #e67e22 !important; box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.35) !important; }
.stat-box[data-filter="hospital"].active-filter { border-color: #d92525 !important; box-shadow: 0 0 0 3px rgba(217, 37, 37, 0.35) !important; }
.stat-box[data-filter="pet"].active-filter { border-color: #00b894 !important; box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.35) !important; }
.stat-box[data-filter="volunteer"].active-filter { border-color: #0984e3 !important; box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.35) !important; }

/* Filtered Marker Intense Pulse Animation - Safe for Leaflet GPS Translate3D */
.marker-highlight-pulse {
    z-index: 99999 !important;
    box-shadow: 0 0 0 4px #ffffff, 0 0 20px rgba(0,0,0,0.5) !important;
    animation: markerHighlightGlow 1.2s infinite ease-in-out !important;
}

.marker-highlight-pulse .marker-emoji {
    display: inline-block;
    animation: emojiPulseScale 1.2s infinite ease-in-out !important;
}

.marker-highlight-pulse::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 3px solid currentColor;
    opacity: 0;
    animation: markerHaloExpand 1.2s infinite ease-out;
    pointer-events: none;
}

@keyframes markerHighlightGlow {
    0%, 100% {
        box-shadow: 0 0 0 3px #ffffff, 0 0 16px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px #ffffff, 0 0 32px rgba(0, 0, 0, 0.7);
    }
}

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

@keyframes markerHaloExpand {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ============================================
   INFORMATIVE WEB PORTAL & HISTORICAL ARCHIVE
   Respuesta Terremoto Colombia 2026
   ============================================ */

.informative-portal-view {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.portal-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Sticky Navigation */
.portal-nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
body.dark-mode .portal-nav-bar {
    background: rgba(15, 23, 42, 0.92);
}

.portal-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.portal-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
}

.portal-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--col-blue);
}
body.dark-mode .portal-brand-title {
    color: #60a5fa;
}

.portal-brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.portal-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.portal-nav-links .nav-link {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: 6px 4px;
}

.portal-nav-links .nav-link:hover {
    color: var(--col-blue);
}
body.dark-mode .portal-nav-links .nav-link:hover {
    color: #93c5fd;
}

.portal-nav-links .nav-highlight {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 700;
}
body.dark-mode .portal-nav-links .nav-highlight {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
}

.portal-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-live-badge {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 20px;
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #15803d;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
body.dark-mode .nav-live-badge {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
}

.btn-direct-map-nav {
    background: linear-gradient(135deg, var(--col-blue), #1e40af);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 56, 147, 0.25);
    transition: all 0.2s ease;
}
.btn-direct-map-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 56, 147, 0.35);
}

/* Hero Section */
.portal-hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 56, 147, 0.05) 0%, rgba(217, 37, 37, 0.03) 50%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}
body.dark-mode .portal-hero-section {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 960px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 56, 147, 0.08);
    color: var(--col-blue);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 56, 147, 0.18);
}
body.dark-mode .hero-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.hero-title .highlight-text {
    color: var(--col-red);
    background: linear-gradient(135deg, var(--col-red), #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode .hero-title .highlight-text {
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-meta {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-primary);
    max-width: 820px;
    margin: 0 auto 36px;
    opacity: 0.92;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #003893 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 56, 147, 0.35);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.btn-hero-primary small {
    font-size: 0.76rem;
    font-weight: 500;
    opacity: 0.85;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 56, 147, 0.45);
}

.btn-hero-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.btn-hero-secondary:hover {
    border-color: var(--col-blue);
    transform: translateY(-2px);
    color: var(--col-blue);
}

.hero-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.03);
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: 10px;
}
body.dark-mode .hero-live-indicator {
    background: rgba(255,255,255,0.05);
}

/* Metrics Section */
.portal-metrics-section {
    padding: 70px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.section-header-centered {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--col-blue);
    margin-bottom: 10px;
}
body.dark-mode .section-kicker {
    color: #60a5fa;
}

.section-header-centered h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-header-centered p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.metric-card.highlight-card {
    background: linear-gradient(135deg, rgba(0, 56, 147, 0.04), rgba(217, 37, 37, 0.04));
    border-color: rgba(0, 56, 147, 0.3);
}
body.dark-mode .metric-card.highlight-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(185, 28, 28, 0.2));
    border-color: rgba(59, 130, 246, 0.4);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.metric-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--col-blue);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 4px;
}
body.dark-mode .metric-number {
    color: #60a5fa;
}

.metric-unit {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* General Portal Sections */
.portal-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.portal-section.bg-alt {
    background: rgba(0, 56, 147, 0.02);
}
body.dark-mode .portal-section.bg-alt {
    background: rgba(255, 255, 255, 0.02);
}

/* Section 1: Measures Grid */
.measures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.measure-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.measure-card:hover {
    transform: translateY(-3px);
    border-color: var(--col-blue);
}

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

.measure-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--col-blue);
    background: rgba(0, 56, 147, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}
body.dark-mode .measure-badge {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.2);
}

.measure-icon {
    font-size: 1.6rem;
}

.measure-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.measure-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.measure-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
}

.measure-bullets li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.measure-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 800;
}

/* Section 2: International Grid */
.international-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.intl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}
.intl-card:hover {
    transform: translateY(-2px);
    border-color: #f59e0b;
}

.intl-flag-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.intl-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.intl-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Section 3: Documentary Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 50px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #000000;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.gallery-caption {
    padding: 22px 20px;
}

.gallery-caption h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.gallery-caption p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Testimonials */
.testimonials-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.testimonials-heading {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.testimonial-card {
    margin: 0;
    background: rgba(0, 56, 147, 0.02);
    border-left: 4px solid var(--col-blue);
    padding: 20px 24px;
    border-radius: 0 16px 16px 0;
}
body.dark-mode .testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: #60a5fa;
}

.testimonial-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-card footer {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.testimonial-card footer strong {
    color: var(--text-primary);
}

/* Section 4: Platform Archive */
.platform-archive-section {
    padding: 80px 0;
}

.archive-mission-announcement {
    background: var(--bg-card);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(245, 158, 11, 0.08), 0 2px 8px rgba(0,0,0,0.04);
}
body.dark-mode .archive-mission-announcement {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(245, 158, 11, 0.4);
}

.archive-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
body.dark-mode .archive-badge-pill {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
}

.archive-mission-announcement h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.announcement-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    max-width: 860px;
    margin: 0 auto 12px;
}

.announcement-sub {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 840px;
    margin: 0 auto 32px;
}

.archive-stats-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.archive-stat-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}
.archive-stat-item strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--col-blue);
}
body.dark-mode .archive-stat-item strong {
    color: #60a5fa;
}
.archive-stat-item span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.platform-launch-box {
    margin-bottom: 32px;
}

.btn-launch-map-main {
    background: linear-gradient(135deg, #003893 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    padding: 20px 36px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 56, 147, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    max-width: 680px;
    width: 100%;
}
.btn-launch-map-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 56, 147, 0.45);
}

.btn-launch-map-main .btn-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.btn-launch-map-main .btn-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.btn-launch-map-main .btn-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.btn-launch-map-main .btn-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 4px;
}

.btn-launch-map-main .btn-arrow {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.archive-quick-actions {
    border-top: 1px dashed var(--border-color);
    padding-top: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.quick-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.quick-btn-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip-btn:hover {
    border-color: var(--col-blue);
    color: var(--col-blue);
    transform: translateY(-1px);
}

/* Map Archive Notice Bar inside Map View */
.map-archive-notice-bar {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: var(--text-primary);
}
body.dark-mode .map-archive-notice-bar {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(245, 158, 11, 0.5);
}

.btn-return-portal-pill {
    background: var(--col-blue);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.btn-return-portal-pill:hover {
    background: #1e40af;
}

/* Main Footer */
.portal-main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--col-blue);
}
body.dark-mode .footer-brand-name {
    color: #60a5fa;
}

.footer-brand-tag {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 460px;
}

.footer-presence-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #15803d;
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
}
body.dark-mode .footer-presence-note {
    color: #4ade80;
}

.footer-col-links h4,
.footer-col-contact h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links li {
    margin-bottom: 10px;
}

.footer-col-links a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}
.footer-col-links a:hover {
    color: var(--col-blue);
}

.footer-col-contact p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.footer-col-contact p strong {
    color: var(--text-primary);
}

.btn-footer-contact {
    margin-top: 14px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-footer-contact:hover {
    border-color: var(--col-blue);
    color: var(--col-blue);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding: 18px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-scroll-top {
    background: transparent;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}
.btn-scroll-top:hover {
    color: var(--col-blue);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .measures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .international-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .portal-nav-links {
        display: none; /* Collapsed on mobile to keep header clean */
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-lead {
        font-size: 0.98rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .measures-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .archive-mission-announcement {
        padding: 30px 20px;
    }
    .btn-launch-map-main {
        padding: 16px 20px;
    }
    .map-archive-notice-bar {
        flex-direction: column;
        align-items: flex-start;
        top: 60px;
    }
}

@media (max-width: 480px) {
    .portal-brand-sub {
        display: none;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .archive-stat-item {
        min-width: 80px;
        padding: 8px 12px;
    }
}
