/* Texas Map Styles */
.citm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.citm-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Default county styles */
.citm-container svg path,
.citm-container svg polygon,
.citm-container svg circle,
.citm-container svg rect {
    fill: #f1f5f9;
    stroke: #cbd5e1;
    stroke-width: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlighted counties - Base styles */
.has-project {
/*    stroke-width: 1.5 !important; */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.has-project:hover {
    cursor: pointer;
}

/* Active Status - Green Theme */
.has-project.status-active,
.has-project:not([class*="status-"]) {
    fill: #10b981 !important; /* Green-500 */
}

.has-project.status-active:hover,
.has-project:not([class*="status-"]):hover {
    fill: #059669 !important; /* Green-600 */
    filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.3)) !important;
    transform: scale(1.0025);
}

/* New Status - Blue Theme */
.has-project.status-new {
    fill: #3b82f6 !important; /* Blue-500 */
}

.has-project.status-new:hover {
    fill: #1d4ed8 !important; /* Blue-700 */
    filter: drop-shadow(0 4px 6px rgba(59, 130, 246, 0.3)) !important;
    transform: scale(1.0025);
}

/* Inactive Status - Grey Theme */
.has-project.status-inactive {
    fill: #959AA5 !important;
}

.has-project.status-inactive:hover {
    fill: #4b5563 !important; /* Gray-600 */
    filter: drop-shadow(0 4px 6px rgba(107, 114, 128, 0.3)) !important;
    transform: scale(1.0025);
}

/* County name hover label - Base styles */
.county-hover-label {
    position: fixed;
    background: rgba(30, 58, 138, 0.95); /* Default blue */
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.county-hover-label.show {
    opacity: 1;
}

.county-hover-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    border: 5px solid transparent;
    border-top-color: rgba(30, 58, 138, 0.95); /* Default blue */
    transform: translateX(-50%);
}

/* Status-specific hover labels */
.county-hover-label.status-active {
    background: rgba(6, 95, 70, 0.95); /* Green-800 with transparency */
}

.county-hover-label.status-active::after {
    border-top-color: rgba(6, 95, 70, 0.95);
}

.county-hover-label.status-new {
    background: rgba(30, 58, 138, 0.95); /* Blue-800 with transparency */
}

.county-hover-label.status-new::after {
    border-top-color: rgba(30, 58, 138, 0.95);
}

.county-hover-label.status-inactive {
    background: rgba(55, 65, 81, 0.95); /* Gray-700 with transparency */
}

.county-hover-label.status-inactive::after {
    border-top-color: rgba(55, 65, 81, 0.95);
}

/* County status breakdown display - Above the map */
.counties-count.status-breakdown {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
}

.counties-count.status-breakdown h3 {
    margin: 0 0 15px 0;
    color: #334155;
    font-size: 18px;
    font-weight: 700;
}

.status-breakdown-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    transition: transform 0.2s ease;
}

.status-badge:hover {
    transform: translateY(-2px);
}

.status-badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-badge.status-new {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.status-badge.status-inactive {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.status-badge .status-icon {
    font-size: 16px;
}

.status-badge .status-label {
    font-size: 14px;
    font-weight: 600;
}

.status-badge .status-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.status-summary {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    padding-top: 15px;
}

/* Loading state */
#citm-map-container:empty:before {
    content: "Loading Texas map...";
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}

/* Error state */
.citm-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .citm-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .county-hover-label {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .counties-count.status-breakdown h3 {
        font-size: 16px;
    }
    
    .status-breakdown-row {
        gap: 10px;
    }
    
    .status-badge {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .status-badge .status-count {
        padding: 3px 8px;
        font-size: 11px;
    }
}

