﻿/* =========================================
   RESORTS PAGE - PREMIUM MOBILE FIRST
   يعتمد على site.css variables
========================================= */

/* HERO */
.resorts-hero {
    background: linear-gradient( rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85) ), url('/imgs/DownHome/Amwaj.jpg') center/cover no-repeat;
    padding: 90px 15px;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-btn {
    padding: 10px 22px;
    border-radius: 30px;
}

/* SECTION */
.resorts-section {
    padding: 50px 0;
    overflow: hidden;
}

/* CARD */
.resort-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .resort-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.12);
    }

/* IMAGE */
.resort-img {
    position: relative;
    height: 190px;
    overflow: hidden;
}

    .resort-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s ease;
    }

.resort-card:hover img {
    transform: scale(1.08);
}

.resort-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.3));
    pointer-events: none;
}

.resort-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* ===== PREMIUM BADGE على الصورة ===== */
.premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.4);
    animation: premiumPulse 2s ease-in-out infinite;
    z-index: 2;
}

    .premium-badge svg {
        flex-shrink: 0;
    }

@keyframes premiumPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(196, 154, 108, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(196, 154, 108, 0.6);
    }
}

/* BODY */
.resort-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .resort-body header {
        margin-bottom: 10px;
    }

    .resort-body h3 {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 4px;
        color: var(--secondary);
    }

.resort-location {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .resort-location::before {
        font-size: 14px;
    }
.resort-location-icon {
    color: var(--primary);
}

.resort-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== AMENITIES SECTION ===== */
.amenities-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: auto;
}

/* AMENITIES - عام */
.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Core Amenities - الأساسية */
.amenity-tag {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

/* Premium Amenities - المميزة */
.amenities-premium {
    margin-top: 2px;
}

.amenity-premium {
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFF8EF 100%);
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
}

    .amenity-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(196, 154, 108, 0.2), transparent);
        transition: left 0.5s ease;
    }

.resort-card:hover .amenity-premium::before {
    left: 100%;
}

.premium-icon {
    color: var(--primary);
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

/* BUTTON */
.btn-primary-lux {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.3);
    margin-top: 8px;
}

    .btn-primary-lux:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(196, 154, 108, 0.4);
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        color: #fff;
    }

/* =========================================
   TABLET
========================================= */
@media (min-width: 768px) {

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .resort-img {
        height: 220px;
    }

    .resort-body {
        padding: 22px;
    }

        .resort-body h3 {
            font-size: 20px;
        }

    .resort-desc {
        font-size: 15px;
    }

    .premium-badge {
        font-size: 12px;
        padding: 7px 16px;
    }

    .amenity-tag,
    .amenity-premium {
        font-size: 13px;
        padding: 7px 15px;
    }

    .premium-icon {
        width: 14px;
        height: 14px;
    }
}

/* =========================================
   DESKTOP
========================================= */
@media (min-width: 1200px) {

    .resorts-hero {
        padding: 120px 20px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .resort-img {
        height: 250px;
    }

    .resort-body {
        padding: 24px;
    }

        .resort-body h3 {
            font-size: 22px;
        }
}

/* منع أي overflow أفقي */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   PAGINATION PREMIUM
========================= */

.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.page-btn {
    display: inline-block;
    margin: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--secondary);
    font-weight: 600;
    min-width: 40px;
    transition: var(--transition);
}

    .page-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

.active-page {
    background: var(--secondary) !important;
    color: #fff !important;
    border-color: var(--secondary) !important;
}
