/* ========================================
   6. BODY & LAYOUT STYLES
   ======================================== */

.news-img-container img {
    transition: none; /* Prevent image transitions from being affected */
}
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 49px !important;
    padding-top: 70px;
}

/* ========================================
   9. CAROUSEL STYLES
   ======================================== */

/* Subtle shadow overlay */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Dark theme adjustment */
[data-theme="dark"] .carousel-item::before {
    background: rgba(0, 0, 0, 0.3);
}


/* ========================================
   12. NEWS BAR STYLES
   ======================================== */

/* News Bar Styles */
.news-bar-container {
    transition: transform 0.3s ease;
}

.news-bar-container.hidden {
    transform: translateY(100%);
}

.news-bar {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #ffd700;
    min-height: 50px;
}

.news-label {
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    background-color: #ffffff;
    color: #2a5298;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.news-content {
    white-space: nowrap;
}

.news-ticker {
    animation: scroll-news 45s linear infinite;
    width: max-content;
}
/* News Bar Speed Control CSS */
        .news-ticker {
            animation: slowScroll 120s linear infinite !important;
        }
@keyframes slowScroll {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }
        
        /* Override any existing animations */
        .news-ticker * {
            animation: none !important;
            transition: none !important;
        }


.news-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.news-item i {
    color: #ffd700;
}

/* Dark theme adjustments for news bar */
[data-theme="dark"] .news-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top-color: #ffd700;
}

[data-theme="dark"] .news-label {
    background-color: #374151;
    color: #f3f4f6;
}

[data-theme="dark"] .news-item {
    color: #f3f4f6;
}

[data-theme="dark"] .news-item i {
    color: #ffd700;
}

/* Pause animation on hover */
.news-ticker:hover {
    animation-play-state: paused;
}

/* ========================================
   13. WHATSAPP FLOAT BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 60px !important;
    left: 30px;
    z-index: 100;
}

/* ========================================
   15. NAVBAR ADDITIONAL STYLES
   ======================================== */
.bg-white {
    background-color: var(--card-bg) !important;
}
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   16. MAP LEGEND STYLES
   ======================================== */

.map-legend-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.map-legend-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.legend-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.legend-title {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legend-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.legend-items {
    padding-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.legend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.legend-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 1rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legend-content {
    flex: 1;
}

.legend-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.legend-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Dark theme adjustments */
[data-theme="dark"] .map-legend-container {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .legend-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .legend-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legend-color-indicator {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .map-legend-container {
        padding: 1.5rem;
    }
    
    .legend-item {
        margin-bottom: 1rem;
    }
    
    .legend-color-indicator {
        width: 18px;
        height: 18px;
    }
    
    .legend-label {
        font-size: 0.9rem;
    }
    
    .legend-description {
        font-size: 0.8rem;
    }
}

 /* map legend styles */
 .legend-color-indicator.map-working {
    background-color: #00FF00; /* Exact green from your map */
}

.legend-color-indicator.map-development {
    background-color: #FFFF00; /* Exact yellow from your map */
}

.legend-color-indicator.map-repair {
    background-color: #FF0000; /* Exact red from your map */
}