/* Stores page (page-stores.php). html is 10px, so 1rem = 10px. */

.stores-page {
    --stores-radius: 8px;
    --stores-soft: #f7f3f6;
    padding-bottom: 6rem;
    color: #333;
}

.stores-icon {
    flex: none;
    width: 2rem;
    height: 2rem;
}

/* ── Intro ───────────────────────────────────────────── */

.stores-intro {
    padding-bottom: 2.4rem;
}
.stores-intro__title {
    margin: 0 0 1.2rem;
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.25;
    color: #000;
}
.stores-intro__text {
    max-width: 72rem;
    margin: 0 0 1.4rem;
    font-size: 1.6rem;
    line-height: 1.6;
}
.stores-intro__cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--svarga-accent);
}
.stores-intro__cta:hover {
    color: #000;
}

/* ── Map ─────────────────────────────────────────────── */

.stores-map {
    scroll-margin-top: 12rem;
}
.stores-map__box {
    position: relative;
    overflow: hidden;
    border-radius: var(--stores-radius);
    background: #eeeaed;
}
.stores-map__canvas {
    height: 560px;
}
.stores-map__fallback {
    margin: 0;
    padding: 2rem 2.4rem;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--stores-soft);
    border-left: 3px solid var(--svarga-accent);
}
.stores-map__fallback[hidden] {
    display: none;
}
.stores-map__box.is-failed {
    background: none;
}
.stores-map__box.is-failed .stores-map__canvas {
    display: none;
}
.stores-map__pin {
    display: block;
    cursor: pointer;
    line-height: 0;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.stores-map__pin img {
    max-width: 64px;
    height: auto;
}
.stores-map__pin.is-active {
    transform: scale(1.25);
    transform-origin: 50% 100%;
}

/* Store card over the map (built by stores-page.js). Bottom offset keeps Google's attribution
   line visible; the camera control is moved to the top right. */
.stores-map__panel {
    position: absolute;
    right: 16px;
    bottom: 32px;
    z-index: 2;
    width: 300px;
    max-height: calc(100% - 64px);
    overflow-y: auto;
    padding: 18px 20px;
    border-radius: var(--stores-radius);
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.stores-map__panel[hidden] {
    display: none;
}
.stores-map__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 28px;
    color: #888;
    cursor: pointer;
}
.stores-map__close:hover {
    color: #000;
}
.stores-map__panel .stores-iw__title {
    padding-right: 20px;
}

.stores-iw {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
}
.stores-iw__logo {
    display: block;
    width: auto;
    height: 22px;
    margin-bottom: 8px;
}
.stores-iw__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}
.stores-iw__row {
    margin: 0 0 4px;
}
.stores-iw__row a {
    color: #000;
    text-decoration: underline;
}
.stores-iw__note {
    color: #888;
}
.stores-iw__route {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--svarga-accent);
    color: #fff !important;
    font-weight: 500;
}
.stores-iw__route:hover {
    background: #5c3a52;
}

/* ── Store blocks ────────────────────────────────────── */

.stores-list {
    padding-top: 4rem;
}
.store {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: var(--stores-radius);
    background: var(--stores-soft);
    scroll-margin-top: 12rem;
}
.store--no-photo {
    grid-template-columns: 1fr;
}
/* City anchor (#city-…): out of the grid, level with the block's top edge. */
.store__anchor {
    position: absolute;
    width: 0;
    height: 0;
    scroll-margin-top: 12rem;
}
.store--reverse .store__media {
    order: 2;
}
.store__media {
    aspect-ratio: 4 / 3;
    background: #eeeaed;
}
.store__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4.8rem;
}
.store__city {
    margin: 0 0 .8rem;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--svarga-accent);
}
.store__title {
    margin: 0 0 2.2rem;
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}
.store__details {
    display: grid;
    gap: 1.4rem;
    margin: 0 0 2.6rem;
    padding: 0;
    list-style: none;
    font-size: 1.6rem;
    line-height: 1.5;
}
.store__detail {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}
.store__detail .stores-icon {
    margin-top: .1rem;
    color: var(--svarga-accent);
}
.store__detail a {
    color: #000;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.store__detail a:hover {
    color: var(--svarga-accent);
}
.store__location {
    display: block;
    font-weight: 500;
    color: #000;
}
.store__note {
    display: block;
    font-size: 1.6rem;
    color: #888;
}
.store__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.store__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 4.8rem;
    padding: 1.2rem 2.4rem;
    border: 1px solid var(--svarga-accent);
    border-radius: var(--stores-radius);
    font-size: 1.6rem;
    font-weight: 500;
}
.store__btn--route {
    background: var(--svarga-accent);
    color: #fff;
}
.store__btn--route:hover,
.store__btn--route:focus {
    background: #5c3a52;
    border-color: #5c3a52;
    color: #fff;
}
.store__btn--call {
    display: none;
    background: #fff;
    color: var(--svarga-accent);
}

/* ── FAQ ─────────────────────────────────────────────── */

.stores-faq {
    padding-top: 3rem;
}
.stores-faq__title {
    margin: 0 0 2rem;
    font-size: 2.6rem;
    font-weight: 500;
    color: #000;
}
.stores-faq__list {
    border-top: 1px solid #e0e0e0;
}
.stores-faq__item {
    border-bottom: 1px solid #e0e0e0;
}
.stores-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    cursor: pointer;
    list-style: none;
}
.stores-faq__question::-webkit-details-marker {
    display: none;
}
.stores-faq__question::after {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    margin: 0 .4rem .4rem 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}
.stores-faq__item[open] .stores-faq__question::after {
    margin-bottom: -.4rem;
    transform: rotate(-135deg);
}
.stores-faq__question h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
}
.stores-faq__question:hover h3 {
    color: var(--svarga-accent);
}
.stores-faq__answer {
    max-width: 72rem;
    padding: 0 0 2rem;
    font-size: 1.6rem;
    line-height: 1.6;
}
.stores-faq__answer p {
    margin: 0 0 1rem;
}
.stores-faq__answer p:last-child {
    margin-bottom: 0;
}
.stores-faq__answer a {
    color: var(--svarga-accent);
    text-decoration: underline !important;
}

/* ── Tablet ──────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .store__info {
        padding: 3rem;
    }
    .store__title {
        font-size: 2.2rem;
    }
}

/* ── Phone ───────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .stores-page {
        padding-bottom: 4rem;
    }
    .stores-intro {
        padding-bottom: 1.6rem;
    }
    .stores-intro__title {
        margin-bottom: .8rem;
        font-size: 2.4rem;
    }
    .stores-intro__text {
        margin-bottom: 1rem;
        font-size: 1.6rem;
        line-height: 1.5;
    }
    .stores-intro__cta {
        display: none;
    }
    .stores-map__canvas {
        height: 400px;
    }
    /* Under the map, not over it: on a narrow map a card would hide most of the pins. */
    .stores-map__panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        max-height: none;
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
    }
    .stores-iw__logo {
        display: none;
    }
    .stores-list {
        padding-top: 3rem;
    }
    .store {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }
    .store--reverse .store__media {
        order: 0;
    }
    .store__info {
        padding: 2.4rem 2rem;
    }
    .store__title {
        margin-bottom: 1.8rem;
        font-size: 2rem;
    }
    .store__details {
        margin-bottom: 2rem;
    }
    .store__btn {
        flex: 1 1 100%;
    }
    .store__btn--call {
        display: inline-flex;
    }
    .stores-faq__title {
        font-size: 2.2rem;
    }
    .stores-faq__question h3 {
        font-size: 1.6rem;
    }
}
