/* ===========================
   Global Mobile Adjustments
   =========================== */
@media (max-width: 991px) {
    /* Containers and padding */
    .header-top-bar,
    .header-menu-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Header contact info */
    .header-top-content .list-items {
        display: flex;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        gap: 10px;
    }

    /* Language & currency dropdowns */
    .header-right-action {
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }

    .select-contain-select {
        width: 100% !important;
    }

    /* Logo and toggler */
    .menu-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        max-width: 120px;
    }

    .menu-toggler {
        display: block !important;
        margin-top: 10px;
    }

    /* Navigation */
    .main-menu-content {
        display: none; /* hidden by default */
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

        .main-menu-content.active {
            display: flex !important;
        }

        .main-menu-content ul {
            flex-direction: column;
            gap: 12px;
        }

    /* User dropdown */
    .settings-nav ul.dropdown-menu-item {
        position: relative;
        width: 100%;
    }

    /* Footer */
    .footer-area .row {
        flex-direction: column;
    }

    .footer-area .responsive-column {
        margin-bottom: 20px;
        text-align: center;
    }

    /* Hotel gallery responsiveness */
    .hotel-gallery {
        flex-direction: column;
        height: auto;
    }

    .gallery-left,
    .gallery-right {
        flex: unset;
        width: 100%;
    }

    .gallery-item.small {
        height: 150px;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }

    .nav-btn {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .theme-btn {
        width: 100% !important;
    }

    .footer-area img {
        width: 100% !impor

        max-width: 250px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .curve-shape::before {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        content: attr(data-text);
        color: transparent;
        text-decoration-style: wavy;
        text-decoration-color: #3d3c3d;
        text-decoration-line: underline;
    }
}
@media (min-width: 1024px) {
    .curve-shape::before {
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        transform: none; /* reset */
    }
}


/* For mobile phones */
@media (max-width: 575px) {
    .search-fields-container {
        padding: 10px;
    }

        .search-fields-container .form-group {
            position: relative;
        }

    .night-badge {
        font-size: 12px;
    }

    .theme-btn-home {
        width: 100%;
        font-size: 16px;
        padding: 2px;
    }
}
@media(max-width:991px) {
    #mobileFilterContent {
        display: none !important;
        flex-direction: column;
    }

    #mobileFilterContent.show {
        display: flex !important;
    }
}
/* Media query for desktop/tablet */
@media (min-width: 992px) {
    /* Hide mobile button */
    #mobileFilterBtn {
        display: none;
    }

    #mobileFilters {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        right: auto !important;
        top: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        transition: none !important;
    }

    #closeMobileFilters {
        display: none; /* hide close button on desktop */
    }
}
@media only screen and (min-width: 320px) and (max-width: 479px) {
    .sidebar{
        margin-bottom:20px;
        padding:20px 20px 20px 20px !important;
    }
}
/* General Mobile Responsive Adjustments */
@media (max-width: 991px) {
    /* Stack columns vertically */
    .booking-area .row {
        flex-direction: column;
    }

    .booking-area .col-lg-8,
    .booking-area .col-lg-4 {
        width: 100%;
        max-width: 100%;
    }

    /* Form-box full width and spacing */
    .booking-area .form-box {
        padding: 15px;
        margin-bottom: 20px;
    }

    /* Map iframe full width */
    .map-container iframe {
        width: 100% !important;
        height: 200px !important;
    }

    .single-content-nav ul {
        flex-wrap: wrap;
        gap: 5px;
    }

        .single-content-nav ul li {
            flex: 1 1 auto;
        }

            .single-content-nav ul li a {
                font-size: 0.85rem;
                padding: 6px 8px;
                display: block;
                text-align: center;
            }

    /* Filters / MobileFilters */
    #mobileFilters {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100%;
        background: #fff;
        z-index: 1100;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding: 15px;
        box-shadow: -2px 0 6px rgba(0,0,0,0.3);
    }

        #mobileFilters.active {
            right: 0;
        }

    #mobileFilterBtn {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1200;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        font-size: 22px;
        background-color: #45294E;
        color: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        border: none;
        cursor: pointer;
    }

    #closeMobileFilters {
        display: block;
        font-size: 24px;
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Buttons & badges responsive */
    .meal-filter-btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Accordion / Room selection */
    .accordion .card {
        margin-bottom: 15px;
    }

    .accordion .card-body {
        padding: 10px;
    }
}
@media (max-width: 991px) {
    /* Only show the first large image */
    .hotel-gallery .gallery-left {
        width: 100%;
    }

        .hotel-gallery .gallery-left .gallery-item.large img {
            display: block;
            width: 100%;
            height: auto;
        }

    /* Hide small thumbnails except the last "+More" one */
    .hotel-gallery .gallery-right .gallery-item.small:not(.more-photos) {
        display: none;
    }

    /* Make the "+More" overlay full width */
    .hotel-gallery .gallery-right .gallery-item.more-photos {
        width: 100%;
        text-align: center;
    }

        .hotel-gallery .gallery-right .gallery-item.more-photos .overlay {
            padding: 10px;
            font-size: 1rem;
        }
}

@media (max-width: 991px) {
    #amenitiesContent {
        padding: 10px 0;
    }
}
@media (max-width: 576px) {
    .hotel-name h3.card-title {
        font-size: 16px; /* smaller font for small screens */
    }

    .hotel-name .badge {
        font-size: 12px;
        padding: 2px 6px;
    }
}
/* --- Mobile Styles --- */
@media (max-width: 767px) {
    /* Make table rows stacked as cards */
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 12px;
        margin-bottom: 15px;
    }

        .table tbody tr td,
        .table tbody tr th {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

    /* Hotel info card */
    .table-content.product-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .table-content.product-content img {
            width: 100%;
            height: auto;
        }

    .product-info-wrap .product-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Price card */
    .price-box {
        width: 100%;
        padding: 10px;
    }

        /* Room names */
        .price-box .text-primary,
        .price-box .text-success {
            font-size: 0.95rem;
        }

    /* Make payment tabs stacked */
    .section-tab .nav-tabs {
        flex-direction: column;
        gap: 12px;
    }

    /* Buttons full width */
    .theme-btn {
        width: 100%;
        padding: 2px;
        font-size: 1rem;
    }

    /* Gap between hotel name and info */
    .hotel-name {
        width: 100%;
        display: flex;
        gap: 6px;
    }
}
/* Optional: mobile adjustment */
@media (max-width: 767px) {
    .section-tab .nav-tabs .nav-item {
        width: 100%;
    }
    .section-tab .nav-item:nth-child(2) img {
        width: 50px !important;
        height: 50px !important;
    }
}
/* Optional: extra small screens */
@media (max-width: 575px) {
    .alert {
        font-size: 13px;
        gap: 6px;
        padding: 10px !important;
    }

        .alert i {
            font-size: 18px !important;
        }
}
/* Mobile: stack label and value */
@media (max-width: 575px) {
    .alert .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .alert h6,
    .alert span {
        font-size: 14px; /* adjust font for small screens */
    }
}
/* Mobile adjustments */
@media (max-width: 575px) {
    .nav-btn .theme-btn {
        font-size: 14px; /* slightly smaller text */
        padding: 2px 12px; /* smaller padding for mobile */
        width: 100%; /* full width buttons for mobile */
        margin-bottom: 8px; /* reduce bottom spacing */
    }

        .nav-btn .theme-btn i.icon-right {
            margin-left: 5px; /* adjust icon spacing */
        }
}