/* ==========================================================================
   StayNomix Hotel Show Page — hotel.css
   ========================================================================== */

/* Premium Flatpickr Custom Styling Overrides */
    .flatpickr-calendar {
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid #e2e8f0 !important;
        font-family: 'Inter', sans-serif !important;
        padding: 6px !important;
        width: 290px !important;
    }
    .flatpickr-days, .dayContainer, .flatpickr-weekdays {
        width: 278px !important;
        min-width: 278px !important;
        max-width: 278px !important;
    }
    .flatpickr-day {
        max-width: 38px !important;
        height: 32px !important;
        line-height: 32px !important;
    }
    .flatpickr-weekday {
        flex: 1 !important;
    }
    .flatpickr-months .flatpickr-month {
        color: #111111 !important;
        fill: #111111 !important;
    }
    .flatpickr-current-month .flatpickr-monthDropdown-months {
        font-weight: 800 !important;
        color: #111111 !important;
    }
    .flatpickr-current-month input.cur-year {
        font-weight: 800 !important;
        color: #111111 !important;
    }
    .flatpickr-current-month .numInputWrapper span.arrowUp:after {
        border-bottom-color: #0A6E6E !important;
    }
    .flatpickr-current-month .numInputWrapper span.arrowDown:after {
        border-top-color: #0A6E6E !important;
    }
    .flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
        color: #0A6E6E !important;
        fill: #0A6E6E !important;
    }
    .flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover {
        color: #1EBEA5 !important;
    }
    .flatpickr-weekday {
        color: #888888 !important;
        font-weight: 700 !important;
    }
    .flatpickr-day {
        color: #333333 !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        margin: 1px 0 !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 0.78rem !important;
    }
    .flatpickr-day.today {
        border-color: #FFAF36 !important;
        color: #B37D00 !important;
        background: #FFFBEB !important;
    }
    .flatpickr-day.today:hover {
        background: #FEF3C7 !important;
        color: #B37D00 !important;
    }
    .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
        background: linear-gradient(135deg, #0A6E6E 0%, #1EBEA5 100%) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(10, 110, 110, 0.25) !important;
    }
    .flatpickr-day.inRange {
        background: rgba(10, 110, 110, 0.08) !important;
        box-shadow: none !important;
        color: #0A6E6E !important;
    }
    .flatpickr-day.flatpickr-disabled,
    .flatpickr-day.flatpickr-disabled:hover,
    .flatpickr-day.prevMonthDay,
    .flatpickr-day.nextMonthDay {
        color: #cbd5e1 !important;
        background: transparent !important;
        cursor: not-allowed !important;
    }
    .flatpickr-day:hover {
        background: rgba(10, 110, 110, 0.1) !important;
        color: #0A6E6E !important;
    }

    /* Range Slider Styling */
    /* Enforce premium 'Inter' typography all over the stay selection / checkin widget */
    .custom-slider-container, 
    .custom-slider-container *:not(i):not([class*="fa-"]),
    .SearchBarMobile-text-545e,
    .SearchBarMobile-text-545e *:not(i):not([class*="fa-"]),
    .SearchBarMobile-centered-f825 span {
        font-family: 'Inter', sans-serif !important;
    }

    .range-slider-wrapper {
        position: relative;
        height: 45px;
        margin: 5px 10px 25px 10px;
        user-select: none;
    }
    .timeline-ticks-track {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 35px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .timeline-tick-line {
        width: 2px;
        height: 12px;
        background: #e5e7eb;
        border-radius: 1px;
        transition: background 0.2s, height 0.2s;
        position: relative;
    }
    .timeline-tick-line.active {
        background: #FFAF36;
    }
    .timeline-tick-label {
        position: absolute;
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.65rem;
        font-weight: 800;
        color: #888;
        white-space: nowrap;
    }
    .range-slider-wrapper input[type="range"] {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 35px;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        pointer-events: none;
        margin: 0;
        outline: none;
        z-index: 4;
    }
    .range-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
        background: transparent;
        border: none;
    }
    .range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 28px;
        height: 35px;
        background: transparent;
        cursor: pointer;
        pointer-events: auto;
    }
    .range-slider-wrapper input[type="range"]::-moz-range-track {
        background: transparent;
        border: none;
    }
    .range-slider-wrapper input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 35px;
        background: transparent;
        cursor: pointer;
        pointer-events: auto;
    }
    .timeline-active-highlight {
        position: absolute;
        bottom: 0;
        height: 35px;
        background: rgba(255, 175, 54, 0.12);
        pointer-events: none;
        z-index: 1;
        border-radius: 4px;
    }
    .visual-handle-premium {
        position: absolute;
        bottom: 0;
        width: 2px;
        height: 35px;
        background: #B37D00;
        transform: translateX(-50%);
        z-index: 6;
        pointer-events: none;
        display: flex;
        align-items: center;
    }
    .handle-label {
        position: absolute;
        top: -24px;
        transform: translateX(-50%);
        background: #B37D00;
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 700;
        white-space: nowrap;
        pointer-events: none;
        z-index: 8;
    }

    .mw-duration-badge {
        position: absolute;
        top: -14px;
        right: 10px;
        background: #0A6E6E;
        color: white;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 0.72rem;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(10, 110, 110, 0.3);
        z-index: 10;
    }

    .premium-input-box {
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 6px 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        transition: all 0.2s ease;
    }
    .premium-input-box:hover, .premium-input-box:focus-within {
        border-color: #0A6E6E;
        box-shadow: 0 0 0 3px rgba(10, 110, 110, 0.05);
    }
    .premium-input-box.co:hover, .premium-input-box.co:focus-within {
        border-color: #FFAF36;
        box-shadow: 0 0 0 3px rgba(255, 175, 54, 0.05);
    }
    .premium-input-box.co.glow-highlight {
        border-color: #FFAF36 !important;
        background: #FFFDF5 !important;
        box-shadow: 0 0 0 4px rgba(255, 175, 54, 0.2), 0 2px 10px rgba(255, 175, 54, 0.1) !important;
        animation: pulseGlow 1.5s infinite alternate;
    }
    @keyframes pulseGlow {
        0% { box-shadow: 0 0 0 2px rgba(255, 175, 54, 0.1); }
        100% { box-shadow: 0 0 0 6px rgba(255, 175, 54, 0.3); }
    }

/* Gallery */
    .gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: 380px; border-radius: 1rem; overflow: hidden; }
    .gallery-main { overflow: hidden; }
    .gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
    .gallery-main:hover img { transform: scale(1.03); }
    .gallery-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
    .gallery-side-img { overflow: hidden; }
    .gallery-side-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
    .gallery-side-img:hover img { transform: scale(1.05); }

    /* Layout */
    .hotel-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
    @media (max-width: 900px) { .hotel-layout { grid-template-columns: 1fr; } }

    /* Hotel Header */
    .hotel-header-card { background: white; border-radius: 1rem; border: 1px solid var(--border-color); padding: 1.5rem; margin-bottom: 1rem; }
    .hotel-score-badge { background: var(--success); color: white; font-size: 1.5rem; font-weight: 800; width: 56px; height: 56px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; }
    .htag { background: var(--bg-main); border: 1px solid var(--border-color); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 9999px; color: var(--text-dark); }

    /* Info cards */
    .info-card { background: white; border-radius: 1rem; border: 1px solid var(--border-color); padding: 1.5rem; margin-bottom: 1rem; }
    .info-title { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }

    /* Amenities */
    .amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .amenity-item { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; padding: 0.5rem; border-radius: 0.5rem; }
    .amenity-item.extra-charge { color: var(--text-muted); }
    .amenity-icon { color: var(--primary-color); width: 20px; text-align: center; font-size: 1rem; }

    /* Booking sidebar */
    .booking-col { position: relative; }
    .booking-sticky { position: sticky; top: 100px; }
    .booking-widget { background: white; border-radius: 1rem; border: 1px solid var(--border-color); padding: 1.25rem; }
    .booking-date-input { border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem 0.75rem; font-family: inherit; font-size: 0.9rem; outline: none; }
    .booking-date-input:focus { border-color: var(--primary-color); }

    /* Slot Pack Cards */
    .slot-pack-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0.75rem;
        padding: 0.875rem 1rem;
        margin-bottom: 0.5rem;
        border: 1.5px solid transparent;
        transition: all 0.2s;
    }
    .slot-pack-card:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .slot-morning { background: #FFF8E1; border-color: #FFE082; }
    .slot-day     { background: #E0F7FA; border-color: #80DEEA; }
    .slot-night   { background: #EDE7F6; border-color: #B39DDB; }
    .slot-unavailable {
        background: #fcfcfc !important;
        border-color: #e2e8f0 !important;
        opacity: 0.75 !important;
        pointer-events: none;
        position: relative;
    }
    .slot-unavailable::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.25);
        pointer-events: none;
    }

    .spc-left { display: flex; align-items: center; gap: 0.75rem; }
    .spc-emoji { font-size: 1.5rem; }
    .spc-label { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
    .spc-time  { font-size: 0.78rem; color: var(--text-muted); }
    .spc-duration { font-size: 0.72rem; color: var(--text-muted); }

    .spc-right { text-align: right; }
    .spc-avail { font-size: 0.72rem; color: var(--success); font-weight: 600; margin-bottom: 2px; }
    .spc-price { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
    .spc-soldout {
        font-weight: 800;
        color: #dc2626 !important;
        background: #fee2e2 !important;
        border: 1px solid #fecaca !important;
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
        text-align: center;
        box-shadow: 0 2px 4px rgba(220, 38, 38, 0.05);
    }
    .spc-btn {
        display: inline-block;
        white-space: nowrap;
        margin-top: 4px;
        background: var(--primary-gradient);
        color: #000;
        font-size: 0.78rem;
        font-weight: 700;
        padding: 0.3rem 0.9rem;
        border-radius: 9999px;
        text-decoration: none;
        transition: opacity 0.2s;
        white-space: nowrap;
    }
    .spc-btn:hover { opacity: 0.85; }

    .text-warning { color: #F5A623; }
    @media (max-width: 900px) { .gallery-grid { height: 250px; grid-template-columns: 1fr; } .gallery-side { display: none; } }
    .merged-input-group:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1); }
    
    @keyframes floatImmediately {
        0% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
        100% { transform: translateY(0); }
    }
    /* Check-in Immediately Button styled like search filters */
    .pill-check-immediate {
        background: transparent !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 9999px !important;
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        color: #4b5563 !important;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 38px;
        outline: none;
        box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        text-decoration: none !important;
        animation: floatImmediately 2.4s ease-in-out infinite;
    }
    .pill-check-immediate input { display: none; }
    .pill-check-immediate:hover {
        animation-play-state: paused;
        border-color: #cbd5e1 !important;
        background: #f9fafb !important;
        color: #4b5563 !important;
    }
    .pill-check-immediate:has(input:checked),
    .pill-check-immediate.active {
        background: #f3f4f6 !important;
        border-color: #d1d5db !important;
        color: #1f2937 !important;
        font-weight: 600 !important;
    }
    .pill-check-immediate:has(input:checked)::after,
    .pill-check-immediate.active::after {
        content: ' \2715';
        margin-left: 6px;
        font-size: 0.75rem;
        opacity: 0.6;
    }

/* Base Mistay Styling */
.SearchBarMobile-fieldDesktop-12fc { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 4px; padding: 12px 16px; background: #fff; cursor: pointer; min-height: 58px; transition: all 0.3s ease; }
.SearchBarMobile-content-2aa2 { flex: 1; }
.SearchBarMobile-spaceAroundRow-d5e0 { display: flex; align-items: center; justify-content: space-between; }
.SearchBarMobile-label-ff73 { font-size: 10px; color: #a0a0a0; text-transform: uppercase; margin-bottom: 2px; font-weight: 600; letter-spacing: 0.5px; }
.SearchBarMobile-text-545e { display: flex; align-items: baseline; gap: 4px; color: #0f172a; font-weight: 800; }
.SearchBarMobile-time-6f47 { font-weight: 800; font-size: 0.95rem; color: #0f172a; }
.SearchBarMobile-date-66f3 { font-size: 0.95rem; font-weight: 800; color: #0f172a; }
.SearchBarMobile-centered-f825 { padding: 0 16px; color: #94a3b8; font-weight: 800; font-size: 1.1rem; }
.SearchBarMobile-trailingIcon-3ad2 { margin-left: 16px; color: #a0a0a0; display: flex; align-items: center; justify-content: center; }

/* Popup Animation */
.SearchBarDesktop-popup-a860 { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-top: 4px; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); padding-top: 8px; }
.SearchBarDesktop-popup-a860.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.SearchBarDesktop-popupContent-b4c5 { padding: 0 0 16px 0; }

/* Tabs */
.SlotPicker-container-800f { width: 100%; }
.SlotPicker-tabRow-c254 { display: flex; border-bottom: 1px solid #e0e0e0; margin-bottom: 16px; }
.SlotPicker-tabColumn-8476 { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; font-weight: 600; color: #a0a0a0; cursor: pointer; text-transform: uppercase; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.SlotPicker-tabColumnActive-ad69 { color: #5B63FA; border-bottom-color: #5B63FA; }

/* Carousel */
.SlotPicker-daysContainer-a5a7 { display: flex; align-items: center; position: relative; padding: 0 40px; overflow: hidden; }
.SlotPicker-dayRow-3c4b { display: flex; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.SlotPicker-day-5b5d { flex: 0 0 140px; display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.SlotPicker-dayDivider-9d74 { width: 1px; background: #f0f0f0; margin: 0; flex-shrink: 0; }

.SlotPicker-dayHeader-29eb { text-align: center; margin-bottom: 16px; }
.SlotPicker-dayHeaderText-c27f { font-size: 16px; color: #333; font-weight: 400; }
.SlotPicker-dayHeaderDesc-a6fb { font-size: 10px; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }

/* Slots */
.Slots-slotRow-2b32 { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.Slots-slotContainer-014b { position: relative; width: 100%; height: 42px; perspective: 1000px; }

/* The smooth scale animation for slot toggling */
.Slots-slot-1e00 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid #e0e0e0; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden; }
.Slots-slotTextContainer-c65a { color: #333; font-size: 12px; pointer-events: none; }
.Slots-slotDate-ca4e { font-weight: 700; font-size: 15px; }

/* Selection States */
.Slots-slotSelected-452e { background: #5B63FA; border-color: #5B63FA; box-shadow: 0 2px 8px rgba(91,99,250,0.3); z-index: 2; transform: scale(1.05) !important; }
.Slots-slotSelected-452e .Slots-slotTextContainer-c65a { color: #fff; }

.Slots-middleSlot-986d { background: #E8E9FF; border-color: transparent; border-radius: 0; z-index: 1; transform: scale(1.05) !important; box-shadow: none; }
.Slots-middleSlot-986d .Slots-slotTextContainer-c65a { color: #5B63FA; }

.Slots-slotDisabled-2e39 { opacity: 0.3; pointer-events: none; background: #fafafa; }

/* Controls */
.SlotPicker-controlIcon-0de1 { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #F97316; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 6px rgba(249,115,22,0.3); transition: transform 0.2s ease; }
.SlotPicker-controlIcon-0de1:hover { transform: translateY(-50%) scale(1.1); }
.SlotPicker-controlIconLeft-2eaa { left: 6px; }
.SlotPicker-controlIconRight-81fd { right: 6px; }
.text-white { color: #fff; font-size: 14px; font-weight: bold; }

.gallery-item:hover img { transform: scale(1.05); }
    .gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0); }
    @media (max-width: 767px) {
        .mobile-booking-bar { display: flex !important; }
        .hotel-gallery-grid { height: 300px !important; }
    }