/**
 * NSSF Apprenticeship Map Styles
 */

/* ---- Container ---- */
.nssf-am-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nssf-am-wrapper {
    padding-bottom: 0;
}

/* ---- Title ---- */
.nssf-am-title {
    text-align: center;
}

.nssf-am-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 10px;
}

/* ---- Map Area ---- */
.nssf-am-map-area {
    padding: 0;
    margin: 10px auto 0;
}

.nssf-am-map-column {
    text-align: center;
}

.nssf-am-description {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
}

/* ---- Legend ---- */
.nssf-am-legend {
    margin-top: 50px;
    text-align: center;
}

.nssf-am-legend-item {
    display: inline-block;
    margin-right: 10px;
}

.nssf-am-legend-item:last-child {
    margin-left: 20px;
}

.nssf-am-square {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
}

.nssf-am-square.green {
    background-color: #3c613e;
}

.nssf-am-square.gray {
    background-color: #9f9f9f;
}

.nssf-am-legend-label {
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.71;
    color: #000;
}

/* ---- Map container ---- */
#wth_map_apprenticeship {
    margin-top: 20px;
    text-align: center;
}

#wth_map_apprenticeship svg {
    width: 75%;
    margin: 0 auto;
    display: block;
}

#wth_map_apprenticeship svg text {
    font-size: 11px !important;
}

/* ---- Mobile Select (hidden on desktop) ---- */
.nssf-am-mobile-select {
    display: none;
}

.nssf-am-select-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    text-align: center;
}

/* ---- Dropdown ---- */
.nssf-am-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.nssf-am-dropbtn {
    background-color: #fff;
    color: #333;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ccc;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    text-align: left;
    position: relative;
}

.nssf-am-dropbtn:hover {
    border-color: #3c613e;
}

.nssf-am-arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 10px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    float: right;
    margin-top: 6px;
}

.nssf-am-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 100%;
    max-width: 400px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #ccc;
}

.nssf-am-dropdown-content.show {
    display: block;
}

.nssf-am-dropdown-content a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: left;
}

.nssf-am-dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #3c613e;
}

/* ---- Inactive state cursor ---- */
.noactive {
    cursor: default !important;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {

    .nssf-am-desktop-only {
        display: none !important;
    }

    .nssf-am-mobile-select {
        display: block;
        z-index: 20;
        position: relative;
    }

    .nssf-am-legend .nssf-am-square {
        width: 12px;
        height: 12px;
    }

    .nssf-am-legend .nssf-am-legend-label {
        font-size: 12px;
        line-height: 2;
    }

    .nssf-am-container {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .nssf-am-mobile-select {
        display: none !important;
    }
}
