/**
 * Villa Black Sea — карточки номеров (ПК и моб)
 */

/* —— ПК: список комнат —— */
@media screen and (min-width: 780px) {
    .nomera-room-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 960px;
        margin: 0 auto 28px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .nomera-room-card {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .nomera-room-card__inner {
        display: grid;
        grid-template-columns: 56px minmax(140px, 200px) 1fr 40px;
        align-items: center;
        gap: 16px;
        padding: 14px 18px;
        background: #fff8ed;
        border-radius: 14px;
        box-sizing: border-box;
        box-shadow: 0 2px 10px rgba(35, 31, 55, 0.08);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .nomera-room-card:hover .nomera-room-card__inner {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(35, 31, 55, 0.12);
    }

    .nomera-room-card__number {
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: #231f37;
        text-align: center;
        line-height: 1.2;
    }

    .nomera-room-card__photo {
        line-height: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .nomera-room-card__photo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .nomera-room-card__body {
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        line-height: 1.45;
        color: #231f37;
        text-align: left;
    }

    .nomera-room-card__body p {
        margin: 0 0 4px;
        padding: 0;
    }

    .nomera-room-card__category {
        font-weight: 600;
    }

    .nomera-room-card__more {
        font-family: 'Montserrat', sans-serif;
        font-size: 28px;
        font-weight: 400;
        color: #231f37;
        text-align: center;
        line-height: 1;
    }
}

/* —— Моб: карточка комнаты —— */
@media screen and (max-width: 779px) {
    .nomera-mob-card-wrap {
        margin: 0 var(--mob-inline-pad, 16px) 14px;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(35, 31, 55, 0.08);
    }

    .nomera-mob-card-table {
        width: 100%;
        margin: 0;
        border-collapse: collapse;
        border-spacing: 0;
        background: #fff8ed;
    }

    .nomera-mob-card-table > tbody > tr > td {
        padding: 0;
        border: 0;
        background: #fff8ed;
    }

    .nomera-mob-card__inner {
        padding: 16px 16px 12px;
        box-sizing: border-box;
    }

    .nomera-mob-card__head {
        font-family: 'Montserrat', sans-serif;
        font-size: 17px;
        font-weight: 700;
        color: #231f37;
        text-align: center;
        margin-bottom: 12px;
    }

    .nomera-mob-card__photo {
        line-height: 0;
        text-align: center;
        margin-bottom: 12px;
    }

    .nomera-mob-card__photo img {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
    }

    .nomera-mob-card__body {
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        line-height: 1.45;
        color: #231f37;
        text-align: left;
    }

    .nomera-mob-card__body .justtext-mob {
        margin: 0 0 8px;
        padding: 0;
        color: #231f37;
        text-align: left;
    }

    .nomera-mob-card__body a {
        font-weight: 600;
    }

    .nomera-mob-card__actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 14px;
    }

    .nomera-mob-btn {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 10px;
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
        color: #ffffff;
        box-sizing: border-box;
        box-shadow: 0 2px 8px rgba(35, 31, 55, 0.14);
    }

    .nomera-mob-btn--komplekt {
        background-color: #362c61;
    }

    .nomera-mob-btn--komplekt:hover {
        background-color: #5540a5;
    }

    .nomera-mob-btn--bron {
        background-color: #ff5b3f;
    }

    .nomera-mob-btn--bron:hover {
        background-color: #ff6b4f;
    }

    /* Ссылки на категории (хаб villa-nomera.php) */
    .nomera-hub-links {
        padding-bottom: 20px;
    }

    .nomera-hub-links > .h2-mob {
        padding-bottom: 10px;
    }

    .nomera-hub-link {
        display: block;
        margin: 0 var(--mob-inline-pad, 16px) 12px;
        text-decoration: none;
        color: #231f37;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(35, 31, 55, 0.08);
    }

    .nomera-hub-link__table {
        width: 100%;
        margin: 0;
        border-collapse: collapse;
        background: #fff8ed;
    }

    .nomera-hub-link__table td {
        vertical-align: middle;
        background: #fff8ed;
    }

    .nomera-hub-link__text-cell {
        padding: 16px 12px 16px 18px;
    }

    .nomera-hub-link__arrow-cell {
        width: 48px;
        padding: 16px 18px 16px 0;
        text-align: center;
    }

    .nomera-hub-link__title {
        margin: 0;
        padding: 0;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        text-align: left;
        color: #231f37;
    }

    .nomera-hub-link__title b {
        font-weight: 600;
        color: #231f37;
    }

    .nomera-hub-link__arrow {
        font-family: 'Montserrat', sans-serif;
        font-size: 24px;
        line-height: 1;
        color: #231f37;
    }
}

/* —— Страница комнаты (villa-nomer-*.php) —— */
.nomer-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nomer-page__komplekt,
.nomer-page__notice {
    padding: 0 20px 16px;
    text-align: left;
}

.nomer-page__book-wrap {
    margin: 0 0 20px;
    padding: 0 20px;
    text-align: center;
}

.nomer-page__book-wrap--bottom {
    margin-top: 8px;
    margin-bottom: 28px;
}

.nomer-page__book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 200px;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #ff5b3f;
    box-shadow: 0 2px 10px rgba(35, 31, 55, 0.18);
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.18s ease;
}

.nomer-page__book:hover {
    background-color: #ff6b4f;
    transform: translateY(-1px);
}

.nomer-page__gallery {
    padding: 0 20px 24px;
    box-sizing: border-box;
}

.nomer-page__gallery img {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 0 auto 12px;
    box-sizing: border-box;
}

.nomer-page__gallery img:last-child {
    margin-bottom: 0;
}
