/* Our Branch Locations (Contact Us) - all classes prefixed "abl-" and scoped to .abl-locations so nothing else on the site is affected */
.abl-locations {
    --abl-green: #8bc441;
    --abl-green-dark: #6f9f2f;
    --abl-green-soft: #f3f9ec;
    --abl-navy: #133d55;
    --abl-text: #2b3a44;
    --abl-muted: #6b7a85;
    --abl-border: #e2ead8;
    --abl-radius: 14px;
    padding: 70px 0 60px;
    background: #fff;
}

.abl-locations *,
.abl-locations *::before,
.abl-locations *::after {
    box-sizing: border-box;
}

.abl-locations__title {
    margin: 0 0 30px;
}

.abl-locations__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Card */
.abl-locations .abl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--abl-border);
    border-radius: var(--abl-radius);
    box-shadow: 0 1px 3px rgba(19, 61, 85, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.abl-locations .abl-card:hover,
.abl-locations .abl-card:focus-within {
    transform: translateY(-3px);
    border-color: var(--abl-green);
    box-shadow: 0 12px 26px rgba(19, 61, 85, .12);
}

/* Map: fixed height keeps cards compact and equal */
.abl-card__map {
    position: relative;
    height: 150px;
    background: var(--abl-green-soft);
}

.abl-card__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Map / Satellite toggle (bottom-left thumbnail, like Google Maps "Layers") */
.abl-locations .abl-card__layer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 10px;
    /* Placeholder until the satellite thumbnail loads on first interaction */
    background: linear-gradient(135deg, #5b6b4a, #3d4a35 55%, #6b7a5a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.abl-locations .abl-card__layer:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.abl-locations .abl-card__layer:focus-visible {
    outline: 2px solid var(--abl-navy);
    outline-offset: 2px;
}

/* Oversized embed scaled down so Google's controls fall outside the crop */
.abl-card__layer-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%) scale(.2);
    pointer-events: none;
}

.abl-card__map .abl-card__layer-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.abl-card__layer-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2px 0 3px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #fff;
}

[dir="rtl"] .abl-locations .abl-card__layer {
    right: 10px;
    left: auto;
}

/* Zoom in / out (bottom-right, opposite the layer toggle) */
.abl-card__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.abl-locations .abl-card__zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
}

.abl-locations .abl-card__zoom-btn + .abl-card__zoom-btn {
    border-top: 1px solid var(--abl-border);
}

.abl-locations .abl-card__zoom-btn:hover {
    background: var(--abl-green-soft);
}

.abl-locations .abl-card__zoom-btn:focus-visible {
    outline: 2px solid var(--abl-navy);
    outline-offset: -2px;
}

.abl-card__zoom-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--abl-navy);
    stroke-width: 2.5;
    stroke-linecap: round;
}

[dir="rtl"] .abl-card__zoom {
    right: auto;
    left: 10px;
}

.abl-card__map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    fill: var(--abl-green);
    opacity: .6;
}

/* Content */
.abl-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
    border-top: 3px solid var(--abl-green);
}

.abl-locations .abl-card__business {
    margin: 0;
    font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

.abl-locations .abl-card__branch {
    float: none;
    margin: 4px 0 12px;
    font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--abl-green-dark);
}

/* Address + phone on the left, View More on the right (bottom-aligned) */
.abl-card__row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
}

.abl-card__details {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.abl-locations .abl-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    font-family: 'Gotham Book', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: var(--abl-text);
}

/* Address stays on one line; full text shows on hover (title attribute) */
.abl-card__address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abl-locations .abl-card__detail + .abl-card__detail {
    margin-top: 6px;
}

.abl-card__icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--abl-green-soft);
}

.abl-card__icon svg {
    width: 11px;
    height: 11px;
    fill: var(--abl-green-dark);
}

.abl-locations .abl-card__phone {
    color: inherit;
    text-decoration: none;
}

.abl-locations .abl-card__phone:hover,
.abl-locations .abl-card__phone:focus {
    color: var(--abl-green-dark);
    text-decoration: none;
}

/* View More */
.abl-card__footer {
    flex: 0 0 auto;
}

.abl-locations .abl-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #b8ea05;
    box-shadow: 0 2px 6px rgba(184, 234, 5, .35);
    font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* Hover: slight lift, soft glow, arrow nudges forward */
.abl-locations .abl-card__cta:hover,
.abl-locations .abl-card__cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(184, 234, 5, .55);
    filter: brightness(1.04);
    color: #000;
    text-decoration: none;
}

.abl-locations .abl-card__cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(184, 234, 5, .35);
}

.abl-locations .abl-card__cta:focus-visible {
    outline: 2px solid var(--abl-navy);
    outline-offset: 2px;
}

.abl-card__cta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.abl-locations .abl-card__cta:hover svg,
.abl-locations .abl-card__cta:focus svg {
    transform: translateX(3px);
}

[dir="rtl"] .abl-card__cta svg {
    transform: scaleX(-1);
}

[dir="rtl"] .abl-locations .abl-card__cta:hover svg,
[dir="rtl"] .abl-locations .abl-card__cta:focus svg {
    transform: scaleX(-1) translateX(3px);
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
    .abl-locations {
        padding: 50px 0 40px;
    }

    .abl-locations__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile: 1 column */
@media (max-width: 575px) {
    .abl-locations {
        padding: 40px 0 30px;
    }

    .abl-locations__title {
        margin-bottom: 20px;
    }

    .abl-locations__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .abl-card__map {
        height: 170px;
    }

    .abl-locations .abl-card__business {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abl-locations .abl-card,
    .abl-locations .abl-card__cta,
    .abl-card__cta svg,
    .abl-locations .abl-card__layer {
        transition: none;
    }

    .abl-locations .abl-card:hover,
    .abl-locations .abl-card:focus-within,
    .abl-locations .abl-card__cta:hover,
    .abl-locations .abl-card__cta:focus,
    .abl-locations .abl-card__layer:hover {
        transform: none;
    }
}
