.gcd-google-locator,
.gcd-google-locator * { box-sizing: border-box; }

.gcd-google-locator {
    --gcd-marker-color: #0874d1;
    --gcd-marker-active-color: #ef4050;
    --gcd-marker-under-construction-color: #f59e0b;
    --gcd-eyebrow-color: #5d7892;
    --gcd-heading-color: #102d50;
    --gcd-subtitle-color: #6e8295;
    --gcd-list-bg: #ffffff;
    --gcd-list-item-bg: #ffffff;
    --gcd-list-text: #173a5c;
    --gcd-list-muted: #74899c;
    --gcd-list-pin: #0874d1;
    --gcd-list-hover: #f3f8fc;
    --gcd-list-active-bg: #0878d8;
    --gcd-list-active-text: #ffffff;
    --gcd-card-bg: #ffffff;
    --gcd-card-title: #0f3153;
    --gcd-card-text: #49657e;
    --gcd-card-button-bg: #0879db;
    --gcd-card-button-text: #ffffff;
    --gcd-blue: var(--gcd-marker-color);
    --gcd-deep: #0d2d52;
    --gcd-muted: #6b7f92;
    --gcd-border: #dce6ee;
    width: 100%;
    color: var(--gcd-deep);
    font-family: inherit;
}

.gcd-google-locator__header {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.gcd-google-locator__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--gcd-eyebrow-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
}

.gcd-google-locator__header h2 {
    margin: 0;
    color: var(--gcd-heading-color);
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.gcd-google-locator__header p {
    margin: 12px auto 0;
    color: var(--gcd-subtitle-color);
    font-size: 16px;
    line-height: 1.55;
}

.gcd-google-locator__shell {
    display: grid;
    grid-template-columns: clamp(290px, 26vw, 340px) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    height: var(--gcd-map-height);
    min-height: 560px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gcd-border);
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 22px 60px rgba(23, 61, 96, .14);
}

.gcd-google-locator__sidebar {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--gcd-list-bg);
    border-right: 1px solid var(--gcd-border);
}

.gcd-search-wrap {
    position: relative;
    padding: 18px 16px 12px;
}

.gcd-search-input {
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px 0 43px !important;
    border: 1px solid #cfdce7 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #173b5d !important;
    font: inherit !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.gcd-search-input:focus {
    border-color: #7eb3df !important;
    box-shadow: 0 0 0 3px rgba(8, 116, 209, .1) !important;
}

.gcd-search-icon {
    position: absolute;
    z-index: 2;
    left: 30px;
    top: 34px;
    width: 17px;
    height: 17px;
    border: 2px solid #6d88a0;
    border-radius: 50%;
}

.gcd-search-icon::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    right: -5px;
    bottom: -2px;
    background: #6d88a0;
    transform: rotate(45deg);
    border-radius: 2px;
}

.gcd-results-count {
    padding: 0 18px 12px;
    color: #8091a2;
    font-size: 12px;
}

.gcd-department-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 8px;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.gcd-department-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    width: calc(100% - 16px);
    margin: 0 8px 6px;
    padding: 14px 13px;
    border: 0;
    border-radius: 10px;
    background: var(--gcd-list-item-bg);
    color: var(--gcd-list-text);
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.gcd-department-item:hover { background: var(--gcd-list-hover); }
.gcd-department-item.is-active {
    color: var(--gcd-list-active-text);
    background: var(--gcd-list-active-bg);
    box-shadow: 0 8px 20px rgba(8, 100, 190, .22);
}

.gcd-department-item__pin {
    position: relative;
    width: 23px;
    height: 23px;
    margin-top: 1px;
    border-radius: 50% 50% 50% 0;
    background: var(--gcd-list-pin);
    transform: rotate(-45deg);
}

.gcd-department-item__pin::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.gcd-department-item.is-active .gcd-department-item__pin { background: #fff; }
.gcd-department-item.is-active .gcd-department-item__pin::after { background: var(--gcd-list-pin); }

.gcd-department-item__content { min-width: 0; }
.gcd-department-item__content strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.25;
}
.gcd-department-item__content small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--gcd-list-muted);
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gcd-department-item.is-active small { color: var(--gcd-list-active-text); opacity: .84; }

.gcd-no-results {
    padding: 24px 18px;
    color: #7b8fa0;
    text-align: center;
    font-size: 13px;
}

.gcd-google-locator__map-area {
    position: relative;
    min-width: 0;
    height: 100%;
    background: #eaf4fb;
}

.gcd-google-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

.gcd-store-card {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    width: min(350px, calc(100% - 36px));
    overflow: hidden;
    border-radius: 16px;
    background: var(--gcd-card-bg);
    box-shadow: 0 18px 46px rgba(25, 63, 98, .22);
    backdrop-filter: blur(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.gcd-store-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.gcd-store-card__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #254967;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.gcd-store-card__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    background: linear-gradient(145deg, #eaf4fb, #d8eaf7);
}

.gcd-store-card__photo,
.gcd-store-card__photo-placeholder {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gcd-store-card__photo {
    display: block !important;
    max-width: none !important;
    object-fit: cover !important;
}

.gcd-store-card__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px !important;
    color: var(--gcd-card-title);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
}

.gcd-store-card.is-under-construction .gcd-store-card__photo-placeholder {
    background: linear-gradient(145deg, #fff7df, #f7e2a7);
}

.gcd-store-card__photo[hidden],
.gcd-store-card__photo-placeholder[hidden] { display: none !important; }

.gcd-store-card__body { padding: 18px; }
.gcd-store-card__name {
    margin: 0 0 14px;
    color: var(--gcd-card-title);
    font-size: 25px;
    line-height: 1.15;
}

.gcd-store-card__row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 10px 0;
    color: var(--gcd-card-text);
    font-size: 13px;
}

.gcd-store-card__row p { margin: 0; line-height: 1.45; }
.gcd-store-card__row a { color: var(--gcd-card-text); text-decoration: none; }
.gcd-store-card__row a:hover { color: var(--gcd-blue); }

.gcd-card-icon {
    display: inline-block;
    position: relative;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #eef5fa;
}

.gcd-card-icon--pin::before {
    content: '';
    position: absolute;
    left: 9px; top: 6px;
    width: 8px; height: 8px;
    border: 2px solid var(--gcd-card-text);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.gcd-card-icon--phone::before {
    content: '☎';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gcd-card-text);
    font-size: 13px;
}

.gcd-store-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 16px;
}

/* WordPress/theme CSS can override the browser's default [hidden] rule.
   Force under-construction contact details and actions to stay hidden. */
.gcd-store-card__row[hidden],
.gcd-store-card__actions[hidden],
.gcd-action-button[hidden],
.gcd-store-card.is-under-construction .gcd-store-card__row,
.gcd-store-card.is-under-construction .gcd-store-card__actions,
.gcd-store-card.is-under-construction .gcd-action-button--call {
    display: none !important;
}

.gcd-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.gcd-action-button--call {
    background: var(--gcd-card-button-bg);
    color: var(--gcd-card-button-text);
}

.gcd-locator__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    overflow: hidden;
    border: 1px solid var(--gcd-border);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(23, 61, 96, .08);
}

.gcd-stat {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 22px;
    border-right: 1px solid #e3ebf2;
    text-align: center;
}
.gcd-stat:last-child { border-right: 0; }
.gcd-stat strong { color: #173855; font-size: 14px; }
.gcd-stat span { margin-top: 4px; color: #7a8da0; font-size: 11px; }

.gcd-api-warning,
.gcd-empty {
    padding: 18px;
    border: 1px solid #d8e3ec;
    border-radius: 12px;
    background: #fff;
    color: #526c82;
}

@media (max-width: 900px) {
    .gcd-google-locator__shell {
        grid-template-columns: 280px minmax(0, 1fr);
        min-height: 600px;
    }
    .gcd-store-card { width: min(310px, calc(100% - 28px)); }
}

@media (max-width: 720px) {
    .gcd-google-locator__header {
        margin-bottom: 22px;
        padding-inline: 10px;
    }
    .gcd-google-locator__header p {
        font-size: 14px;
    }
    .gcd-google-locator__shell {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
        border-radius: 18px 18px 0 0;
    }
    .gcd-google-locator__sidebar {
        height: clamp(250px, 40vh, 340px);
        min-height: 250px;
        max-height: 340px;
        flex: 0 0 auto;
        border-right: 0;
        border-bottom: 1px solid var(--gcd-border);
    }
    .gcd-google-locator__map-area {
        height: clamp(390px, 70vh, 520px);
        min-height: 390px;
    }
    .gcd-store-card {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
    }
    .gcd-store-card {
        max-height: calc(100% - 20px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .gcd-store-card__photo-wrap {
        aspect-ratio: 1 / 1;
        height: auto;
    }
    .gcd-store-card__body { padding: 14px; }
    .gcd-store-card__name { font-size: 20px; }
    .gcd-locator__stats { border-radius: 0 0 18px 18px; }
}


@media (max-width: 480px) {
    .gcd-google-locator__header h2 {
        font-size: clamp(28px, 9vw, 38px);
    }
    .gcd-search-wrap {
        padding: 14px 12px 10px;
    }
    .gcd-search-icon {
        left: 26px;
        top: 30px;
    }
    .gcd-results-count {
        padding: 0 14px 10px;
    }
    .gcd-google-locator__sidebar {
        height: clamp(240px, 42vh, 310px);
        min-height: 240px;
        max-height: 310px;
    }
    .gcd-google-locator__map-area {
        height: clamp(360px, 67vh, 460px);
        min-height: 360px;
    }
    .gcd-store-card {
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-height: calc(100% - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .gcd-store-card__photo-wrap {
        aspect-ratio: 1 / 1;
        height: auto;
    }
    .gcd-store-card__body {
        padding: 12px;
    }
    .gcd-store-card__name {
        margin-bottom: 10px;
        font-size: 19px;
    }
    .gcd-store-card__row {
        margin: 8px 0;
    }
    .gcd-stat {
        min-height: 68px;
        padding: 12px 14px;
    }
}

/* Leaflet / OpenStreetMap map rendering */
.gcd-osm-map.leaflet-container {
    font-family: inherit;
    background: #dceef8;
}

.gcd-osm-map .leaflet-control-zoom {
    border: 0;
    box-shadow: 0 8px 26px rgba(28, 61, 91, .16);
}

.gcd-osm-map .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    line-height: 36px;
    border: 0;
    color: #173a5c;
}

.gcd-osm-map .leaflet-control-attribution {
    padding: 2px 6px;
    background: rgba(255,255,255,.88);
    color: #647b8f;
    font-size: 9px;
}

.gcd-leaflet-marker-icon {
    background: transparent !important;
    border: 0 !important;
}

.gcd-leaflet-marker-pin {
    position: absolute;
    left: 50%;
    top: 1px;
    width: 32px;
    height: 32px;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--gcd-marker-color);
    box-shadow: 0 8px 18px rgba(10, 65, 110, .28);
    transform: translateX(-50%) rotate(-45deg);
    transition: background .18s ease, transform .18s ease;
}

.gcd-leaflet-marker-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.gcd-leaflet-marker-icon.is-active .gcd-leaflet-marker-pin {
    background: var(--gcd-marker-active-color);
    transform: translateX(-50%) rotate(-45deg) scale(1.12);
}

.gcd-leaflet-marker-icon.is-under-construction .gcd-leaflet-marker-pin,
.gcd-leaflet-marker-icon.is-active.is-under-construction .gcd-leaflet-marker-pin {
    background: var(--gcd-marker-under-construction-color);
}


/* v3.1.1: keep the department information card above all Leaflet panes/controls. */
.gcd-google-locator__map-area {
    isolation: isolate;
}

.gcd-google-map,
.gcd-osm-map {
    z-index: 1 !important;
}

.gcd-store-card {
    z-index: 1200 !important;
}

.gcd-store-card:not(.is-hidden) {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

/* 3.2.9: information-bar typography and a map that stays visible on mobile. */
.gcd-locator__stats { font-family: var(--gcd-footer-font, Manrope, Arial, sans-serif); }
.gcd-stat { min-width: 0; overflow-wrap: anywhere; }
.gcd-stat strong { font-family: inherit; font-size: var(--gcd-footer-title-size, 16px); line-height: 1.4; }
.gcd-stat span { font-family: inherit; font-size: var(--gcd-footer-subtitle-size, 13px); line-height: 1.5; }
.gcd-department-item[hidden], .gcd-no-results[hidden] { display: none !important; }
.gcd-store-card.is-hidden { visibility: hidden; }
.gcd-google-locator button:focus-visible,
.gcd-google-locator a:focus-visible { outline: 3px solid #0874d1; outline-offset: 2px; }

@media (max-width: 720px) {
    .gcd-google-locator__sidebar {
        height: 240px;
        min-height: 0;
        max-height: none;
    }
    .gcd-search-input { font-size: 16px !important; }
    .gcd-department-item { min-height: 56px; padding: 12px; font-family: inherit; }
    .gcd-department-item__content strong,
    .gcd-department-item__content small { white-space: normal; overflow-wrap: anywhere; }
    .gcd-department-item__content small { font-size: 12px; }
    .gcd-google-locator__map-area { height: auto; min-height: 0; }
    .gcd-google-map {
        position: relative !important;
        inset: auto !important;
        height: clamp(280px, 48vh, 400px) !important;
        min-height: 0 !important;
    }
    .gcd-store-card {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        width: 100%;
        max-height: none;
        padding: 14px;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--gcd-border);
    }
    .gcd-store-card.is-hidden { display: none; }
    .gcd-store-card__photo-wrap { border-radius: 10px; }
    .gcd-store-card__photo-placeholder { padding: 8px !important; font-size: 13px; letter-spacing: 0; }
    .gcd-store-card__body { min-width: 0; padding: 0; }
    .gcd-store-card__name { padding-right: 38px; font-size: 19px; overflow-wrap: anywhere; }
    .gcd-store-card__row { grid-template-columns: 24px minmax(0, 1fr); gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
    .gcd-card-icon { width: 24px; height: 24px; }
    .gcd-store-card__close { top: 8px; right: 8px; width: 44px; height: 44px; }
    .gcd-action-button { min-height: 44px; font-size: 14px; }
    .gcd-locator__stats { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
    .gcd-stat { border: 0; padding: 14px 10px; }
    .gcd-osm-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
}
@media (max-width: 360px) {
    .gcd-store-card { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 10px; }
}
