/* ============================================
   SANDUR VALLEY RESORT - RESPONSIVE CSS
   Shared responsive styles for all pages
   ============================================ */

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   DESKTOP BREAKPOINTS
   ============================================ */

/* Extra Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3.5rem !important;
    }

    h2 {
        font-size: 2.5rem !important;
    }
}

/* ============================================
   TABLET LANDSCAPE (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Hero Section */
    h1.font-serif {
        font-size: 3rem !important;
    }

    h2.font-serif {
        font-size: 2.5rem !important;
    }

    /* Two-column layouts stack closer */
    .flex.flex-col.lg\:flex-row {
        gap: 2rem !important;
    }

    /* Grids - 2 columns */
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer grid */
    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    /* Section spacing */
    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-20 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* ============================================
   TABLET PORTRAIT (600px - 767px)
   ============================================ */
@media (min-width: 600px) and (max-width: 767px) {

    /* Hero Section */
    h1.font-serif {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2.font-serif {
        font-size: 2rem !important;
    }

    /* Full width stacking */
    .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
    }

    .lg\:w-1\/2,
    .lg\:w-2\/5,
    .lg\:w-3\/5 {
        width: 100% !important;
    }

    /* Grids - 2 columns */
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Activity/feature grids */
    .grid.grid-cols-2.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer */
    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    /* Room image heights */
    .h-80 {
        height: 16rem !important;
    }

    /* Section spacing */
    .py-24 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Contact cards */
    .flex.items-center.gap-4 .w-14.h-14 {
        width: 3rem !important;
        height: 3rem !important;
    }

    .flex.items-center.gap-4 .w-14.h-14 svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

/* ============================================
   MOBILE (481px - 599px)
   ============================================ */
@media (min-width: 481px) and (max-width: 599px) {

    /* Header */
    header .h-20 {
        height: 4.5rem !important;
    }

    header .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .px-6.py-3 {
        padding: 0.5rem 1rem !important;
        font-size: 0.7rem !important;
    }

    /* Hero Section */
    h1.font-serif {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2.font-serif {
        font-size: 1.75rem !important;
    }

    .min-h-\[60vh\] {
        min-height: 50vh !important;
    }

    .min-h-\[50vh\] {
        min-height: 45vh !important;
    }

    /* Full width everything */
    .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .lg\:w-1\/2,
    .lg\:w-2\/5,
    .lg\:w-3\/5 {
        width: 100% !important;
    }

    /* Grids */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Stats grids */
    .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .grid.grid-cols-3 .text-3xl {
        font-size: 1.5rem !important;
    }

    .grid.grid-cols-3 .p-4 {
        padding: 0.75rem !important;
    }

    /* Footer - 2 columns */
    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Room Cards */
    .h-80 {
        height: 14rem !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4 .p-3 {
        padding: 0.5rem !important;
    }

    /* Values/feature cards */
    .p-8 {
        padding: 1.5rem !important;
    }

    .w-16.h-16 {
        width: 3rem !important;
        height: 3rem !important;
    }

    .w-16.h-16 svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    /* Contact cards */
    .flex.items-center.gap-4 {
        gap: 0.75rem !important;
    }

    .flex.items-center.gap-4 .w-14.h-14 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .flex.items-center.gap-4 .w-14.h-14 svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    .p-6 {
        padding: 1rem !important;
    }

    /* Form elements */
    .px-6.py-4 {
        padding: 0.75rem 1rem !important;
    }

    /* Section spacing */
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Buttons */
    .px-8.py-4,
    .px-10.py-5 {
        padding: 0.875rem 1.5rem !important;
    }
}

/* ============================================
   SMALL MOBILE (320px - 480px)
   ============================================ */
@media (max-width: 480px) {

    /* ===== HEADER FIXES ===== */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100 !important;
    }

    header .h-20,
    header .lg\:h-24 {
        height: 3.5rem !important;
    }

    header .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    header .w-10.h-10 {
        width: 2rem !important;
        height: 2rem !important;
    }

    header .text-lg {
        font-size: 0.8rem !important;
    }

    .hidden.sm\:block {
        display: none !important;
    }

    .px-6.py-3,
    .px-5.py-2 {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.6rem !important;
    }

    /* ===== HERO SECTION FIXES ===== */
    section.relative.h-screen,
    .min-h-screen {
        min-height: 100vh !important;
        padding-top: 4rem !important;
    }

    h1.font-serif {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    h2.font-serif {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    h3.font-serif,
    h3.text-xl {
        font-size: 1rem !important;
    }

    .text-5xl {
        font-size: 1.5rem !important;
    }

    .text-7xl {
        font-size: 2rem !important;
    }

    .text-xl {
        font-size: 0.875rem !important;
    }

    .text-lg {
        font-size: 0.8rem !important;
    }

    .min-h-\[60vh\] {
        min-height: 45vh !important;
        padding-top: 4rem !important;
    }

    .min-h-\[50vh\] {
        min-height: 40vh !important;
        padding-top: 3.5rem !important;
    }

    /* ===== BOOKING BAR CRITICAL FIXES ===== */
    .booking-glass {
        position: relative !important;
        bottom: auto !important;
        margin: 1rem 0.5rem !important;
        padding: 0.75rem !important;
        border-radius: 1rem !important;
    }

    .booking-glass .flex-col.lg\:flex-row,
    .booking-glass>div.flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .booking-glass .flex-1 {
        width: 100% !important;
        min-width: unset !important;
        padding: 0.5rem !important;
    }

    .booking-glass input,
    .booking-glass select {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }

    .booking-glass .text-xs {
        font-size: 0.6rem !important;
    }

    .booking-glass button,
    .booking-glass a.bg-resort-gold {
        padding: 0.75rem 1rem !important;
        font-size: 0.7rem !important;
        width: 100% !important;
    }

    /* ===== ROOM SLIDER FIXES ===== */
    .slider-track {
        gap: 0.5rem !important;
    }

    .slider-track>div {
        width: 8rem !important;
        height: 7rem !important;
        flex-shrink: 0 !important;
    }

    .slider-track img {
        border-radius: 0.5rem !important;
    }

    /* ===== FULL WIDTH STACKING ===== */
    .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .lg\:w-1\/2,
    .lg\:w-2\/5,
    .lg\:w-3\/5,
    .md\:w-1\/2 {
        width: 100% !important;
    }

    /* ===== GRID LAYOUTS ===== */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .grid.grid-cols-2 {
        gap: 0.5rem !important;
    }

    .grid.grid-cols-2.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* ===== STATS GRIDS ===== */
    .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.25rem !important;
    }

    .grid.grid-cols-3 .text-3xl {
        font-size: 1rem !important;
    }

    .grid.grid-cols-3 .text-sm {
        font-size: 0.55rem !important;
    }

    .grid.grid-cols-3 .p-4 {
        padding: 0.4rem !important;
    }

    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* ===== FOOTER STACKING ===== */
    .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    .grid.md\:grid-cols-4 .flex.items-center.gap-3 {
        justify-content: center !important;
    }

    footer .flex-col.md\:flex-row {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    /* ===== ROOM CARDS ===== */
    .h-80 {
        height: 10rem !important;
    }

    .h-64 {
        height: 9rem !important;
    }

    .flex.flex-col.lg\:flex-row.gap-8 {
        gap: 0.75rem !important;
    }

    .flex.flex-col.lg\:flex-row-reverse.gap-8 {
        gap: 0.75rem !important;
    }

    /* ===== POOL/WATERPARK CARDS ===== */
    .grid.grid-cols-2.md\:grid-cols-4 .aspect-square {
        height: auto !important;
    }

    .aspect-square {
        aspect-ratio: 1/1 !important;
    }

    /* ===== ROOM DETAIL PAGES ===== */
    .grid.grid-cols-2.md\:grid-cols-4 .p-3 {
        padding: 0.3rem !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4 .text-resort-gold.font-bold {
        font-size: 0.65rem !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4 .text-xs {
        font-size: 0.55rem !important;
    }

    /* ===== FEATURE/VALUE CARDS ===== */
    .p-8 {
        padding: 1rem !important;
    }

    .p-6 {
        padding: 0.75rem !important;
    }

    .p-5 {
        padding: 0.6rem !important;
    }

    .p-4 {
        padding: 0.5rem !important;
    }

    .w-16.h-16 {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    .w-14.h-14 {
        width: 2rem !important;
        height: 2rem !important;
    }

    .w-16.h-16 svg,
    .w-14.h-14 svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* ===== CONTACT CARDS ===== */
    .flex.items-center.gap-4 {
        gap: 0.5rem !important;
    }

    .flex.items-start.gap-4 {
        gap: 0.5rem !important;
    }

    .flex.items-center.gap-4 .w-14.h-14 {
        width: 2rem !important;
        height: 2rem !important;
        flex-shrink: 0 !important;
    }

    /* ===== FORM ELEMENTS ===== */
    .px-6.py-4 {
        padding: 0.6rem 0.75rem !important;
    }

    .grid.md\:grid-cols-2.gap-6 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    textarea {
        min-height: 80px !important;
    }

    input,
    select,
    textarea {
        font-size: 0.8rem !important;
    }

    /* ===== PILLS/TAGS ===== */
    .px-3.py-1 {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.55rem !important;
    }

    .flex.flex-wrap.gap-2 {
        gap: 0.25rem !important;
    }

    /* ===== ACTIVITY BOXES ===== */
    .p-6.bg-white\/5 {
        padding: 0.5rem !important;
    }

    /* ===== SECTION SPACING (CRITICAL FOR NO OVERLAPS) ===== */
    .py-24 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-20 {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    .py-16 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-12 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .pt-20,
    .pt-24 {
        padding-top: 4rem !important;
    }

    /* For sections after fixed header */
    .mb-16 {
        margin-bottom: 1.5rem !important;
    }

    .mb-12 {
        margin-bottom: 1rem !important;
    }

    .mb-8 {
        margin-bottom: 0.75rem !important;
    }

    .mb-6 {
        margin-bottom: 0.5rem !important;
    }

    .gap-16 {
        gap: 1.5rem !important;
    }

    .gap-12 {
        gap: 1rem !important;
    }

    .gap-8 {
        gap: 0.75rem !important;
    }

    .gap-6 {
        gap: 0.5rem !important;
    }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* ===== BUTTONS ===== */
    .px-8.py-4,
    .px-10.py-5 {
        padding: 0.6rem 1rem !important;
        font-size: 0.65rem !important;
    }

    .px-8.py-3 {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.65rem !important;
    }

    .px-6.py-3 {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.6rem !important;
    }

    .flex.gap-4 {
        gap: 0.5rem !important;
        flex-wrap: wrap;
    }

    button,
    a.rounded-full {
        white-space: nowrap !important;
    }

    /* ===== CTA SECTIONS ===== */
    .max-w-2xl,
    .max-w-3xl {
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }

    /* ===== ASPECT RATIOS ===== */
    .aspect-\[4\/3\] {
        aspect-ratio: 16/10 !important;
    }

    .aspect-\[16\/9\] {
        aspect-ratio: 16/9 !important;
    }

    /* ===== IMAGE GRIDS ===== */
    .grid.lg\:grid-cols-2.gap-4 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    /* ===== ABOUT SECTION IMAGE ===== */
    .animate-morph {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
    }

    /* ===== TESTIMONIALS ===== */
    .flex.overflow-hidden>div {
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* ===== WORKING HOURS ===== */
    .flex.justify-between {
        font-size: 0.7rem !important;
        padding: 0.25rem 0 !important;
    }

    /* ===== PREVENT TEXT OVERFLOW ===== */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* ===== NAVIGATION FIX FOR MOBILE ===== */
    nav.hidden.lg\:flex {
        display: none !important;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) {

    /* Disable hover effects that don't work on touch */
    .group:hover .group-hover\:scale-110 {
        transform: none !important;
    }

    .hover\:scale-110:hover {
        transform: none !important;
    }

    /* Make tap targets larger */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto !important;
        height: auto !important;
    }

    .min-h-\[60vh\],
    .min-h-\[50vh\] {
        min-height: auto !important;
        padding: 3rem 0 !important;
    }

    .pt-20 {
        padding-top: 4rem !important;
    }

    .h-screen {
        height: auto !important;
        min-height: auto !important;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (Under 360px)
   ============================================ */
@media (max-width: 360px) {
    h1.font-serif {
        font-size: 1.25rem !important;
    }

    h2.font-serif {
        font-size: 1.1rem !important;
    }

    .text-5xl {
        font-size: 1.25rem !important;
    }

    .booking-glass {
        margin: 0.5rem 0.25rem !important;
        padding: 0.5rem !important;
    }

    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .slider-track>div {
        width: 6rem !important;
        height: 5.5rem !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    header,
    footer,
    .fixed {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }
}