:root {
    --bg-color: #f0f4f8;
    --text-color: #0f172a;
    --card-bg: #ffffff;
    --border-color: #d1d5db;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --header-bg: #ffffff;
    --header-text: #0f172a;
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --glow: rgba(56, 189, 248, 0.5);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --notice-bg: #0369a1;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    filter: brightness(1.2);
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    /* Mobile-first: Fluid with padding */
    padding: 0 16px;
    margin: 0 auto;
}

/* =========================================
   HEADER (Mobile Default)
   ========================================= */
.main-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: flex-end; /* Default right-aligned for all mobile */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-direction: row-reverse; /* Default right-aligned for all mobile */
    text-align: right;
    color: inherit;
    text-decoration: none;
}

.logo {
    width: 42px;
    /* Smaller mobile logo */
    height: 42px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Default right-aligned for all mobile */
}

.site-title {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.8;
}

.site-lema {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.header-actions {
    display: none;
    /* Hide desktop actions on mobile by default */
    margin-left: 0;
}

.mobile-only-btn {
    display: inline-block;
}

/* --- HOME PAGE MOBILE OVERRIDES REMOVED: Default is now right-aligned --- */

/* =========================================
   COMPONENTS
   ========================================= */
/* Buttons */
.btn-toggle {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.mobile-filter-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Location Notice */
.location-notice {
    background: var(--notice-bg);
    color: white;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.notice-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-notice {
    background: white;
    color: var(--notice-bg);
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-notice.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
/* Filters */
.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 col mobile */
    gap: 15px;
    margin: 20px 0 15px 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group.collapsible {
    overflow: hidden;
    transition: max-height 280ms ease, opacity 200ms ease;
    max-height: 800px;
}

.filter-group.collapsible.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    display: block;
    /* Ensure transition works */
}

.filter-group label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}

.filter-group input {
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
    width: 100%;
}

.search-counter {
    font-weight: 700;
    color: var(--accent);
    margin-left: 8px;
}

.section-separator {
    border: 0;
    border-top: 1.5px solid var(--border-color);
    margin: 0 0 35px 0;
    opacity: 0.6;
}

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

/* Main Layout: Mobile = 1 column */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Results */
.results-list {
    list-style: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-height: 60vh;
    /* Shorter on mobile */
    overflow-y: auto;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
}

.result-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dist-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.placeholder-text {
    padding: 30px;
    text-align: center;
    color: var(--accent);
    font-style: italic;
}

/* Details Panel (Desktop & Mobile Map Container) */
.detail-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
    /* Space between list and map on mobile */
}

.generate-btn {
    background-color: var(--accent);
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

.clear-btn {
    background-color: #64748b;
    color: white;
    width: 100%;
}

.action-btn.generate-btn:hover {
    background-color: var(--accent-hover);
}

.action-btn.clear-btn:hover {
    background-color: #475569;
}

/* Detail Overlay (Mobile) */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.detail-overlay.active {
    display: flex;
}

.detail-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.overlay-back {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: none;
    border: none;
    color: var(--header-text);
    font-weight: bold;
    font-size: 1rem;
}

.detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
}

/* Detail Content Styles */
.detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-description {
    font-size: 1rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-card,
.info-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.info-card label,
.info-item label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
}

.info-card span,
.info-item span {
    font-size: 0.9rem;
    word-break: break-all;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.btn-call {
    background-color: #059669;
}

.btn-web {
    background-color: #2563eb;
}

.btn-map {
    background-color: #d97706;
}

#map,
#map-mobile,
#contact-map,
#heatMap {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    #contact-map {
        height: 100%;
        min-height: 400px;
        margin-top: 0;
    }

    #heatMap {
        height: 500px;
        /* Taller for heatmaps */
    }
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 16px;
    margin-top: 60px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile 1 col */
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--glow);
}

.license-img {
    height: 24px;
    margin: 10px auto;
    filter: brightness(0.8);
    display: inline-block;
}

.license-img:hover {
    filter: none;
}

/* Bottom Footer */
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.75rem;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apa-text {
    font-family: serif;
    font-style: italic;
    margin-bottom: 10px;
}

.license-box {
    margin-top: 10px;
}

.license-box p {
    margin-bottom: 10px;
}

/* =========================================
   DESKTOP VIEW (>= 768px)
   ========================================= */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }

    /* Header */
    .main-header {
        padding: 20px 0;
    }

    .logo {
        width: 67px;
        height: 67px;
    }

    .site-title {
        font-size: 0.95rem;
    }

    .site-lema {
        font-size: 1.2rem;
    }

    /* Reset Mobile Overrides for Desktop */
    .header-container {
        justify-content: space-between;
    }

    .brand {
        flex-direction: row;
        text-align: left;
    }

    .brand-text {
        align-items: flex-start;
    }

    .header-actions {
        display: flex;
        /* Show actions */
    }

    .mobile-filter-toggle {
        display: none;
        /* Hide toggle button */
    }

    .mobile-only-btn {
        display: none !important;
    }

    /* Content Layout */
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-grid .filter-group:nth-child(1) {
        grid-column: 1 / -1;
    }

    .filter-group.collapsible.collapsed {
        display: block;
        /* Always show filters on desktop */
        max-height: none;
        opacity: 1;
    }

    .main-layout {
        grid-template-columns: 1fr 2fr;
    }

    /* Detail Panel (Inline) */
    .detail-overlay {
        display: none !important;
        /* Never show overlay on desktop */
    }

    .detail-panel {
        display: block;
        /* Show inline panel */
        position: sticky;
        top: 100px;
        margin-top: 0;
        /* Reset mobile margin */
        padding: 30px;
    }

    .results-list {
        max-height: 80vh;
    }

    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    #map {
        height: 350px;
        border: 2px solid var(--border-color);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }
}

/* =========================================
   STATS & NUMERALIA
   ========================================= */
.stats-summary {
    text-align: center;
    background: var(--accent);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.stats-summary h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 100px;
}

.legend-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-data {
    display: flex;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.8;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.comm-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comm-percentage {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-top: 10px;
}

.comm-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.mun-nav {
    display: flex;
    overflow-x: auto;
    padding: 15px 16px;
    gap: 10px;
    background: var(--bg-color);
    width: 100%;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mun-link {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mun-link.active,
.mun-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mun-nav {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* =========================================
   UTILITIES & PRINT
   ========================================= */
.btn-refresh {
    background: transparent;
    border: 1px solid var(--footer-text);
    color: var(--footer-text);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin: 15px auto;
    display: block;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--footer-text);
    color: var(--footer-bg);
}

.btn-copy-link {
    margin-top: 12px;
    padding: 15px;
    width: 100%;
    background: #334155;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-copy-link.copied {
    background: #059669 !important;
}

@media print {
    @page {
        margin: 1cm;
    }

    body {
        background: white !important;
        color: black !important;
    }

    body * {
        visibility: hidden;
    }

    /* Print Detail View only */
    #detailContent,
    #detailContent * {
        visibility: visible;
    }

    #detailView {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
        background: white;
        color: black;
        border: none;
    }

    .main-header,
    .main-footer,
    .header-actions,
    .filter-toggle {
        display: none !important;
    }
}

/* =========================================
   ENHANCED ACTIVITY CARDS
   ========================================= */
.activity-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 8px 16px -4px rgb(0 0 0 / 0.15);
    transform: translateY(-2px);
}

.activity-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    cursor: pointer;
    user-select: none;
}

.activity-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.activity-card-content {
    padding: 20px;
    transition: all 0.3s ease;
}

.activity-bar-item {
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.activity-bar-item:hover {
    transform: translateX(5px);
}

.activity-bar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.activity-rank {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 36px;
    text-align: center;
}

.activity-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    min-width: 150px;
}

.activity-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.activity-stats strong {
    color: var(--text-color);
}

.activity-percentage {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.activity-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.activity-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .activity-bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-stats {
        width: 100%;
        justify-content: space-between;
    }

    .activity-card-header h3 {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .activity-card-content {
        padding: 25px;
    }

    .activity-bar-item {
        margin-bottom: 25px;
    }

    .activity-bar-container {
        height: 14px;
    }
}

/* =========================================
   COLONIAS FILTERS
   ========================================= */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px;
    margin-top: 5px;
    flex: 1;
}

/* Custom scrollbar */
.checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.checkbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.checkbox-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.checkbox-item {
    margin-bottom: 4px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.checkbox-item label {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    width: 100%;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Moved from colonias.html */
.list-search {
    width: 100%;
    padding: 8px 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: var(--text-color);
}

.list-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.1);
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.btn-select-all {
    margin-top: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-color);
    transition: all 0.2s;
}

.btn-select-all:hover {
    background: var(--bg-color);
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================
   URL DISPLAY & ID STYLES
   ========================================= */
.url-display-text,
.detail-id {
    font-size: 0.75rem;
    text-align: right;
    font-style: italic;
    color: #64748b;
    margin-top: 5px;
    word-break: break-all;
}

.detail-id {
    margin-top: 2px;
    opacity: 0.8;
}

/* =========================================
   TOP ACTIVITIES LIST STYLES
   ========================================= */
.activities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.activity-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.activity-count {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(2, 132, 199, 0.1);
    /* Light accent background */
    padding: 2px 8px;
    border-radius: 12px;
}
/* Map Switcher Styles (Replicated from transporte/style.css) */
.controls-row {
    width: 100%;
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.map-switcher {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    flex: 1;
    border: 1px solid var(--border-color);
}

.map-switcher select {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
}

.map-switcher label {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
}

/* Mobile Adjustments for Switcher */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
    }
    
    .map-switcher {
        width: 100%;
    }
}
