/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4e0f20;
    --secondary-color: #340A16;
    --accent-color: #4e0f20;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-cream: #F5F1E8;
    --bg-dark: #0a0a0a;
}

html {
    scroll-behavior: smooth;
}

/* Smooth scroll with navbar offset */
section[id] {
    scroll-margin-top: 90px;
}

/* GPU Acceleration for Smooth Animations */
.page-transition,
.page-transition-left,
.page-transition-right,
.page-transition-logo,
.page-transition-spine,
.page-transition-ring {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix white bar below footer in booking page */
body.booking-page {
    background-color: #1a0509; /* Match booking page wrapper background */
}

/* Smooth transition state */
body.page-transition-active,
body:not(.page-loaded) {
    overflow: hidden;
}

/* Arabic Typography Enhancement */
:lang(ar) {
    font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
}

:lang(ar) .navbar,
:lang(ar) .nav-menu,
:lang(ar) .nav-logo-text,
:lang(ar) .btn-book {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Custom Luxury Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: all 0.08s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(78, 15, 32, 0.1);
    border-color: #DAA520;
}

.custom-cursor.click {
    width: 15px;
    height: 15px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #DAA520, var(--secondary-color));
    z-index: 9998;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

/* ========================================
   PAGE TRANSITION - PREMIUM BOOK FLIP
   ======================================== */

/* Prevent content flash during page load and transitions */
body:not(.page-loaded),
body.page-transition-active {
    overflow: hidden !important;
}

/* Hide ALL page content during load and transitions - except transition overlay */
/* Direct children of body (except .page-transition) */
body:not(.page-loaded) > *:not(.page-transition),
body.page-transition-active > *:not(.page-transition) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Specific elements that might escape the above rule */
body:not(.page-loaded) .navbar,
body:not(.page-loaded) .hero,
body:not(.page-loaded) main,
body:not(.page-loaded) footer,
body:not(.page-loaded) .premium-booking,
body:not(.page-loaded) section,
body.page-transition-active .navbar,
body.page-transition-active .hero,
body.page-transition-active main,
body.page-transition-active footer,
body.page-transition-active .premium-booking,
body.page-transition-active .villa-detail-section,
body.page-transition-active .packages-section,
body.page-transition-active .contact-section,
body.page-transition-active .map-section,
body.page-transition-active .page-hero,
body.page-transition-active section {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Booking page: always allow form & calendar interaction (fix date picker) */
body.booking-page:not(.page-loaded) > *:not(.page-transition),
body.booking-page.page-transition-active > *:not(.page-transition),
body.booking-page:not(.page-loaded) .premium-booking,
body.booking-page.page-transition-active .premium-booking {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Contact page: show content immediately without waiting for transition */
body.contact-page:not(.page-loaded) > *:not(.page-transition),
body.contact-page.page-transition-active > *:not(.page-transition),
body.contact-page:not(.page-loaded) section,
body.contact-page.page-transition-active section {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* My Bookings page: show content immediately without waiting for transition */
body.my-bookings-page:not(.page-loaded) > *:not(.page-transition),
body.my-bookings-page.page-transition-active > *:not(.page-transition),
body.my-bookings-page:not(.page-loaded) .navbar,
body.my-bookings-page:not(.page-loaded) section,
body.my-bookings-page:not(.page-loaded) .my-bookings-page,
body.my-bookings-page:not(.page-loaded) footer,
body.my-bookings-page.page-transition-active .navbar,
body.my-bookings-page.page-transition-active section,
body.my-bookings-page.page-transition-active .my-bookings-page,
body.my-bookings-page.page-transition-active footer {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Ensure page transition overlay is always visible during transitions */
.page-transition {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    perspective: 2200px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
}

.page-transition-left,
.page-transition-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #4e0f20 0%, #340A16 50%, #1a0509 100%);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, box-shadow, filter;
    transition: none;
    z-index: 10;
}

.page-transition-left {
    left: 0;
    transform-origin: right center;
    box-shadow: 
        inset -10px 0 30px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(0, 0, 0, 0.5);
}

.page-transition-right {
    right: 0;
    transform-origin: left center;
    box-shadow: 
        inset 10px 0 30px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(0, 0, 0, 0.5);
}

/* Page Loaded State - Smooth Page Opening */
body.page-loaded .page-transition-left {
    transform: rotateY(-95deg) translateZ(-15px);
    box-shadow: 
        inset -10px 0 30px rgba(0, 0, 0, 0.5),
        -40px 0 60px rgba(0, 0, 0, 0.6);
    animation: pageOpenLeft 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.page-loaded .page-transition-right {
    transform: rotateY(95deg) translateZ(-15px);
    box-shadow: 
        inset 10px 0 30px rgba(0, 0, 0, 0.5),
        40px 0 60px rgba(0, 0, 0, 0.6);
    animation: pageOpenRight 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pageOpenLeft {
    0% {
        transform: rotateY(0deg) translateZ(0);
        filter: brightness(1);
    }
    100% {
        transform: rotateY(-95deg) translateZ(-15px);
        filter: brightness(0.88);
    }
}

@keyframes pageOpenRight {
    0% {
        transform: rotateY(0deg) translateZ(0);
        filter: brightness(1);
    }
    100% {
        transform: rotateY(95deg) translateZ(-15px);
        filter: brightness(0.88);
    }
}

/* Page Transition Active - Smooth Page Closing */
body.page-transition-active .page-transition-left {
    transform: rotateY(0deg) translateZ(0);
    box-shadow: 
        inset -10px 0 30px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(0, 0, 0, 0.5);
    animation: pageCloseLeft 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.page-transition-active .page-transition-right {
    transform: rotateY(0deg) translateZ(0);
    box-shadow: 
        inset 10px 0 30px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(0, 0, 0, 0.5);
    animation: pageCloseRight 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pageCloseLeft {
    0% {
        transform: rotateY(-95deg) translateZ(-15px);
        filter: brightness(0.88);
    }
    100% {
        transform: rotateY(0deg) translateZ(0);
        filter: brightness(1);
    }
}

@keyframes pageCloseRight {
    0% {
        transform: rotateY(95deg) translateZ(-15px);
        filter: brightness(0.88);
    }
    100% {
        transform: rotateY(0deg) translateZ(0);
        filter: brightness(1);
    }
}

/* Paper Texture - Subtle Background Pattern */
.page-transition-left::before,
.page-transition-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.015) 2px,
            rgba(255, 255, 255, 0.015) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.015) 2px,
            rgba(255, 255, 255, 0.015) 4px
        );
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

/* Page Edge Shadow - Beautiful Depth Effect */
.page-transition-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.18) 40%,
        rgba(0, 0, 0, 0.08) 70%,
        transparent
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.page-transition-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.18) 40%,
        rgba(0, 0, 0, 0.08) 70%,
        transparent
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

body.page-loaded .page-transition-left::after,
body.page-loaded .page-transition-right::after {
    opacity: 1;
}

.page-transition-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    width: auto;
    height: auto;
}

.page-transition-logo {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    will-change: transform, opacity;
    transition: none;
}

/* Logo appears when pages close and stays visible throughout */
body.page-transition-active .page-transition-logo {
    opacity: 1 !important;
    transform: scale(1) translateY(0);
    animation: logoEntranceBeautiful 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

/* Logo disappears when pages open (synchronized) */
body.page-loaded .page-transition-logo {
    animation: logoExitBeautiful 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

/* ========================================
   LOGO ANIMATIONS - BEAUTIFUL & DYNAMIC
   Smooth entrance with bounce, elegant exit
   ======================================== */

/* Logo entrance - Elegant with subtle bounce */
@keyframes logoEntranceBeautiful {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px) rotate(-10deg);
        filter: blur(5px);
    }
    60% {
        opacity: 1;
        transform: scale(1.12) translateY(-8px) rotate(3deg);
        filter: blur(0px);
    }
    80% {
        transform: scale(0.96) translateY(2px) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0px);
    }
}

/* Logo exit - Smooth and elegant fade */
@keyframes logoExitBeautiful {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) translateY(20px) rotate(5deg);
        filter: blur(3px);
    }
}

.page-transition-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
}

body.page-transition-active .page-transition-logo img {
    animation: logoFloatBeautiful 2.5s ease-in-out infinite 0.7s;
}

@keyframes logoFloatBeautiful {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    25% {
        transform: translateY(-8px) scale(1.02) rotate(1deg);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    }
    50% {
        transform: translateY(-12px) scale(1.04) rotate(0deg);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    75% {
        transform: translateY(-8px) scale(1.02) rotate(-1deg);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    }
}

/* ========================================
   RINGS ANIMATIONS - CLEAN MINIMAL DESIGN
   Removed golden color for cleaner look
   ======================================== */

.page-transition-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    will-change: transform, opacity;
    opacity: 0;
    transition: none;
}

body.page-transition-active .page-transition-ring {
    opacity: 1 !important;
}

body.page-loaded .page-transition-ring {
    animation: ringFadeOutBeautiful 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both;
}

.page-transition-ring:nth-child(1) {
    width: 120px;
    height: 120px;
}

body.page-transition-active .page-transition-ring:nth-child(1) {
    animation: ringRevealBeautiful 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both, 
               ringPulseBeautiful 2.5s ease-in-out infinite 0.75s;
}

.page-transition-ring:nth-child(2) {
    width: 170px;
    height: 170px;
}

body.page-transition-active .page-transition-ring:nth-child(2) {
    animation: ringRevealBeautiful 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
               ringPulseBeautiful 2.5s ease-in-out infinite 0.85s;
}

.page-transition-ring:nth-child(3) {
    width: 220px;
    height: 220px;
}

body.page-transition-active .page-transition-ring:nth-child(3) {
    animation: ringRevealBeautiful 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
               ringPulseBeautiful 2.5s ease-in-out infinite 0.95s;
}


.page-transition-shimmer {
    display: none;
}

.page-transition-spine {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.4) 15%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 85%,
        transparent
    );
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
    z-index: 50;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.page-transition-spine::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3), transparent);
    filter: blur(6px);
    animation: spineGlowClean 2s ease-in-out infinite;
}

@keyframes spineGlowClean {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scaleY(1);
    }
    33% {
        opacity: 0.7;
        transform: translateX(-50%) scaleY(1.03);
    }
    66% {
        opacity: 0.8;
        transform: translateX(-50%) scaleY(1.06);
    }
}

/* ========================================
   SPINE ANIMATIONS - BEAUTIFUL & SYNCHRONIZED
   Clean white spine with smooth reveal/fade
   ======================================== */

body.page-transition-active .page-transition-spine {
    opacity: 1 !important;
    animation: spineRevealBeautiful 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

body.page-loaded .page-transition-spine {
    animation: spineFadeBeautiful 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both;
}

@keyframes spineRevealBeautiful {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0) scaleX(0.5);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.05) scaleX(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1) scaleX(1);
    }
}

@keyframes spineFadeBeautiful {
    0% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.4) scaleX(0.6);
    }
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    overflow: hidden;
}

.section-title.reveal-text {
    opacity: 1;
}

.section-title.reveal-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.reveal-text.active span {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.en {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85em;
    color: #666;
    direction: ltr;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #234d3f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 95, 79, 0.3);
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-book {
        -webkit-tap-highlight-color: rgba(78, 15, 32, 0.1);
        user-select: none;
        -webkit-user-select: none;
    }

    .btn-primary:active,
    .btn-secondary:active,
    .btn-book:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #6f5538;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 107, 71, 0.3);
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 500;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Logo Container Glow Effect */
.nav-logo-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(
        circle,
        rgba(218, 165, 32, 0.3) 0%,
        rgba(78, 15, 32, 0.2) 50%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0;
    animation: logoGlowPulse 2s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
    z-index: -1;
    pointer-events: none;
}

@keyframes logoGlowPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

.nav-logo-link {
    position: relative;
    overflow: hidden;
}

.nav-logo-link img {
    height: 52px;
    width: auto;
    display: block;
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    animation: logoRevealAnimation 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    position: relative;
    will-change: transform, opacity, filter, clip-path;
}

/* SVG Path Drawing Animation (if logo is SVG) */
.nav-logo-link svg,
.nav-logo-link img[src$=".svg"] {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: logoRevealAnimation 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
               logoPathDraw 2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes logoPathDraw {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Logo Reveal Animation - Slow Formation */
@keyframes logoRevealAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
        filter: blur(4px) brightness(0.5);
    }
    20% {
        opacity: 0.3;
        transform: scale(0.85) translateY(-8px);
        clip-path: polygon(0 0, 20% 0, 20% 100%, 0 100%);
        filter: blur(3px) brightness(0.6);
    }
    40% {
        opacity: 0.5;
        transform: scale(0.9) translateY(-5px);
        clip-path: polygon(0 0, 40% 0, 40% 100%, 0 100%);
        filter: blur(2px) brightness(0.7);
    }
    60% {
        opacity: 0.7;
        transform: scale(0.95) translateY(-3px);
        clip-path: polygon(0 0, 60% 0, 60% 100%, 0 100%);
        filter: blur(1px) brightness(0.8);
    }
    80% {
        opacity: 0.9;
        transform: scale(0.98) translateY(-1px);
        clip-path: polygon(0 0, 80% 0, 80% 100%, 0 100%);
        filter: blur(0.5px) brightness(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: blur(0px) brightness(1);
    }
}

/* Alternative: Draw Effect Animation */
.nav-logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(218, 165, 32, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: logoSweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    z-index: 1;
    pointer-events: none;
}

@keyframes logoSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Logo Text Animation */
.nav-logo-text {
    opacity: 0;
    transform: translateX(-20px);
    animation: logoTextReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes logoTextReveal {
    0% {
        opacity: 0;
        transform: translateX(-20px);
        letter-spacing: 0.1em;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        letter-spacing: 0.02em;
    }
}

:lang(ar) .nav-logo-text {
    animation: logoTextReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.nav-logo-text {
    font-family: 'Cairo', 'Tajawal', 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    white-space: nowrap;
}

:lang(ar) .nav-logo-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--primary-color);
}

/* Logo Hover Effects */
.nav-logo-link:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(218, 165, 32, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo-link:hover::after {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo-link:hover .nav-logo-text {
    color: var(--primary-color);
    transform: translateX(2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    font-family: 'Cairo', 'Inter', sans-serif;
}

:lang(ar) .nav-menu a {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-book {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Cairo', 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    box-shadow: 0 4px 15px rgba(78, 15, 32, 0.3);
}

:lang(ar) .btn-book {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-book:hover::before {
    width: 300px;
    height: 300px;
}

.btn-book:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(218, 165, 32, 0.4);
}

.lang-toggle {
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid var(--bg-dark);
    background: transparent;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Cairo', 'Inter', sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
}

:lang(ar) .lang-toggle {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.lang-toggle:hover {
    background: var(--bg-dark);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Close menu when clicking outside */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video video,
.hero-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-video img {
    opacity: 1;
}

.hero-video video.active {
    opacity: 1;
    z-index: 2;
}

.hero-video-primary {
    /* First video starts active */
    opacity: 1 !important;
}

.hero-video-secondary {
    /* Second video starts hidden */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scrollMove {
    0% { opacity: 0; top: 10px; }
    50% { opacity: 1; }
    100% { opacity: 0; top: 30px; }
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
}

.about-img {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/5;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.about-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    filter: contrast(1.02) brightness(1.01);
}

.about-img:hover img {
    transform: scale(1.08);
}

.img-1 {
    margin-top: 0;
}

.img-2 {
    margin-top: 60px;
}

/* Villas Section */
.villas-section {
    padding: 120px 0;
    background: var(--bg-cream);
}

.villas-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: center;
}

.villas-intro-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.intro-img {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/4;
}

.intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.intro-img:hover img {
    transform: scale(1.1);
}

.subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.room-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(78, 15, 32, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform-style: flat;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.08), rgba(78, 15, 32, 0.03));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.room-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.room-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(78, 15, 32, 0.18);
    border-color: rgba(218, 165, 32, 0.2);
}

.room-card:hover::before {
    opacity: 1;
}

.room-card:hover::after {
    transform: scaleX(1);
}

.room-card-image,
.villa-detail-image {
    position: relative;
    overflow: visible;
    aspect-ratio: 4/3;
    border-radius: 24px;
}

/* Improve image quality and reduce sharpness */
.villa-detail-image img,
.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(0.95) brightness(1.02);
    -webkit-filter: contrast(0.95) brightness(1.02);
}

.room-card-image {
    aspect-ratio: 4/3;
}

/* Image Slider - Luxurious & Modern Design */
.room-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 8px 25px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.02));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card-slider:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 
                0 12px 35px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.room-card-slides {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.room-card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 24px;
    overflow: hidden;
}

.room-card-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    z-index: 2;
}

.room-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(0.98) brightness(1.03) saturate(1.05);
    -webkit-filter: contrast(0.98) brightness(1.03) saturate(1.05);
    will-change: transform;
    border-radius: 24px;
}

.room-card-slider:hover .room-card-slide.active img {
    transform: scale(1.08);
}

/* Elegant overlay gradient for depth */
.room-card-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    border-radius: 24px;
}

.room-card-slider:hover .room-card-slide.active::after {
    opacity: 1;
}

/* Slider Controls - Elegant & Modern */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.room-card:hover .slider-controls,
.villa-detail-image:hover .slider-controls,
.room-card-slider:hover .slider-controls {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slider-dot.active {
    background: linear-gradient(135deg, #DAA520, #F4D03F);
    width: 32px;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.slider-dot.active::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
                0 3px 10px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.room-card:hover .slider-arrow,
.villa-detail-image:hover .slider-arrow,
.spa-image:hover .slider-arrow,
.restaurant-image:hover .slider-arrow,
.room-card-slider:hover .slider-arrow {
    opacity: 1;
}

/* Touch devices: always show slider arrows and dots (no hover) */
@media (hover: none) and (pointer: coarse) {
    .room-card .slider-arrow,
    .villa-detail-image .slider-arrow,
    .spa-image .slider-arrow,
    .restaurant-image .slider-arrow,
    .room-card-slider .slider-arrow {
        opacity: 1;
    }
    .room-card .slider-controls,
    .villa-detail-image .slider-controls,
    .spa-image .slider-controls,
    .restaurant-image .slider-controls,
    .room-card-slider .slider-controls {
        opacity: 1;
    }
}

.slider-arrow:hover {
    background: linear-gradient(135deg, #DAA520, #F4D03F);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(218, 165, 32, 0.4),
                0 5px 15px rgba(218, 165, 32, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
    left: 20px;
    right: auto;
}

.slider-arrow.next {
    right: 20px;
    left: auto;
}

/* RTL Support for Arabic - Reverse arrow positions */
:lang(ar) .slider-arrow.prev {
    left: auto;
    right: 20px;
}

:lang(ar) .slider-arrow.next {
    right: auto;
    left: 20px;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-card-image img {
    transform: scale(1.1);
}

.room-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.room-card:hover .room-card-overlay {
    opacity: 1;
}

.room-card-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.98) 100%);
}

.room-info {
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(218, 165, 32, 0.05));
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.room-card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.room-card-content p {
    color: #5a5a5a;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.room-card-content .btn-link {
    margin-top: auto;
    transition: all 0.3s ease;
}

.room-card:hover .room-card-content .btn-link {
    transform: translateX(-4px);
}

.room-card.featured {
    grid-column: span 2;
}

/* Restaurant Section */
.restaurant-section {
    padding: 120px 0;
    background: white;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.restaurant-image {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/5;
    position: relative;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.restaurant-image:hover img {
    transform: scale(1.05);
}

/* Ensure slider works inside restaurant-image */
.restaurant-image .room-card-slider {
    width: 100%;
    height: 100%;
}

.restaurant-image .room-card-slides {
    width: 100%;
    height: 100%;
}

/* Crop bottom part of restaurant images */
.restaurant-image .room-card-slide img {
    object-position: center top;
    height: 110%;
    transform: translateY(-5%);
}

.restaurant-image:hover .room-card-slide.active img {
    transform: translateY(-5%) scale(1.08);
}

/* Spa Section */
.spa-section {
    padding: 120px 0;
    background: var(--bg-cream);
}

.spa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.spa-image {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/5;
    position: relative;
}

.spa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.spa-image:hover img {
    transform: scale(1.05);
}

/* Ensure slider works inside spa-image */
.spa-image .room-card-slider {
    width: 100%;
    height: 100%;
}

.spa-image .room-card-slides {
    width: 100%;
    height: 100%;
}

/* Packages Section */
.packages-section {
    padding: 120px 0;
    background: white;
}

.packages-header {
    text-align: center;
    margin-bottom: 80px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.package-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(78, 15, 32, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform-style: flat;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.08), rgba(78, 15, 32, 0.03));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.package-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(78, 15, 32, 0.18);
    border-color: rgba(218, 165, 32, 0.2);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card:hover::after {
    transform: scaleX(1);
}

.package-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.package-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.package-overlay h3 {
    font-size: 1.8rem;
}

.package-content {
    padding: 30px;
}

.package-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.package-content p {
    color: #666;
    margin-bottom: 20px;
}

/* Discover Section */
.discover-section {
    padding: 120px 0;
    background: var(--bg-cream);
}

.discover-header {
    text-align: center;
    margin-bottom: 80px;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.discover-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(78, 15, 32, 0.25);
    border-color: rgba(218, 165, 32, 0.3);
}

.discover-image {
    width: 100%;
    height: 100%;
}

.discover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-card:hover .discover-image img {
    transform: scale(1.15);
}

.discover-card h3 {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    color: white;
    font-size: 1.9rem;
    z-index: 2;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.discover-card:hover h3 {
    transform: translateY(-4px);
}

.discover-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
    transition: height 0.5s ease;
}

.discover-card:hover::after {
    height: 75%;
}

/* Contact Page */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9 0%, white 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(78, 15, 32, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-info-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-info-card:hover::after {
    opacity: 1;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(78, 15, 32, 0.15);
    border-color: rgba(78, 15, 32, 0.12);
}

.contact-icon-wrapper {
    background: linear-gradient(135deg, rgba(78, 15, 32, 0.08), rgba(218, 165, 32, 0.08));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-icon-wrapper {
    background: linear-gradient(135deg, rgba(78, 15, 32, 0.12), rgba(218, 165, 32, 0.12));
}

.contact-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke-width: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(78, 15, 32, 0.1));
}

.contact-info-card:hover .contact-icon-wrapper svg {
    transform: scale(1.15) rotate(5deg);
    color: var(--secondary-color);
    filter: drop-shadow(0 4px 8px rgba(218, 165, 32, 0.2));
}

.contact-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.contact-info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4E1F20;
    margin-bottom: 14px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.contact-info-card:hover h3 {
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.contact-info-card p {
    font-size: 0.95rem;
    color: #6B5B52;
    margin: 0;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.contact-info-card:hover p {
    color: #4E1F20;
}

.contact-form-wrapper {
    position: sticky;
    top: 110px;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(78, 15, 32, 0.08);
    border: 2px solid rgba(78, 15, 32, 0.05);
}

.contact-form-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-card > p {
    color: #666;
    margin-bottom: 30px;
}

.contact-form-message {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}
.contact-form-message:not(:empty) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.contact-form-message.success {
    background: rgba(34, 139, 34, 0.12);
    border: 1px solid rgba(34, 139, 34, 0.35);
    color: #1a5f1a;
}
.contact-form-message.success::before {
    content: "✓";
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-form-message.error {
    background: rgba(180, 50, 50, 0.1);
    border: 1px solid rgba(180, 50, 50, 0.35);
    color: #a03030;
}
.contact-form-message.error::before {
    content: "!";
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(78, 15, 32, 0.15);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(78, 15, 32, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

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

/* News Page */
.news-section {
    padding: 100px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.news-grid .news-loading,
.news-grid .news-empty,
.news-grid .news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}
.news-grid .news-error { color: #b33; }
.news-modal-error { padding: 2rem; text-align: center; color: #666; }

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(78, 15, 32, 0.08);
    border: 2px solid rgba(78, 15, 32, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(78, 15, 32, 0.15);
    border-color: var(--primary-color);
}

.news-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.news-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news-month {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
}

.news-content {
    padding: 30px;
}

.news-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(78, 15, 32, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: 'Cairo', sans-serif;
}

.news-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    pointer-events: auto; /* Ensure button is clickable */
}

.news-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

.news-link::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-image {
        height: 220px;
    }

    .news-content {
        padding: 25px 20px;
    }

    .news-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 60px 0;
    }

    .news-image {
        height: 200px;
    }

    .news-date {
        top: 15px;
        right: 15px;
        padding: 10px 14px;
    }

    .news-day {
        font-size: 1.5rem;
    }

    .news-month {
        font-size: 0.75rem;
    }

    .news-content {
        padding: 20px 15px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.95rem;
    }
}

/* News Modal */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    cursor: default;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: backdrop-filter 0.4s ease;
}

.news-modal.active .news-modal-overlay {
    backdrop-filter: blur(10px);
}

.news-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 950px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 
        0 25px 100px rgba(78, 15, 32, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
}

.news-modal.active .news-modal-content {
    transform: scale(1) translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 300;
    line-height: 1;
}

.news-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(78, 15, 32, 0.4);
}

.news-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.news-modal-body {
    padding: 0;
    cursor: default;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 15, 32, 0.3) transparent;
}

.news-modal-body::-webkit-scrollbar {
    width: 8px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: rgba(78, 15, 32, 0.3);
    border-radius: 4px;
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 15, 32, 0.5);
}

.news-modal-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin: 0;
    position: relative;
}

.news-modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-modal-content:hover .news-modal-image img {
    transform: scale(1.02);
}

.news-modal-content-wrapper {
    padding: 50px;
    padding-top: 40px;
}

.news-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(78, 15, 32, 0.08);
}

.news-modal-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #340A16 100%);
    padding: 8px 18px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(78, 15, 32, 0.25);
}

.news-modal-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
}

.news-modal-date::before {
    content: '📅';
    font-size: 1rem;
}

.news-modal-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.3;
    font-family: 'Cairo', sans-serif;
    letter-spacing: -0.5px;
}

.news-modal-text {
    font-size: 1.15rem;
    color: #444;
    line-height: 2;
    white-space: pre-line;
    cursor: text;
    text-align: justify;
    font-weight: 400;
}

.news-modal-text p {
    margin-bottom: 20px;
}

.news-modal-text p:last-child {
    margin-bottom: 0;
}

.news-modal-image,
.news-modal-image img {
    cursor: default;
}

.news-modal-title,
.news-modal-category,
.news-modal-date {
    cursor: default;
}

/* Animation for modal content */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-modal-content-wrapper {
    animation: modalFadeIn 0.5s ease-out;
}

/* Smooth scroll behavior */
.news-modal-body {
    scroll-behavior: smooth;
}

/* Enhanced hover effects */
.news-modal-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(78, 15, 32, 0.35);
    transition: all 0.3s ease;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .news-modal-content {
        max-width: 100%;
        border-radius: 20px;
        max-height: 95vh;
    }

    .news-modal-content-wrapper {
        padding: 35px 30px;
        padding-top: 30px;
    }

    .news-modal-image {
        height: 300px;
    }

    .news-modal-image::after {
        height: 80px;
    }

    .news-modal-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .news-modal-text {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .news-modal-header {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .news-modal-category {
        font-size: 0.75rem;
        padding: 7px 16px;
    }

    .news-modal-date {
        font-size: 0.9rem;
    }

    .news-modal-close {
        top: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-modal {
        padding: 10px;
    }

    .news-modal-content {
        border-radius: 16px;
    }

    .news-modal-content-wrapper {
        padding: 25px 20px;
        padding-top: 25px;
    }

    .news-modal-image {
        height: 220px;
    }

    .news-modal-image::after {
        height: 60px;
    }

    .news-modal-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .news-modal-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .news-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .news-modal-category {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .news-modal-date {
        font-size: 0.85rem;
    }

    .news-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

.map-section .container {
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-top: 3px solid var(--primary-color);
    position: relative;
}

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

/* Custom Marker Overlay */
.map-marker-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 10;
    pointer-events: none;
}

.map-marker-pin {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    pointer-events: all;
}

.marker-logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(78, 15, 32, 0.3);
    border: 3px solid var(--primary-color);
    z-index: 2;
    transition: all 0.3s ease;
    animation: markerFloat 2s ease-in-out infinite;
}

.marker-logo-container:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(78, 15, 32, 0.4);
}

.marker-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Pulse Animation */
.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(78, 15, 32, 0.2);
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
    z-index: 1;
}

.marker-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(78, 15, 32, 0.15);
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite 0.5s;
}

/* Marker Info Window */
.map-marker-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(78, 15, 32, 0.2);
    padding: 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
}

.map-marker-info::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.map-marker-pin:hover + .map-marker-info,
.map-marker-info:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-20px);
}

.marker-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.marker-info-logo {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 13px 13px 0 0;
}

.marker-info-logo img {
    width: 70px;
    height: auto;
    filter: brightness(0) invert(1);
}

.marker-info-text {
    padding: 20px;
    text-align: center;
    width: 100%;
}

.marker-info-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Cairo', sans-serif;
}

.marker-info-address,
.marker-info-phone {
    color: #666;
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Animations */
@keyframes markerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }

    .map-marker-pin {
        width: 60px;
        height: 60px;
    }

    .marker-logo-container {
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .map-marker-info {
        min-width: 240px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .map-marker-info::after {
        display: none;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 15, 32, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact {
    list-style: none;
    margin-bottom: 20px;
}

.footer-contact li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-socials a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-socials a svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.footer-socials a:hover svg {
    transform: scale(1.15);
}

/* Instagram specific hover color */
.footer-socials a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Facebook specific hover color */
.footer-socials a[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.footer-simple .footer-brand {
    font-family: 'Cairo', 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

:lang(ar) .footer-simple .footer-brand {
    font-family: 'Cairo', sans-serif;
}

.footer-simple .footer-contact {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-simple .footer-contact li {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-simple .footer-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   PREMIUM BOOKING PAGE - WORLD CLASS DESIGN
   ======================================== */

/* Background Wrapper */
.booking-page-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #1a0509 0%, 
        #340A16 25%, 
        #4e0f20 50%, 
        #340A16 75%, 
        #1a0509 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden; /* Changed from overflow: hidden to allow vertical scroll */
    overflow-y: auto;
    padding-bottom: 0; /* Remove any padding that might cause white space */
    margin-bottom: 0; /* Remove any margin that might cause white space */
}

.booking-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(78, 15, 32, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.booking-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(218, 165, 32, 0.03) 2px, rgba(218, 165, 32, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(218, 165, 32, 0.03) 2px, rgba(218, 165, 32, 0.03) 4px);
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.booking-page {
    position: relative;
    padding: 60px 0 30px; /* Further reduced for compact layout */
    z-index: 1;
    min-height: auto; /* Allow flexible height based on content */
}

/* Header */
.booking-header {
    text-align: center;
    margin-bottom: 20px; /* Reduced from 30px */
    animation: fadeInDown 0.8s ease;
}

.booking-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: #DAA520;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.booking-title-main {
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.4rem; /* Reduced spacing */
    font-size: clamp(1.8rem, 4vw, 2.6rem); /* Reduced max size from 3rem to 2.6rem */
}

.booking-subtitle-text {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 0.5rem; /* Added bottom margin */
    font-size: 0.9rem; /* Slightly reduced */
    line-height: 1.4; /* Reduced line height */
}

/* Steps */
.booking-steps {
    margin-bottom: 20px; /* Reduced from 30px */
    animation: fadeInUp 0.8s ease 0.2s both;
}

.booking-step-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 5px;
    overflow: visible;
}

/* Progress line background - contained within wrapper */
.booking-step-wrapper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 5px;
    right: 5px;
    height: 3px;
    background: rgba(218, 165, 32, 0.25);
    z-index: 0;
    border-radius: 2px;
    pointer-events: none;
    width: calc(100% - 10px);
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.step-progress-line {
    position: absolute;
    top: 16px;
    left: 5px;
    right: 5px;
    height: 3px;
    background: rgba(218, 165, 32, 0.2);
    z-index: 1;
    border-radius: 2px;
    overflow: visible;
    margin: 0;
    width: calc(100% - 10px);
    pointer-events: none;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.step-progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(218, 165, 32, 0.1) 10px,
        rgba(218, 165, 32, 0.1) 20px
    );
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.step-progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
    background-size: 200% 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
    border-radius: 2px;
    z-index: 2;
    animation: progressShine 2s ease-in-out infinite;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    min-width: 0;
}

/* Ensure progress line is always visible */
.step-progress-line[data-progress="1"]::before { width: 0%; }
.step-progress-line[data-progress="2"]::before { width: 25%; }
.step-progress-line[data-progress="3"]::before { width: 50%; }
.step-progress-line[data-progress="4"]::before { width: 75%; }
.step-progress-line[data-progress="5"]::before { width: 100%; }

/* Force progress line visibility */
.step-progress-line {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.booking-step-wrapper::before {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes progressShine {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(218, 165, 32, 1);
    }
}

/* RTL Support */
:lang(ar) .step-progress-line::before {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, #DAA520, #FFD700, #DAA520);
}

:lang(ar) .step-progress-line::after {
    animation: progressStripesRTL 1s linear infinite;
}

@keyframes progressStripesRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20px); }
}

/* Progress states with smooth transitions - contained within cards */
.step-progress-line[data-progress="1"]::before { 
    width: 0% !important; 
    max-width: 100%;
}

.step-progress-line[data-progress="2"]::before { 
    width: 25% !important; 
    max-width: 100%;
    animation: progressGrow 0.8s ease-out;
}

.step-progress-line[data-progress="3"]::before { 
    width: 50% !important; 
    max-width: 100%;
    animation: progressGrow 0.8s ease-out;
}

.step-progress-line[data-progress="4"]::before { 
    width: 75% !important; 
    max-width: 100%;
    animation: progressGrow 0.8s ease-out;
}

.step-progress-line[data-progress="5"]::before { 
    width: 100% !important; 
    max-width: 100%;
    animation: progressComplete 1s ease-out;
}

@keyframes progressGrow {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

:lang(ar) .step-progress-line[data-progress]::before {
    transform-origin: right;
}

@keyframes progressComplete {
    0% {
        transform: scaleX(0.5);
        box-shadow: 0 0 20px rgba(218, 165, 32, 0.8);
    }
    50% {
        box-shadow: 0 0 40px rgba(218, 165, 32, 1), 0 0 60px rgba(218, 165, 32, 0.5);
    }
    100% {
        transform: scaleX(1);
        box-shadow: 0 0 20px rgba(218, 165, 32, 0.8);
    }
}

.booking-step {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    cursor: pointer;
    user-select: none;
    min-width: 0;
}

.booking-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.booking-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(218, 165, 32, 0.2);
}

.booking-step:hover::after {
    opacity: 1;
}

.booking-step.active {
    background: rgba(218, 165, 32, 0.15);
    border-color: #DAA520;
    box-shadow: 0 15px 50px rgba(218, 165, 32, 0.3);
    transform: scale(1.05);
    z-index: 10;
    position: relative;
    overflow: hidden;
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    box-shadow: 0 4px 15px rgba(78, 15, 32, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.booking-step:hover .step-number::before {
    width: 100%;
    height: 100%;
}

.booking-step.active .step-number {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    box-shadow: 0 5px 25px rgba(218, 165, 32, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.booking-step.completed .step-number {
    background: linear-gradient(135deg, var(--primary-color), #DAA520);
    box-shadow: 0 5px 25px rgba(78, 15, 32, 0.5), 0 0 15px rgba(218, 165, 32, 0.4);
    position: relative;
    animation: completedPulse 2s ease-in-out infinite;
}

.booking-step.completed .step-number::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: completedShimmer 2s ease-in-out infinite;
}

@keyframes completedShimmer {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes completedPulse {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(78, 15, 32, 0.5), 0 0 15px rgba(218, 165, 32, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 5px 30px rgba(78, 15, 32, 0.6), 0 0 25px rgba(218, 165, 32, 0.6);
        transform: scale(1.05);
    }
}

.booking-step.completed .step-number {
    color: transparent !important;
    font-size: 0 !important;
}

.booking-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: white;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: checkmarkAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2;
}

@keyframes checkmarkAppear {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.booking-step.completed {
    background: rgba(78, 15, 32, 0.08);
    border-color: rgba(218, 165, 32, 0.4);
    position: relative;
    overflow: hidden;
}

.booking-step.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.1), transparent);
    animation: completedShine 3s ease-in-out infinite;
}

@keyframes completedShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.step-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
    line-height: 1.3;
    margin-top: 4px;
}

.booking-step.active .step-label {
    color: #FFD700;
    font-weight: 700;
}

.booking-step.completed .step-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    opacity: 0.8;
}

/* Panel */
.booking-panel {
    display: grid;
    grid-template-columns: 360px 1fr; /* Reduced from minmax(320px, 480px) for better balance */
    gap: 24px; /* Reduced from 30px */
    align-items: start;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hide hero image when showing room selection (step 2) and other steps */
.booking-hero.step-2-hidden,
.booking-panel.full-width .booking-hero {
    display: none !important;
}

/* Make booking panel full width when hero is hidden */
.booking-panel.full-width {
    grid-template-columns: 1fr !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Better room selection layout when hero is hidden */
.booking-panel.full-width .rooms-selection-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-height: none;
}

/* Apply zoom out to all step panels when panel is full width - Increased scale for better visibility */
.booking-panel.full-width .step-panel,
.booking-panel.full-width .booking-card:not(.step-panel) {
    width: 100%;
    max-height: calc(100vh - 180px); /* Fit in viewport */
    overflow-y: auto; /* Allow scrolling only if needed */
    transform: scale(0.8) !important; /* Increased from 0.67 to 0.8 for better visibility */
    transform-origin: center top; /* Scale from top center */
    margin: 0 auto;
    will-change: transform; /* Optimize for transform */
}

/* Remove scrolling from step-2 (room selection) */
.booking-panel.full-width #step-2 {
    overflow-y: visible !important;
    max-height: none !important;
}

/* Remove scrolling from step-3 (guest information) */
.booking-panel.full-width #step-3 {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
}

/* Remove scrolling from step-5 (payment) */
.booking-panel.full-width #step-5 {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
}

/* Remove any animations that might cause the "jump" effect */
.booking-panel.full-width .step-panel,
.booking-panel.full-width .booking-card:not(.step-panel) {
    animation: none !important;
    transition: none !important;
}

/* Apply zoom immediately when panel becomes full-width */
.booking-panel.full-width #step-1,
.booking-panel.full-width #step-2,
.booking-panel.full-width #step-3,
.booking-panel.full-width #step-4,
.booking-panel.full-width #step-5 {
    transform: scale(0.8) !important; /* Increased from 0.67 to 0.8 */
    transform-origin: center top;
}

/* Tablets: single column; step-1 visible ONLY when body has booking-step-1 */
@media (max-width: 1024px) {
    .booking-panel {
        grid-template-columns: 1fr;
    }
    body.booking-step-1 #step-1,
    body.booking-step-1 .booking-card:not(.step-panel) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body.booking-step-2 #step-1,
    body.booking-step-3 #step-1,
    body.booking-step-4 #step-1,
    body.booking-step-5 #step-1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Responsive adjustments for room cards */
@media (max-width: 1400px) {
    .rooms-selection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .room-selection-image {
        height: 150px; /* Slightly smaller */
    }
}

@media (max-width: 1200px) {
    .rooms-selection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .room-selection-content {
        padding: 10px;
    }
    
    .room-selection-image {
        height: 140px;
    }
}

/* Card */
.booking-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 18px; /* Compact padding */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: visible; /* Changed to prevent scrolling */
    max-height: none; /* Remove max-height restriction */
    display: flex;
    flex-direction: column;
}

/* Smaller card for step 1 (dates selection) */
.booking-card:not(.step-panel) {
    max-width: 500px; /* Limit width for step 1 */
    margin: 0 auto;
    /* Apply zoom out always to prevent scrolling */
    transform: scale(0.85) !important;
    transform-origin: center top;
    animation: none !important;
    transition: none !important;
    /* Remove scrolling - card should fit without it */
    overflow: visible;
    max-height: none;
}

/* Apply zoom out to step 1 card when panel is full width - Smaller scale for step 1 */
.booking-panel.full-width .booking-card:not(.step-panel) {
    transform: scale(0.75) !important; /* Smaller scale for step 1 (dates selection) */
    transform-origin: center top;
    animation: none !important;
    transition: none !important;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #DAA520, var(--primary-color));
    background-size: 200% 100%;
    animation: shimmerTop 3s linear infinite;
}

@keyframes shimmerTop {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px; /* Reduced */
}

.booking-card-title {
    font-size: 1.2rem; /* Reduced */
    font-family: 'Cairo', 'Cormorant Garamond', serif;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.booking-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Fields */
.booking-field {
    margin-bottom: 12px; /* Reduced for more compact layout */
}

#roomCountField {
    margin-bottom: 12px; /* Compact spacing */
}

.booking-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: 'Cairo', sans-serif;
}

.booking-input-wrapper {
    position: relative;
    z-index: 1;
}

.booking-input {
    width: 100%;
    padding: 10px 36px 10px 12px; /* Reduced padding for more compact form */
    border-radius: 10px;
    border: 2px solid rgba(78, 15, 32, 0.15);
    background: white;
    font-size: 0.9rem; /* Reduced from 0.95rem */
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.booking-input:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.1);
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none; /* Allow clicks to pass through to input */
    z-index: 1; /* Behind input */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.7;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Flatpickr Custom Styling - Beautiful Professional Calendar Design - Compact Size */
.custom-datepicker .flatpickr-calendar {
    border-radius: 12px; /* Reduced from 16px */
    box-shadow: 0 10px 40px rgba(78, 15, 32, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(78, 15, 32, 0.1);
    font-family: 'Cairo', 'Inter', sans-serif;
    overflow: hidden;
    background: white;
    margin-top: 8px;
    animation: calendarFadeIn 0.3s ease-out;
    position: fixed !important; /* Use fixed positioning for better control */
    z-index: 10000 !important; /* Higher than page transition overlay (9999) */
    transform: scale(0.85); /* Make calendar smaller */
    transform-origin: top center;
    top: auto !important; /* Will be calculated by JavaScript */
    left: auto !important; /* Will be calculated by JavaScript */
}

/* Hide calendar by default - Flatpickr will handle visibility */
.custom-datepicker .flatpickr-calendar:not(.open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Show calendar when it has the 'open' class */
.custom-datepicker .flatpickr-calendar.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Flatpickr calendar is always on top */
.flatpickr-calendar {
    z-index: 10000 !important;
}

.flatpickr-calendar.open {
    z-index: 10000 !important;
    display: block !important;
}

/* إخفاء الروزنامة في كل المراحل ما عدا الخطوة 1 (الحاسوب والجوال واللوحي) */
body.booking-step-2 .flatpickr-calendar,
body.booking-step-3 .flatpickr-calendar,
body.booking-step-4 .flatpickr-calendar,
body.booking-step-5 .flatpickr-calendar,
body.booking-step-2 [class*="flatpickr"],
body.booking-step-3 [class*="flatpickr"],
body.booking-step-4 [class*="flatpickr"],
body.booking-step-5 [class*="flatpickr"],
body.booking-step-2 > .flatpickr-calendar,
body.booking-step-2 > .flatpickr-calendarContainer,
body.booking-step-3 > .flatpickr-calendar,
body.booking-step-3 > .flatpickr-calendarContainer,
body.booking-step-4 > .flatpickr-calendar,
body.booking-step-4 > .flatpickr-calendarContainer,
body.booking-step-5 > .flatpickr-calendar,
body.booking-step-5 > .flatpickr-calendarContainer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
}

/* تأكيد إخفاء الروزنامة على الأجهزة اللوحية والنقالة في المرحلة 2 وما بعد */
@media (max-width: 1024px), (hover: none) {
    body.booking-step-2 .flatpickr-calendar,
    body.booking-step-3 .flatpickr-calendar,
    body.booking-step-4 .flatpickr-calendar,
    body.booking-step-5 .flatpickr-calendar,
    body.booking-step-2 [class*="flatpickr"],
    body.booking-step-3 [class*="flatpickr"],
    body.booking-step-4 [class*="flatpickr"],
    body.booking-step-5 [class*="flatpickr"],
    body.booking-step-2 > .flatpickr-calendar,
    body.booking-step-2 > .flatpickr-calendarContainer,
    body.booking-step-3 > .flatpickr-calendar,
    body.booking-step-3 > .flatpickr-calendarContainer,
    body.booking-step-4 > .flatpickr-calendar,
    body.booking-step-4 > .flatpickr-calendarContainer,
    body.booking-step-5 > .flatpickr-calendar,
    body.booking-step-5 > .flatpickr-calendarContainer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
}

@keyframes calendarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-datepicker .flatpickr-months {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 14px; /* Reduced from 20px */
    border-radius: 12px 12px 0 0; /* Reduced from 16px */
}

.custom-datepicker .flatpickr-month {
    color: white;
    height: auto;
    padding: 0;
}

.custom-datepicker .flatpickr-current-month {
    color: white;
    font-size: 0.95rem; /* Reduced from 1.1rem */
    font-weight: 700;
    padding: 0;
}

.custom-datepicker .flatpickr-prev-month,
.custom-datepicker .flatpickr-next-month {
    color: white;
    fill: white;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-datepicker .flatpickr-prev-month:hover,
.custom-datepicker .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.custom-datepicker .flatpickr-weekdays {
    background: rgba(78, 15, 32, 0.05);
    padding: 8px 0; /* Reduced from 12px */
    border-bottom: 1px solid rgba(78, 15, 32, 0.1);
}

.custom-datepicker .flatpickr-weekday {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem; /* Reduced from 0.85rem */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-datepicker .flatpickr-days {
    padding: 8px; /* Reduced from 12px */
}

.custom-datepicker .flatpickr-day {
    border-radius: 8px; /* Reduced from 10px */
    border: 2px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 1px; /* Reduced from 2px */
    height: 32px; /* Reduced from 38px */
    line-height: 32px; /* Reduced from 38px */
    font-size: 0.85rem; /* Reduced font size */
}

.custom-datepicker .flatpickr-day:hover {
    background: rgba(78, 15, 32, 0.1);
    border-color: rgba(78, 15, 32, 0.2);
    transform: scale(1.05);
}

.custom-datepicker .flatpickr-day.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(78, 15, 32, 0.3);
    font-weight: 700;
}

.custom-datepicker .flatpickr-day.today {
    border-color: #DAA520;
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(218, 165, 32, 0.1);
}

.custom-datepicker .flatpickr-day.today:hover {
    background: rgba(218, 165, 32, 0.2);
}

.custom-datepicker .flatpickr-day.flatpickr-disabled,
.custom-datepicker .flatpickr-day.prevMonthDay,
.custom-datepicker .flatpickr-day.nextMonthDay {
    color: rgba(0, 0, 0, 0.2);
    opacity: 0.4;
    cursor: not-allowed;
}

/* RTL Support for Arabic */
:lang(ar) .custom-datepicker .flatpickr-calendar {
    direction: rtl;
}

:lang(ar) .custom-datepicker .flatpickr-prev-month {
    right: auto;
    left: 20px;
}

:lang(ar) .custom-datepicker .flatpickr-next-month {
    left: auto;
    right: 20px;
}

/* Input styling for date picker */
.date-picker-input {
    cursor: pointer !important;
}

.date-picker-input:not([readonly]) {
    cursor: text;
}

.date-picker-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(78, 15, 32, 0.1);
}

/* Counter - متناسق ومرتب */
.booking-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    border: 2px solid rgba(78, 15, 32, 0.15);
    border-radius: 8px;
    padding: 6px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.counter-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    flex-shrink: 0;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    -webkit-tap-highlight-color: rgba(78, 15, 32, 0.2);
    user-select: none;
    -webkit-user-select: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.counter-btn:hover {
    background: linear-gradient(135deg, #5a1126, var(--primary-color));
    transform: scale(1.03);
}

.counter-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.counter-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.booking-grid .booking-field {
    min-width: 0;
    overflow: visible;
}

.booking-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(78, 15, 32, 0.1), transparent);
    margin: 20px 0;
}

.booking-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #2C2C2C;
    background: #F8F6F3;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-left: 4px solid #DAA520;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.booking-note:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
}

.note-icon-wrapper {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4A90E2;
    border-radius: 50%;
    color: white;
    margin-top: 2px;
}

.note-icon-wrapper svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.note-text {
    flex: 1;
    line-height: 1.7;
    color: #4A4A4A;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px; /* More compact */
    font-size: 0.9rem; /* Reduced */
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px; /* Reduced */
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(78, 15, 32, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 12px; /* Reduced */
    flex-shrink: 0; /* Prevent button from shrinking */
    margin-bottom: 0; /* Ensure button is at bottom */
}

.premium-btn .btn-text {
    display: inline-block;
    position: relative;
    z-index: 2;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.premium-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), #DAA520, var(--primary-color));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    animation: none;
}

.premium-btn:hover::before {
    width: 400px;
    height: 400px;
}

.premium-btn:hover::after {
    opacity: 1;
    animation: shimmerPulse 2s ease-in-out infinite;
}

@keyframes shimmerPulse {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(78, 15, 32, 0.5), 0 0 20px rgba(218, 165, 32, 0.3);
    animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(78, 15, 32, 0.5), 0 0 20px rgba(218, 165, 32, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(78, 15, 32, 0.6), 0 0 30px rgba(218, 165, 32, 0.5);
    }
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

:lang(ar) .btn-arrow {
    transform: rotate(180deg);
}

.premium-btn:hover .btn-arrow {
    transform: translateX(5px);
}

:lang(ar) .premium-btn:hover .btn-arrow {
    transform: rotate(180deg) translateX(5px);
}

/* Hero */
.booking-hero {
    position: relative;
    height: 100%;
    min-height: 340px; /* Reduced from 450px to fit in viewport */
    max-height: 420px; /* Reduced from 500px */
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.booking-highlight {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.highlight-icon-wrapper {
    flex-shrink: 0;
    position: relative;
}

.highlight-icon {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(218, 165, 32, 0.3));
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 2px 4px rgba(218, 165, 32, 0.3));
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 4px 8px rgba(218, 165, 32, 0.5));
    }
}

.highlight-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-highlight h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #4E1F20;
    font-family: 'Cormorant Garamond', 'Cairo', serif;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.highlight-circle {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(218, 165, 32, 0.4);
    border-radius: 50%;
    flex-shrink: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.booking-highlight:hover .highlight-circle {
    border-color: rgba(218, 165, 32, 0.7);
    background: rgba(218, 165, 32, 0.1);
}

.booking-highlight p {
    color: #6B5B52;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .booking-panel {
        grid-template-columns: 1fr;
    }

    .booking-step-wrapper {
        flex-wrap: wrap;
    }

    .booking-step {
        flex: 1 1 calc(33.333% - 14px);
        min-width: 120px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        min-height: 400px;
    }

    body.booking-step-1 #step-1,
    body.booking-step-1 .booking-card:not(.step-panel) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: -1;
    }
    body.booking-step-2 #step-1,
    body.booking-step-3 #step-1,
    body.booking-step-4 #step-1,
    body.booking-step-5 #step-1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .booking-hero {
        order: 0;
    }
}

@media (max-width: 600px) {
    .booking-card {
        padding: 24px;
    }

    .booking-step {
        flex: 1 1 calc(50% - 10px);
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .booking-counter {
        max-width: 100%;
    }
}

/* ========== صفحة الحجز - تنسيق احترافي للوحي والجوال ========== */
@media (max-width: 1024px) {
    .booking-page {
        padding: 28px 0 24px;
    }
    .booking-page .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }
    .booking-header {
        margin-bottom: 20px;
        padding: 0 4px;
    }
    .booking-title-main {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.3;
    }
    .booking-subtitle-text {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.45;
    }
    .booking-steps {
        margin-bottom: 20px;
    }
    .booking-step-wrapper {
        padding: 10px 6px;
        gap: 10px;
        max-width: 100%;
    }
    .booking-step {
        padding: 14px 10px;
        min-width: 0;
        border-radius: 14px;
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .step-label {
        font-size: 0.72rem;
        line-height: 1.2;
    }
    .booking-panel {
        gap: 20px;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    body.booking-step-1 #step-1,
    body.booking-step-1 .booking-card:not(.step-panel) {
        max-width: 100%;
        width: 100%;
        transform: none !important;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
    .step-panel,
    #step-2,
    #step-3,
    #step-4,
    #step-5 {
        max-width: 100%;
        width: 100%;
        transform: none !important;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
    .booking-panel.full-width .step-panel,
    .booking-panel.full-width #step-2,
    .booking-panel.full-width #step-3,
    .booking-panel.full-width #step-4,
    .booking-panel.full-width #step-5 {
        transform: none !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .booking-panel.full-width .booking-card:not(.step-panel),
    .booking-panel.full-width #step-1 {
        transform: none !important;
    }
    .booking-card {
        padding: 24px 20px;
    }
    .booking-card-title {
        font-size: 1.15rem;
    }
    .booking-field {
        margin-bottom: 18px;
    }
    .booking-field label {
        font-size: 0.9rem;
    }
    .booking-input {
        min-height: 48px;
        padding: 14px 44px 14px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
    .premium-btn,
    .booking-next {
        min-height: 52px;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-radius: 12px;
    }
    .rooms-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-height: none;
    }
    .room-selection-card {
        border-radius: 14px;
    }
    .room-selection-image {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .booking-page .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
    }
    .booking-page {
        padding: 22px 0 20px;
    }
    .booking-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
    .booking-title-main {
        font-size: 1.65rem;
        line-height: 1.25;
    }
    .booking-step-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .booking-step {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 90px;
        padding: 12px 8px;
    }
    .step-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    .booking-panel {
        padding: 0 12px;
    }
    .booking-card,
    #step-1,
    .step-panel,
    #step-2,
    #step-3,
    #step-4,
    #step-5 {
        padding: 22px 18px;
        border-radius: 16px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
        transform: none !important;
    }
    .booking-panel.full-width #step-2,
    .booking-panel.full-width #step-3,
    .booking-panel.full-width #step-4,
    .booking-panel.full-width #step-5 {
        transform: none !important;
        max-height: none !important;
    }
    .rooms-selection-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .room-selection-image {
        height: 120px;
    }
    .booking-card-title {
        font-size: 1.1rem;
    }
    .booking-input {
        min-height: 48px;
        font-size: 16px;
    }
    .premium-btn,
    .booking-next {
        min-height: 50px;
        padding: 14px 22px;
        width: 100%;
        max-width: 100%;
    }
    .booking-hero .hero-image-wrapper {
        min-height: 280px;
    }
    .booking-highlight {
        padding: 14px 16px;
    }
    .booking-highlight h4 {
        font-size: 1.1rem;
    }
    .counter-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
    }
    .counter-value {
        font-size: 1.1rem;
        min-width: 36px;
    }
    .booking-note {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .booking-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .booking-page {
        padding: 16px 0 12px;
    }
    .booking-header {
        margin-bottom: 12px;
    }
    .booking-title-main {
        font-size: 1.4rem;
    }
    .booking-subtitle-text {
        font-size: 0.8rem;
    }
    .booking-step-wrapper {
        gap: 6px;
        padding: 6px 0;
    }
    .booking-step {
        flex: 1 1 calc(50% - 6px);
        min-width: 75px;
        padding: 10px 4px;
    }
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .step-label {
        font-size: 0.6rem;
    }
    body.booking-step-2 #step-1,
    body.booking-step-3 #step-1,
    body.booking-step-4 #step-1,
    body.booking-step-5 #step-1 {
        display: none !important;
        visibility: hidden !important;
    }
    .booking-card,
    .step-panel,
    #step-2,
    #step-3,
    #step-4,
    #step-5 {
        padding: 18px 14px;
        border-radius: 14px;
        transform: none !important;
    }
    .booking-card-header {
        margin-bottom: 12px;
    }
    .booking-card-title {
        font-size: 1rem;
    }
    .booking-field {
        margin-bottom: 14px;
    }
    .booking-field label {
        font-size: 0.85rem;
    }
    .booking-input {
        min-height: 48px;
        padding: 14px 44px 14px 14px;
        font-size: 16px;
        border-radius: 12px;
    }
    .rooms-selection-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .booking-grid {
        gap: 14px;
    }
    .counter-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.25rem;
    }
    .premium-btn,
    .booking-next {
        min-height: 52px;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-radius: 12px;
    }
    .booking-hero .hero-image-wrapper {
        min-height: 220px;
    }
    .booking-highlight {
        padding: 12px 14px;
        bottom: 12px;
    }
    .booking-highlight h4 {
        font-size: 1rem;
    }
    .booking-highlight p {
        font-size: 0.8rem;
    }
    .booking-step-wrapper::before,
    .step-progress-line {
        top: 14px;
    }
    .booking-page-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-rating {
    color: rgba(255, 255, 255, 0.7);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .villas-intro,
    .restaurant-grid,
    .spa-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .img-2 {
        margin-top: 0;
    }

    .room-card.featured {
        grid-column: span 1;
    }

    .spa-grid {
        direction: ltr;
    }
    
    .spa-grid .spa-content {
        order: 2;
    }
    
    .spa-grid .spa-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .about-images,
    .villas-intro-images {
        grid-template-columns: 1fr;
    }

    .room-cards,
    .packages-grid,
    .discover-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 15px 20px;
    }

    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Hero Styles */
.page-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure video in page-hero displays correctly */
.page-hero .hero-video video {
    opacity: 1 !important;
}

/* Ensure all pages display images fully without cropping */
.page-hero .hero-video img {
    object-position: center center;
    height: 100%;
    transform: none;
}

/* Restaurant hero: fill hero, no letterboxing, focus on dining area */
.restaurant-page .page-hero .hero-video img {
    object-fit: cover;
    object-position: center 40%;
}
.restaurant-page .page-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.6) 100%);
}
.restaurant-page .page-hero .hero-subtitle,
.restaurant-page .page-hero .hero-title,
.restaurant-page .page-hero .hero-description {
    text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
}

.page-hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    opacity: 0.9;
}

/* Villas Grid Section */
.villas-grid-section {
    padding: 80px 0;
    background: white;
}

.villas-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.villa-grid-card {
    display: block;
    background: var(--bg-cream);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}

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

.villa-grid-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.villa-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.villa-grid-card:hover .villa-grid-image img {
    transform: scale(1.1);
}

.villa-grid-content {
    padding: 40px;
}

.villa-grid-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

.villa-grid-content p {
    color: #666;
    line-height: 1.6;
}

/* About Retreat Section */
.about-retreat-section {
    padding: 120px 0;
    background: var(--bg-cream);
}

.about-retreat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.retreat-image {
    overflow: hidden;
    border-radius: 12px;
}

.retreat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.retreat-image:hover img {
    transform: scale(1.05);
}

/* Full Image Section */
.full-image-section {
    padding: 0;
}

.full-width-image {
    width: 100%;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Overview Link */
.footer-overview-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.footer-overview-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Active Navigation Link */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Villa Detail Page */
.villa-detail-hero {
    height: 80vh;
}

.villa-detail-section {
    padding: 100px 0;
}

.villa-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.villa-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.villa-features-list {
    list-style: none;
    margin: 30px 0;
}

.villa-features-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.villa-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.villa-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.villa-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

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

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

/* Dining Page Styles */
.menu-section {
    padding: 100px 0;
    background: white;
}

.menu-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.menu-category h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-family: 'Cormorant Garamond', serif;
}

.menu-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.menu-item h4 {
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', serif;
}

.menu-item-price {
    font-weight: 600;
    color: var(--secondary-color);
}

.menu-item p {
    color: #666;
    line-height: 1.6;
}

/* Restaurant & Dining Styles */
.restaurant-intro-section {
    padding: 100px 0;
    background: white;
}

.restaurant-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.restaurant-intro-image {
    overflow: hidden;
    border-radius: 12px;
}

.restaurant-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.restaurant-intro-image:hover img {
    transform: scale(1.05);
}

.dining-gallery-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.dining-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dining-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
}

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

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

.ingredients-section {
    padding: 100px 0;
    background: white;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ingredients-image {
    overflow: hidden;
    border-radius: 12px;
}

.ingredients-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ingredients-image:hover img {
    transform: scale(1.05);
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover,
.menu-tab.active {
    background: var(--secondary-color);
    color: white;
}

.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
}

.menu-note {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 40px;
    font-style: italic;
}

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

/* Cookbook Section */
.cookbook-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

.cookbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cookbook-image {
    overflow: hidden;
    border-radius: 12px;
}

.cookbook-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cookbook-image:hover img {
    transform: scale(1.05);
}

/* Bar Section */
.bar-section {
    padding: 100px 0;
    background: white;
}

.bar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.bar-image {
    overflow: hidden;
    border-radius: 12px;
}

.bar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bar-image:hover img {
    transform: scale(1.05);
}

/* Discover Page Styles */
.discover-detail-section {
    padding: 100px 0;
}

.discover-detail-section:nth-child(even) {
    background: var(--bg-cream);
}

.discover-detail-section:nth-child(odd) {
    background: white;
}

.discover-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.discover-detail-image {
    overflow: hidden;
    border-radius: 12px;
}

.discover-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.discover-detail-image:hover img {
    transform: scale(1.05);
}

/* Packages Detail Page */
.package-detail-section {
    padding: 100px 0;
}

.package-detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.package-detail-header {
    position: relative;
    height: 400px;
}

.package-detail-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-detail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.package-detail-overlay h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.package-badge-large {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.package-detail-body {
    padding: 60px;
}

.package-includes {
    list-style: none;
    margin: 30px 0;
}

.package-includes li {
    padding: 15px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.package-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.package-price {
    text-align: center;
    padding: 40px;
    background: var(--bg-cream);
    border-radius: 12px;
    margin-top: 40px;
}

.package-price-amount {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--secondary-color);
    font-weight: 600;
}

.package-price-note {
    color: #666;
    margin-top: 10px;
}

/* Spa/Relax Page Styles */
.treatments-section {
    padding: 100px 0;
    background: white;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.treatment-card {
    padding: 40px;
    background: var(--bg-cream);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.treatment-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    color: var(--secondary-color);
}

.treatment-duration {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.treatment-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 15px;
}

/* Other Villas Section */
.other-villas-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

/* Responsive Design for New Pages */
@media (max-width: 1024px) {
    .villas-grid-large {
        grid-template-columns: 1fr;
    }

    .about-retreat-grid,
    .villa-detail-grid,
    .restaurant-intro-grid,
    .ingredients-grid,
    .cookbook-grid,
    .bar-grid,
    .discover-detail-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .dining-gallery,
    .treatments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 60vh;
        min-height: 400px;
    }

    .page-hero .hero-title {
        font-size: 2.5rem;
    }

    .villa-grid-content {
        padding: 30px;
    }

    .villa-gallery {
        grid-template-columns: 1fr;
    }
}

/* Smooth Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    /* Navigation */
    .nav-container {
        padding: 18px 30px;
    }

    .nav-menu {
        gap: 30px;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Sections */
    .section-title {
        font-size: 2.8rem;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-wrapper {
        position: static;
    }

    /* Booking Grid */
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Map */
    .map-container {
        height: 450px;
    }
}

/* Tablets Landscape (1024px and below) - Enhanced Tablet Experience */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 40px;
        max-width: 100%;
    }

    .nav-container {
        padding: 18px 35px;
    }

    .nav-logo-link img {
        height: 50px;
    }

    .nav-logo-text {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .room-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .villa-detail-grid {
        gap: 50px;
    }

    .contact-grid {
        gap: 50px;
    }

    /* Booking Page - Tablet */
    .rooms-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 500px;
        gap: 14px;
    }

    .room-selection-image {
        height: 120px;
    }

    .room-selection-content {
        padding: 12px;
    }
}

/* Tablets (768px and below) - Enhanced Mobile Experience */
@media (max-width: 768px) {
    /* Navigation - Premium Mobile Design */
    .nav-container {
        padding: 16px 24px;
        flex-wrap: wrap;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-logo-link {
        gap: 10px;
    }

    .nav-logo-link img {
        height: 48px;
        transition: transform 0.3s ease;
    }

    .nav-logo-link:active img {
        transform: scale(0.95);
    }

    .nav-logo-text {
        font-size: 1.05rem;
        font-weight: 700;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 241, 232, 0.98) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 80px 30px 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        animation: mobileMenuSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes mobileMenuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(78, 15, 32, 0.08);
        transition: all 0.3s ease;
    }

    .nav-menu li:active {
        background: rgba(78, 15, 32, 0.05);
        transform: translateX(5px);
    }

    .nav-menu a {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 12px 0;
        display: block;
        color: var(--text-dark);
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(135deg, var(--primary-color), #DAA520);
        border-radius: 2px;
        transition: height 0.3s ease;
    }

    .nav-menu a:hover::before,
    .nav-menu a:active::before {
        height: 60%;
    }

    .nav-actions {
        gap: 12px;
        flex-wrap: wrap;
    }

    .btn-book {
        padding: 12px 24px;
        font-size: 0.9rem;
        font-weight: 600;
        min-height: 44px; /* Touch-friendly */
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(78, 15, 32, 0.2);
    }

    .btn-book:active {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(78, 15, 32, 0.3);
    }

    .lang-toggle {
        min-width: 50px;
        min-height: 44px; /* Touch-friendly */
        padding: 10px 16px;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        z-index: 10000;
    }

    .menu-toggle:active {
        background: rgba(78, 15, 32, 0.1);
        transform: scale(0.95);
    }

    .menu-toggle span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hero - Enhanced Tablet Experience */
    .hero,
    .page-hero {
        height: 65vh;
        min-height: 450px;
        padding: 20px;
    }

    .hero-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
        letter-spacing: -0.02em;
    }

    .page-hero .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1rem;
        letter-spacing: 0.15em;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.7;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Container - Better Spacing */
    .container {
        padding: 0 30px;
        max-width: 100%;
    }

    /* Sections - Enhanced Spacing */
    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .section-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* Room Cards - Enhanced Touch Experience */
    .room-cards,
    .villas-grid-large,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 10px;
    }

    .room-card {
        transform: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .room-card:active {
        transform: scale(0.98);
    }

    .room-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 45px rgba(78, 15, 32, 0.15);
    }

    .room-card-image,
    .villa-detail-image {
        border-radius: 20px 20px 0 0;
    }

    /* Villa Detail Grid - Better Mobile Layout */
    .villa-detail-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .villa-detail-image {
        order: 1;
        border-radius: 20px;
        overflow: hidden;
    }

    .villa-detail-content {
        order: 2;
        padding: 0 10px;
    }

    .villa-detail-content h2 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .villa-features-list {
        gap: 14px;
        margin: 25px 0;
    }

    .villa-features-list li {
        font-size: 1.05rem;
        padding-right: 30px;
        line-height: 1.7;
    }

    .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly */
        margin-top: 25px;
        border-radius: 50px;
        box-shadow: 0 6px 20px rgba(78, 15, 32, 0.2);
    }

    .btn-primary:active {
        transform: scale(0.96);
    }

    /* Contact Info Cards */
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-info-card {
        min-height: 170px;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    /* Booking Counter */
    .booking-counter {
        gap: 8px;
        padding: 6px 8px;
    }

    .counter-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Map */
    .map-container {
        height: 400px;
    }

    .map-marker-pin {
        width: 60px;
        height: 60px;
    }

    .marker-logo-container {
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .map-marker-info {
        min-width: 240px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    /* Slider - Enhanced Touch Controls */
    .room-card-slider {
        border-radius: 18px;
    }

    .room-card-slide,
    .room-card-slide img {
        border-radius: 18px;
    }

    .slider-arrow {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .slider-arrow.prev {
        left: 12px;
        right: auto;
    }

    .slider-arrow.next {
        right: 12px;
        left: auto;
    }

    :lang(ar) .slider-arrow.prev {
        right: 12px;
        left: auto;
    }

    :lang(ar) .slider-arrow.next {
        left: 12px;
        right: auto;
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.92);
    }

    .slider-controls {
        bottom: 18px;
        padding: 8px 14px;
        gap: 10px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 30px;
    }
}

/* Mobile Phones (480px and below) - Premium Mobile Design */
@media (max-width: 480px) {
    /* Navigation - Optimized for Small Screens */
    .nav-container {
        padding: 14px 18px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-logo-link {
        gap: 8px;
    }

    .nav-logo-link img {
        height: 42px;
    }

    .nav-logo-text {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-book {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 40px;
        border-radius: 50px;
    }

    .lang-toggle {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-width: 46px;
        min-height: 40px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    /* Hero - Optimized for Mobile */
    .hero,
    .page-hero {
        height: 55vh;
        min-height: 380px;
        padding: 15px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
        letter-spacing: -0.01em;
    }

    .page-hero .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.1em;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 100%;
    }

    /* Container - Mobile Optimized */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    /* Sections - Better Mobile Spacing */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .section-text {
        font-size: 1rem;
        line-height: 1.75;
    }

    /* Villa Cards - Mobile Optimized */
    .room-card-content,
    .villa-detail-content {
        padding: 24px 20px;
    }

    .room-info {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .room-card h3,
    .villa-detail-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .villa-detail-content h2 {
        font-size: 1.8rem;
    }

    .villa-features-list {
        gap: 12px;
        margin: 20px 0;
    }

    .villa-features-list li {
        font-size: 1rem;
        padding-right: 28px;
        line-height: 1.7;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-height: 46px;
        width: 100%;
        max-width: 300px;
        margin: 25px auto 0;
        display: block;
        -webkit-tap-highlight-color: rgba(78, 15, 32, 0.15);
    }

    .btn-primary:active {
        transform: scale(0.96);
        background: #3a1a2a;
    }

    /* Improve mobile menu animation */
    .nav-menu {
        animation: mobileMenuSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Better spacing for mobile content */
    .villa-detail-content,
    .room-card-content {
        padding: 24px 18px;
    }

    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Improve form inputs on mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px;
    }

    /* Better scroll behavior */
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Remove default mobile styles */
    * {
        -webkit-tap-highlight-color: rgba(78, 15, 32, 0.1);
    }

    /* Contact Info Cards */
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        min-height: 160px;
    }

    .contact-icon-wrapper {
        padding: 16px;
    }

    .contact-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .contact-card-content {
        padding: 16px;
    }

    .contact-info-card h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .contact-info-card p {
        font-size: 0.9rem;
    }

    /* Contact Form - Mobile Optimized */
    .contact-form-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .contact-form-card h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly */
        border-radius: 12px;
        border: 2px solid rgba(78, 15, 32, 0.1);
        transition: all 0.3s ease;
        width: 100%;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(78, 15, 32, 0.1);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: block;
        font-weight: 600;
        color: var(--text-dark);
    }

    button[type="submit"],
    .btn-submit {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        font-weight: 600;
        min-height: 50px;
        border-radius: 50px;
        margin-top: 10px;
    }

    /* Booking - Mobile Optimized */
    .booking-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .booking-step {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .booking-step h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    /* Touch-friendly interactive elements */
    a, button, .room-card, .contact-info-card {
        -webkit-tap-highlight-color: rgba(78, 15, 32, 0.1);
    }

    /* Improve scrolling on mobile */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Better text rendering on mobile */
    body, p, span, div, h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    .booking-step {
        padding: 15px;
    }

    .booking-counter {
        gap: 6px;
        padding: 5px 6px;
    }

    .counter-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .counter-value {
        font-size: 1rem;
        min-width: 28px;
        max-width: 28px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-simple {
        text-align: center;
    }

    /* Map */
    .map-container {
        height: 350px;
    }

    .map-marker-pin {
        width: 50px;
        height: 50px;
    }

    .marker-logo-container {
        width: 40px;
        height: 40px;
        padding: 5px;
    }

    .map-marker-info {
        min-width: 200px;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
    }

    .marker-info-title {
        font-size: 1.1rem;
    }

    .marker-info-address,
    .marker-info-phone {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-link {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Slider - Mobile Optimized Touch */
    .room-card-slider {
        border-radius: 16px;
    }

    .room-card-slide,
    .room-card-slide img {
        border-radius: 16px;
    }

    .villa-detail-image {
        border-radius: 16px;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.6);
    }

    .slider-arrow.prev {
        left: 10px;
        right: auto;
    }

    .slider-arrow.next {
        right: 10px;
        left: auto;
    }

    :lang(ar) .slider-arrow.prev {
        right: 10px;
        left: auto;
    }

    :lang(ar) .slider-arrow.next {
        left: 10px;
        right: auto;
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.9);
        background: rgba(255, 255, 255, 0.9);
    }

    .slider-controls {
        bottom: 15px;
        padding: 6px 12px;
        gap: 8px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .slider-dot {
        width: 9px;
        height: 9px;
        border: 2px solid rgba(255, 255, 255, 0.7);
    }

    .slider-dot:active {
        transform: scale(1.3);
    }

    .slider-dot.active {
        width: 28px;
    }

    /* Features List */
    .villa-features-list {
        gap: 12px;
    }

    .villa-features-list li {
        font-size: 0.9rem;
        padding-right: 20px;
    }

    .villa-features-list li::before {
        width: 6px;
        height: 6px;
        top: 8px;
    }
}

/* Very Small Mobile Phones (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .nav-logo-text {
        font-size: 0.85rem;
    }

    .btn-book {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* ========================================
   Booking System - Additional Steps
   ======================================== */

/* Step Panels */
.step-panel {
    /* Removed animation to prevent "jump" effect when zoom out is applied */
    animation: none !important;
    transition: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Room Selection - Premium Design (Desktop) */
.rooms-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    padding: 6px;
    max-height: none;
    overflow-y: visible;
    animation: fadeInGrid 0.5s ease;
    flex: 1;
    min-height: 0;
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.rooms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(78, 15, 32, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rooms-loading p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

/* When panel is full width, allow more columns */
.booking-panel.full-width .rooms-selection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-height: none;
    overflow-y: visible;
}

.rooms-selection-grid::-webkit-scrollbar {
    width: 6px;
}

.rooms-selection-grid::-webkit-scrollbar-track {
    background: transparent;
}

.rooms-selection-grid::-webkit-scrollbar-thumb {
    background: rgba(218, 165, 32, 0.3);
    border-radius: 3px;
}

.rooms-selection-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(218, 165, 32, 0.5);
}

.availability-status {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Cairo', 'Inter', sans-serif;
    letter-spacing: 0.4px;
    z-index: 10;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: badgeFadeIn 0.4s ease-out;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes badgeFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.availability-status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* CRITICAL: Only show availability-status badges INSIDE room-selection-card */
/* Hide ALL badges that are NOT inside a room-selection-card */
.availability-status:not(.room-selection-card .availability-status) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* CRITICAL: Hide any availability badges that are NOT inside room-selection-card */
/* These badges don't belong to any specific room and should be hidden */
.booking-card-header .availability-status,
.booking-card-header > .availability-status,
#step-2 > .availability-status:not(.room-selection-card .availability-status),
.step-panel > .availability-status:not(.room-selection-card .availability-status),
.booking-card > .availability-status:not(.room-selection-card .availability-status),
.rooms-selection-grid > .availability-status:not(.room-selection-card .availability-status) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Hide badges in booking-card-header specifically - ALL TYPES */
.booking-card-header .availability-status,
.booking-card-header .availability-status.available-status,
.booking-card-header .availability-status.unavailable-status,
.booking-card-header .availability-status.low-status,
.booking-card-header > .availability-status,
#step-2 .booking-card-header .availability-status {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    content: none !important;
}

/* Hide ANY badge that is a sibling of booking-card-header */
.booking-card-header ~ .availability-status,
.booking-card-header + .availability-status {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* Ensure only one availability status badge per card */
.room-selection-card .availability-status {
    display: block;
}

/* Hide any duplicate badges */
.room-selection-card .availability-status:not(:first-of-type) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* CRITICAL: Hide ALL badges EXCEPT unavailable-status from unavailable rooms */
.room-selection-card.unavailable .availability-status.available-status,
.room-selection-card.unavailable .availability-status.low-status {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Show ONLY unavailable-status badge on unavailable cards */
.room-selection-card.unavailable .availability-status.unavailable-status {
    display: flex !important;
    visibility: visible !important;
    opacity: 0.95 !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 10 !important;
}

:lang(ar) .room-selection-card.unavailable .availability-status.unavailable-status {
    right: auto;
    left: 16px;
}

/* CRITICAL: Hide ANY badge that is NOT unavailable-status on unavailable cards */
.room-selection-card.unavailable .availability-status:not(.unavailable-status) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Force remove any available-status badges from unavailable cards using JavaScript-like approach */
.room-selection-card.unavailable .availability-status.available-status {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* If card is low-availability, show only low-status */
.room-selection-card.low-availability .availability-status:not(.low-status) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Available Status - Elegant Green */
.availability-status.available-status {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    color: white;
    box-shadow: 
        0 4px 16px rgba(78, 15, 32, 0.3),
        0 2px 6px rgba(78, 15, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.availability-status.available-status span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.availability-status.available-status::before {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(78, 15, 32, 0.6);
}

.availability-status.available-status:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(78, 15, 32, 0.4),
        0 3px 8px rgba(78, 15, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Low Availability Status - Using brand accent color */
.availability-status.low-status {
    background: linear-gradient(135deg, #DAA520 0%, #c4951a 50%, #b08518 100%);
    color: white;
    box-shadow: 
        0 4px 16px rgba(218, 165, 32, 0.35),
        0 2px 6px rgba(218, 165, 32, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.availability-status.low-status span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.availability-status.low-status::before {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.6);
}

.availability-status.low-status:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(218, 165, 32, 0.45),
        0 3px 8px rgba(218, 165, 32, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Unavailable Status - Elegant Red/Burgundy (matching site theme) */
.availability-status.unavailable-status {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: white;
    box-shadow: 
        0 4px 16px rgba(220, 38, 38, 0.3),
        0 2px 6px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    opacity: 0.95;
}

.availability-status.unavailable-status span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Checking Status - Temporary loading state */
.availability-status.checking-status {
    background: linear-gradient(135deg, rgba(78, 15, 32, 0.6) 0%, rgba(78, 15, 32, 0.4) 50%, rgba(78, 15, 32, 0.6) 100%);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 16px rgba(78, 15, 32, 0.2),
        0 2px 6px rgba(78, 15, 32, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    animation: checkingPulse 1.5s ease-in-out infinite;
}

@keyframes checkingPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.availability-status.checking-status::before {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(78, 15, 32, 0.4);
    animation: checkingDot 1.5s ease-in-out infinite;
}

@keyframes checkingDot {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.availability-status.unavailable-status::before {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.availability-status.unavailable-status:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(220, 38, 38, 0.4),
        0 3px 8px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* RTL Support for Arabic */
:lang(ar) .availability-status {
    right: auto;
    left: 16px;
    flex-direction: row-reverse;
}

:lang(ar) .availability-status::before {
    order: 1;
}

.room-selection-card.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.room-selection-card.unavailable::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}

.room-selection-card.low-availability {
    border: 2px solid #ff9800;
}

/* Availability Preview in Step 1 */
.availability-preview {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    animation: fadeIn 0.4s ease;
}

/* Simple message when no rooms available */
.availability-preview.simple-message {
    margin: 0;
    margin-top: 20px;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.simple-availability-message {
    font-size: 0.9rem;
    color: #555;
    padding: 16px 28px;
    background: #f8f9fa;
    border-radius: 10px;
    border: none;
    border-left: 3px solid #6c757d;
    display: inline-block;
    max-width: 100%;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.simple-availability-message:hover {
    background: #f1f3f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.availability-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.availability-error {
    text-align: center;
    padding: 30px 20px;
    color: #f44336;
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Room Selection Card - Premium Deep Design (Desktop) */
.room-selection-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfbfa 50%, #f8f6f4 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(78, 15, 32, 0.08);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(78, 15, 32, 0.06);
    transform: translateY(0) scale(1);
    opacity: 1;
    will-change: transform, box-shadow;
}

.room-selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #8b6914 50%, #DAA520 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    opacity: 0;
}

.room-selection-card:hover::before,
.room-selection-card.selected::before {
    opacity: 1;
}

.room-selection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 24px 56px rgba(78, 15, 32, 0.12), 0 0 0 1px rgba(78, 15, 32, 0.06);
    border-color: rgba(78, 15, 32, 0.15);
}

.room-selection-card:hover::before {
    transform: scaleX(1);
}

.room-selection-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(78, 15, 32, 0.12), 0 16px 48px rgba(78, 15, 32, 0.18);
    transform: translateY(-6px);
    background: linear-gradient(180deg, #ffffff 0%, #fffbf7 40%, #fdf8f3 100%);
}

.room-selection-card.selected::before {
    transform: scaleX(1);
    height: 5px;
    opacity: 1;
}

.room-selection-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #e8e6e4 0%, #ddd9d6 100%);
}

.room-selection-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.room-selection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.room-selection-card:hover .room-selection-image img {
    transform: scale(1.08);
}

.room-selection-content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 14px;
}

.room-selection-content h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
    line-height: 1.35;
    font-family: 'Cairo', 'Cormorant Garamond', serif;
    letter-spacing: -0.02em;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(78, 15, 32, 0.08);
}

.room-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(78, 15, 32, 0.06) 0%, rgba(218, 165, 32, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(78, 15, 32, 0.1);
    width: fit-content;
}

.price-per-night {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Cairo', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.price-label {
    color: #5c4a3e;
    font-size: 0.88rem;
    font-weight: 500;
}

.room-features {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-features li {
    padding: 6px 0 6px 32px;
    position: relative;
    color: #4a4038;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 500;
    transition: color 0.25s ease;
}

:lang(ar) .room-features li {
    padding: 6px 32px 6px 0;
}

.room-selection-card:hover .room-features li {
    color: #2d2620;
}

.room-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #6b1528);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(78, 15, 32, 0.25);
}

:lang(ar) .room-features li::before {
    left: auto;
    right: 0;
}

.room-total {
    padding-top: 14px;
    margin-top: auto;
    border-top: 2px solid rgba(78, 15, 32, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-total strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 800;
    font-family: 'Cairo', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.room-total span {
    font-size: 0.82rem;
    color: #666;
}

/* Show all room features without scrolling */
.room-selection-card .room-features {
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

/* Remove max-height from room cards to show all content - Override any existing max-height */
.room-selection-card {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

.room-selection-card .room-selection-content {
    overflow: visible !important;
    max-height: none !important;
}

.room-total span {
    font-size: 0.85rem;
    color: #666;
}

/* Room card hover popover - appears at card, hides when mouse leaves card */
.room-card-popover {
    position: fixed;
    z-index: 9999;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: default;
}
.room-card-popover.is-visible {
    opacity: 1;
    visibility: visible;
    cursor: default;
}
.room-card-popover-backdrop {
    display: none;
}
.room-card-popover-panel {
    position: fixed;
    width: min(420px, calc(100vw - 32px));
    max-height: min(85vh, 560px);
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #fffefc 0%, #fffbf7 50%, #fdf8f3 100%);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 12px 32px rgba(78, 15, 32, 0.15), 0 0 0 1px rgba(78, 15, 32, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    z-index: 10000;
    pointer-events: none;
}
.room-card-popover.is-visible .room-card-popover-panel {
    transform: scale(1);
}
.room-card-popover-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #8b6914 50%, #DAA520 100%);
    z-index: 2;
}
.room-popover-slider-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8e6e4 0%, #ddd9d6 100%);
}
.room-popover-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.room-popover-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
.room-popover-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.room-popover-btn {
    display: none;
}
.room-popover-btn.prev,
.room-popover-btn.next {
    display: none;
}
.room-popover-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.room-popover-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.room-popover-dot:hover,
.room-popover-dot.is-active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.room-popover-body {
    padding: 20px 22px 24px;
    flex: 1;
    min-height: 0;
}
.room-popover-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
    font-family: 'Cairo', 'Cormorant Garamond', serif;
    letter-spacing: -0.02em;
    line-height: 1.35;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(78, 15, 32, 0.1);
}
.room-popover-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4a4038;
    margin: 0;
    font-weight: 500;
}

/* Guest Information Form */
.booking-field textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Compact Step 3 - Guest Information */
#step-3.booking-card {
    padding: 14px; /* Reduced from 18px */
    max-width: 100%; /* Same as other steps */
    margin: 0 auto;
    overflow: visible !important; /* Remove scrolling */
    max-height: none !important;
}

#step-3 .booking-card-header {
    margin-bottom: 10px; /* Reduced from 16px */
}

#step-3 .booking-card-title {
    font-size: 1.1rem; /* Reduced from 1.25rem */
}

#step-3 .booking-card-icon {
    width: 28px; /* Reduced from 32px */
    height: 28px; /* Reduced from 32px */
    font-size: 0.9rem; /* Reduced from 1rem */
}

#step-3 .booking-field {
    margin-bottom: 10px; /* Reduced from 14px */
}

#step-3 .booking-field label {
    font-size: 0.85rem; /* Reduced from 0.88rem */
    margin-bottom: 4px; /* Reduced from 6px */
}

#step-3 .booking-input {
    padding: 10px 14px; /* Reduced from 12px 16px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    min-height: 40px; /* Reduced from 44px */
}

#step-3 .booking-field textarea {
    min-height: 60px; /* Reduced from 70px */
    padding: 10px 14px; /* Reduced from 12px 16px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    rows: 2; /* Reduce rows */
}

#step-3 .premium-btn {
    margin-top: 10px; /* Reduced from 14px */
    padding: 10px 18px; /* Reduced from 13px 22px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
}

/* Summary */
#bookingSummary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* MODERN COMPACT SUMMARY DESIGN */
#bookingSummary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(78, 15, 32, 0.08);
    padding: 10px 12px; /* Compact padding */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.summary-section h4 {
    font-size: 0.8rem; /* Smaller */
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(78, 15, 32, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0; /* Very compact */
    border: none; /* Remove borders for cleaner look */
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Total Price Section - Full Width & Highlighted */
.summary-section:last-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #4e0f20 0%, #340A16 100%);
    color: white;
    padding: 12px 14px;
}

.summary-section:last-child h4 {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.summary-section:last-child .summary-row span {
    color: rgba(255, 255, 255, 0.9);
}

.summary-section:last-child .summary-row strong {
    color: #DAA520;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: #666;
}

.summary-row strong {
    color: var(--text-dark);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    font-size: 1.3rem;
}

.summary-total strong {
    font-size: 1.5rem;
    color: white;
}

/* Payment Form - Step 5 */
#step-5.booking-card {
    padding: 14px; /* Reduced for compact layout */
    overflow: visible !important; /* Remove scrolling */
    max-height: none !important;
}

#step-5 .booking-card-header {
    margin-bottom: 10px; /* Reduced */
}

#step-5 .booking-card-title {
    font-size: 1.1rem; /* Reduced */
}

#step-5 .booking-card-icon {
    width: 28px; /* Reduced */
    height: 28px; /* Reduced */
    font-size: 0.9rem; /* Reduced */
}

.payment-summary {
    background: #f8f9fa;
    padding: 10px; /* Reduced from 12px */
    border-radius: 10px;
    margin-bottom: 10px; /* Reduced from 14px */
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem; /* Reduced from 1.05rem */
}

.payment-total span:last-child {
    font-size: 1.15rem; /* Reduced from 1.3rem */
    font-weight: 700;
    color: var(--primary-color);
}

.payment-method {
    margin-bottom: 10px; /* Reduced from 12px */
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    padding: 12px; /* Reduced from 15px */
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method label:hover {
    background: #e9ecef;
}

.payment-method input[type="radio"] {
    width: 18px; /* Reduced from 20px */
    height: 18px; /* Reduced from 20px */
    cursor: pointer;
}

.payment-method span {
    font-size: 0.95rem; /* Reduced from 1.1rem */
    font-weight: 600;
}

/* Payment form fields - compact */
#step-5 .booking-field {
    margin-bottom: 10px; /* Reduced */
}

#step-5 .booking-field label {
    font-size: 0.85rem; /* Reduced */
    margin-bottom: 4px; /* Reduced */
}

#step-5 .booking-input {
    padding: 10px 14px; /* Reduced */
    font-size: 0.9rem; /* Reduced */
    min-height: 40px; /* Reduced */
}

#step-5 .premium-btn {
    margin-top: 10px; /* Reduced */
    padding: 10px 18px; /* Reduced */
    font-size: 0.9rem; /* Reduced */
}

/* Responsive - Booking Page - Comprehensive Mobile & Tablet Optimization */
@media (max-width: 1024px) {
    /* Booking Page - Tablet Optimization */
    .booking-page {
        padding: 80px 0 40px; /* Reduced for tablet view */
    }

    .booking-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-panel.full-width {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .booking-hero {
        order: -1;
        margin-bottom: 20px;
        min-height: 280px; /* Reduced for tablet */
        max-height: 320px; /* Reduced for tablet */
    }

    .booking-hero.step-2-hidden {
        display: none !important;
    }

    .booking-step-wrapper {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .booking-step {
        flex: 0 0 calc(50% - 8px);
        min-width: 110px;
        padding: 10px 8px;
    }

    .booking-card {
        padding: 28px 24px;
    }

    /* Ensure progress line is visible */
    .step-progress-line {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .booking-step-wrapper::before {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Compact room selection */
    .rooms-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 550px;
        gap: 14px;
    }

    .room-selection-image {
        height: 130px;
    }
}

/* Responsive - Booking Steps */
@media (max-width: 768px) {
    /* Booking Page - Mobile Optimization */
    .booking-page {
        padding: 70px 0 40px; /* Reduced for medium screens */
    }

    .booking-header {
        margin-bottom: 20px; /* Reduced from 35px */
        padding: 0 20px;
    }

    .booking-title-main {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .booking-subtitle-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .booking-steps {
        margin-bottom: 20px; /* Reduced from 35px */
        padding: 0 15px;
    }

    .booking-step-wrapper {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        max-width: 100%;
    }

    .booking-step-wrapper::before {
        display: none;
    }

    /* Keep progress line visible but adjust for mobile */
    .step-progress-line {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: 16px;
        height: 2px;
    }

    .booking-step-wrapper::before {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: 16px;
        height: 2px;
    }

    .booking-step {
        flex: 1;
        min-width: auto;
        width: 100%;
        padding: 16px 20px;
        flex-direction: row;
        gap: 15px;
        border-radius: 16px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .step-label {
        font-size: 0.95rem;
        text-align: right;
    }

    .booking-panel {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .booking-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .booking-card-header {
        margin-bottom: 24px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .booking-card-title {
        font-size: 1.4rem;
        flex: 1;
        min-width: 200px;
    }

    .booking-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .booking-field {
        margin-bottom: 20px;
    }

    .booking-field label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .booking-input {
        padding: 16px 50px 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 50px;
        border-radius: 12px;
        border-width: 2px;
    }

    .input-icon {
        right: 16px;
        width: 24px;
        height: 24px;
    }

    .input-icon svg {
        width: 20px;
        height: 20px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-counter {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .counter-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .counter-value {
        font-size: 1.1rem;
        min-width: 40px;
    }

    .booking-divider {
        margin: 25px 0;
    }

    .booking-note {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 24px;
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .note-icon-wrapper {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .note-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn-primary,
    .premium-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 600;
        min-height: 52px;
        border-radius: 50px;
        margin-top: 20px;
    }

    .btn-primary:active,
    .premium-btn:active {
        transform: scale(0.98);
    }

    .booking-hero {
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .booking-hero.step-2-hidden {
        display: none !important;
    }

    .booking-panel.full-width {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .rooms-selection-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: 500px;
    }

    /* Room Selection Cards - Mobile */
    .room-selection-card {
        max-height: none !important;
        border-radius: 14px;
        overflow: visible;
    }

    .room-selection-image {
        height: 120px;
    }

    .room-selection-content {
        padding: 12px;
    }

    .room-selection-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .price-per-night {
        font-size: 1.3rem;
    }

    .room-features {
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 8px;
    }

    .room-features li {
        padding: 3px 0;
        font-size: 0.8rem;
    }

    /* Compact Step 3 on mobile */
    #step-3.booking-card {
        padding: 20px 16px;
        max-width: 100%;
    }

    #step-3 .booking-field {
        margin-bottom: 14px;
    }

    #step-3 .booking-input {
        padding: 12px 14px;
        min-height: 44px;
    }

    .room-total {
        padding-top: 10px;
    }

    /* Payment Form - Mobile */
    .payment-form {
        margin-top: 12px; /* Reduced from 25px */
    }

/* Hide browser autofill warnings for payment form */
.payment-form input,
.payment-form input:focus,
.payment-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: inherit !important;
}

/* Prevent browser from showing payment autofill warnings */
.payment-form {
    position: relative;
}

.payment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* Hide all browser tooltips and warnings */
.payment-form * {
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Hide Chrome autofill warnings */
.payment-field::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.payment-field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

/* Hide browser validation messages */
.payment-form input:invalid {
    box-shadow: none !important;
}

.payment-form input::-webkit-inner-spin-button,
.payment-form input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

    .payment-method {
        margin-bottom: 20px;
    }

    .payment-method label {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .payment-total {
        padding: 20px;
        border-radius: 16px;
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    /* Summary - Mobile */
    #bookingSummary {
        padding: 20px;
        border-radius: 16px;
    }

    .summary-row {
        padding: 14px 0;
        font-size: 0.95rem;
    }

    /* Flatpickr - نفس تصميم الحاسوب (بطاقة بيضاء، شهر، أيام) على الجوال واللوحي */
    .custom-datepicker .flatpickr-calendar {
        max-width: min(360px, calc(100vw - 24px));
        left: 50% !important;
        transform: translateX(-50%) scale(0.95);
        margin-top: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(78, 15, 32, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
        background: white;
    }

    .custom-datepicker .flatpickr-day {
        height: 40px;
        line-height: 40px;
        font-size: 0.9rem;
    }

    .custom-datepicker .flatpickr-months {
        padding: 14px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }

    /* Simple availability message - Mobile */
    .simple-availability-message {
        font-size: 0.85rem;
        padding: 14px 20px;
        border-radius: 8px;
    }

    .custom-datepicker .flatpickr-current-month {
        font-size: 1rem;
    }
}

/* Mobile Phones (480px and below) - Booking Page */
@media (max-width: 480px) {
    .booking-page {
        padding: 60px 0 30px; /* Reduced for mobile */
    }

    .booking-header {
        margin-bottom: 18px; /* Reduced from 30px */
        padding: 0 15px;
    }

    .booking-title-main {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .booking-subtitle-text {
        font-size: 0.95rem;
    }

    .booking-steps {
        margin-bottom: 18px; /* Reduced from 30px */
        padding: 0 10px;
    }

    .booking-step {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.9rem;
    }

    .booking-panel {
        padding: 0 10px;
        gap: 25px;
    }

    .booking-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .booking-card-title {
        font-size: 1.3rem;
    }

    .booking-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .booking-field {
        margin-bottom: 18px;
    }

    .booking-input {
        padding: 14px 45px 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .booking-grid {
        gap: 18px;
    }

    .counter-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .counter-value {
        font-size: 1rem;
    }

    .btn-primary,
    .premium-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    /* Textarea - Mobile */
    .booking-input[type="textarea"],
    textarea.booking-input {
        min-height: 100px;
        padding: 14px 16px;
        resize: vertical;
    }

    /* Payment Form - Small Mobile */
    .payment-total {
        padding: 18px;
        font-size: 1.2rem;
    }

    .payment-method label {
        padding: 12px 16px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    /* Flatpickr - نفس التصميم على الشاشات الصغيرة (بطاقة بيضاء كالحاسوب) */
    .custom-datepicker .flatpickr-calendar {
        margin-top: 8px;
        border-radius: 12px;
        max-width: min(340px, calc(100vw - 20px));
        left: 50% !important;
        transform: translateX(-50%) scale(0.92);
        background: white;
        box-shadow: 0 10px 40px rgba(78, 15, 32, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .custom-datepicker .flatpickr-day {
        height: 36px;
        line-height: 36px;
        margin: 1px;
        font-size: 0.85rem;
    }

    .custom-datepicker .flatpickr-months {
        padding: 12px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }

    .custom-datepicker .flatpickr-current-month {
        font-size: 0.95rem;
    }

    .custom-datepicker .flatpickr-prev-month,
    .custom-datepicker .flatpickr-next-month {
        padding: 6px;
        width: 32px;
        height: 32px;
    }

    .summary-row {
        flex-direction: column;
        gap: 5px;
    }

    .summary-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

