/*
 * Страница «Локация» (pages/location.php), макет
 * new_pages/sun-hills-layan-location-updated.html.
 * Только под .np--location; переменные и база — pages.css.
 */

.np--location .loc-hero {
    padding-bottom: 20px;
}

.np--location .loc-lead {
    max-width: 840px;
}

/* ---- Вступление о районе ---- */
.np--location .loc-band {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 36px;
    padding: 28px;
    border-radius: 28px;
    background: #f1f5f6;
}

.np--location .loc-band--text {
    grid-template-columns: 1fr;
}

.np--location .loc-band__sub {
    margin: 0 0 8px;
    color: #8a97a3;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.np--location .loc-band__highlight {
    display: block;
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.np--location .loc-band__text p {
    margin: 0 0 12px;
    color: #71808e;
    line-height: 1.65;
}

.np--location .loc-band__text > :last-child {
    margin-bottom: 0;
}

.np--location .loc-band__img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
}

/* ---- Чипы категорий ---- */
.np--location .loc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
}

.np--location .loc-chip {
    padding: 12px 17px;
    border: 1px solid #e0e6e9;
    border-radius: 30px;
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.np--location .loc-chip:hover,
.np--location .loc-chip.is-active {
    border-color: #b9dfa3;
    background: #ecf7e7;
}

/* ---- Категории и карточки ---- */
.np--location .loc-area {
    padding: 44px 0 30px;
    scroll-margin-top: 100px;
}

.np--location .loc-area .np-wrap {
    padding-top: 40px;
    border-top: 1px solid #eef0f2;
}

.np--location .loc-area .np-h2 {
    margin-bottom: 28px;
}

.np--location .loc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.np--location .loc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: 26px;
    background: #fff;
}

.np--location .loc-card__photo {
    height: 235px;
    overflow: hidden;
    background: #eaf1f4;
}

.np--location .loc-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np--location .loc-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.np--location .loc-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.np--location .loc-card__name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.np--location .loc-card__dot {
    color: #7ecf4a;
}

.np--location .loc-card__distance {
    align-self: flex-start;
    margin: 12px 0 0;
    padding: 6px 12px;
    border-radius: 30px;
    background: #e7f6e7;
    color: #2f7f41;
    font-size: 13px;
    font-weight: 700;
}

.np--location .loc-card__text {
    flex: 1;
    margin: 13px 0 0;
    color: #82909c;
    font-size: 15px;
    line-height: 1.65;
}

.np--location .loc-note {
    margin: 10px 0 0;
    color: #8a97a3;
    font-size: 13px;
}

/* ---- Карта ---- */
.np--location .loc-map {
    position: relative;
    overflow: hidden;
    height: 460px;
    border-radius: 28px;
    background: #eaf1f4;
}

.np--location .loc-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Экскурсия по району ---- */
.np--location .loc-tour {
    margin: 46px 0 76px;
    padding: 42px 46px 40px;
    border-radius: 32px;
    background: #edf4fa;
    scroll-margin-top: 100px;
}

.np--location .loc-tour__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.np--location .loc-tour__eyebrow {
    margin: 0;
    color: #637f9b;
}

.np--location .loc-tour__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: #d9e9f7;
    color: #376b98;
    font-size: 28px;
}

.np--location .loc-tour__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.np--location .loc-tour__lead {
    margin: 0 0 24px;
    max-width: 800px;
    color: #728497;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.np--location .loc-tour__wa {
    min-height: 54px;
    white-space: normal;
    text-align: center;
}

.np--location .loc-form {
    max-width: none;
    margin: 0;
    padding: 28px;
    border-radius: 25px;
    background: #fff;
}

.np--location .loc-form .lead-form__inputs {
    flex-direction: column;
}

/* ---- Адаптив ---- */
@media (max-width: 900px) {
    .np--location .loc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np--location .loc-band,
    .np--location .loc-tour__grid {
        grid-template-columns: 1fr;
    }

    .np--location .loc-map {
        height: 380px;
    }
}

@media (max-width: 560px) {
    .np--location .loc-band {
        padding: 18px;
        border-radius: 24px;
    }

    .np--location .loc-band__highlight {
        font-size: 22px;
    }

    .np--location .loc-band__img {
        height: 200px;
    }

    .np--location .loc-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -22px;
        padding: 0 22px 8px;
        scrollbar-width: none;
    }

    .np--location .loc-chips::-webkit-scrollbar {
        display: none;
    }

    .np--location .loc-grid {
        grid-template-columns: 1fr;
    }

    .np--location .loc-card__photo {
        height: 230px;
    }

    .np--location .loc-area {
        padding: 34px 0 20px;
    }

    .np--location .loc-area .np-wrap {
        padding-top: 32px;
    }

    .np--location .loc-map {
        height: 320px;
        border-radius: 22px;
    }

    .np--location .loc-tour {
        margin: 35px 0 58px;
        padding: 27px 18px 28px;
        border-radius: 27px;
    }

    .np--location .loc-tour__head {
        gap: 10px;
    }

    .np--location .loc-tour__icon {
        width: 42px;
        height: 42px;
    }

    .np--location .loc-tour .loc-br {
        display: none;
    }

    .np--location .loc-form {
        padding: 22px 16px;
    }
}
