/* =========================================
   Ramadan Page CSS
   Purpose: keep only page-specific UI here.
   Shared cards/modals/buttons live in style.css.
   ========================================= */

/* 1) Filter Bar */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    border-bottom: 3px solid var(--ramadan-gold);
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: -30px auto 0;
    width: 90%;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 0 10px;
    height: 50px;
}

.filter-group i {
    color: var(--ramadan-gold);
    margin-left: 10px;
    font-size: 1rem;
}

.filter-group select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    color: #333;
    outline: none;
    cursor: pointer;
}

.reset-filters-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0 25px;
    height: 50px;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-filters-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* 2) Ramadan Period Badge Colors */
.badge-purple { background: #ff0000 !important; color: white; }
.badge-teal { background: #16a085 !important; color: white; }
.badge-blue { background: #2980b9 !important; color: white; }
.badge-orange { background: #f26329 !important; color: white; }
.badge-red { background: #e74c3c !important; color: white; }
.badge-gold { background: var(--ramadan-gold) !important; color: white; }

/* 3) Discount Progress Bar on Cards */
.discount-progress {
    position: relative;
    margin: 10px 0 14px;
    height: 22px;
    border-radius: 999px;
    background: #f3f3f3;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.discount-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f26329 0%, #f39c12 100%);
}

.discount-progress span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* 4) Booking Popup Enhancements */
.popup-hotel-media {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fafcff;
    border: 1px solid #e8eff8;
}

.popup-hotel-head {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.popup-hotel-head strong {
    color: #1b3655;
    font-size: 1rem;
}

.popup-hotel-head span {
    color: #5f7184;
    font-size: 0.86rem;
}

.popup-media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}

.popup-media-grid img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8edf3;
}

.popup-media-grid img:first-child {
    height: 82px;
}

.food-details-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed #dfcfb3;
    background: #fffaf0;
    color: #6e5530;
    font-size: 0.88rem;
    gap: 8px;
    align-items: center;
}

.food-details-box i {
    color: #c7902f;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        margin-top: -20px;
        width: 95%;
        padding: 15px;
    }

    .filter-group,
    .reset-filters-btn {
        width: 100%;
    }

    .popup-media-grid {
        grid-template-columns: 1fr 1fr;
    }

    .popup-media-grid img:first-child {
        grid-column: 1 / -1;
    }
}
