

/* ============================
   Locator Tool Styles (scoped)
   ============================ */

/* Wrapper */
.mva-locations {
    display: flex;
    flex-direction: column-reverse;
    font-family: "Atkinson", Arial, sans-serif;
}

/* Side-by-side on desktop */
@media (min-width: 768px) {
    .mva-locations {
        flex-direction: row;
    }
}

/* ============================
   Address panel
   ============================ */
.mva-locations .addresses {
    display: flex;
    flex-direction: column;
    background: #021e28;
    color: #fff;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .mva-locations .addresses {
        flex: 0 0 30%;
    }
}

@media (min-width: 1280px) {
    .mva-locations .addresses {
        flex: 0 0 40%;
    }
}

/* ============================
   Search bar
   ============================ */
.mva-locations .addresses .selector {
    position: relative;
    padding: 1.5rem;
}

.mva-locations .addresses .selector #sladdress {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    padding-left: 3.25rem; /* space for red button */
    padding-right: 2.5rem; /* space for search icon */
    background: rgb(223, 246, 255);
    font-size: 1.125rem;
    color: #021e28;
    outline: none;
}

.mva-locations .addresses .selector #sladdress::placeholder {
    color: #002939;
    opacity: 0.7;
}

.mva-locations .addresses .selector #sladdress:focus {
    box-shadow: 0 0 0 2px rgba(28, 133, 234, 0.3);
}

/* Red location button */
.mva-locations .addresses .selector .useMyLocation {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #e41c39;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    z-index: 5;
}

.mva-locations .addresses .selector .useMyLocation:hover {
    background: #c01932;
}

/* Font Awesome location icon */
.mva-locations .addresses .selector .useMyLocation i {
    font-size: 1.2rem;
}

/* Search icon inside input */
.mva-locations .addresses .selector::after {
    content: "\f002"; /* fa-search */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 2rem;
    top: 51%;
    transform: translateY(-50%);
    color: #333;
    font-size: 1rem;
    pointer-events: none;
}

/* ============================
   Autocomplete dropdown
   ============================ */
.mva-locations .addresses .selector #acResults {
    position: absolute;
    top: 95px;
    left: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border-radius: 0 0 8px 8px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mva-locations .addresses .selector #acResults.acResultsShow {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
}

.mva-locations .addresses .selector #acResults ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mva-locations .addresses .selector #acResults li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: #002939;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease;
}

.mva-locations .addresses .selector #acResults li:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ============================
   List panel
   ============================ */
.mva-locations .addresses .list {
    height: 480px;
    overflow-y: auto;
}

.mva-locations .addresses .list .list-item {
    cursor: pointer;
    padding: 1.25rem 1.5rem 1rem;
}

.mva-locations .addresses .list .list-item:nth-child(odd) {
    background: #002939;
}

.mva-locations .addresses .list .list-item:nth-child(even) {
    background: #021e28;
}

.mva-locations .addresses .list .list-item .name {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.mva-locations .addresses .list .list-item .details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.mva-locations .addresses .list .list-item .detail-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
}

.mva-locations .addresses .list .list-item .details p {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #fff;
}

.mva-locations .addresses .list .list-item:hover .name {
    color: #1873c9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mva-locations .addresses .list .list-item.slItemActive .name {
    color: #1873c9;
}

/* ============================
   Buttons
   ============================ */
/* Inline booking link */
.mva-locations .addresses .slbtn.elementor-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #fff;
    opacity: 0.85;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0;
}

.mva-locations .addresses .slbtn.elementor-button::after {
    content: "\f061"; /* fa-arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.mva-locations .addresses .slbtn.elementor-button:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mva-locations .addresses .slbtn.elementor-button:hover::after {
    transform: translateX(2px);
}

/* Bottom CTA */
.mva-locations .addresses .bottom {
    padding: 1rem 1.5rem 1.5rem;
}

.mva-locations .addresses .bottom .explore.elementor-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    background: #1873c9;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: filter 0.2s ease;
}

.mva-locations .addresses .bottom .explore.elementor-button:hover {
    filter: brightness(0.95);
}

/* ============================
   Map styles
   ============================ */
.mva-locations #map {
    min-height: 600px;
    width: 100%;
}

@media (min-width: 768px) {
    .mva-locations #map {
        flex: 1;
    }
}

.mva-locations #map .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    min-width: 300px;
}


.mva-locations #map h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #081c24;

}
.mva-locations #map .leaflet-popup-content-wrapper h2 {
    margin-bottom: .5rem;
    font-family: Atkinson ;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2.25rem;
    letter-spacing: 0;
    --tw-text-opacity: 1;
    color: rgb(2 30 40 / var(--tw-text-opacity));
}
.mva-locations #map .leaflet-popup-content-wrapper h3 {

    font-family: Atkinson ;
    font-size: 18px;
    /* line-height: 33px; */
    letter-spacing: normal;
    padding-bottom: 0px;
    margin-bottom: 0px;
    font-weight: 700;
    --tw-text-opacity: 1;
    font-variation-settings: "wdth" 50, "wght" 80;
    color: rgb(2 30 40 / var(--tw-text-opacity));
}
.mva-locations #map .leaflet-popup-content-wrapper p{
    margin-top:0px;
    padding-top:0px;

}
.mva-locations #map p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #081c24;
}

/* ============================
   Accessibility
   ============================ */
.mva-locations .elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mva-locations a:focus,
.mva-locations button:focus,
.mva-locations .list .list-item:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
/* --- Search Bar Override --- */
.mva-locations .addresses .selector {
    position: relative !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
}

/* Input field */
.mva-locations .addresses .selector #sladdress {
    width: 100% !important;
    height: 42px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.125rem !important;
    font-family: Atkinson, Arial, sans-serif !important;
    color: rgb(2,30,40) !important;
    background: rgb(223,246,255) !important;
    padding-left: 3.25rem !important;   /* space for red button */
    padding-right: 2.5rem !important;   /* space for search icon (background image) */
    outline: none !important;
    box-sizing: border-box !important;
}

.mva-locations .addresses .selector #sladdress::placeholder {
    color: rgb(0,41,57) !important;
    opacity: .7 !important;
}

/* Red button (left, absolute) */
.mva-locations .addresses .selector .locate {
    position: absolute !important;
    top: 71px !important;
    left: 23px !important;
    width: 45px !important;
    height: 45px !important;
    background: rgb(228,28,57) !important;
    border: none !important;
    border-radius: 8px 0 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.mva-locations .addresses .selector .locate img {
    width: 18px !important;
    height: 18px !important;
    filter: brightness(0) invert(1) !important; /* force white */
    display: block !important;
}

/* Make ALL buttons inside .mva-locations consistent */
.mva-locations button,
.mva-locations .addresses .selector .locate {
    font: inherit !important;
    background: none;
    border: none;
    box-shadow: none !important;
}
/* Custom scrollbar for results/list */
.mva-locations .addresses .list::-webkit-scrollbar {
    width: 8px;
}

.mva-locations .addresses .list::-webkit-scrollbar-track {
    background: #001e28; /* dark blue background */
    border-radius: 4px;
}

.mva-locations .addresses .list::-webkit-scrollbar-thumb {
    background: #1873c9; /* bright blue thumb */
    border-radius: 4px;
}

.mva-locations .addresses .list::-webkit-scrollbar-thumb:hover {
    background: #1873c9; /* darker on hover */
}

/* Firefox */
.mva-locations .addresses .list {
    scrollbar-width: thin;
    scrollbar-color: #1873c9 #001e28; /* thumb + track */
}

/* Generic popup buttons */
.mva-locations #map .leaflet-popup-content .mva-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: "Atkinson", Arial, sans-serif;
    background: none;
    border: none;
    padding: 0;
    margin: 0.4rem 0;
    cursor: pointer;
    /* color: #e41c39; */
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

/* Arrow for Directions + Booking */
.mva-locations #map .leaflet-popup-content .schedule-btn::after,
.mva-locations #map .leaflet-popup-content .directions-btn::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f061"; /* fa-arrow-right */
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

/* Chevron for More Info */
.mva-locations #map .leaflet-popup-content .more-info-btn::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078"; /* fa-chevron-down */
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.mva-locations #map .leaflet-popup-content .more-info-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Generic buttons used in popup & list */
.mva-locations .mva-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: "Atkinson", Arial, sans-serif;
    background: none;
    border: none;
    padding: 0;
    margin: 0.4rem 0;
    cursor: pointer;
    color: white; /* tweak per context if needed */
    width: 100%;
    border-radius: 5px !important;
}
.mva-locations .mva-btn {
    background-color: var(--wp--preset--color--primary-2) !important;

}
.mva-locations .mva-btn:hover {
    background-color: var(--wp--preset--color--primary-3) !important;

}


/* Arrow icons for booking/directions */
.mva-locations .schedule-btn::after,
.mva-locations .waitlist-btn::after,
.mva-locations .directions-btn::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f061"; /* fa-arrow-right */
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

/* Chevron for More Info */
.mva-locations .more-info-btn::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078"; /* fa-chevron-down */
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}
.mva-locations .more-info-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.leaflet-marker-icon{
    width:30px !important;
}

   .map-marker {
       padding: 6px; /* adds ~12px total clickable diameter */
   }