.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1
}

.modal-content {
    position: relative;
    background: var(--color-background-off-white);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    z-index: 2;
    animation: slideUp 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary-marsala);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s
}

.modal-close:hover {
    background: var(--color-accent-gold);
    transform: scale(1.1)
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(114, 27, 36, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
    backdrop-filter: blur(4px)
}

.gallery-btn:hover {
    background: rgba(197, 160, 89, 0.6);
    transform: translateY(-50%) scale(1.1)
}

.gallery-prev {
    left: 15px
}

.gallery-next {
    right: 15px
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s
}

.gallery-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px
}

.modal-body {
    padding: 40px 30px
}

.modal-body h2 {
    font-size: 2rem;
    color: var(--color-primary-marsala);
    margin-bottom: 10px
}

.modal-body h3 {
    font-size: 1.3rem;
    color: var(--color-primary-marsala);
    margin-top: 30px;
    margin-bottom: 15px
}

.modal-body p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6
}

.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 30px
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem
}

.amenities-list i {
    color: var(--color-primary-marsala);
    font-size: 1.3rem
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3)
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4)
}

.btn-whatsapp i {
    font-size: 1.5rem
}

@media (max-width:768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh
    }

    .modal-gallery {
        height: 300px
    }

    .modal-body {
        padding: 30px 20px;
        text-align: center
    }

    .modal-body h2,
    .modal-body h3,
    .modal-body p {
        text-align: center
    }

    .amenities-list {
        grid-template-columns: 1fr;
        text-align: left
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center
    }
}

@media (min-width:769px) {
    .modal-body {
        text-align: center
    }

    .modal-body h2,
    .modal-body h3,
    .modal-body p {
        text-align: center
    }

    .amenities-list {
        margin: 0 auto 30px auto;
        max-width: 700px;
        text-align: left
    }
}