.ccmap-wrap { 
    position: relative;
    width: 100%;
    height: 100%;
}

.ccmap { 
    width: 100%; 
    height: 100%;
    min-height: 500px;
    border-radius: 0; 
    overflow: hidden; 
    box-shadow: none; 
    background: #0a0a0a;
    border: none;
}

/* Polyline hover effects */
.ccmap .leaflet-interactive {
    transition: stroke-width 0.2s ease, filter 0.2s ease;
    cursor: pointer !important;
}

.ccmap .leaflet-interactive:hover {
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 8px currentColor);
    cursor: pointer !important;
}

/* Single initial pulse animation for lines to show interactivity - no persistent glow */
.ccmap .leaflet-overlay-pane path {
    animation: line-pulse-hint 2s ease-in-out 1;
    animation-delay: 1.2s;
    animation-fill-mode: forwards;
}

@keyframes line-pulse-hint {
    0% { 
        filter: none;
    }
    50% { 
        filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor) brightness(1.3);
    }
    100% { 
        filter: none;
    }
}

/* Enhanced Leaflet controls */
.ccmap .leaflet-control-layers { 
    background: rgba(15, 15, 15, 0.98); 
    color: #fff; 
    border: 1px solid rgba(255, 208, 0, 0.25); 
    border-radius: 14px; 
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 
                0 0 0 1px rgba(255, 208, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ccmap .leaflet-control-layers.minimized {
    padding: 12px 16px;
    max-height: 56px;
    overflow: hidden;
}

.ccmap .leaflet-control-layers.minimized .leaflet-control-layers-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
}

.ccmap .leaflet-control-layers.minimized .leaflet-control-layers-separator {
    display: none;
}

.ccmap .leaflet-control-layers .layers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 208, 0, 0.25);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.ccmap .leaflet-control-layers.minimized .layers-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ccmap .leaflet-control-layers .layers-title {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    color: #FFD000;
    text-transform: uppercase;
    flex: 1;
    line-height: 1.2;
    display: flex;
    align-items: center;
    text-align: left;
}

.ccmap .leaflet-control-layers .layers-minimize {
    background: rgba(255, 208, 0, 0.1);
    border: 1px solid rgba(255, 208, 0, 0.3);
    color: #FFD000;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.ccmap .leaflet-control-layers .layers-minimize:hover {
    background: rgba(255, 208, 0, 0.2);
    border-color: rgba(255, 208, 0, 0.5);
    transform: scale(1.05);
}
.ccmap .leaflet-control-layers-toggle {
    background-image: none !important;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: 12px;
    width: 46px;
    height: 46px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 208, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ccmap .leaflet-control-layers-toggle:hover {
    background: rgba(25, 25, 25, 0.98);
    border-color: rgba(255, 208, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 208, 0, 0.2);
}
.ccmap .leaflet-control-layers-list { 
    color: #fff; 
    margin-top: 8px;
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}
.ccmap .leaflet-control-layers-base label,
.ccmap .leaflet-control-layers-overlays label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-height: 36px;
}

/* Fix nested span alignment */
.ccmap .leaflet-control-layers-base label > span,
.ccmap .leaflet-control-layers-overlays label > span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ccmap .leaflet-control-layers-base label:hover,
.ccmap .leaflet-control-layers-overlays label:hover {
    background: rgba(255, 208, 0, 0.12);
    padding-left: 10px;
    transform: translateX(2px);
}

.ccmap .leaflet-control-layers-separator {
    border-top: 1px solid rgba(255, 208, 0, 0.3);
    margin: 10px 0;
}

.ccmap input[type="checkbox"],
.ccmap input[type="radio"] {
    accent-color: #FFD000;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ========== ZOOM & FULLSCREEN CONTROLS ========== */

/* Leaflet bar container */
.ccmap .leaflet-bar { 
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 
                0 0 0 1px rgba(255, 208, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Base styles for all control buttons */
.ccmap .leaflet-bar a,
.ccmap .leaflet-control-zoom a,
.ccmap .leaflet-control-fullscreen a { 
    background: rgba(15, 15, 15, 0.98) !important;
    color: #FFD000 !important;
    border: 1px solid rgba(255, 208, 0, 0.3) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 42px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(20px) !important;
    background-image: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

/* Hover states */
.ccmap .leaflet-bar a:hover,
.ccmap .leaflet-control-zoom a:hover,
.ccmap .leaflet-control-fullscreen a:hover { 
    background: rgba(255, 208, 0, 0.15) !important;
    background-image: none !important;
    border-color: rgba(255, 208, 0, 0.5) !important;
    color: #FFE066 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.3) !important;
}

/* Zoom controls specific */
.ccmap .leaflet-control-zoom { 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 
                0 0 0 1px rgba(255, 208, 0, 0.15);
}

.ccmap .leaflet-control-zoom a { 
    border-radius: 0 !important;
}

.ccmap .leaflet-control-zoom a:first-child { 
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom: 1px solid rgba(255, 208, 0, 0.2) !important;
}

.ccmap .leaflet-control-zoom a:last-child { 
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Fullscreen control - specifically targeting the fullscreen button */
.ccmap .leaflet-control-zoom-fullscreen,
.ccmap .leaflet-control-zoom .fullscreen-icon {
    border-top: 1px solid rgba(255, 208, 0, 0.2) !important;
    border-radius: 0 !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    position: relative !important;
}

/* Fullscreen icon - using inline SVG as background */
.ccmap .leaflet-control-zoom-fullscreen,
.ccmap .leaflet-control-zoom .fullscreen-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23FFD000" d="m512 32v167.48a32 32 0 1 1 -64 0v-90.225l-119.134 119.134a32 32 0 0 1 -45.255-45.254l119.135-119.135h-90.226a32 32 0 0 1 0-64h167.48a32 32 0 0 1 32 32zm-512 448a32 32 0 0 0 32 32h167.48a32 32 0 1 0 0-64h-90.224l119.133-119.134a32 32 0 0 0 -45.255-45.255l-119.134 119.135v-90.225a32 32 0 0 0 -64 0z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
}

.ccmap .leaflet-control-zoom-fullscreen:hover,
.ccmap .leaflet-control-zoom .fullscreen-icon:hover {
    background: rgba(255, 208, 0, 0.15) !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23FFE066" d="m512 32v167.48a32 32 0 1 1 -64 0v-90.225l-119.134 119.134a32 32 0 0 1 -45.255-45.254l119.135-119.135h-90.226a32 32 0 0 1 0-64h167.48a32 32 0 0 1 32 32zm-512 448a32 32 0 0 0 32 32h167.48a32 32 0 1 0 0-64h-90.224l119.133-119.134a32 32 0 0 0 -45.255-45.255l-119.134 119.135v-90.225a32 32 0 0 0 -64 0z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
}

/* When in fullscreen mode - rotate icon 180deg */
.ccmap .leaflet-fullscreen-on .leaflet-control-zoom-fullscreen,
.ccmap .leaflet-fullscreen-on .fullscreen-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g transform="rotate(180 256 256)"><path fill="%23FFD000" d="m512 32v167.48a32 32 0 1 1 -64 0v-90.225l-119.134 119.134a32 32 0 0 1 -45.255-45.254l119.135-119.135h-90.226a32 32 0 0 1 0-64h167.48a32 32 0 0 1 32 32zm-512 448a32 32 0 0 0 32 32h167.48a32 32 0 1 0 0-64h-90.224l119.133-119.134a32 32 0 0 0 -45.255-45.255l-119.134 119.135v-90.225a32 32 0 0 0 -64 0z"/></g></svg>') !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
}

.ccmap .leaflet-fullscreen-on .leaflet-control-zoom-fullscreen:hover,
.ccmap .leaflet-fullscreen-on .fullscreen-icon:hover {
    background: rgba(255, 208, 0, 0.15) !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g transform="rotate(180 256 256)"><path fill="%23FFE066" d="m512 32v167.48a32 32 0 1 1 -64 0v-90.225l-119.134 119.134a32 32 0 0 1 -45.255-45.254l119.135-119.135h-90.226a32 32 0 0 1 0-64h167.48a32 32 0 0 1 32 32zm-512 448a32 32 0 0 0 32 32h167.48a32 32 0 1 0 0-64h-90.224l119.133-119.134a32 32 0 0 0 -45.255-45.255l-119.134 119.135v-90.225a32 32 0 0 0 -64 0z"/></g></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
}

/* Disabled state */
.ccmap .leaflet-bar a.leaflet-disabled,
.ccmap .leaflet-control-zoom a.leaflet-disabled {
    background: rgba(15, 15, 15, 0.5) !important;
    color: rgba(255, 208, 0, 0.3) !important;
    cursor: default !important;
    opacity: 0.5 !important;
}

.ccmap .leaflet-bar a.leaflet-disabled:hover,
.ccmap .leaflet-control-zoom a.leaflet-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Hide tooltips when popup is open */
.ccmap-wrap:has(.leaflet-popup) .leaflet-tooltip,
.leaflet-container:has(.leaflet-popup) .leaflet-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Tooltips styled with brand black/yellow */
.leaflet-tooltip.ccmap-tooltip,
.ccmap-tooltip { 
    background: rgba(18, 18, 18, 0.98) !important; 
    color: #fff !important; 
    border: 1px solid rgba(255, 208, 0, 0.35) !important; 
    border-radius: 12px; 
    padding: 12px 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 
                0 0 0 1px rgba(255, 208, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    max-width: 450px !important;
    min-width: 180px !important;
    width: auto !important;
    white-space: normal !important;
    z-index: 650 !important; /* Below popups (700) */
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.leaflet-tooltip.ccmap-tooltip::before,
.ccmap-tooltip::before {
    display: none !important;
}
.ccmap-tooltip .ccmap-tip {
    max-width: 100%;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ccmap-tooltip .t-title { 
    font-weight: 700; 
    font-size: 14px; 
    line-height: 1.3;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}
.ccmap-tooltip .t-sub { 
    font-size: 12px; 
    opacity: .85;
    line-height: 1.4;
    margin-bottom: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}
.ccmap-tooltip .t-status { 
    font-size: 11px; 
    line-height: 1.4;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
}
/* When t-status is combined with status-badge, use the badge styling */
.ccmap-tooltip .t-status.status-badge {
    padding: 3px 8px;
    border-radius: 6px;
}
.ccmap-tooltip .t-deschidere {
    font-size: 11px;
    opacity: .7;
    font-style: italic;
    margin-top: 2px;
}
.ccmap-tooltip .t-click-hint {
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    margin-top: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.2) 0%, rgba(255, 208, 0, 0.1) 100%);
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: 6px;
    color: #FFD000;
    text-align: center;
    animation: click-hint-pulse 2s ease-in-out infinite;
}

@keyframes click-hint-pulse {
    0%, 100% { 
        background: linear-gradient(135deg, rgba(255, 208, 0, 0.2) 0%, rgba(255, 208, 0, 0.1) 100%);
    }
    50% { 
        background: linear-gradient(135deg, rgba(255, 208, 0, 0.3) 0%, rgba(255, 208, 0, 0.15) 100%);
    }
}

/* Popups */
.leaflet-popup-content-wrapper.ccmap-popup,
.ccmap-popup .leaflet-popup-content-wrapper { 
    background: rgba(18, 18, 18, 0.98); 
    color: #fff; 
    border: 1px solid rgba(255, 208, 0, 0.3); 
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(255, 208, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}
.leaflet-popup-content { 
    margin: 16px 18px; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}
/* Popup close button styling */
.ccmap-popup .leaflet-popup-close-button,
.leaflet-popup-content-wrapper.ccmap-popup ~ .leaflet-popup-close-button {
    color: #FFD000 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 28px !important;
    text-align: center !important;
    background: rgba(18, 18, 18, 0.95) !important;
    border: 1px solid rgba(255, 208, 0, 0.3) !important;
    border-radius: 10px !important;
    top: 8px !important;
    right: 8px !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
.ccmap-popup .leaflet-popup-close-button:hover,
.leaflet-popup-content-wrapper.ccmap-popup ~ .leaflet-popup-close-button:hover {
    background: rgba(255, 208, 0, 0.15) !important;
    border-color: rgba(255, 208, 0, 0.5) !important;
    color: #FFE066 !important;
    transform: scale(1.05) !important;
}
.ccmap-card { max-width: 400px; }
.ccmap-info-card { max-width: 380px; }
.ccmap-title { 
    font-weight: 800; 
    font-size: 17px; 
    margin-bottom: 6px; 
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.ccmap-segment {
    font-size: 14px;
    font-weight: 600;
    color: #FFD000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 208, 0, 0.2);
}
/* Progress stats for info markers */
.ccmap-progress-stats {
    margin: 12px 0;
    padding: 14px;
    background: rgba(255, 208, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 208, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}
.progress-item:first-child {
    margin-top: 0;
}
.progress-item:last-child {
    margin-bottom: 0;
}
.progress-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.progress-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.progress-value {
    color: #FFD000;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.progress-detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 4px;
}
.progress-total {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 208, 0, 0.3);
    font-size: 14px;
    color: #FFD000;
    text-align: center;
}
.progress-total strong {
    font-weight: 700;
}
.ccmap-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 208, 0, 0.15);
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ccmap-description a {
    color: #FFD000;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 208, 0, 0.3);
    transition: all 0.2s ease;
    font-style: normal;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}
.ccmap-description a:hover {
    color: #FFE066;
    border-bottom-color: #FFE066;
    background: rgba(255, 208, 0, 0.1);
    padding: 0 2px;
}
/* Info marker pulse animation */
.info-marker {
    animation: pulse-info 2.5s ease-in-out infinite;
}
@keyframes pulse-info {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.6;
    }
}
.ccmap-badge { 
    background: linear-gradient(135deg, #FFD000 0%, #FFBB00 100%); 
    color: #000; 
    font-weight: 800; 
    padding: 4px 10px; 
    border-radius: 8px; 
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(255, 208, 0, 0.3);
    letter-spacing: 0.02em;
}
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.status-badge.status-deschis {
    background: rgba(255, 208, 0, 0.2);
    color: #FFD000;
    border: 1px solid rgba(255, 208, 0, 0.4);
}
.status-badge.status-deschis-partial,
.status-badge.status-deschis-parțial {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}
.status-badge.status-in-executie,
.status-badge.status-în-execuție {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.4);
}
.status-badge.status-licitatie,
.status-badge.status-plan,
.status-badge.status-planificata,
.status-badge.status-planificată {
    background: rgba(74, 158, 255, 0.2);
    color: #4A9EFF;
    border: 1px solid rgba(74, 158, 255, 0.4);
}
.status-badge.status-in-exploatare,
.status-badge.status-în-exploatare {
    background: rgba(0, 200, 83, 0.2);
    color: #00C853;
    border: 1px solid rgba(0, 200, 83, 0.4);
}
.status-badge.status-finalizat {
    background: rgba(0, 200, 83, 0.2);
    color: #00C853;
    border: 1px solid rgba(0, 200, 83, 0.4);
}
.status-badge.status-necunoscut {
    background: rgba(136, 136, 136, 0.2);
    color: #888888;
    border: 1px solid rgba(136, 136, 136, 0.4);
}
.ccmap-meta div { 
    margin: 8px 0; 
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ccmap-meta strong {
    font-weight: 600;
    color: rgba(255, 208, 0, 0.9);
}
.ccmap-meta a { 
    color: #FFD000; 
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 208, 0, 0.3);
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}
.ccmap-meta a:hover {
    color: #FFE066;
    border-bottom-color: #FFE066;
}

/* ========== LEGEND ========== */
.ccmap-legend { 
    background: rgba(15, 15, 15, 0.98); 
    color: #fff; 
    padding: 16px 18px; 
    border: 1px solid rgba(255, 208, 0, 0.3); 
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75),
                0 0 0 1px rgba(255, 208, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    min-width: 180px;
    max-width: 220px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ccmap-legend:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85),
                0 0 0 1px rgba(255, 208, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 208, 0, 0.4);
}

.ccmap-legend.collapsed {
    padding: 12px 16px;
}

.ccmap-legend.collapsed .lg-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
}

.ccmap-legend .lg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 208, 0, 0.25);
    padding-bottom: 10px;
}

.ccmap-legend.collapsed .lg-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ccmap-legend .lg-title { 
    font-weight: 800; 
    font-size: 11px; 
    letter-spacing: 1px;
    color: #FFD000;
    text-transform: uppercase;
    flex: 1;
}

.ccmap-legend .lg-toggle {
    background: rgba(255, 208, 0, 0.1);
    border: 1px solid rgba(255, 208, 0, 0.3);
    color: #FFD000;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.ccmap-legend .lg-toggle:hover {
    background: rgba(255, 208, 0, 0.2);
    border-color: rgba(255, 208, 0, 0.5);
    transform: scale(1.05);
}

.ccmap-legend .lg-content {
    max-height: 500px;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.ccmap-legend .lg-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 13px; 
    margin: 8px 0;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    line-height: 1.2;
    min-height: 32px;
    cursor: pointer;
    user-select: none;
}

.ccmap-legend .lg-item:first-of-type {
    margin-top: 0;
}

.ccmap-legend .lg-item:last-of-type {
    margin-bottom: 8px;
}

.ccmap-legend .lg-item:hover {
    padding-left: 12px;
    background: rgba(255, 208, 0, 0.15);
    border: 1px solid rgba(255, 208, 0, 0.25);
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(255, 208, 0, 0.2);
}

.ccmap-legend .lg-item.active {
    background: rgba(255, 208, 0, 0.25);
    border: 1px solid rgba(255, 208, 0, 0.4);
    padding-left: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 208, 0, 0.3);
}

.ccmap-legend .lg-item.inactive {
    opacity: 0.4;
}

.ccmap-legend .lg-item.inactive:hover {
    opacity: 0.6;
}

.ccmap-legend .lg-item span { 
    width: 32px; 
    height: 12px; 
    display: block; 
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.3);
    align-self: center;
}

.ccmap-legend .lg-reset {
    font-size: 10px;
    font-style: italic;
    opacity: 0.6;
    text-align: center;
    padding: 8px 4px 4px;
    line-height: 1.4;
    color: rgba(255, 208, 0, 0.8);
    border-top: 1px solid rgba(255, 208, 0, 0.15);
    margin-top: 4px;
}

.ccmap-legend .lg-divider {
    height: 1px;
    background: rgba(255, 208, 0, 0.25);
    margin: 12px 0;
}

.ccmap-legend .lg-info-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 208, 0, 0.1);
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: 8px;
    color: #FFD000;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    margin-top: 4px;
}

.ccmap-legend .lg-info-toggle:hover {
    background: rgba(255, 208, 0, 0.2);
    border-color: rgba(255, 208, 0, 0.5);
    transform: translateX(2px);
}

.ccmap-legend .lg-info-toggle[data-active="false"] {
    background: rgba(136, 136, 136, 0.1);
    border-color: rgba(136, 136, 136, 0.3);
    color: #888888;
    opacity: 0.6;
}

.ccmap-legend .lg-info-toggle[data-active="false"]:hover {
    background: rgba(136, 136, 136, 0.15);
    border-color: rgba(136, 136, 136, 0.4);
    opacity: 0.8;
}

.ccmap-legend .lg-info-toggle .toggle-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.ccmap-legend .lg-info-toggle .toggle-label {
    flex: 1;
    text-align: left;
}

.ccmap-legend .lg-info-toggle .toggle-state {
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== LOADING POPUP ========== */

.ccmap-loading-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ccmap-loading-popup.closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ccmap-loading-popup .loading-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    cursor: default;
}

.ccmap-loading-popup.map-ready .loading-popup-overlay {
    cursor: pointer;
}

.ccmap-loading-popup .loading-popup-content {
    position: relative;
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
    border: 2px solid rgba(255, 208, 0, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    max-width: 380px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.ccmap-loading-popup.map-ready .loading-popup-content {
    border-color: #00C853;
}

.ccmap-loading-popup .loading-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #222;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ccmap-loading-popup .loading-popup-close:hover {
    background: #333;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.1);
}

.ccmap-loading-popup.map-ready .loading-popup-close {
    background: #00C853;
    border-color: #00C853;
    color: #fff;
}

.ccmap-loading-popup.map-ready .loading-popup-close:hover {
    background: #00E676;
    border-color: #00E676;
}

.ccmap-loading-popup .loading-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.ccmap-loading-popup .loading-spinner {
    width: 64px;
    height: 64px;
    border: 3px solid rgba(255, 208, 0, 0.15);
    border-top-color: #FFD000;
    border-radius: 50%;
    animation: loading-spin 0.9s linear infinite;
    transition: opacity 0.3s ease;
}

.ccmap-loading-popup.map-ready .loading-spinner {
    opacity: 0;
}

.ccmap-loading-popup .loading-check {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    color: #00C853;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ccmap-loading-popup.map-ready .loading-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

.ccmap-loading-popup .loading-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.ccmap-loading-popup.map-ready .loading-title {
    color: #00C853;
}

.ccmap-loading-popup.map-ready .loading-title::before {
    content: 'Harta s-a încărcat!';
}

.ccmap-loading-popup.map-ready .loading-title {
    font-size: 0;
}

.ccmap-loading-popup.map-ready .loading-title::before {
    font-size: 20px;
}

.ccmap-loading-popup .loading-hint {
    padding: 16px 20px;
    background: rgba(255, 208, 0, 0.08);
    border: 1px solid rgba(255, 208, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 16px;
}

.ccmap-loading-popup .loading-hint p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.ccmap-loading-popup .loading-hint strong {
    color: #FFD000;
    font-weight: 600;
}

.ccmap-loading-popup .loading-dismiss {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.ccmap-loading-popup.map-ready .loading-dismiss {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SCROLL INTERACTION OVERLAY ========== */

.ccmap-scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.ccmap-scroll-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.ccmap-scroll-overlay .overlay-message {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 208, 0, 0.4);
    border-radius: 12px;
    padding: 16px 24px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    max-width: 280px;
}

.ccmap-scroll-overlay .overlay-message .overlay-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.ccmap-scroll-overlay .overlay-message .overlay-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.ccmap-scroll-overlay .overlay-message .overlay-hint {
    color: #FFD000;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}

/* Map interaction states */
.ccmap.scroll-disabled {
    cursor: grab;
}

.ccmap.scroll-enabled {
    cursor: default;
}

/* ========== MOBILE RESPONSIVE ========== */

/* Tablets and smaller */
@media (max-width: 768px) {
    /* Adjust control sizes for touch */
    .ccmap .leaflet-bar a,
    .ccmap .leaflet-control-zoom a,
    .ccmap .leaflet-control-fullscreen a {
        width: 40px !important;
        height: 40px !important;
        line-height: 38px !important;
        font-size: 20px !important;
    }
    
    /* Layer control - COLLAPSED BY DEFAULT ON MOBILE */
    .ccmap .leaflet-control-layers {
        padding: 8px 12px;
        max-width: calc(100vw - 80px);
    }
    
    .ccmap .leaflet-control-layers.minimized {
        padding: 8px 12px;
        max-height: 44px;
    }
    
    .ccmap .leaflet-control-layers .layers-title {
        font-size: 9px;
    }
    
    .ccmap .leaflet-control-layers .layers-header {
        padding-bottom: 6px;
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .ccmap .leaflet-control-layers.minimized .layers-header {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .ccmap .leaflet-control-layers .layers-minimize {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .ccmap .leaflet-control-layers-base label,
    .ccmap .leaflet-control-layers-overlays label {
        font-size: 11px;
        padding: 5px 4px;
        min-height: 28px;
        gap: 6px;
    }
    
    .ccmap input[type="checkbox"],
    .ccmap input[type="radio"] {
        width: 14px;
        height: 14px;
    }
    
    /* Legend - COLLAPSED BY DEFAULT ON MOBILE */
    .ccmap-legend {
        padding: 8px 12px;
        min-width: 120px;
        max-width: 160px;
    }
    
    .ccmap-legend.collapsed {
        padding: 8px 12px;
    }
    
    .ccmap-legend .lg-title {
        font-size: 9px;
    }
    
    .ccmap-legend .lg-header {
        padding-bottom: 6px;
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .ccmap-legend.collapsed .lg-header {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .ccmap-legend .lg-toggle {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .ccmap-legend .lg-item {
        font-size: 10px;
        padding: 3px 4px;
        gap: 5px;
        min-height: 22px;
        margin: 4px 0;
    }
    
    .ccmap-legend .lg-item.active {
        padding-left: 7px;
    }
    
    .ccmap-legend .lg-item span {
        width: 22px;
        height: 7px;
    }
    
    .ccmap-legend .lg-reset {
        font-size: 7px;
        padding: 4px 3px 2px;
    }
    
    .ccmap-legend .lg-info-toggle {
        font-size: 9px;
        padding: 4px 5px;
        gap: 4px;
    }
    
    .ccmap-legend .lg-info-toggle .toggle-icon,
    .ccmap-legend .lg-info-toggle .toggle-state {
        font-size: 11px;
    }
    
    .ccmap-legend .lg-divider {
        margin: 8px 0;
    }
    
    /* Loading popup tablet */
    .ccmap-loading-popup {
        padding: 16px;
    }
    
    .ccmap-loading-popup .loading-popup-content {
        padding: 28px 32px;
        max-width: 340px;
    }
    
    .ccmap-loading-popup .loading-icon-wrap {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
    
    .ccmap-loading-popup .loading-spinner {
        width: 56px;
        height: 56px;
    }
    
    .ccmap-loading-popup .loading-check {
        width: 32px;
        height: 32px;
    }
    
    .ccmap-loading-popup .loading-title,
    .ccmap-loading-popup.map-ready .loading-title::before {
        font-size: 18px;
    }
    
    .ccmap-loading-popup .loading-hint {
        padding: 14px 16px;
    }
    
    .ccmap-loading-popup .loading-hint p {
        font-size: 13px;
    }
    
    /* Scroll overlay mobile */
    .ccmap-scroll-overlay .overlay-message {
        font-size: 13px;
        padding: 14px 20px;
        max-width: 260px;
    }
    
    .ccmap-scroll-overlay .overlay-message .overlay-icon {
        font-size: 22px;
    }
    
    /* Tooltips */
    .ccmap-tooltip {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .ccmap-tooltip .t-title {
        font-size: 13px;
    }
    
    /* Popups */
    /* Compact popups on tablet */
    .ccmap-card {
        max-width: 280px !important;
        width: calc(100vw - 60px) !important;
    }
    
    .ccmap-info-card {
        max-width: 260px !important;
    }
    
    .leaflet-popup-content {
        margin: 12px 14px;
    }
    
    .ccmap-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .ccmap-segment {
        font-size: 11px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .ccmap-meta div {
        font-size: 11px;
        margin: 5px 0;
        line-height: 1.4;
    }
    
    .ccmap-description {
        font-size: 10px;
        margin-top: 8px;
        padding-top: 8px;
        line-height: 1.4;
        max-height: 120px;
        overflow-y: auto;
    }
    
    .ccmap-popup .leaflet-popup-close-button,
    .leaflet-popup-content-wrapper.ccmap-popup ~ .leaflet-popup-close-button {
        width: 28px !important;
        height: 28px !important;
        font-size: 20px !important;
        top: 6px !important;
        right: 6px !important;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Smaller controls for phones */
    .ccmap .leaflet-bar a,
    .ccmap .leaflet-control-zoom a,
    .ccmap .leaflet-control-fullscreen a {
        width: 36px !important;
        height: 36px !important;
        line-height: 34px !important;
        font-size: 18px !important;
    }
    
    .ccmap .leaflet-control-zoom-fullscreen,
    .ccmap .leaflet-control-zoom .fullscreen-icon {
        background-size: 14px 14px !important;
    }
    
    /* Ultra-compact layer control */
    .ccmap .leaflet-control-layers {
        padding: 6px 10px;
        max-width: calc(100vw - 60px);
    }
    
    .ccmap .leaflet-control-layers.minimized {
        padding: 6px 10px;
        max-height: 36px;
    }
    
    .ccmap .leaflet-control-layers .layers-title {
        font-size: 8px;
    }
    
    .ccmap .leaflet-control-layers .layers-header {
        padding-bottom: 5px;
        margin-bottom: 6px;
        gap: 6px;
    }
    
    .ccmap .leaflet-control-layers .layers-minimize {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .ccmap .leaflet-control-layers-toggle {
        width: 36px;
        height: 36px;
    }
    
    .ccmap input[type="checkbox"],
    .ccmap input[type="radio"] {
        width: 12px;
        height: 12px;
    }
    
    .ccmap .leaflet-control-layers-base label,
    .ccmap .leaflet-control-layers-overlays label {
        font-size: 10px;
        padding: 4px 3px;
        gap: 5px;
        min-height: 24px;
    }
    
    /* Ultra-compact legend */
    .ccmap-legend {
        padding: 6px 10px;
        min-width: 110px;
        max-width: 150px;
    }
    
    .ccmap-legend.collapsed {
        padding: 6px 10px;
    }
    
    .ccmap-legend .lg-title {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    .ccmap-legend .lg-toggle {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .ccmap-legend .lg-header {
        padding-bottom: 5px;
        margin-bottom: 6px;
        gap: 6px;
    }
    
    .ccmap-legend.collapsed .lg-header {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .ccmap-legend .lg-item {
        font-size: 9px;
        padding: 2px 3px;
        gap: 4px;
        margin: 3px 0;
        min-height: 18px;
    }
    
    .ccmap-legend .lg-item.active {
        padding-left: 5px;
    }
    
    .ccmap-legend .lg-item span {
        width: 16px;
        height: 6px;
    }
    
    .ccmap-legend .lg-reset {
        font-size: 7px;
        padding: 3px 2px 1px;
    }
    
    .ccmap-legend .lg-info-toggle {
        font-size: 8px;
        padding: 3px 4px;
        gap: 3px;
    }
    
    .ccmap-legend .lg-info-toggle .toggle-icon,
    .ccmap-legend .lg-info-toggle .toggle-state {
        font-size: 10px;
    }
    
    .ccmap-legend .lg-divider {
        margin: 6px 0;
    }
    
    /* Loading popup phone */
    .ccmap-loading-popup {
        padding: 24px;
    }
    
    .ccmap-loading-popup .loading-popup-content {
        padding: 24px 20px;
        max-width: 100%;
        border-radius: 14px;
    }
    
    .ccmap-loading-popup .loading-popup-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: -10px;
        right: -10px;
    }
    
    .ccmap-loading-popup .loading-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
    }
    
    .ccmap-loading-popup .loading-spinner {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    
    .ccmap-loading-popup .loading-check {
        width: 28px;
        height: 28px;
    }
    
    .ccmap-loading-popup .loading-title,
    .ccmap-loading-popup.map-ready .loading-title::before {
        font-size: 16px;
    }
    
    .ccmap-loading-popup .loading-title {
        margin-bottom: 14px;
    }
    
    .ccmap-loading-popup .loading-hint {
        padding: 12px 14px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .ccmap-loading-popup .loading-hint p {
        font-size: 12px;
    }
    
    .ccmap-loading-popup .loading-dismiss {
        font-size: 11px;
    }
    
    /* Scroll overlay phone */
    .ccmap-scroll-overlay .overlay-message {
        font-size: 12px;
        padding: 12px 16px;
        max-width: 220px;
        border-radius: 10px;
    }
    
    .ccmap-scroll-overlay .overlay-message .overlay-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .ccmap-scroll-overlay .overlay-message .overlay-hint {
        font-size: 11px;
        margin-top: 6px;
    }
    
    /* Smaller tooltips */
    .ccmap-tooltip {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .ccmap-tooltip .t-title {
        font-size: 12px;
    }
    
    .ccmap-tooltip .t-sub,
    .ccmap-tooltip .t-status {
        font-size: 10px;
    }
    
    /* Compact popups */
    /* Even more compact popups on phone */
    .ccmap-card {
        max-width: 240px !important;
        width: calc(100vw - 50px) !important;
    }
    
    .ccmap-info-card {
        max-width: 220px !important;
    }
    
    .leaflet-popup-content {
        margin: 10px 12px;
    }
    
    .ccmap-title {
        font-size: 13px;
        line-height: 1.25;
        margin-bottom: 4px;
    }
    
    .ccmap-segment {
        font-size: 10px;
        margin-bottom: 6px;
        padding-bottom: 5px;
    }
    
    .ccmap-meta div {
        font-size: 10px;
        margin: 4px 0;
        line-height: 1.35;
    }
    
    .ccmap-meta strong {
        display: block;
        margin-bottom: 1px;
    }
    
    .ccmap-description {
        font-size: 9px;
        margin-top: 6px;
        padding-top: 6px;
        line-height: 1.35;
        max-height: 100px;
        overflow-y: auto;
    }
    
    .ccmap-popup .leaflet-popup-close-button,
    .leaflet-popup-content-wrapper.ccmap-popup ~ .leaflet-popup-close-button {
        width: 26px !important;
        height: 26px !important;
        font-size: 18px !important;
        top: 5px !important;
        right: 5px !important;
        border-radius: 8px !important;
    }
    
    /* Status badge smaller */
    .status-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .ccmap-progress-stats {
        padding: 10px;
    }
    
    .progress-item {
        font-size: 12px;
        margin: 6px 0;
    }
    
    .progress-value {
        font-size: 14px;
    }
}

/* ========== NOTIFICATIONS MODAL ========== */

.ccnotif-trigger-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    margin-bottom: 20px;
}

.ccnotif-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.1) 0%, rgba(255, 208, 0, 0.05) 100%);
    border: 1px solid rgba(255, 208, 0, 0.25);
    border-radius: 12px;
    color: #FFD000;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 208, 0, 0.1);
}

.ccnotif-trigger:hover {
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.18) 0%, rgba(255, 208, 0, 0.08) 100%);
    border-color: rgba(255, 208, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 208, 0, 0.2),
                0 0 0 1px rgba(255, 208, 0, 0.15);
}

.ccnotif-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 208, 0, 0.4));
    animation: bell-ring 3s ease-in-out infinite;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0) scale(1); }
    2%, 8% { transform: rotate(-12deg) scale(1.1); }
    5%, 11% { transform: rotate(12deg) scale(1.1); }
    14% { transform: rotate(0) scale(1); }
}

.ccnotif-title {
    font-weight: 800;
    font-size: 13px;
    color: #FFD000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 208, 0, 0.3);
}

.ccnotif-badge {
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(255, 68, 68, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modal */
.ccnotif-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.ccnotif-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.ccnotif-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.ccnotif-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.99) 0%, rgba(12, 12, 12, 0.99) 100%);
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 208, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ccnotif-modal.active .ccnotif-modal-content {
    transform: scale(1) translateY(0);
}

.ccnotif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.1) 0%, rgba(255, 208, 0, 0.03) 100%);
    border-bottom: 1px solid rgba(255, 208, 0, 0.15);
    flex-shrink: 0;
}

.ccnotif-modal-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccnotif-modal-close {
    background: rgba(255, 208, 0, 0.1);
    border: 1px solid rgba(255, 208, 0, 0.3);
    color: #FFD000;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ccnotif-modal-close:hover {
    background: rgba(255, 208, 0, 0.2);
    border-color: rgba(255, 208, 0, 0.5);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 16px rgba(255, 208, 0, 0.3);
}

.ccnotif-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 208, 0, 0.3) rgba(255, 208, 0, 0.05);
}

/* Custom scrollbar styling for modal (Webkit browsers) */
.ccnotif-modal-body::-webkit-scrollbar {
    width: 8px;
}

.ccnotif-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 208, 0, 0.05);
    border-radius: 4px;
}

.ccnotif-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 208, 0, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ccnotif-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 208, 0, 0.5);
}

.ccnotif-empty {
    text-align: center;
    padding: 32px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 14px;
}

.ccnotif-empty span {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}

.ccnotif-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ccnotif-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 208, 0, 0.12);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ccnotif-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 208, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ccnotif-item:hover {
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.08) 0%, rgba(255, 208, 0, 0.02) 100%);
    border-color: rgba(255, 208, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ccnotif-item:hover::before {
    opacity: 1;
}

/* Notification types - enhanced left border */
.ccnotif-item.notif-avertizare {
    border-left: 4px solid #FF4444;
    box-shadow: inset 4px 0 12px -4px rgba(255, 68, 68, 0.15);
}

.ccnotif-item.notif-update {
    border-left: 4px solid #4A9EFF;
    box-shadow: inset 4px 0 12px -4px rgba(74, 158, 255, 0.15);
}

.ccnotif-item.notif-finalizare {
    border-left: 4px solid #00C853;
    box-shadow: inset 4px 0 12px -4px rgba(0, 200, 83, 0.15);
}

.ccnotif-item.notif-info {
    border-left: 4px solid #FFD000;
    box-shadow: inset 4px 0 12px -4px rgba(255, 208, 0, 0.15);
}

.ccnotif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.ccnotif-segment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ccnotif-segment .segment-autostrada {
    background: linear-gradient(135deg, #FFD000 0%, #F5C400 100%);
    color: #000;
    font-weight: 900;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 208, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ccnotif-segment .segment-tronson {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.ccnotif-segment .segment-lungime {
    color: rgba(255, 208, 0, 0.7);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(255, 208, 0, 0.08);
    border-radius: 6px;
}

.ccnotif-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.ccnotif-date {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.ccnotif-stadiu {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.25) 0%, rgba(255, 68, 68, 0.15) 100%);
    color: #FF7777;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.ccnotif-item-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.ccnotif-item-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.ccnotif-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FFD000;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.12) 0%, rgba(255, 208, 0, 0.06) 100%);
    border: 1px solid rgba(255, 208, 0, 0.2);
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.ccnotif-source:hover {
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.2) 0%, rgba(255, 208, 0, 0.1) 100%);
    border-color: rgba(255, 208, 0, 0.4);
    color: #FFE066;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.15);
}



.ccnotif-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 208, 0, 0.1);
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    text-align: right;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
    .ccnotif-trigger {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .ccnotif-modal {
        padding: 16px;
    }
    
    .ccnotif-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .ccnotif-modal-header {
        padding: 16px 20px;
    }
    
    .ccnotif-modal-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    
    .ccnotif-modal-body {
        padding: 20px;
    }
    
    .ccnotif-title {
        font-size: 12px;
        letter-spacing: 0.06em;
    }
    
    .ccnotif-list {
        gap: 12px;
    }
    
    .ccnotif-item {
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .ccnotif-item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ccnotif-meta {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .ccnotif-item-title {
        font-size: 14px;
    }
    
    .ccnotif-item-text {
        font-size: 12px;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .ccnotif-trigger {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
    }
    
    .ccnotif-icon {
        font-size: 18px;
    }
    
    .ccnotif-title {
        font-size: 11px;
    }
    
    .ccnotif-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .ccnotif-modal {
        padding: 12px;
    }
    
    .ccnotif-modal-content {
        max-height: 98vh;
        border-radius: 14px;
    }
    
    .ccnotif-modal-header {
        padding: 14px 16px;
    }
    
    .ccnotif-modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .ccnotif-modal-body {
        padding: 16px;
    }
    
    .ccnotif-list {
        gap: 10px;
    }
    
    .ccnotif-item {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .ccnotif-segment {
        gap: 8px;
    }
    
    .ccnotif-segment .segment-autostrada {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .ccnotif-segment .segment-tronson {
        font-size: 12px;
    }
    
    .ccnotif-segment .segment-lungime {
        font-size: 10px;
    }
    
    .ccnotif-date {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .ccnotif-item-title {
        font-size: 13px;
    }
    
    .ccnotif-item-text {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .ccnotif-source {
        font-size: 11px;
        padding: 7px 14px;
        width: 100%;
        justify-content: center;
    }
    
    .ccnotif-footer {
        font-size: 10px;
        margin-top: 14px;
        padding-top: 12px;
    }
}