/* Locations Map with Sidebar */
.locations-map-wrapper {
    position: relative;
    height: 500px;
    height: calc(100vh - 130px);
    /* padding-bottom: 35%; */
    border-top: 10px solid #d72027;
}

#locations__map {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* Zip Code Search Box */
.locations-zip-search {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 375px;
    z-index: 10;
    background: rgba(34, 34, 34, 0.5);
    border: 1px solid #222;
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
}

.locations-zip-search input {
    flex: 1;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    background: #fff;
}

.locations-zip-search input:focus {
    border-color: #d72027;
}

.locations-zip-search button {
    background: #d72027;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.locations-zip-search button:hover {
    background: #b51b21;
}

.locations-results {
    background: rgba(34, 34, 34, 0.5);
    border: 1px solid #222;
    position: absolute;
    top: 110px;
    left: 15px;
    bottom: 15px;
    width: 375px;
    z-index: 9;
    padding: 15px 7px 15px 15px;
    border-radius: 5px;
    box-sizing: border-box;
}

.locations-results-inner {
    overflow-y: auto;
    position: relative;
    height: 100%;
    padding-right: 17px !important;
}

.locations-results .location-result,
#locations-view-title {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 0 0 15px 0;
    border: 1px solid #999;
    max-width: 100%;
    box-sizing: border-box;
}

#locations-view-title {
    font-size: 2em;
    font-weight: 600;
    color: #d72027;
    margin-top: 0;
}

.locations-results .location-result {
    cursor: pointer;
}

.locations-results .location-result .location-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    padding: 0;
    color: #333;
}

.locations-results .location-result .location-address {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 8px;
}

.locations-results .location-result .location-phone {
    margin-bottom: 8px;
}

.locations-results .location-result .location-phone a {
    color: #d72027;
    text-decoration: none;
}

.locations-results .location-result .location-phone a:hover {
    text-decoration: underline;
}

.locations-results .location-result .location-distance {
    font-size: 1rem;
    color: #777;
    margin-bottom: 10px;
}

.locations-results .location-result .location-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.locations-results .location-result .location-cta {
    display: block;
    background: #d72027;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease;
    text-align: center;
}

.locations-results .location-result .location-cta:hover {
    background: #b51b21;
    color: #fff;
}

.locations-results .location-result .location-cta-quote {
    background: #333;
}

.locations-results .location-result .location-cta-quote:hover {
    background: #555;
}

/* Custom scrollbar overrides */
.locations-results .scrollable .viewport .overview {
    left: 0;
    right: 0;
}

/* Info Window (map popup) */
.locations-info-window {
    font-size: 1rem;
    line-height: 140%;
    padding: 5px;
}

.locations-info-window .location-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.locations-info-window .location-address {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.locations-info-window .location-phone {
    margin-bottom: 10px;
}

.locations-info-window .location-phone a {
    color: #d72027;
}

.locations-info-window .location-ctas {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.locations-info-window .location-cta {
    display: block;
    background: #d72027;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
}

.locations-info-window .location-cta-quote {
    background: #333;
}

.locations-info-window .location-cta-quote:hover {
    background: #555;
}

/* Mobile toggle controls */
#locations-resp-controls {
    display: none;
    text-align: center;
    padding: 30px 15px 15px 15px;
}

#locations-resp-controls a {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
}

#locations-resp-controls a.active {
    background: #d72027;
}

#locations__map {
    height: 100%;
}

.fl-node-hriet82ymj65.fl-row-custom-height > .fl-row-content-wrap {
    min-height: 0;
}

/* No locations message */
.no-locations-message {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    color: #555;
}

.sr-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}

.locations-loading {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 0 0 15px 0;
    border: 1px solid #999;
    max-width: 100%;
    box-sizing: border-box;
    color: #000;
    text-align: center;
    font-size: 1.5rem;
}

/* Fix for production */
@media screen and (min-width: 991px) {
    .locations-map-wrapper {
        margin-top: 40px;
    }
}

/* Responsive styles */
@media screen and (max-width: 990px) {
    .locations-zip-search {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        border-radius: 0;
        border-width: 0;
        border-bottom-width: 1px;
    }

    .locations-results {
        top: auto;
        left: auto;
        bottom: auto;
        width: auto;
        position: relative;
        height: auto;
        border-radius: 0;
        border: none;
    }

    .locations-map-wrapper {
        padding: 0;
        height: auto;
    }

    #locations__map {
        display: none;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: 350px;
    }

    .scrollable .viewport {
        height: auto !important;
    }

    .scrollable.default-skin .scroll-bar.horizontal,
    .scrollable.default-skin .scroll-bar.vertical {
        display: none !important;
    }

    .scrollable .viewport .overview {
        position: relative !important;
    }

    #locations-resp-controls {
        display: block;
    }

}
