/* Resort Hero Section */
.resort-hero {
    padding: 140px 0 80px;
       background-size: cover;
    background-position: center;
    position: relative;
}

.resort-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}
/* === Hero Slideshow === */
.resort-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 10s infinite;
}
@keyframes slideShow {
    0%   { opacity: 0; transform: scale(1); }
    12%  { opacity: 1; transform: scale(1.03); }   /* ~2s */
    30%  { opacity: 1; transform: scale(1.03); }   /* ~5s */
    42%  { opacity: 0; transform: scale(1.06); }   /* ~7s */
    100% { opacity: 0; transform: scale(1); }
}

/* الطبقة الشفافة فوق الخلفية */
.hero-content-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #222;
}
.hero-content {
    position: relative;
    z-index: 2;
}

.resort-title {
    font-weight: 900;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.2;
}

.resort-location {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.resort-location i {
    margin-left: 10px;
}

.resort-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    margin-top: 40px;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-color);
    display: block;
    line-height: 1;
}

.stat-text {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.booking-btn {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    display: inline-flex;
    align-items: center;
}

.booking-btn i {
    margin-left: 10px;
}

.booking-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
}

.whatsapp-btn i {
    margin-left: 10px;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* Compact Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    margin-bottom: 40px;
    font-weight: 800;
    color: #222;
    position: relative;
    font-size: 2.2rem;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: var(--gold-color);
    border-radius: 2px;
}

/* ✅ الحل البسيط والمضمون */
.gallery-section {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* نسبة ثابتة للصور */
.gallery-item::before {
    content: "";
    display: block;
    padding-top: 75%;
    /* نسبة 4:3 */
}

.gallery-item a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-more-btn {
    background-color: transparent;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 10px auto 0;
    cursor: pointer;
    font-size: 1rem;
}

.view-more-btn:hover {
    background-color: var(--gold-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.hidden-gallery-item {
    display: none !important;
}

/* ✅ تحسينات الجوال */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item::before {
        padding-top: 100%;
        /* مربع على الجوال */
    }

    .view-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin-top: 15px;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-caption {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ✅ إصلاح أي تنسيقات متعارضة */
.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Units Section */
.units-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.unit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: var(--transition);
    height: 100%;
}

.unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.unit-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.unit-body {
    padding: 25px;
}

.unit-title {
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.unit-details {
    margin-bottom: 20px;
}

.unit-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.unit-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
}

.price-tag {
    background: var(--light-gold);
    color: var(--gold-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 15px;
}

.unit-btn {
    background-color: transparent;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.unit-btn:hover {
    background-color: var(--gold-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    font-size: 1.3rem;
}

.feature-desc {
    color: #666;
    line-height: 1.7;
}

/* Policy Section */
.policy-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border-right: 4px solid var(--gold-color);
}

.policy-title {
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    margin-bottom: 12px;
    padding-right: 25px;
    position: relative;
}

.policy-list li::before {
    content: '•';
    color: var(--gold-color);
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid var(--gold-color);
    height: 100%;
}

.contact-icon {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.contact-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}



/* Responsive Adjustments */
@media (max-width: 1200px) {
    .resort-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .resort-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .resort-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .booking-btn,
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .resort-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}