/* NABET Accredited Schools Map Section Styles */
.map-section {
    background-color: #F2F2F2;
    overflow: hidden;
    padding: 80px 0;
}

.map-pre-title {
    font-size: 38px;
    font-weight: 400;
    color: #364e52;
    line-height: 1;
    display: block;
}

.map-main-title {
    font-size: 52px;
    font-weight: 700;
    color: #0099C7;
    line-height: 1.05;
    margin-top: 5px;
}

/* Map Container */
.map-svg-container {
    position: relative;
}

.map-svg-container svg {
    width: 100%;
    height: auto;
    max-height: 680px;
}

/* SVG state paths */
.map-svg-container path {
    fill: #4c4c4c;
    stroke: #ffffff;
    stroke-width: 0.8;
    cursor: pointer;
    transition: fill 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s ease;
}

/* Alternating colors for states */
.map-svg-container path:nth-child(3n) {
    fill: #5c5c5c;
}

.map-svg-container path:nth-child(3n+1) {
    fill: #3c3c3c;
}

.map-svg-container path:nth-child(3n+2) {
    fill: #444444;
}

.map-svg-container path:hover {
    fill: #0099C7 !important;
    filter: drop-shadow(0 4px 12px rgba(0, 121, 175, 0.3));
}

/* Tooltip Styling */
.map-tooltip-box {
    position: absolute;
    display: none;
    background: rgba(12, 30, 33, 0.95);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 999999;
}

.tooltip-state-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
    display: block;
}

.tooltip-schools-count {
    font-size: 12px;
    color: #0099C7;
    font-weight: 600;
    display: block;
}

/* SVG Map Labels */
.state-map-text {
    font-family: "Poppins", sans-serif;
    pointer-events: none;
    user-select: none;
}

.map-text-name {
    font-size: 8px;
    font-weight: 700;
    fill: #ffffff;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .map-section {
        padding: 60px 0;
    }

    .map-pre-title {
        font-size: 28px;
        text-align: center;
    }

    .map-main-title {
        font-size: 40px;
        text-align: center;
        margin-bottom: 25px;
    }

    .map-svg-container {
        padding: 15px;
    }
}
