/* ==========================================================================
   dompage.css — Стили для detail-страниц домиков загородного клуба Умарта
   Версия: 1.1 | 2026-04-23 — увеличены фото (gallery 70%, main-photo 3/2, thumbs 120px)
   ========================================================================== */

/* Страница домика — контейнер */
.page-inner {
    padding: 40px 30px 60px;
    max-width: 1340px;
    margin: 0 auto;
}

.page-dom-single {
    padding-top: 100px;
}

/* Кнопка "назад" */
.page-backwrapper {
    margin-bottom: 24px;
}

.page-back {
    display: inline-flex;
    align-items: center;
    color: #253238;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    gap: 6px;
    transition: opacity 0.2s;
}

.page-back:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Верхняя секция страницы домика */
.dompage-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Галерея — занимает 68% ширины */
.dompage-gallery {
    flex: 1 1 65%;
    max-width: 68%;
}

/* Главное фото — высокое, соотношение 3:2 */
.dompage-main-photo {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 3/2;
    background: #f0ede8;
    min-height: 380px;
}

.dompage-main-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.dompage-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.dompage-main-photo img:hover {
    transform: scale(1.03);
}

/* Миниатюры — крупнее */
.dompage-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dompage-thumb {
    width: calc(33.33% - 10px);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 120px;
    background: #f0ede8;
}

.dompage-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.dompage-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.dompage-thumb img:hover {
    transform: scale(1.05);
}

/* Информационная панель — прижата справа */
.dompage-info {
    flex: 1 1 30%;
    max-width: 360px;
    position: sticky;
    top: 100px;
}

.dom-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 700;
    color: #253238;
    line-height: 1.15;
    margin-bottom: 12px;
}

.dom-size {
    font-size: 16px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
}

.dom-price {
    font-size: 22px;
    font-weight: 600;
    color: #253238;
    margin-bottom: 20px;
}

.dom-price strong {
    font-size: 28px;
    color: #253238;
}

.dom-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 24px;
}

/* Удобства */
.dom-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.feature {
    display: inline-flex;
    align-items: center;
    background: #f5f2ec;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    color: #253238;
    font-weight: 500;
    white-space: nowrap;
}

/* Кнопки действия */
.dom-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dom-actions .button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-outline {
    background: transparent !important;
    border: 2px solid #253238 !important;
    color: #253238 !important;
}

.button-outline:hover {
    background: #253238 !important;
    color: #fff !important;
}

/* Адаптив: планшет */
@media (max-width: 1024px) {
    .dompage-gallery {
        max-width: 62%;
    }

    .dompage-info {
        max-width: 100%;
        flex: 1 1 35%;
        position: static;
    }
}

/* Адаптив: мобиль */
@media (max-width: 900px) {
    .dompage-top {
        flex-direction: column;
        gap: 24px;
    }

    .dompage-gallery,
    .dompage-info {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .dompage-main-photo {
        aspect-ratio: 16/9;
        min-height: 240px;
    }

    .dompage-thumb {
        width: calc(33.33% - 8px);
        min-height: 90px;
    }

    .dom-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .page-inner {
        padding: 20px 16px 40px;
    }

    .page-dom-single {
        padding-top: 80px;
    }

    .dompage-main-photo {
        aspect-ratio: 4/3;
        min-height: 200px;
    }

    .dompage-thumbs {
        gap: 8px;
    }

    .dompage-thumb {
        width: calc(33.33% - 6px);
        min-height: 70px;
    }

    .dom-title {
        font-size: 26px;
    }

    .dom-price {
        font-size: 18px;
    }

    .dom-price strong {
        font-size: 22px;
    }

    .dom-actions .button {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Фикс карточек домиков на странице списка */
.house-card {
    max-width: 100% !important;
    min-height: 500px !important;
}

.houses {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

@media (max-width: 600px) {
    .houses {
        grid-template-columns: 1fr !important;
    }

    .house-card {
        min-height: 400px !important;
    }
}
