/* Стили для модального окна изображения */
    .image-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 2000;
        justify-content: center;
        align-items: center;
    }

    .image-modal-content {
        max-width: 90%;
        max-height: 90%;
        position: relative;
    }

        .image-modal-content img {
            width: 100%;
            height: auto;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 5px;
        }

    .image-modal-title {
        position: absolute;
        bottom: -40px;
        left: 0;
        width: 100%;
        text-align: center;
        color: white;
        font-size: 18px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 0 0 5px 5px;
    }

    .image-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 2001;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        border-radius: 50%;
    }

        .image-modal-close:hover {
            background: rgba(0, 0, 0, 0.8);
        }

    .modal-image-block {
        transition: transform 0.3s ease;
    }

        .modal-image-block:hover {
            transform: scale(1.02);
        }

        .modal-image-block img {
            border: 3px solid #f0f0f0;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .modal-image-block:hover img {
            border-color: #00569c;
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
        }

    .booking-form {
        font: 16px / 20px PT Sans Caption, Arial, sans-serif;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f4f4f4;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 800px;
        margin: 30px auto;
        gap: 10px;
    }

        .booking-form .custom-date-input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            background-color: white;
            width: 120px;
            text-align: center;
            flex-shrink: 0;
        }

        .booking-form button {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            flex-shrink: 0;
        }

            .booking-form button:hover {
                background-color: #0056b3;
            }

    .people-group {
        display: flex;
        align-items: center;
        gap: 5px;
        flex: 1;
        justify-content: flex-end;
    }

        .people-group input[type="number"] {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
            width: 60px;
            text-align: center;
        }

    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-content {
        background-color: white;
        /* padding: 20px; */
        /* border-radius: 10px; */
        /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
        border: 0px solid rgba(0, 0, 0, .2);
        position: relative;
    }

    .close-modal {
        display: none;
    }

    .flatpickr-calendar {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .booking-form form {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

/* Легкое визуальное обновление главной страницы */

body:has(.main--home) {
    background: #dfe4ea;
}

[role="main"].main.main--home {
    --home-canvas-max: 1220px;
    --home-content-max: 1140px;
    --home-canvas-bottom-gap: clamp(20px, 3vw, 36px);
    position: relative;
    z-index: 0;
    background: transparent;
    isolation: isolate;
}

.main--home .home-section__inner {
    max-width: var(--home-content-max);
}

[role="main"].main.main--home::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: var(--home-canvas-bottom-gap);
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--home-canvas-max), 100%);
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(15, 42, 68, 0.06),
        0 12px 48px rgba(15, 42, 68, 0.07);
    pointer-events: none;
}

@media (min-width: 768px) {
    [role="main"].main.main--home::before {
        border-radius: 0 0 var(--prichal-radius-lg) var(--prichal-radius-lg);
    }
}
