﻿/* ===== Overlay ===== */
.hotel-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 38, 54, 0.65);
    /* Deep sea evening */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

    .hotel-modal-overlay:has(.hotel-modal[open]) {
        display: flex;
    }

/* ===== Modal Card ===== */
.hotel-modal {
    display: none;
    flex-direction: column;
    margin: auto;
    background: #FFFCF7;
    /* Soft sand */
    width: 90%;
    max-width: 640px;
    height: 75vh;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalFade 0.3s ease;
    font-family: "Inter", sans-serif;
}

.hotel-modal[open] {
    display: flex;
}

/* ===== Header ===== */
.hotel-modal-header {
    display: flex;
    background: linear-gradient( 135deg, #264653 0%, /* Deep ocean */
    #2A6F97 40%, /* Sea blue */
    #DDBB6A 85%, /* Sunset gold */
    #E89A5C 100% /* Soft coral */
    );
    color: #FFFFFF;
    padding: 20px 20px;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hotel-modal-header-close {
    display: flex;
    text-align: center;
    align-items: center;
    margin-left: auto;
    padding: 6px;
    width: 30px;
    height: 30px;
    font-size: 20pt;
    border-left: solid 1.5px transparent;
    border-top: solid 1.5px transparent;
    border-bottom: solid 2px silver;
    border-right: solid 2px silver;
}

/* ===== Body ===== */
.hotel-modal-body {
    flex: 1; /* This makes the main content grow to fill the remaining space */
    padding: 28px;
    color: #2F3E46;
    line-height: 1.6;
    overflow-x: auto;
    overflow-y: auto;
}

    .hotel-modal-body h3 {
        color: #52796F;
        /* Soft coastal green */
        margin-top: 0;
    }

    .hotel-modal-body ul {
        list-style: none;
        padding: 0;
        margin: 16px 0;
    }

    .hotel-modal-body li {
        padding: 8px 0;
        border-bottom: 1px solid #EFEAE4;
    }

        .hotel-modal-body li:last-child {
            border-bottom: none;
        }

    /* ===== Icons ===== */
    .hotel-modal-body i,
    .hotel-modal-body svg {
        color: #E9C46A;
        /* Sunset gold */
        margin-right: 8px;
    }

/* ===== Footer / Buttons ===== */
.hotel-modal-footer {
    padding: 20px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #F7F3ED;
}

.hotel-modal-button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
}

    .hotel-modal-button.primary {
        background: #F4A261;
        color: #FFFFFF;
    }

        .hotel-modal-button.primary:hover {
            background: #E76F51;
            transform: translateY(-2px);
        }

    .hotel-modal-button.secondary {
        background: transparent;
        color: #264653;
    }

        .hotel-modal-button.secondary:hover {
            background: rgba(38, 70, 83, 0.08);
        }


/* ===== Animation ===== */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
