/* Service Locations - Hyundai style */

.page-header .page-header-sub {
    margin-top: 12px;
    color: #001136;
    opacity: 0.75;
    font-size: 16px;
    line-height: 1.5;
}

.service-locations-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.service-locations-section .service-locations-box {
    position: relative;
    display: flex;
    width: 100%;
    height: 978px;
    overflow: hidden;
    border-top: 1px solid #E2E2E2;
    border-bottom: 1px solid #E2E2E2;
}

.service-locations-section .service-locations-sidebar {
    position: relative;
    flex: 0 0 380px;
    width: 380px;
    background: #fff;
    border-right: 1px solid #E2E2E2;
}

.service-locations-section .service-locations-sidebar .service-locations-toggle-btn2 {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0033A1;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.service-locations-section .service-locations-sidebar .service-locations-toggle-btn2 span,
.service-locations-section .service-locations-sidebar .service-locations-toggle-btn2 i {
    color: #fff;
}

.service-locations-section .service-locations-sidebar .service-locations-sidebar-toggle-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    overflow: hidden;
}

.service-locations-section .service-locations-sidebar .service-locations-toggle-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    color: #001136;
    font-size: 24px;
    z-index: 5;
    text-decoration: none;
}

/* Selectbox + search styling */
.service-locations-section .service-locations-select-item,
.service-locations-section .service-locations-search-item {
    position: relative;
    margin-bottom: 12px;
}

.service-locations-section .service-locations-select-item i.ri-arrow-down-s-fill {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #0033A1;
    font-size: 18px;
}

.service-locations-section .service-locations-select-item select,
.service-locations-section .service-locations-search-item input {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid #E2E2E2;
    border-radius: 0;
    background: #fff;
    color: #001136;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .15s ease;
}

.service-locations-section .service-locations-select-item select:focus,
.service-locations-section .service-locations-search-item input:focus {
    outline: none;
    border-color: #0033A1;
}

.service-locations-section .service-locations-search-item i.ri-search-eye-line {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0033A1;
    font-size: 18px;
    pointer-events: none;
}

.service-locations-section .service-locations-search-item input {
    padding: 0 14px 0 38px;
}

/* Result list */
.service-locations-section .service-locations-results {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    border-top: 1px solid #E2E2E2;
}

.service-locations-section .service-locations-results.active {
    border-top: 1px solid #E2E2E2;
}

.service-locations-section .service-locations-item {
    padding: 14px 4px;
    border-bottom: 1px solid #E2E2E2;
}

.service-locations-section .service-locations-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.service-locations-section .service-locations-header span {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0033A1;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-locations-section .service-locations-header strong {
    color: #001136;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
}

.service-locations-section .service-locations-content {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-left: 4px;
}

.service-locations-section .service-locations-content .left-bar {
    flex: 0 0 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-locations-section .service-locations-content .left-bar span {
    flex: 1 1 auto;
    width: 1px;
    background: #E2E2E2;
    min-height: 16px;
}

.service-locations-section .service-locations-content .left-bar i {
    color: #0033A1;
    font-size: 18px;
}

.service-locations-section .service-locations-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-locations-section .service-locations-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #001136;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition: color .15s ease;
}

.service-locations-section .service-locations-info-item:hover {
    color: #0033A1;
}

.service-locations-section .service-locations-info-item i {
    flex: 0 0 16px;
    color: #0033A1;
    font-size: 16px;
    margin-top: 1px;
}

/* Map */
.service-locations-section .service-locations-map {
    position: relative;
    flex: 1 1 auto;
    min-height: 100%;
}

.service-locations-section #service-locations-map {
    width: 100%;
    height: 100%;
}

/* Alert */
.service-locations-section .alert {
    margin: 12px 0 0 0;
    padding: 12px 14px;
    background: #f3f6fb;
    color: #001136;
    border: 1px solid #E2E2E2;
    border-radius: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-locations-section .alert i {
    color: #0033A1;
    font-size: 18px;
}

.service-locations-section .alert.d-none {
    display: none !important;
}

/* InfoWindow inner override (Google's outer container is theirs) */
.sl-iw .service-locations-item {
    border-bottom: none;
    padding: 4px;
    min-width: 240px;
}
.sl-iw .service-locations-content {
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 991px) {
    .service-locations-section .service-locations-box {
        height: auto;
        flex-direction: column;
    }
    .service-locations-section .service-locations-sidebar {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E2E2E2;
    }
    .service-locations-section .service-locations-sidebar .service-locations-toggle-btn2 {
        display: flex;
        width: calc(100% - 30px);
        margin: 15px;
    }
    .service-locations-section .service-locations-sidebar .service-locations-toggle-btn {
        display: block;
    }
    .service-locations-section .service-locations-sidebar .service-locations-sidebar-toggle-box {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        transition: left .25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
        padding-top: 56px;
    }
    .service-locations-section .service-locations-sidebar .service-locations-sidebar-toggle-box.active {
        left: 0;
    }
    .service-locations-section .service-locations-map {
        height: 540px;
    }
}

@media (max-width: 575px) {
    .service-locations-section .service-locations-map {
        height: 420px;
    }
    .service-locations-section .service-locations-sidebar .service-locations-sidebar-toggle-box {
        width: 88vw;
    }
}
