/* ==========================================================================
   1. RESET, ISOLATION & GLOBAL VARIABLES SETUP
   ========================================================================== */
.hms-frontend-root, .hms-frontend-root * {
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* ==========================================================================
   2. PREMIUM SEARCH BAR WIDGET (Pill-Style & Column Hover Layout)
   ========================================================================== */
.hms-main-search-wrapper {
    /*max-width: 1000px;*/
    margin: 20px auto;
    background: var(--hms-white, #ffffff) !important;
    border-radius: 100px !important;
    /*padding: 8px 12px !important;*/
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.03), 
        0 20px 40px -5px rgba(17, 24, 39, 0.08),
        0 0 0 1px var(--hms-border-light, rgba(0, 0, 0, 0.1)) !important;
    border: none !important;
    transition: box-shadow 0.4s ease, transform 0.4s ease !important;
}

.hms-main-search-wrapper:focus-within {
    transform: translateY(-1px);
    box-shadow: 
        0 20px 40px -5px rgba(17, 24, 39, 0.12),
        0 0 0 3px var(--hms-primary-glow, rgba(0, 0, 0, 0.05)) !important;
}



.hms-advanced-search {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 10px 15px;
}

.hms-search-column {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 5px 20px !important;
    flex: 1;
    position: relative;
}

/* NEW: Proportional flex distribution to eliminate the gap */
.hms-search-column:not(.hms-guest-picker-trigger) {
    flex: 1.4 1 0% !important; /* Gives more elegant breathing room to the date fields */
}

.hms-search-column.hms-guest-picker-trigger {
    flex: 0.8 1 0% !important; /* Keeps the guest column tight, pulling the search button inline */
}

/* Clean up the desktop wrapper alignment for the button */
.hms-search-btn-wrap {
    display: flex !important;
    align-items: center !important;
    padding-right: 4px !important; /* Keeps the pill button perfectly flush with the outer track */
}
/* Luxury micro-interaction pattern */
.hms-search-column:hover {
    background-color: var(--hms-off-white, #f3f5f9) !important;
}

.hms-divider {
    width: 1px !important;
    height: 32px !important;
    background: var(--hms-border-light, rgba(0, 0, 0, 0.15)) !important;
}

/* ==========================================================================
   3. FORM CONTROL TYPOGRAPHY & INTERFACES
   ========================================================================== */
/* 1. Force the wrapper itself to stack tightly */
.hms-search-inputs {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0px !important; /* Kills the gap between label and input */
    margin: 0 !important;
    padding: 0 !important;
}




.hms-search-inputs label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #5b6778 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}



.hms-search-inputs br, .hms-search-inputs p {
    display: none !important;
}

/* 2. Lock the input height and strip all browser/Flatpickr padding */
.hms-search-inputs input, 
.hms-guest-display span {
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hms-black, #111827) !important;
    width: 100%;
    cursor: pointer;
    box-shadow: none !important;
    
    /* Strict height lockdown */
    height: 18px !important;
    min-height: 18px !important;
    line-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Strip Apple/Chrome native date picker invisible spacing */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 3. Nuke internal Shadow DOM padding for Safari/Chrome date pickers */
.hms-search-inputs input::-webkit-datetime-edit,
.hms-search-inputs input::-webkit-datetime-edit-fields-wrapper,
.hms-search-inputs input::-webkit-datetime-edit-text {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 18px !important;
}

.hms-search-inputs input:focus {
    outline: none !important;
}

/*.hms-search-inputs{*/
/*    display: ruby!important;*/
    /*background: yellow!important;*/
    /*padding: 20px;*/
/*}*/



.hms-search-icon {
    color: var(--hms-accent, #d79b48) !important;
    font-size: 20px !important;
    display: flex;
    align-items: center;
}

/* Master Action Button with Variable Injection */
.hms-main-search-btn {
    background: var(--hms-primary, #751521) !important;
    color: var(--hms-white, #ffffff) !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px var(--hms-primary-glow, rgba(0, 0, 0, 0.1)) !important;
}

.hms-main-search-btn:hover {
    background: var(--hms-black-light, #24282e) !important;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15) !important;
}

.hms-main-search-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   4. GUEST PICKER POPOVER INTERFACE (Redesigned from Image)
   ========================================================================== */
.hms-guest-picker-trigger {
    position: relative !important;
}

.hms-guest-popover {
    position: absolute !important;
    top: 75px !important;
    right: 0 !important;
    width: 340px !important;
    background: var(--hms-white, #ffffff) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
    padding: 24px !important;
    z-index: 9999 !important;
    border: 1px solid var(--hms-border-light, rgba(0, 0, 0, 0.06)) !important;
    display: none;
}

.hms-guest-popover.active {
    display: block !important;
    animation: hmsPopoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hmsPopoverFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enforces precise horizontal orientation for counters */
.hms-pop-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #a7a9ae8a !important;
}

.hms-pop-label strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--hms-black, #111827) !important;
}

.hms-pop-label span {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 3px !important;
}

.hms-pop-label br{
    display: none;
}

.hms-pop-label{
    width: 50%;
}

/* The horizontal control block preventing vertical button stack wrapping */
.hms-pop-ctrl {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;
    gap: 6px !important;
    min-width: 100px !important;
    justify-content: flex-end !important;
    width: 50%;
}

/* Premium Square Counter Buttons with Custom Pink Design Language */
.hms-qty-btn {
    width: 34px !important;
    height: 34px !important;
    background: transparent !important;
    border: 1px solid #340f1d  !important; 
    color: #340f1d !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.hms-qty-btn:hover {
    background: rgba(216, 27, 96, 0.04) !important;
    transform: scale(1.05);
}

#adultDisplay, #childDisplay {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--hms-black, #111827) !important;
    min-width: 12px !important;
    text-align: center !important;
}

/* Redesigned Premium Outline Handoff Button */
.hms-pop-done {
    background: transparent !important;
    border: 1px solid #340f1d !important;
    color: #340f1d !important;
    width: 100% !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    transition: all 0.2s ease !important;
}

.hms-pop-done:hover {
    background: rgb(2 2 2 / 9%) !important;
    transform: scale(1.05);
}


.hms-filter-bar br{
    display: none;
}




/* ==========================================================================
   SKELETON PLACEHOLDER LOADING PATTERNS
   ========================================================================== */
.hms-skeleton-card {
    pointer-events: none !important;
    user-select: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.hms-skeleton-line {
    display: block;
    background: #f3f5f9 !important;
}

/* Hardware accelerated shimmering pulse gradient */
.hms-skeleton-shimmer {
    background: #f3f5f9 !important;
    background: linear-gradient(
        90deg, 
        #f3f5f9 25%, 
        #eaedf3 50%, 
        #f3f5f9 75%
    ) !important;
    background-size: 200% 100% !important;
    animation: hmsShimmerSweep 1.6s infinite linear !important;
}

@keyframes hmsShimmerSweep {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}





/* ==========================================================================
   5. FILTER & SORTING NAVIGATION BAR (Premium SaaS Redesign)
   ========================================================================== */
.hms-filter-bar {
    margin: 20px auto;
    padding: 12px 46px !important;
    background: var(--hms-white, #ffffff) !important;
    border-radius: 100px;
    display: flex;
    gap: 28px !important;
    align-items: center !important;
    border: 1px solid #00000059 !important;
    flex-wrap: wrap !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
}

.hms-filter-item {
    display: flex;
    flex-direction: column;
}

.hms-filter-item label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #21252b !important;
    display: block !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding-left: 5px;
}

/* Premium Minimalist Dropdowns */
.hms-filter-item select {
    padding: 10px 16px !important;
    border-radius: 12px !important;
    border: 1px solid var(--hms-border-light, rgba(0, 0, 0, 0.1)) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--hms-black, #111827) !important;
    background-color: var(--hms-off-white, #f3f5f9) !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 150px;
}

.hms-filter-item select:hover {
    background-color: var(--hms-white, #ffffff) !important;
    border-color: var(--hms-accent, #d79b48) !important;
}

.hms-filter-item select:focus {
    background-color: var(--hms-white, #ffffff) !important;
    border-color: var(--hms-primary, #751521) !important;
    box-shadow: 0 0 0 3px var(--hms-primary-glow, rgba(117, 21, 33, 0.08)) !important;
}

/* Premium Clean Ghost Reset Button Override */
#hms-reset-filters {
    background: transparent !important;
    border: 2px solid rgba(231, 76, 60, 0.2) !important;
    padding: 8px 22px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #e74c3c !important;
    transition: all 0.2s ease !important;
    /* margin-top: 4px; */
}

#hms-reset-filters:hover {
    background: rgba(231, 76, 60, 0.05) !important;
    border-color: #e74c3c !important;
    transform: translateY(-0.5px);
}

/* Luxury Metric Badge on the Right Side */
.hms-filter-bar div[style*="margin-left: auto"] {
    margin-left: auto !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--hms-primary, #751521) !important;
    background: var(--hms-primary-glow, rgba(117, 21, 33, 0.06)) !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    letter-spacing: 0.3px !important;
    border: 1px solid rgba(117, 21, 33, 0.08) !important;
}

/* ==========================================================================
   6. ROOM RESULTS CONTAINER & GRID INFRASTRUCTURE
   ========================================================================== */
.hms-rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    /*padding: 30px 0;*/
    /*max-width: 1240px; */
    margin: 0 auto;
    align-items: stretch;
}

.hms-premium-card {
    background: var(--hms-white, #ffffff);
    border-radius: 15px;
    border: 1px solid var(--hms-border-light, rgba(0, 0, 0, 0.06))!important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    padding: 0px;
}

.hms-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(17, 24, 39, 0.12);
}

.hms-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hms-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hms-premium-card:hover .hms-image-container img {
    transform: scale(1.06);
}

.hms-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--hms-black, #111827);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hms-content-container { 
    padding: 24px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hms-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.hms-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hms-black, #111827);
    margin: 0;
    line-height: 1.3;
}

.hms-review-score {
    font-weight: 700;
    font-size: 13px;
    background: #fff9e6;
    color: #f39c12;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hms-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.hms-tag {
    font-size: 11px;
    color: #475569;
    background: var(--hms-off-white, #f3f5f9);
    border: 1px solid var(--hms-border-light, rgba(0, 0, 0, 0.05));
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* ==========================================================================
   7. RUNNING PRICING MATRIX & CTA STYLES
   ========================================================================== */
.hms-footer-flex {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--hms-off-white, #f3f5f9);
    padding-top: 16px;
}

.hms-price-main {
    font-size: 20px;
    font-weight: 800;
    color: var(--hms-black, #111827);
    letter-spacing: -0.5px;
}

.hms-price-main small {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-left: 2px;
}

.hms-price-total {
    font-size: 11px;
    color: #16a34a; /* Refined Premium Green */
    font-weight: 600;
    margin-top: 2px;
}

.hms-action-button {
    background: var(--hms-primary, #751521) !important;
    color: var(--hms-white, #ffffff);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--hms-primary-glow, rgba(0, 0, 0, 0.08));
}

.hms-action-button:hover {
    background: var(--hms-black, #111827) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   8. DYNAMIC AGE ARRAYS & SELECT BOXES
   ========================================================================== */
.hms-ages-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 12px !important;
}

.hms-age-item label { 
    font-size: 9px !important; 
    color: #64748b !important; 
    text-transform: uppercase;
    font-weight: 700;
}

.hms-age-item select, .hms-child-age-input {
    width: 100% !important;
    padding: 6px 10px !important;
    border: 1px solid var(--hms-border, #7c7c7c) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    background-color: var(--hms-white, #ffffff) !important;
    color: var(--hms-black, #111827) !important;
}

/* ==========================================================================
   9. SYSTEM STATES (LOADERS, ERRORS, FLATPICKR OVERRIDES)
   ========================================================================== */
.hms-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.hms-loader {
    text-align: center;
    padding: 100px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hms-black, #111827);
}

/* Custom Design-System Mapping for Flatpickr Ranges */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: var(--hms-primary, #751521) !important;
    border-color: var(--hms-primary, #751521) !important;
}

.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange {
    background: var(--hms-accent, #d79b48) !important;
    border-color: var(--hms-accent, #d79b48) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700 !important;
}

/* ADD THIS: Forces past and disabled dates to look faded, dull, and unclickable */
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
    color: #cbd5e1 !important; /* Light slate gray text */
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.85 !important; /* Low opacity creates the perfect dull appearance */
}

/* ==========================================================================
   10. SYSTEM MEDIA QUERIES (MOBILE RESPONSIVE ARCHITECTURE)
   ========================================================================== */
@media (max-width: 1100px) {
    .hms-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Transform Search Bar into an elegant stacked form panel */
    .hms-main-search-wrapper { 
        border-radius: 20px !important; 
        padding: 16px !important;
        margin: 20px 10px;
    }
    
    .hms-advanced-search { 
        flex-direction: column !important; 
        gap: 12px !important;
    }
    
    .hms-divider { 
        display: none !important; 
    }
    
    .hms-search-column { 
        width: 100% !important; 
        border-bottom: 1px solid var(--hms-off-white, #f3f5f9); 
        padding: 12px 8px !important; 
        border-radius: 12px;
    }

    .hms-search-column:hover {
        background-color: transparent !important;
    }

    .hms-search-btn-wrap {
        width: 100%;
        margin-top: 8px;
    }

    .hms-main-search-btn {
        width: 100% !important;
        padding: 16px !important;
        text-align: center;
    }

    .hms-guest-popover {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 65px !important;
        position: fixed !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }
}

@media (max-width: 700px) {
    .hms-rooms-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 24px;
    }
    
    .hms-image-container {
        height: 200px;
    }
}






/*Selection bar Design*/

#hms-selection-bar br{
    display: none!important;
}
#hms-selection-bar p{
    margin: 0px;
}

#hms-selection-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    border-radius: 100px;
    background: rgb(255 255 255 / 94%);
    box-shadow: rgba(0, 0, 0, 0.15) 0px -10px 30px;
    z-index: 99999;
    border-top: 3px solid var(--hms-primary) !important;
    padding: 8px 0px;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--hms-primary);

    /* Smooth animation */
    animation: slideUpBar 0.8s ease-out;
    transition: all 0.6s ease;
}

@keyframes slideUpBar {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
#hms-sel-capacity{
    font-size:18px; 
    font-weight:700; 
    color:var(--hms-primary)!important;
}

#hms-sel-price{
    font-size:18px;
    font-weight:700;
    color:var(--hms-primary)!important;
}



#hms-final-reserve-btn{
background: var(--hms-primary);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 58px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 600;
    font-family: system-ui;
    box-shadow: 0 4px 15px rgb(30 100 57 / 30%);
}

#hms-final-reserve-btn:hover{
        background: var(--hms-accent);
    /* transform: translate(10px, 5px); */
    transform: scale(1.05);
    transition: transform 0.5s ease-in-out, background 0.5s ease-in-out;
}

.bar-left{
    display:flex;
    gap:30px;
    font-family: 'Roboto';
}