/*
 * Luxury Resort Theme - Mobile App Experience v2
 * ===============================================
 * Premium app-like mobile experience with:
 * - Frosted glass header
 * - Uber-style center Book button
 * - Quick date picker overlay
 * - Swipeable galleries with photo count
 * - Skeleton loaders & micro-interactions
 * - Pull-to-refresh visual
 * - Smooth page transitions
 */

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

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

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ==========================================================================
   Mobile-Only Styles (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Hide desktop elements on mobile */
    .header__nav {
        display: none;
    }

    .booking-bar {
        display: none !important;
    }

    /* Show hamburger menu on mobile */
    .header__menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .header--solid .header__menu-toggle {
        background: rgba(0, 0, 0, 0.05);
    }

    .header__menu-toggle span {
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    /* Adjust body for bottom nav */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* ==========================================================================
       Frosted Glass Header
       ========================================================================== */

    body .header,
    body .site-header,
    html body .header,
    html body .site-header {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body .header__inner,
    body .header-container,
    html body .header__inner,
    html body .header-container {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }

    .header--transparent {
        background: transparent;
        backdrop-filter: none;
    }

    .header--solid {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    .header__inner {
        padding: 0 16px;
    }

    /* Mobile logo - smaller and simpler */
    body .header__logo,
    body .header-logo,
    body .header-logo a,
    html body .header__logo,
    html body .header-logo a {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        position: static !important;
    }

    body .header__logo img,
    body .header__logo .logo-image,
    html body .header__logo img,
    html body .header__logo .logo-image {
        height: 36px !important;
        width: auto !important;
        max-height: 36px !important;
    }

    /* Logo switching - light for transparent, dark for solid */
    .header__logo img.logo-dark,
    .header__logo .logo-image.logo-dark {
        display: none !important;
    }

    .header--solid .header__logo img.logo-light,
    .header--solid .header__logo .logo-image.logo-light {
        display: none !important;
    }

    .header--solid .header__logo img.logo-dark,
    .header--solid .header__logo .logo-image.logo-dark {
        display: block !important;
    }

    /* Header Quick Actions (right side) */
    .header__actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header__action-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .header--solid .header__action-btn {
        background: rgba(0, 0, 0, 0.05);
        color: var(--color-charcoal, #2D2D2D);
    }

    .header__action-btn:active {
        transform: scale(0.9);
    }

    /* ==========================================================================
       Bottom Navigation - Uber Style with Center Book Button
       ========================================================================== */

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        padding: 8px 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 1000;
    }

    .mobile-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--color-gray, #6B6B6B);
        padding: 8px 12px;
        border-radius: 16px;
        transition: all 0.2s ease;
        min-width: 60px;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }

    .mobile-nav__item--active {
        color: var(--color-primary, #D4856A);
    }

    .mobile-nav__icon {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    .mobile-nav__item--active .mobile-nav__icon {
        transform: scale(1.1);
    }

    .mobile-nav__label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    /* Haptic Feedback Visual - Ripple Effect */
    .mobile-nav__item::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(212, 133, 106, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-nav__item:active::after {
        animation: ripple 0.4s ease-out;
    }

    /* Center Book Button - Uber Style */
    .mobile-nav__book {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 72px;
        margin-top: -24px;
        background: none;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav__book-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary, #D4856A) 0%, var(--color-primary-dark, #B86B52) 100%);
        border: 4px solid #fff;
        box-shadow: 0 4px 20px rgba(212, 133, 106, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav__book:active .mobile-nav__book-icon {
        transform: scale(0.92);
        box-shadow: 0 2px 12px rgba(212, 133, 106, 0.4);
    }

    .mobile-nav__book-icon svg {
        width: 24px;
        height: 24px;
    }

    .mobile-nav__book-text {
        font-size: 10px;
        font-weight: 700;
        color: var(--color-primary, #D4856A);
        margin-top: 6px;
        letter-spacing: 0.3px;
    }

    /* Book button pulse animation */
    .mobile-nav__book.pulse .mobile-nav__book-icon {
        animation: pulse 0.3s ease;
    }

    /* ==========================================================================
       Hero Section - 80vh with Ken Burns Effect
       ========================================================================== */

    .hero {
        min-height: 80vh;
        min-height: 80dvh;
        position: relative;
        overflow: hidden;
    }

    /* Hero media container */
    .hero__media {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    /* Hero images - full cover without cropping */
    .hero__media img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Ken Burns slow zoom effect for static images */
        animation: kenBurnsMobile 20s ease-out forwards;
        transform-origin: center center;
    }

    @keyframes kenBurnsMobile {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.08);
        }
    }

    /* Videos - full cover */
    .hero__media video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Improve overlay gradient for better text readability */
    .hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }

    .hero__content {
        padding: 0 24px;
        text-align: center;
        padding-bottom: 80px;
    }

    .hero__subtitle {
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        opacity: 0.9;
        animation: fadeInUp 0.6s ease 0.2s both;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 12px;
        line-height: 1.15;
        animation: fadeInUp 0.6s ease 0.3s both;
    }

    .hero__description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
        opacity: 0.9;
        animation: fadeInUp 0.6s ease 0.4s both;
    }

    .hero__cta {
        display: none; /* Hide - using bottom nav Book instead */
    }

    /* Hero Gallery - Mobile positioning */
    .hero-gallery {
        position: absolute;
        inset: 0;
    }

    .hero-gallery__slide {
        position: absolute;
        inset: 0;
    }

    .hero-gallery__slide img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-gallery__dots {
        bottom: 130px; /* Position above swipe hint */
        gap: 10px;
    }

    .hero-gallery__dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.6);
    }

    .hero-gallery__dot.active {
        width: 24px;
        border-radius: 4px;
        background: #fff;
    }

    /* Swipe Up Hint */
    .hero__scroll {
        position: absolute;
        bottom: 140px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: swipeHint 2s ease-in-out infinite;
    }

    .hero__scroll-text {
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.8;
        margin-bottom: 8px;
    }

    .hero__scroll-icon {
        width: 24px;
        height: 40px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        position: relative;
    }

    .hero__scroll-icon::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 8px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 2px;
        animation: bounce 1.5s ease-in-out infinite;
    }

    /* Swipe Hint (mobile only) */
    .swipe-hint {
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: swipeHint 2s ease-in-out infinite;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 5;
    }

    .swipe-hint--hidden {
        opacity: 0;
        visibility: hidden;
    }

    .swipe-hint__icon {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 8px;
    }

    .swipe-hint__text {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Hide desktop scroll on mobile */
    .hero__scroll {
        display: none;
    }

    /* ==========================================================================
       Skeleton Loaders
       ========================================================================== */

    .skeleton {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.06) 25%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.06) 75%
        );
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        border-radius: 8px;
    }

    .skeleton--text {
        height: 16px;
        width: 80%;
        margin-bottom: 8px;
    }

    .skeleton--title {
        height: 24px;
        width: 60%;
        margin-bottom: 12px;
    }

    .skeleton--image {
        width: 100%;
        height: 200px;
        border-radius: 20px;
    }

    .skeleton--card {
        width: 100%;
        height: 300px;
        border-radius: 20px;
    }

    /* ==========================================================================
       Sections - Smooth Transitions
       ========================================================================== */

    .section {
        padding: 48px 0;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Animation class - sections start visible, animate on scroll if JS available */
    .section--animate {
        opacity: 0;
        transform: translateY(30px);
    }

    .section--visible {
        opacity: 1;
        transform: translateY(0);
    }

    .section-header {
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .section-header__subtitle {
        font-size: 10px;
        margin-bottom: 6px;
        letter-spacing: 2px;
    }

    .section-header__title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .section-header__description {
        font-size: 14px;
        line-height: 1.6;
    }

    .container {
        padding: 0 16px;
    }

    /* ==========================================================================
       Room Cards - Horizontal Swipe with Bounce
       ========================================================================== */

    .rooms-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .rooms-grid::-webkit-scrollbar {
        display: none;
    }

    /* Bounce effect at edges */
    .rooms-grid--bounce-left {
        animation: bounceLeft 0.3s ease;
    }

    .rooms-grid--bounce-right {
        animation: bounceRight 0.3s ease;
    }

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

    @keyframes bounceRight {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-10px); }
    }

    .room-card {
        flex: 0 0 82%;
        max-width: 300px;
        scroll-snap-align: center;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    .room-card:first-child {
        margin-left: 0;
    }

    .room-card:last-child {
        margin-right: 16px;
    }

    .room-card__image-wrapper {
        height: 180px;
        position: relative;
        overflow: hidden;
    }

    .room-card__image {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

    .room-card__badge {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 10px;
        font-weight: 700;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        color: var(--color-primary, #D4856A);
        backdrop-filter: blur(10px);
    }

    .room-card__content {
        padding: 20px;
    }

    .room-card__title {
        font-size: 1.05rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .room-card__features {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .room-card__feature {
        font-size: 11px;
        padding: 6px 10px;
        background: var(--color-cream, #F5F1ED);
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .room-card__feature svg {
        width: 14px;
        height: 14px;
    }

    .room-card__footer {
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .room-card__cta {
        display: block;
        text-align: center;
        padding: 14px;
        background: var(--color-accent, #1A4D5C);
        color: #fff;
        border-radius: var(--radius-lg, 14px);
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.2s ease;
        border: 2px solid transparent;
    }

    .room-card__cta:active {
        transform: scale(0.98);
        background: var(--color-accent-dark, #0F3340);
    }

    /* Button Style Presets for Mobile */
    .btn-style-outline .room-card__cta {
        background: transparent !important;
        border: 2px solid var(--color-primary) !important;
        color: var(--color-primary) !important;
    }
    .btn-style-outline .room-card__cta:active {
        background: var(--color-primary) !important;
        color: #fff !important;
    }

    .btn-style-ghost .room-card__cta {
        background: rgba(45, 90, 71, 0.1) !important;
        border: 1px solid rgba(45, 90, 71, 0.3) !important;
        color: var(--color-primary) !important;
    }
    .btn-style-ghost .room-card__cta:active {
        background: rgba(45, 90, 71, 0.2) !important;
    }

    .btn-style-minimal .room-card__cta {
        background: transparent !important;
        border: none !important;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-color: var(--color-primary) !important;
        color: var(--color-primary) !important;
        padding: 14px 8px;
    }
    .btn-style-minimal .room-card__cta:active {
        background: transparent !important;
        text-decoration-thickness: 2px;
    }

    /* Default style - all buttons use primary */
    .btn-style-default .room-card__cta {
        background: var(--color-primary) !important;
        color: #fff !important;
    }
    .btn-style-default .room-card__cta:active {
        background: var(--color-primary-dark) !important;
    }

    /* Pagination Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 16px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .carousel-dot--active {
        width: 24px;
        border-radius: 3px;
        background: var(--color-primary, #D4856A);
    }

    /* ==========================================================================
       Mini Gallery Preview
       ========================================================================== */

    /* Gallery preview section wrapper */
    .gallery-preview-section {
        padding: 48px 0;
    }

    .gallery-preview-section .section-header {
        margin-bottom: 20px;
    }

    /* Gallery preview grid */
    .gallery-preview {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 100px 100px;
        gap: 8px;
        border-radius: 20px;
        overflow: hidden;
    }

    .gallery-preview__item {
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .gallery-preview__item:first-child {
        grid-row: span 2;
    }

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

    .gallery-preview__item:active img {
        transform: scale(1.05);
    }

    .gallery-preview__more {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }

    /* Gallery preview overlay with photo count */
    .gallery-preview__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-preview__count {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
    }

    /* Gallery preview footer */
    .gallery-preview__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 16px;
        padding: 0 4px;
    }

    .gallery-preview__total {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--color-gray, #6B6B6B);
        font-weight: 500;
    }

    .gallery-preview__total svg {
        color: var(--color-primary, #D4856A);
    }

    .gallery-preview__link {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-primary, #D4856A);
        text-decoration: none;
    }

    .gallery-preview__link:active {
        opacity: 0.7;
    }

    /* Skeleton inside gallery preview items */
    .gallery-preview__item .skeleton {
        position: absolute;
        inset: 0;
        border-radius: 0;
    }

    /* ==========================================================================
       Full Screen Gallery Modal
       ========================================================================== */

    .gallery-modal {
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .gallery-modal--open {
        opacity: 1;
        visibility: visible;
    }

    .gallery-modal__header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
        z-index: 10;
    }

    .gallery-modal__count {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }

    .gallery-modal__close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .gallery-modal__slides {
        flex: 1;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gallery-modal__slides::-webkit-scrollbar {
        display: none;
    }

    .gallery-modal__slide {
        flex: 0 0 100%;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 60px 16px;
    }

    .gallery-modal__slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Gallery Modal Navigation */
    .gallery-modal__nav {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    }

    .gallery-modal__prev,
    .gallery-modal__next {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .gallery-modal__prev:active,
    .gallery-modal__next:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.3);
    }

    .gallery-modal__dots {
        display: flex;
        align-items: center;
        gap: 6px;
        max-width: 50%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .gallery-modal__dots::-webkit-scrollbar {
        display: none;
    }

    .gallery-modal__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        flex-shrink: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .gallery-modal__dot--active {
        background: #fff;
        transform: scale(1.2);
    }

    .gallery-modal__dot-more {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        padding-left: 4px;
    }

    /* ==========================================================================
       Facilities - Grid for Mobile
       ========================================================================== */

    .facilities-layout {
        display: block;
    }

    .facilities-images {
        height: 180px;
        margin-bottom: 24px;
        border-radius: 20px;
        overflow: hidden;
    }

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

    .facility-item {
        padding: 16px 8px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .facility-item:active {
        transform: scale(0.95);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    }

    .facility-item__icon {
        margin-bottom: 8px;
    }

    .facility-item__icon span {
        font-size: 24px !important;
    }

    .facility-item__name {
        font-size: 11px;
        line-height: 1.3;
        font-weight: 500;
    }

    /* ==========================================================================
       Experience/Dining Cards
       ========================================================================== */

    .experiences-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .experience-card {
        background: #fff;
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s ease;
    }

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

    .experience-card__category {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--color-primary, #D4856A);
        margin-bottom: 8px;
        display: block;
    }

    .experience-card__title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .experience-card__description {
        font-size: 14px;
        line-height: 1.6;
        color: var(--color-gray, #6B6B6B);
    }

    /* ==========================================================================
       Spa Section
       ========================================================================== */

    .spa-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .spa-image {
        height: 200px;
        border-radius: 20px;
        overflow: hidden;
    }

    .spa-facilities {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .spa-facility-item {
        padding: 14px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s ease;
    }

    .spa-facility-item:active {
        transform: scale(0.95);
    }

    /* ==========================================================================
       Testimonials - Swipeable
       ========================================================================== */

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 85%;
        max-width: 300px;
        scroll-snap-align: center;
        background: #fff;
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .testimonial-card__quote {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 16px;
        font-style: italic;
    }

    .testimonial-card__name {
        font-size: 14px;
        font-weight: 600;
    }

    .testimonial-card__location {
        font-size: 12px;
        color: var(--color-gray, #6B6B6B);
    }

    /* ==========================================================================
       Pull to Refresh Visual
       ========================================================================== */

    .pull-refresh {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }

    .pull-refresh--visible {
        transform: translateY(0);
    }

    .pull-refresh__spinner {
        width: 24px;
        height: 24px;
        border: 3px solid var(--color-cream, #F5F1ED);
        border-top-color: var(--color-primary, #D4856A);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .pull-refresh__text {
        font-size: 12px;
        color: var(--color-gray, #6B6B6B);
        margin-left: 12px;
    }

    .pull-refresh--loading {
        transform: translateY(0);
    }

    /* ==========================================================================
       Footer
       ========================================================================== */

    .footer {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .footer__grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .footer__brand {
        text-align: center;
    }

    .footer__logo {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__heading {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .footer__links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .footer__link {
        font-size: 14px;
    }

    .footer__bottom {
        text-align: center;
        padding-top: 24px;
    }

    /* ==========================================================================
       Language Modal
       ========================================================================== */

    .lang-modal__container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .lang-modal--open .lang-modal__container {
        transform: translateY(0);
    }

    .lang-modal__header {
        padding: 20px 20px 16px;
    }

    .lang-modal__title {
        font-size: 18px;
    }

    .lang-modal__search {
        margin: 0 16px 16px;
    }

    .lang-modal__content {
        padding: 0 16px 32px;
        max-height: calc(85vh - 140px);
    }

    .lang-modal__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .lang-modal__item {
        padding: 14px 12px;
        border-radius: 12px;
    }

    /* ==========================================================================
       View All Buttons
       ========================================================================== */

    .btn--lg {
        padding: 16px 32px;
        font-size: 14px;
        border-radius: 50px;
        width: 100%;
        max-width: 280px;
    }

    /* ==========================================================================
       Bottom Section CTA
       ========================================================================== */

    .section--white:last-of-type {
        padding-bottom: 48px;
    }

    .section--white:last-of-type h2 {
        font-size: 1.4rem;
    }

    .section--white:last-of-type p {
        font-size: 14px;
    }

}

/* ==========================================================================
   Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {

    .room-card {
        flex: 0 0 88%;
    }

    .testimonial-card {
        flex: 0 0 88%;
    }

    .facilities-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-nav__book-btn {
        width: 52px;
        height: 52px;
    }

    .mobile-nav__item {
        min-width: 50px;
        padding: 6px 8px;
    }

    .mobile-nav__label {
        font-size: 9px;
    }

    .gallery-preview {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 100px 100px;
    }

    .gallery-preview__item:first-child {
        grid-row: span 2;
    }

}

/* ==========================================================================
   Safe Area Insets (iPhone X+ notch handling)
   ========================================================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .mobile-nav {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
        }

        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        }

        .gallery-modal__header {
            padding-top: calc(16px + env(safe-area-inset-top));
        }
    }
}

/* ==========================================================================
   Bottom Sheet (from Book button)
   ========================================================================== */

@media (max-width: 768px) {

    .mobile-sheet {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-sheet--open {
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-sheet__backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0);
        transition: background 0.3s ease;
    }

    .mobile-sheet--open .mobile-sheet__backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

    .mobile-sheet__content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 24px 24px 0 0;
        padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-sheet--open .mobile-sheet__content {
        transform: translateY(0);
    }

    .mobile-sheet__handle {
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
        margin: 0 auto 16px;
    }

    .mobile-sheet__header {
        text-align: center;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 8px;
    }

    .mobile-sheet__header h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-charcoal, #2D2D2D);
    }

    .mobile-sheet__links {
        display: flex;
        flex-direction: column;
    }

    .mobile-sheet__link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 8px;
        color: var(--color-charcoal, #2D2D2D);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        border-radius: var(--radius-md, 12px);
        transition: background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-sheet__link:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-sheet__link svg {
        color: var(--color-primary, #D4856A);
        flex-shrink: 0;
    }

    /* Primary booking link in sheet */
    .mobile-sheet__link--primary {
        background: linear-gradient(135deg, var(--color-primary, #D4856A) 0%, var(--color-primary-dark, #B86B52) 100%);
        color: #fff !important;
        border-radius: var(--radius-lg, 16px);
        margin-bottom: 8px;
        position: relative;
    }

    .mobile-sheet__link--primary svg {
        color: #fff;
    }

    .mobile-sheet__link--primary:active {
        background: var(--color-primary-dark, #B86B52);
    }

    .mobile-sheet__link-badge {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        font-weight: 700;
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

}

/* ==========================================================================
   Enhanced Book Button - Prominent State After Scrolling
   ========================================================================== */

@media (max-width: 768px) {

    /* Book button prominent state - shows when scrolled past hero */
    .mobile-nav__book--prominent .mobile-nav__book-icon {
        transform: scale(1.1);
        box-shadow: 0 6px 28px rgba(212, 133, 106, 0.6);
        animation: bookPulse 2s ease-in-out infinite;
    }

    @keyframes bookPulse {
        0%, 100% {
            box-shadow: 0 6px 28px rgba(212, 133, 106, 0.6);
        }
        50% {
            box-shadow: 0 8px 36px rgba(212, 133, 106, 0.8);
        }
    }

    /* Stop animation after a few seconds to not be annoying */
    .mobile-nav__book--prominent.pulse-done .mobile-nav__book-icon {
        animation: none;
        box-shadow: 0 6px 28px rgba(212, 133, 106, 0.6);
    }

    /* Bottom Nav Hide on Scroll Down (Airbnb/Hotels.com pattern) */
    .mobile-nav {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav--hidden {
        transform: translateY(100%);
    }

    /* When nav is hidden, show floating Book button */
    .mobile-floating-cta {
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .mobile-floating-cta--visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-floating-cta__btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 24px;
        background: linear-gradient(135deg, var(--color-primary, #D4856A) 0%, var(--color-primary-dark, #B86B52) 100%);
        color: #fff;
        border: none;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 24px rgba(212, 133, 106, 0.5);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
        min-height: 48px; /* Touch target */
    }

    .mobile-floating-cta__btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 16px rgba(212, 133, 106, 0.4);
    }

    .mobile-floating-cta__btn svg {
        width: 20px;
        height: 20px;
    }

    /* ==========================================================================
       Touch Target Improvements - WCAG 2.2 AA Compliance (48px minimum)
       ========================================================================== */

    /* Header menu toggle - increase from 40px to 48px */
    .header__menu-toggle {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
    }

    /* Header action buttons */
    .header__action-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
    }

    /* Room card CTA buttons */
    .room-card__cta {
        min-height: 48px;
        padding: 14px 20px;
    }

    /* Gallery filter buttons */
    .filter-btn,
    .gallery-filter-btn {
        min-height: 48px;
        padding: 12px 20px;
    }

    /* Mobile nav items - ensure tappable area */
    .mobile-nav__item {
        min-height: 48px;
        min-width: 48px;
    }

    /* Language modal items */
    .lang-modal__item {
        min-height: 48px;
        padding: 14px 12px;
    }

    /* Gallery modal navigation */
    .gallery-modal__prev,
    .gallery-modal__next,
    .gallery-modal__close {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
    }

    /* General btn improvements */
    .btn--lg,
    .btn-primary,
    .btn-book {
        min-height: 48px;
    }

    /* CTA buttons throughout site */
    .experience-card__cta,
    .spa-card__cta,
    .facility-card__cta,
    .cta-section .btn {
        min-height: 48px;
        padding: 14px 24px;
    }

}

/* ==========================================================================
   Small Screen Header Height Reduction
   ========================================================================== */

@media (max-width: 375px) {
    body .header,
    body .site-header,
    html body .header,
    html body .site-header {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }

    body .header__inner,
    body .header-container,
    html body .header__inner,
    html body .header-container {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }

    body .header__logo img,
    body .header__logo .logo-image,
    html body .header__logo img,
    html body .header__logo .logo-image {
        height: 32px !important;
        max-height: 32px !important;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-sheet,
    .gallery-modal,
    .pull-refresh,
    .swipe-hint,
    .carousel-dots,
    .mobile-floating-cta {
        display: none !important;
    }
}
