﻿/* =========================================
   1. HOME SPECIFIC RESETS
   ========================================= */
:root {
    --gold: #C49A6C;
    --dark: #0F172A;
    --white: #ffffff;
    --primary: #C49A6C;
    --secondary: #0F172A;
}

body, html {
    overflow-x: hidden;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.1) translateX(0);
    transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .hero-image {
    transform: scale(1) translateX(-20px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 40px;
}

.hero-tag {
    color: #D4AF82;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-title {
    color: #FFFDF9;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-subtitle {
    color: rgba(255, 248, 235, 0.85);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 34px;
    max-width: 560px;
}

.hero-actions .btn-gold {
    background: linear-gradient(135deg, #C49A6C, #B68A5A);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 36px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.35s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
}

    .hero-actions .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
        background: linear-gradient(135deg, #D4AF82, #C49A6C);
    }

/* =========================================
   3. BOOKING WIDGET
   ========================================= */
.booking-container {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding-bottom: 60px;
}

.booking-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-input {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.3s;
    height: 48px;
    font-size: 0.9rem;
}

    .custom-input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.15);
        outline: none;
    }

.input-group-text {
    border-radius: 0.5rem 0 0 0.5rem !important;
}

.btn-search {
    background-color: var(--dark);
    color: var(--gold);
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--dark);
    transition: 0.3s;
    width: 100%;
}

    .btn-search:hover {
        background-color: transparent;
        color: var(--dark);
    }

.pointer {
    cursor: pointer !important;
}

.text-gold {
    color: var(--primary);
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* =========================================
   4. SECTIONS
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

    .section-head h2 {
        color: var(--dark);
        font-weight: 800;
        font-size: 2.5rem;
    }

    .section-head span {
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        font-size: 0.9rem;
        display: block;
        margin-bottom: 10px;
    }

/* =========================================
   5. RESORTS SLIDER - RTL COMPATIBLE
   ========================================= */
.resorts-slider {
    position: relative;
    padding-bottom: 30px;
    direction: ltr; /* Force LTR for consistent behavior */
}

/* Slider Container */
.resorts-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

/* Track that holds all slides */
.resorts-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

    .resorts-track.grabbing {
        cursor: grabbing;
        transition: none;
    }

/* Individual Slide */
.resort-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

/* Swipe Hint Overlay */
.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(196, 154, 108, 0.96);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    pointer-events: none;
    animation: hintPulse 2s ease-in-out infinite;
}

    .swipe-hint i {
        font-size: 1.4rem;
        animation: swipeArrow 1.5s ease-in-out infinite;
    }

    .swipe-hint.fade-out {
        animation: hintFadeOut 0.6s ease forwards;
    }

@keyframes hintPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.95;
    }
}

@keyframes swipeArrow {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

@keyframes hintFadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* =========================================
   6. RESORT CARDS
   ========================================= */
.resort-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    direction: rtl; /* Reset to RTL for card content */
}

    .resort-card:active {
        transform: scale(0.98);
    }

.card-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s ease;
        pointer-events: none;
    }

.resort-card:hover img {
    transform: scale(1.08);
}

.card-rate-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .card-rate-badge i {
        color: #ffc107;
        font-size: 0.85rem;
    }

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.resort-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.resort-location {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

    .resort-location i {
        color: var(--primary);
        margin-left: 6px;
        font-size: 1rem;
    }

.card-actions {
    display: flex;
    gap: 12px;
}

.btn-book-md {
    flex: 2;
    background: var(--primary);
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-book-md:hover {
        background: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

.btn-details-md {
    flex: 1;
    border: 2px solid #e2e8f0;
    color: var(--secondary) !important;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-details-md:hover {
        background: #f8fafc;
        border-color: var(--primary);
        color: var(--primary) !important;
    }

/* =========================================
   7. PAGINATION DOTS
   ========================================= */
.slider-pagination {
    display: none; /* Hidden by default, shown on mobile only */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 35px;
    padding: 15px 0;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .slider-dot:hover {
        background: #94a3af;
        transform: scale(1.3);
    }

    .slider-dot.active {
        width: 45px;
        border-radius: 14px;
        background: linear-gradient(90deg, var(--primary), #D4AF82);
        box-shadow: 0 4px 15px rgba(196, 154, 108, 0.6);
        transform: scale(1.1);
    }

        .slider-dot.active::before {
            content: '';
            position: absolute;
            inset: -5px;
            border-radius: 16px;
            border: 2px solid var(--primary);
            opacity: 0.25;
        }

/* =========================================
   8. RESPONSIVE DESIGN
   ========================================= */

/* Small Tablets and Up */
@media (min-width: 640px) {
    .resort-slide {
        width: calc(50% - 8px);
    }

    .swipe-hint {
        display: none !important;
    }

    .slider-pagination {
        display: none !important;
    }

    .resorts-track {
        gap: 20px;
        cursor: default;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .resort-slide {
        width: calc(33.333% - 11px);
    }
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    .hero-section {
        height: 70vh;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 15px;
    }

    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-actions .btn-gold {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .booking-container {
        margin-top: -50px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-head h2 {
        font-size: 2rem;
    }

    .section-head span {
        font-size: 0.8rem;
    }
}

/* Mobile Specific - Peek Effect */
@media (max-width: 639px) {
    .resort-slide {
        width: 82%;
    }

    .resorts-track {
        gap: 14px;
        padding: 0 9%;
    }

    .slider-pagination {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        height: 65vh;
    }

    .hero-content {
        padding: 0 15px;
        padding-top: 20px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .hero-actions .btn-gold {
        padding: 11px 24px;
        font-size: 0.9rem;
    }

    .booking-container {
        margin-top: -40px;
        padding-bottom: 40px;
    }

    .booking-card {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .booking-filter-form .row > div {
        width: 100%;
    }

    .btn-search {
        height: 50px;
        font-size: 1rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-head {
        margin-bottom: 35px;
    }

        .section-head h2 {
            font-size: 1.65rem;
        }

    .card-img-wrapper {
        height: 250px;
    }

    .card-content {
        padding: 22px 18px;
    }

    .resort-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .resort-location {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .card-actions {
        gap: 10px;
    }

    .btn-book-md,
    .btn-details-md {
        font-size: 0.9rem;
        padding: 13px;
    }

    .slider-pagination {
        margin-top: 28px;
        gap: 9px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

        .slider-dot.active {
            width: 36px;
        }

    .swipe-hint {
        font-size: 0.9rem;
        padding: 14px 26px;
    }
}

/* Very Small Screens */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .resort-slide {
        width: 88%;
    }

    .resorts-track {
        padding: 0 6%;
    }

    .card-img-wrapper {
        height: 230px;
    }

    .resort-title {
        font-size: 1.15rem;
    }

    .btn-book-md,
    .btn-details-md {
        font-size: 0.85rem;
        padding: 12px;
    }

    .swipe-hint {
        font-size: 0.85rem;
        padding: 12px 22px;
    }

        .swipe-hint i {
            font-size: 1.2rem;
        }
}
