.store-locator-page {
    --store-accent: var(--primary-color, #a87358);
    --store-ink: var(--heading-color, #1c1c1c);
    --store-muted: var(--text-muted, #6f6f6f);
    --store-border: var(--border-color, #e4e0dc);
    --store-surface: #fff;
    background: #f7f5f2;
}

.store-locator-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 68px;
    background: #171717;
    color: #fff;
}

.store-locator-hero::before,
.store-locator-hero::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.store-locator-hero::before {
    top: -170px;
    right: -110px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.store-locator-hero::after {
    right: 14%;
    bottom: -210px;
    width: 390px;
    height: 390px;
    border: 90px solid rgba(255, 255, 255, .025);
    border-radius: 50%;
}

.store-locator-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
    align-items: end;
}

.store-locator-hero__copy {
    max-width: 780px;
}

.store-locator-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.45rem, 5vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .98;
}

.store-locator-hero__copy > p:last-child {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 1.05rem;
    line-height: 1.75;
}

.store-locator-eyebrow {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .66);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.store-locator-eyebrow::before {
    width: 34px;
    height: 1px;
    background: var(--store-accent);
    content: '';
}

.store-locator-hero__count {
    display: grid;
    min-width: 180px;
    padding: 5px 0 5px 28px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.store-locator-hero__count strong {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: 1;
}

.store-locator-hero__count span {
    margin-top: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-locator-content {
    padding: 54px 0 90px;
}

.store-locator-explorer {
    display: grid;
    gap: 36px;
}

.store-locator-explorer.has-map {
    grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
    align-items: start;
}

.store-locator-map-panel {
    position: sticky;
    top: 104px;
    min-width: 0;
    border: 1px solid var(--store-border);
    background: var(--store-surface);
}

.store-locator-map-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    min-height: 94px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--store-border);
}

.store-locator-map-panel__header > div,
.store-locator-directory__heading {
    display: flex;
    gap: 14px;
    align-items: center;
}

.store-locator-map-panel__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.store-locator-map-panel__actions > div {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.store-locator-map-panel__header h2,
.store-locator-directory__header h2 {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.24rem;
    font-weight: 650;
}

.store-locator-map-panel__header p {
    max-width: 280px;
    margin: 0;
    color: var(--store-muted);
    font-size: .83rem;
    line-height: 1.55;
    text-align: end;
}

.store-locator-geolocate {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--store-accent);
    background: var(--store-accent);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease;
}

.store-locator-geolocate:hover {
    border-color: #222;
    background: #222;
}

.store-locator-geolocate:disabled {
    cursor: wait;
    opacity: .7;
}

.store-locator-geolocate.is-loading i {
    animation: store-locator-pulse 1s ease-in-out infinite;
}

.store-locator-geolocation-feedback {
    position: absolute;
    z-index: 500;
    top: calc(100% + 8px);
    right: 0;
    width: min(290px, 70vw);
    padding: 9px 11px;
    border-left: 3px solid #b97868;
    background: #fff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .16);
    color: #71483f;
    font-size: .74rem;
    line-height: 1.45;
}

@keyframes store-locator-pulse {
    50% {
        opacity: .35;
        transform: scale(.85);
    }
}

.store-locator-section-index {
    color: var(--store-accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.store-locator-map {
    width: 100%;
    height: min(68vh, 650px);
    min-height: 510px;
    background: #e9ecef;
}

.store-locator-map .leaflet-control-layers,
.store-locator-map .leaflet-bar,
.store-locator-map .leaflet-popup-content-wrapper,
.store-locator-map .leaflet-popup-tip {
    border-radius: 0;
}

.store-locator-map .leaflet-control-layers {
    border: 0;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .18);
}

.store-locator-map .leaflet-control-layers-expanded {
    padding: 8px 11px;
    font-family: inherit;
}

.store-locator-directory {
    min-width: 0;
}

.store-locator-directory__header {
    display: grid;
    gap: 15px;
    min-height: 95px;
    padding: 0 2px 20px;
    border-bottom: 1px solid var(--store-border);
}

.store-locator-directory__header p {
    margin: 0 0 4px;
    color: var(--store-muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.store-locator-search {
    position: relative;
    display: block;
}

.store-locator-search > i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--store-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.store-locator-search input {
    width: 100%;
    height: 43px;
    padding: 9px 14px 9px 40px;
    border: 1px solid var(--store-border);
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: var(--store-ink);
    font-size: .84rem;
}

.store-locator-search input:focus {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 2px rgba(168, 115, 88, .1);
}

.store-locator-list {
    display: grid;
    gap: 22px;
    padding-top: 22px;
}

.store-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--store-border);
    background: var(--store-surface);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.store-card:hover,
.store-card.is-active {
    border-color: var(--store-accent);
    box-shadow: 0 18px 46px rgba(33, 28, 24, .11);
    transform: translateY(-2px);
}

.store-card__visual {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e9e5df;
}

.store-card__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55));
    content: '';
    pointer-events: none;
}

.store-card__image,
.store-card__image-placeholder {
    width: 100%;
    height: 100%;
}

.store-card__image {
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.store-card:hover .store-card__image {
    transform: scale(1.025);
}

.store-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eeeae4, #dcd5cc);
    color: rgba(0, 0, 0, .22);
    font-size: 2.6rem;
}

.store-card__number {
    position: absolute;
    z-index: 1;
    top: 15px;
    left: 17px;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.store-card__map-button {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 14px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .66);
    background: rgba(17, 17, 17, .7);
    color: #fff;
    font-size: .76rem;
    font-weight: 650;
    backdrop-filter: blur(7px);
}

.store-card__map-button:hover {
    background: #fff;
    color: #1d1d1d;
}

.store-card__body {
    padding: 24px;
}

.store-card__header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--store-border);
}

.store-card__header p {
    margin: 0 0 7px;
    color: var(--store-accent);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.store-card__header h3 {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.42rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.store-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 12px;
}

.store-card__status,
.store-card__distance {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: .72rem;
    font-weight: 700;
}

.store-card__status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #929292;
    content: '';
}

.store-card__status.is-open {
    color: #218554;
}

.store-card__status.is-open::before {
    background: #2ca66f;
    box-shadow: 0 0 0 3px rgba(44, 166, 111, .13);
}

.store-card__status.is-closed {
    color: #8a5a50;
}

.store-card__status.is-closed::before {
    background: #b97868;
}

.store-card__distance {
    color: var(--store-muted);
}

.store-card__distance::before {
    width: 1px;
    height: 12px;
    margin-right: 4px;
    background: var(--store-border);
    content: '';
}

.store-card__details {
    display: grid;
    gap: 14px;
    padding: 20px 0;
}

.store-card__detail {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    color: var(--store-muted);
}

.store-card__detail > i {
    padding-top: 3px;
    color: var(--store-accent);
}

.store-card__detail strong,
.store-card__detail span,
.store-card__detail a {
    display: block;
}

.store-card__detail strong {
    margin-bottom: 3px;
    color: var(--store-ink);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-card__detail span,
.store-card__detail a {
    color: var(--store-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.store-card__hours {
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
}

.store-card__hours summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: var(--store-ink);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.store-card__hours summary::-webkit-details-marker {
    display: none;
}

.store-card__hours summary span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.store-card__hours summary span i {
    color: var(--store-accent);
}

.store-card__hours-arrow {
    font-size: 1.1rem;
    transition: transform .2s ease;
}

.store-card__hours[open] .store-card__hours-arrow {
    transform: rotate(180deg);
}

.store-card__hours dl,
.store-card__hours dd {
    margin: 0;
}

.store-card__hours dl {
    padding: 0 0 14px 32px;
}

.store-card__hours dl > div {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) 1fr;
    gap: 12px;
    padding: 4px 0;
    color: var(--store-muted);
    font-size: .82rem;
}

.store-card__hours dt {
    font-weight: 500;
}

.store-card__hours dd {
    text-align: end;
}

.store-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-top: 20px;
}

.store-card__action {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--store-accent);
    color: var(--store-accent);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}

.store-card__action--primary,
.store-card__action:hover {
    background: var(--store-accent);
    color: #fff;
}

.store-card__action--primary:hover {
    background: #222;
    border-color: #222;
}

.store-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.store-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--store-accent);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .28);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    transform: rotate(-45deg);
}

.store-map-marker span {
    transform: rotate(45deg);
}

.store-user-marker {
    display: block;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #2c7be5;
    box-shadow: 0 0 0 5px rgba(44, 123, 229, .22), 0 3px 12px rgba(0, 0, 0, .28);
}

.store-map-popup {
    display: grid;
    gap: 5px;
    min-width: 220px;
    font-family: inherit;
}

.store-map-popup__image {
    width: calc(100% + 40px);
    height: 115px;
    margin: -14px -20px 9px;
    object-fit: cover;
}

.store-map-popup__name {
    color: var(--store-ink);
    font-size: 1rem;
}

.store-map-popup span {
    display: block;
    color: var(--store-muted);
    line-height: 1.4;
}

.store-map-popup a {
    margin-top: 6px;
    color: var(--store-accent);
    font-weight: 700;
}

.store-locator-empty {
    padding: 80px 24px;
    border: 1px solid var(--store-border);
    background: #fff;
    color: var(--store-muted);
    text-align: center;
}

.store-locator-no-results {
    padding: 44px 20px;
    border: 1px solid var(--store-border);
    background: #fff;
    color: var(--store-muted);
    text-align: center;
}

.store-locator-no-results i {
    display: block;
    margin-bottom: 10px;
    color: var(--store-accent);
    font-size: 1.6rem;
}

.store-locator-no-results p {
    margin: 0;
}

.store-locator-empty i {
    display: block;
    margin-bottom: 14px;
    color: var(--store-accent);
    font-size: 2.3rem;
}

@media (max-width: 1199.98px) {
    .store-locator-explorer.has-map {
        grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
        gap: 26px;
    }

    .store-locator-map-panel__header {
        align-items: start;
    }

    .store-locator-map-panel__header p {
        display: none;
    }

    .store-locator-map-panel__actions {
        margin-left: auto;
    }
}

@media (max-width: 991.98px) {
    .store-locator-hero {
        padding: 68px 0 54px;
    }

    .store-locator-hero__inner {
        gap: 40px;
    }

    .store-locator-explorer.has-map {
        grid-template-columns: 1fr;
    }

    .store-locator-map-panel {
        position: static;
    }

    .store-locator-map {
        height: 500px;
        min-height: 0;
    }

    .store-locator-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .store-locator-hero__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .store-locator-hero__count {
        display: flex;
        gap: 14px;
        align-items: baseline;
        min-width: 0;
        padding: 16px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .2);
        border-left: 0;
    }

    .store-locator-hero__count strong {
        font-size: 2.4rem;
    }

    .store-locator-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .store-locator-hero {
        padding: 52px 0 42px;
    }

    .store-locator-hero h1 {
        font-size: 2.55rem;
    }

    .store-locator-content {
        padding: 28px 0 56px;
    }

    .store-locator-map-panel__header {
        min-height: 76px;
        padding: 16px;
    }

    .store-locator-map {
        height: 390px;
    }

    .store-locator-directory__header {
        min-height: 78px;
        padding-bottom: 15px;
    }

    .store-card__visual {
        height: 180px;
    }

    .store-card__body {
        padding: 20px;
    }

    .store-card__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-card,
    .store-card__image,
    .store-card__hours-arrow {
        transition: none;
    }
}
