/* ==========================================================================
   Shops Page
   ========================================================================== */

.shops-page {
    background-color: var(--color-white);
    --shops-title-shift: 26px;
    padding-top: 36px;
    padding-bottom: 88px;
}

.shops-page__map-panel {
    margin-bottom: 94px;
}

.shops-page__map-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.shops-page__map-switch-btn {
    appearance: none;
    border: 1px solid #d7d7d7;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-base);
    font-size: 13px;
    font-weight: var(--weight-regular);
    letter-spacing: -0.02em;
    line-height: 1;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.shops-page__map-switch-btn:hover,
.shops-page__map-switch-btn.is-active {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.shops-page__map-switch-btn.is-active {
    background-color: rgba(193, 89, 16, 0.08);
}

.shops-page__map-panel .shops-page__map {
    margin-bottom: 0;
}

.shops-page__map {
    width: 100%;
    height: 440px;
    overflow: hidden;
    background-color: #e5e5e5;
    margin-bottom: 94px;
}

.shops-page__map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.shops-page__map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e5e5;
}

.shops-page__map-placeholder span {
    font-family: var(--font-base);
    font-size: clamp(22px, 2.2vw, 25px);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: rgba(105, 105, 105, 0.58);
}

.shops-city + .shops-city {
    margin-top: 106px;
}

.shops-city__title {
    font-family: var(--font-base);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: var(--weight-regular);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #c15910;
    margin-left: var(--shops-title-shift);
    margin-bottom: 52px;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.shop-card {
    min-height: 186px;
    border: 1px solid #d7d7d7;
    background-color: transparent;
    padding: 42px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shop-card__list {
    list-style: disc;
    margin-left: 18px;
    margin-bottom: 8px;
    position: relative;
    left: var(--shops-title-shift);
}

.shop-card__list li {
    font-family: var(--font-base);
    font-size: 17px;
    font-weight: var(--weight-regular);
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 29px;
}

.shop-card__phone {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-card__map-link {
    display: inline-block;
    font-family: var(--font-base);
    font-size: 17px;
    font-weight: var(--weight-regular);
    color: var(--color-accent);
    letter-spacing: -0.03em;
    line-height: 29px;
    text-decoration: underline;
    text-underline-offset: 2px;
    position: relative;
    left: var(--shops-title-shift);
    transition: color var(--transition-base);
}

.shop-card__map-link:hover {
    color: var(--color-accent-dark);
}

@media (max-width: 1024px) {
    .shops-page {
        --shops-title-shift: 0;
        padding-top: 32px;
        padding-bottom: 72px;
    }

    .shops-page__map {
        margin-bottom: 72px;
    }

    .shops-city + .shops-city {
        margin-top: 84px;
    }

    .shops-city__title {
        margin-left: 0;
        margin-bottom: 36px;
    }

    .shop-card__list,
    .shop-card__map-link {
        left: 0;
    }
}

@media (max-width: 768px) {
    .shops-page {
        --shops-title-shift: 0;
        background-color: var(--color-white);
        padding-top: 7%;
        padding-bottom: 14%;
    }

    .shops-page__map {
        height: auto;
        aspect-ratio: 302 / 277;
        margin-bottom: 15%;
    }

    .shops-city + .shops-city {
        margin-top: 16%;
    }

    .shops-city__title {
        margin-left: 0;
        margin-bottom: 8%;
        font-size: clamp(24px, 7.2vw, 32px);
    }

    .shops-grid {
        gap: 2.6%;
    }

    .shop-card {
        min-height: auto;
        padding: 8% 6%;
    }

    .shop-card__list {
        margin-left: 5%;
        margin-bottom: 4%;
        left: 0;
    }

    .shop-card__list li,
    .shop-card__map-link {
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.55;
    }

    .shop-card__map-link {
        left: 0;
    }
}

