/* ============================================
   Modals & Interactive Elements
   النوافذ المنبثقة والعناصر التفاعلية
   ============================================ */

/* ========================================
   MODAL BASE STYLES
   ======================================== */

/* Modal Backdrop */
.booking-modal,
.package-modal,
.hotel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    padding: var(--space-4);
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

.booking-modal.active,
.package-modal.active,
.hotel-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content Container */
.booking-modal-content,
.package-modal-content,
.hotel-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

/* Modal Close Button */
.booking-modal-close,
.package-modal-close,
.hotel-modal-close {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.booking-modal-close:hover,
.package-modal-close:hover,
.hotel-modal-close:hover {
    background: var(--primary-emerald);
    color: var(--text-white);
    border-color: var(--primary-emerald);
    transform: rotate(90deg);
}

/* ========================================
   BOOKING MODAL
   ======================================== */

.booking-modal-header {
    text-align: center;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: var(--gradient-emerald);
    color: var(--text-white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.booking-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    color: var(--text-white);
}

.booking-modal-header h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--text-white);
    margin-bottom: var(--space-2);
}

.booking-modal-header p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
}

.booking-modal-body {
    padding: var(--space-8);
}

/* Booking Options */
.booking-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.booking-option {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
}

.booking-option:hover {
    background: var(--bg-white);
    border-color: var(--primary-emerald);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.booking-option.whatsapp {
    border-color: #25D366;
}

.booking-option.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.option-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: var(--text-white);
    flex-shrink: 0;
}

.booking-option.whatsapp .option-icon {
    background: linear-gradient(135deg, #25D366 0%, #1FAA52 100%);
}

.option-info h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-1);
}

.option-info p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ========================================
   PACKAGE MODAL
   ======================================== */

.package-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.package-modal-image {
    position: relative;
    min-height: 400px;
}

.package-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-modal-image .package-badge {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
}

.package-modal-image .package-duration {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-5);
}

.package-modal-info {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
}

.package-modal-info h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
}

.package-modal-info p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.package-modal-features {
    flex: 1;
}

.package-modal-features h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

.package-modal-features ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.package-modal-features ul li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
    padding: var(--space-3);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.package-modal-features ul li i {
    color: var(--primary-emerald);
    font-size: var(--text-xl);
}

.package-modal-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.package-modal-actions .btn {
    flex: 1;
}

/* ========================================
   HOTEL MODAL
   ======================================== */

.hotel-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.hotel-modal-image {
    position: relative;
    min-height: 400px;
}

.hotel-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-modal-stars {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-gold);
    color: var(--text-white);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.hotel-modal-city {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.hotel-modal-info {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
}

.hotel-modal-info h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

.hotel-modal-info p {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
}

.hotel-modal-info p i {
    color: var(--primary-emerald);
    font-size: var(--text-lg);
}

.hotel-modal-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-6);
}

/* ========================================
   RESPONSIVE MODAL DESIGN
   ======================================== */

@media (max-width: 768px) {

    .booking-modal-content,
    .package-modal-content,
    .hotel-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-xl);
    }

    .package-modal-body,
    .hotel-modal-body {
        grid-template-columns: 1fr;
    }

    .package-modal-image,
    .hotel-modal-image {
        min-height: 250px;
    }

    .package-modal-info,
    .hotel-modal-info {
        padding: var(--space-6);
    }

    .booking-modal-header {
        padding: var(--space-6) var(--space-4) var(--space-4);
    }

    .booking-modal-body {
        padding: var(--space-6);
    }

    .booking-modal-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-3xl);
    }

    .booking-modal-header h2 {
        font-size: var(--text-2xl);
    }

    .package-modal-actions,
    .hotel-modal-actions {
        flex-direction: column;
    }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: var(--space-24);
    left: var(--space-6);
    width: 50px;
    height: 50px;
    background: var(--gradient-emerald);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.empty-state i {
    font-size: var(--text-6xl);
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.empty-state p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}