.locations {
    background: var(--white);
}

.locations__wrapper {
    gap: clamp(24px, 2.5vw, 48px);
    display: flex;
    flex-direction: column;
}

.locations-title {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(32px, 2.92vw, 56px);
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
    color: var(--gray-100);
}

.locations-tabs {
    display: flex;
    flex-direction: row;
    gap: clamp(12px, 1.25vw, 24px);
    justify-content: center;
    flex-wrap: wrap;
}

.locations-tab {
    display: flex;
    flex-direction: row;
    padding: clamp(16px, 1.25vw, 24px);
    gap: clamp(8px, 0.52vw, 10px);
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.locations-tab:hover {
    background: var(--gray-10, #f8f8f8);
}

.locations-tab svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.locations-tab svg path {
    transition: fill 0.3s ease;
}

.locations-tab.active {
    background: var(--gray-20, #e9ecef);
}

.locations-tab.active svg path {
    fill: var(--gray-100);
}

.locations-tab__text {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 0.83vw, 16px);
    padding-right: clamp(10px, 1.04vw, 20px);
}

.locations-tab__text .location {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.21vw, 4px);
}

.locations-tab__text .location .city {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(18px, 1.25vw, 24px);
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    color: var(--gray-100);
}

.locations-tab__text .location .address {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(12px, 0.73vw, 14px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--gray-60);
}

.locations-tab__text .work-day {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.21vw, 4px);
}

.locations-tab__text .work-day .schedule {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(12px, 0.73vw, 14px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--gray-100);
}

.locations-tab__text .work-day .phone {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(12px, 0.73vw, 14px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--gray-100);
    text-decoration: none;
    transition: color 0.2s ease;
}

.locations-tab__text .work-day .phone:hover {
    color: var(--black, #000);
}

.locations-map-container {
    margin-top: clamp(24px, 2.92vw, 56px);
    width: 100%;
    display: flex;
    justify-content: center;
}

.locations-map-wrapper {
    position: relative;
    width: clamp(320px, 42.6vw, 818px);
    height: clamp(200px, 20.31vw, 390px);
}

.locations-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.locations-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.locations-route-btn {
    position: absolute;
    bottom: clamp(20px, 2.08vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 11;
    pointer-events: auto;
    transition: background 0.3s ease, transform 0.3s ease;
}

.locations-route-btn:hover {
    background: var(--gray-80);
    transform: translateX(-50%) scale(1.05);
}

@media (max-width: 1024px) {
    .locations-title {
        font-size: clamp(28px, 4vw, 36px);
        line-height: 120%;
    }

    .locations-tabs {
        flex-direction: column;
        align-items: stretch;
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        gap: 12px;
    }

    .locations-tab {
        border: 1px solid var(--gray-20, #e0e0e0);
        padding: 16px 20px;
    }

    .locations-tab.active {
        border-color: transparent;
    }

    .locations-map-container {
        margin-top: 24px;
    }

    .locations-map-wrapper {
        width: 100%;
        max-width: 818px;
        height: clamp(260px, 40vw, 390px);
    }
}

@media (max-width: 768px) {
    .locations-title {
        font-size: clamp(24px, 6.5vw, 32px);
        line-height: 120%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .locations__wrapper {
        gap: 20px;
    }

    .locations-title {
        font-size: clamp(24px, 6.5vw, 32px);
        line-height: 120%;
        text-align: center;
    }

    .locations-tabs {
        max-width: 100%;
        gap: 10px;
    }

    .locations-tab {
        padding: 14px 16px;
        gap: 12px;
    }

    .locations-tab__text {
        padding-right: 0;
        gap: 10px;
    }

    .locations-tab__text .location .city {
        font-size: 18px;
    }

    .locations-tab__text .location .address,
    .locations-tab__text .work-day .schedule,
    .locations-tab__text .work-day .phone {
        font-size: 13px;
    }

    .locations-map-wrapper {
        height: clamp(240px, 65vw, 320px);
    }

    .locations-route-btn {
        bottom: 16px;
        padding: 10px 18px;
        font-size: 13px;
    }
}
