﻿.inner_block:before {
    top: initial;
}

.multiselect {
    width: 100% !important;
}

    .multiselect .dropdown-toggle {
        border: 1px solid #ced4da !important;
        border-radius: 0.375rem !important;
        background-color: #fff !important;
        color: #212529 !important;
        font-size: 0.95rem;
    }

.multiselect-container.dropdown-menu {
    width: 100% !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
}

.multiselect-container > li > a > label {
    display: block;
    padding: 0.25rem 1rem;
}

.multiselect-container > li.active > a > label {
    background-color: #0d6efd;
    color: #fff;
}

.multiselect.dropdown-toggle.form-select {
    height: calc(2.5rem + 2px) !important; /* default .form-select height */
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
}

/* ==========================================
   📱 GLOBAL RESPONSIVE
   ========================================== */
@media (max-width: 992px) {

    /* Make headings centered on medium/mobile */
    .inner_block h1,
    .services_block h5 {
        text-align: center;
    }

    /* Make navigation centered */
    .inner_block nav {
        text-align: center;
        font-size: 14px;
    }
}

/* ==========================================
   📱 FORM + CALENDAR STACKS ON MOBILE
   ========================================== */
@media (max-width: 768px) {

    /* Stack columns */
    .services_block .row > .col-md-6,
    .services_block .row > .col-md-12 {
        width: 100% !important;
        max-width: 100%;
    }

    /* Space between sections */
    #calendar {
        margin-bottom: 25px;
    }

    /* Fix select boxes & inputs */
    .form-select,
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Checkbox/radio spacing */
    .form-check {
        margin-bottom: 10px;
    }

    /* Buttons full width */
    #btnBack,
    #btnReset,
    .submit_btn {
        width: 100%;
        margin: 6px 0;
    }

    /* Remove right alignment on mobile */
    .text-end {
        text-align: center !important;
    }
}

/* ==========================================
   📱 SMALL MOBILE OPTIMIZATION
   ========================================== */
@media (max-width: 576px) {

    /* Reduce padding in header */
    .inner_block {
        padding: 2rem 1rem !important;
    }

        .inner_block h1 {
            font-size: 24px;
        }

    /* Keep calendar readable */
    .calendar-container {
        padding: 15px !important;
    }

    /* Fix legend colors spacing */
    .d-flex.align-items-center {
        font-size: 14px;
    }

    /* Labels */
    label {
        font-size: 14px;
    }

    /* Dropdowns */
    .form-select,
    .form-control {
        font-size: 13px;
        padding: 9px 10px;
    }

    /* Radio buttons inline on small screens */
    .d-flex .form-check-label {
        font-size: 13px;
    }

    /* Modal better spacing */
    .modal-dialog {
        margin: 10px;
    }

    .modal-title {
        font-size: 18px;
    }
}

/* ==========================================
   📱 SEARCH RESULTS RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    #SearchDetail h5,
    #SearchDetail p {
        text-align: center;
    }

    #tbldata {
        overflow-x: auto; /* Table scroll if needed */
    }
}

/* ==========================================
   📱 MAKE SELECT2 OR MULTI-SELECT RESPONSIVE
   ========================================== */
@media (max-width: 576px) {
    #ddlRooms {
        width: 100% !important;
    }
}

/* ==========================================
   📱 IMPROVE BUTTON ICON SPACING
   ========================================== */
button i {
    margin-left: 5px;
}

/* ==========================================
   🖥 DESKTOP SMALL FIXES
   ========================================== */
@media (min-width: 1200px) {

    /* Form spacing correction */
    .services_block .col-md-6 {
        padding-right: 20px;
        padding-left: 20px;
    }
}
/* Ensure calendar always has visible height */
#calendar,
#calendar .fc,
#calendar .fc-view-harness,
#calendar .fc-scroller {
    min-height: 350px !important;
    height: auto !important;
}

/* Mobile friendly layout */
@media (max-width: 576px) {
    #calendar {
        width: 100% !important;
        overflow-x: auto !important;
    }

        #calendar .fc-daygrid-day-frame {
            padding: 3px !important;
        }

        #calendar .fc-daygrid-day-number {
            font-size: 12px !important;
        }

        #calendar .fc-col-header-cell {
            font-size: 13px !important;
        }
}
