/* ==========================================================================
   JAI LAXMI VILAS PALACE - COMPLETE RESPONSIVE SYSTEM (2026 EDITION)
   Zero Horizontal Overflow | Touch-Friendly UI | Smooth Transitions
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Global Reset & High-Performance Scrolling System
   -------------------------------------------------------------------------- */
html {
    overflow-x: clip !important;
    overflow-y: scroll !important; /* Always show standard right-side vertical scrollbar; prevents scrollbar freeze and horizontal jumps */
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: #C8A06A #071B33;
}

body {
    overflow-x: clip !important; /* Clips horizontal overflow cleanly without creating a nested scroll container or forcing overflow-y: auto */
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: auto !important; /* CRITICAL: Must be height: auto so the viewport window is the sole scroll controller */
    position: static !important; /* CRITICAL: Must be static so fixed/sticky elements and scroll offsets don't trigger layout thrashing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback for older browser engines */
@supports not (overflow: clip) {
    html {
        overflow-x: hidden !important;
    }
    body {
        overflow-x: visible !important;
    }
}

/* Custom Luxury Hotel Scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #071B33;
}

::-webkit-scrollbar-thumb {
    background: #C8A06A;
    border-radius: 6px;
    border: 2px solid #071B33;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

::-webkit-scrollbar-thumb:active {
    background: #b58f5a;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto;
}

/* --------------------------------------------------------------------------
   1. Large Desktop (min-width: 1920px)
   -------------------------------------------------------------------------- */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px !important;
    }
    .header-floating-container {
        max-width: 1750px !important;
    }
}

/* --------------------------------------------------------------------------
   2. Standard Desktop (1200px - 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1440px) {
    .container {
        max-width: 1180px !important;
    }
    .header-floating-container {
        width: 95%;
        padding: 6px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. Small Desktop & Landscape Tablet (992px - 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px !important;
    }
    .header-floating-container {
        width: 96%;
        padding: 6px 16px;
    }
    .main-luxury-nav ul.nav-list {
        gap: 14px;
    }
    .main-luxury-nav ul.nav-list > li > a {
        font-size: 11.5px;
        letter-spacing: 0.6px;
    }
    .jmv-logo-img {
        height: 56px;
    }
    .brand-title {
        font-size: 14px;
    }
    .brand-subtitle {
        font-size: 7.5px;
    }
    .btn-header-book {
        padding: 10px 16px !important;
        font-size: 11px !important;
    }
    .banner-content h1 {
        font-size: 44px !important;
    }
    .luxury-rooms-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

/* --------------------------------------------------------------------------
   4. Tablet Portrait & Mid-Screen Devices (768px - 991px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Header & Mobile Nav */
    .header-top-bar-wrap {
        display: none !important;
    }
    .header-nav-floating-wrap {
        padding-top: 8px;
    }
    .header-floating-container {
        width: 95%;
        padding: 8px 16px;
        border-radius: 22px;
        background: #ffffff;
    }
    .jmv-logo-img {
        height: 48px !important;
        max-height: 48px !important;
    }
    .brand-title {
        font-size: 14px;
    }
    .brand-subtitle {
        font-size: 8px;
    }
    .floating-mobile-actions {
        display: flex !important;
    }

    /* Hero Slider */
    .slider-area {
        height: auto !important;
        min-height: 540px !important;
    }
    .banner-content .text-content-wrapper {
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }
    .banner-content h1 {
        font-size: 36px !important;
        line-height: 1.25 !important;
        padding-top: 0 !important;
        margin-bottom: 14px !important;
    }
    .banner-content p {
        display: block !important;
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        max-width: 85% !important;
        margin: 0 auto 20px !important;
    }
    .banner-btn a.default-btn {
        padding: 10px 22px !important;
        font-size: 12.5px !important;
        min-width: 120px !important;
        max-width: 150px !important;
    }

    /* Homepage Search Availability Form */
    .search-form.home-search-luxury {
        margin-top: 20px !important;
        padding: 22px 20px !important;
        border-radius: 16px !important;
    }
    .luxury-search-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .search-action-col {
        grid-column: 1 / -1 !important;
    }

    /* Favorite Rooms Grid */
    .luxury-rooms-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .luxury-room-section {
        padding: 50px 0 !important;
    }

    /* About Section */
    .about-area {
        padding: 50px 0 !important;
    }
    .about-text {
        padding-top: 0 !important;
        margin-bottom: 30px !important;
    }
    .video-wrapper {
        margin-top: 0 !important;
    }
    .video-overlay img {
        height: 320px !important;
        object-fit: cover !important;
    }

    /* Services & Facilities Tabs */
    .services-area {
        padding: 50px 0 !important;
    }
    .nav.nav-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
    }
    .nav-tabs > .nav-item {
        width: calc(50% - 5px) !important;
        margin-bottom: 0 !important;
    }
    .tab-pane img {
        margin-top: 15px !important;
        width: 100% !important;
    }

    /* Fun Factor / Milestones */
    .fun-factor-area {
        padding: 45px 0 !important;
    }
    .single-fun-factor {
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
    }
    .single-fun-factor h1 {
        font-size: 42px !important;
    }

    /* Pricing Section */
    .pricing-area {
        padding: 50px 0 !important;
    }
    .single-pricing {
        margin-bottom: 25px !important;
    }

    /* Footer */
    .footer-widget-area {
        padding: 50px 0 20px !important;
    }
    .single-footer-widget {
        margin-bottom: 35px !important;
    }
    .footer-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px 12px !important;
    }

    /* Inner Pages Breadcrumb */
    .breadcrumb-area {
        padding: 130px 0 40px !important;
    }
    .breadcrumb-text h2 {
        font-size: 30px !important;
    }

    /* Contact Page */
    .contact-map {
        height: 350px !important;
    }
}

/* --------------------------------------------------------------------------
   5. Mobile Devices & Small Screens (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .row {
        margin-left: -7px !important;
        margin-right: -7px !important;
    }

    .row > * {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    /* Header on Mobile */
    .luxury-top-ticker-bar {
        height: 28px !important;
        line-height: 28px !important;
    }
    .ticker-flex-row {
        height: 28px !important;
    }
    .ticker-badge-wrap {
        font-size: 8.5px !important;
        padding: 1px 7px !important;
        margin-right: 8px !important;
    }
    .ticker-item {
        font-size: 11px !important;
        padding-right: 40px !important;
    }
    .header-top-bar-wrap {
        display: none !important;
    }
    .header-nav-floating-wrap {
        padding-top: 8px !important;
    }
    .header-floating-container {
        width: 95% !important;
        padding: 6px 14px !important;
        border-radius: 18px !important;
        background: #ffffff !important;
    }
    .jmv-logo-img {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 140px !important;
    }
    .brand-text-block {
        display: none !important;
    }
    .floating-mobile-actions {
        display: flex !important;
        gap: 8px !important;
    }
    .btn-mobile-book {
        padding: 7px 12px !important;
        font-size: 10.5px !important;
    }
    .btn-mobile-search {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    .btn-mobile-hamburger {
        width: 38px !important;
        height: 38px !important;
    }

    /* Hero Slider on Mobile */
    .slider-area {
        height: auto !important;
        min-height: 480px !important;
    }
    .banner-content .text-content-wrapper {
        padding-top: 90px !important;
        padding-bottom: 40px !important;
        display: block !important;
    }
    .banner-content .text-content {
        display: block !important;
    }
    .banner-content h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.3px !important;
        padding-top: 0 !important;
        margin-bottom: 12px !important;
    }
    .banner-content p {
        display: block !important;
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        max-width: 92% !important;
        margin: 0 auto 18px !important;
        color: rgba(255, 255, 255, 0.92) !important;
    }
    .banner-btn a.default-btn {
        padding: 9px 20px !important;
        font-size: 12px !important;
        border-radius: 25px !important;
        min-width: 110px !important;
        max-width: 140px !important;
    }
    .slider-wrapper .owl-nav {
        display: none !important;
    }

    /* Availability Search Form on Mobile */
    .search-form.home-search-luxury {
        margin-top: 15px !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(7, 27, 51, 0.1) !important;
    }
    .luxury-search-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .search-field-col {
        width: 100% !important;
    }
    .search-field-col label {
        font-size: 11px !important;
    }
    .search-field-col input,
    .search-field-col select {
        height: 46px !important;
        font-size: 15px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
    }
    .search-btn-luxury {
        height: 48px !important;
        width: 100% !important;
        font-size: 13px !important;
        margin-top: 4px !important;
    }

    /* Favorite Rooms Section */
    .luxury-room-section {
        padding: 40px 0 !important;
    }
    .luxury-rooms-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .luxury-room-thumb {
        height: 200px !important;
    }
    .luxury-room-title {
        font-size: 17px !important;
        height: auto !important;
        max-height: 48px !important;
    }
    .luxury-room-body {
        padding: 16px !important;
    }
    .luxury-room-footer {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* About Section on Home */
    .about-area {
        padding: 40px 0 !important;
    }
    .about-text {
        padding-top: 0 !important;
        margin-bottom: 25px !important;
    }
    .section-title {
        padding: 0 0 20px !important;
    }
    .section-title h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    .section-title p {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
    }
    .video-wrapper {
        margin-top: 0 !important;
    }
    .video-overlay img {
        height: 240px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    .video-popup {
        font-size: 50px !important;
    }

    /* Services & Facilities Tabs */
    .services-area {
        padding: 40px 0 !important;
    }
    .nav.nav-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .nav-tabs > .nav-item {
        width: 100% !important;
    }
    span.title, span.text {
        padding-left: 60px !important;
    }
    .tab-content {
        margin-top: 20px !important;
    }

    /* Fun Factor Milestones */
    .fun-factor-area {
        padding: 35px 0 !important;
    }
    .single-fun-factor {
        padding: 10px 0 !important;
        margin-bottom: 15px !important;
    }
    .single-fun-factor h1 {
        font-size: 34px !important;
    }
    .single-fun-factor h4 {
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
    }

    /* Pricing Section */
    .pricing-area {
        padding: 40px 0 !important;
    }
    .single-pricing {
        margin-bottom: 25px !important;
        padding-bottom: 25px !important;
    }
    .package-name > h1 {
        font-size: 36px !important;
        padding: 15px 0 !important;
    }

    /* Blog Section */
    .blog-area {
        padding-bottom: 35px !important;
    }
    .single-blog-wrapper {
        margin-bottom: 15px !important;
    }

    /* Footer Area */
    .footer-widget-area {
        padding: 40px 0 15px !important;
    }
    .single-footer-widget {
        margin-bottom: 30px !important;
    }
    .single-footer-widget h3 {
        font-size: 17px !important;
        margin-bottom: 16px !important;
    }
    .footer-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px 10px !important;
    }
    .social-icons a {
        width: 32px !important;
        height: 32px !important;
        line-height: 30px !important;
        font-size: 16px !important;
        margin-right: 8px !important;
    }

    /* Inner Pages - Breadcrumb */
    .breadcrumb-area {
        padding: 105px 0 25px !important;
    }
    .breadcrumb-text h2 {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    .breadcrumb-text p {
        font-size: 12.5px !important;
    }
    .breadcrumb-bar .breadcrumb {
        padding-top: 10px !important;
    }

    /* Rooms Grid & List Pages */
    .room-grid .single-room,
    .room-list .room-list {
        margin-bottom: 25px !important;
    }
    .room-list {
        margin-bottom: 25px !important;
    }
    .room-list img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }
    .room-list-text {
        padding: 14px 10px !important;
    }
    .room-list .p-amount {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 8px 14px !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    /* Room Details Page */
    .room-details-title {
        font-size: 22px !important;
    }
    .room-facilities {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    .single-facility {
        float: none !important;
        width: 100% !important;
    }
    .sidebar-widget {
        margin-top: 30px !important;
    }

    /* Photo Gallery Page */
    .gallery-page-area {
        padding: 40px 0 !important;
    }
    .gallery-filter button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin: 3px !important;
    }
    .gallery-item-wrap {
        height: 210px !important;
    }

    /* Events Page */
    .event-area {
        padding-top: 40px !important;
    }
    .event-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 20px !important;
    }
    .event-menu button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }
    .single-event {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .single-event-item img {
        height: 200px !important;
        object-fit: cover !important;
    }

    /* Contact Us Page */
    .contact-map {
        height: 280px !important;
    }
    .contact-form-area {
        padding-top: 35px !important;
    }
    .contact-title {
        font-size: 20px !important;
        margin-bottom: 14px !important;
    }
    .contact-text {
        margin-bottom: 25px !important;
    }
    #contact-form input,
    #contact-form textarea {
        font-size: 15px !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }
    #contact-form button.default-btn {
        width: 100% !important;
        padding: 13px !important;
    }

    /* Room Availability / Search Results Page */
    .modify-search-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .modify-search-grid .span-full {
        grid-column: auto !important;
    }
    .summary-metrics-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .metric-value {
        font-size: 13px !important;
    }
    .room-avail-card {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }
    .room-avail-thumb {
        width: 100% !important;
        height: 190px !important;
    }
    .room-avail-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .room-avail-body {
        padding: 16px !important;
    }
    .room-avail-title {
        font-size: 17px !important;
    }
    .room-avail-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    .btn-book-room {
        width: 100% !important;
        text-align: center !important;
    }

    /* Booking Wizard Steps on Mobile */
    .wizard-step-indicator {
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        display: flex !important;
        gap: 6px !important;
    }
    .wizard-step-item {
        flex-shrink: 0 !important;
        min-width: 55px !important;
        font-size: 12px !important;
    }
    .wizard-step-label {
        display: none !important;
    }
    .wizard-form-card {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }
    .wizard-buttons {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }
    .wizard-buttons .btn {
        width: 100% !important;
    }

    /* Floating WhatsApp Button on Mobile */
    .whatsapp-float-widget {
        bottom: 16px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 26px !important;
    }
}

/* --------------------------------------------------------------------------
   6. Extra Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .header-floating-container {
        width: 96% !important;
        padding: 6px 10px !important;
    }
    .jmv-logo-img {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 110px !important;
    }
    .btn-mobile-book {
        padding: 6px 9px !important;
        font-size: 9.5px !important;
    }
    .btn-mobile-search {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    .btn-mobile-hamburger {
        width: 34px !important;
        height: 34px !important;
    }
    .btn-mobile-hamburger .ham-bar {
        width: 15px !important;
    }
    .banner-content h1 {
        font-size: 22px !important;
    }
    .banner-content p {
        font-size: 12.5px !important;
    }
    .section-title h3 {
        font-size: 21px !important;
    }
    .footer-list {
        grid-template-columns: 1fr !important;
    }
}
