#toast-container {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 999999 !important;
}

#toast-container .toast {
    width: 320px !important;
    min-height: 56px !important;
    padding: 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#toast-container .toast-success {
    background: #16a34a !important;
}

#toast-container .toast-error {
    background: #dc2626 !important;
}

#toast-container .toast-message {
    color: #fff !important;
    visibility: visible !important;
}

.room-card {
    height: auto;
    min-height: auto;
}

.room-image-slider {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background: #f3f4f6;
}

.room-slide-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.room-slide-prev,
.room-slide-next {
    position: absolute;
    top: 50%;
    z-index: 30;
    transform: translateY(-50%);
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.room-slide-prev {
    left: 16px;
}

.room-slide-next {
    right: 16px;
}

.room-slide-prev:focus,
.room-slide-next:focus,
.room-slide-prev:active,
.room-slide-next:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.room-slide-dot {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.room-slide-dot:focus,
.room-slide-dot:active {
    outline: none !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .room-card {
        height: 360px;
    }

    .room-image-slider {
        height: 100%;
        min-height: 100%;
    }
}


@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        position: static;
        touch-action: auto;
    }
}

@media screen and (max-width: 768px) {
    .flatpickr-calendar.open {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: 96vw !important;
    }
}

#roomSlider {
    height: 80vh !important;
    min-height: 80vh !important;
    max-height: 80vh !important;
}

#roomRightPanel {
    height: 80vh !important;
    min-height: 80vh !important;
    max-height: 80vh !important;
}

#roomThumbs {
    flex: 0 0 auto !important;
}

.room-thumb {
    height: 80px !important;
}

#termsModal {
    max-height: none !important;
}

#termsModal .terms-modal-panel {
    max-height: 70vh !important;
    height: 70vh !important;
    overflow: hidden !important;
}

#termsModal .terms-scroll-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

#termsModal .terms-content-box {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

@media screen and (max-width: 640px) {
    #roomSlider {
        height: 80vh !important;
        min-height: 80vh !important;
        max-height: 80vh !important;
    }

    #roomRightPanel {
        height: 80vh !important;
        min-height: 80vh !important;
        max-height: 80vh !important;
    }

    .room-thumb {
        height: 64px !important;
    }

    #termsModal .terms-modal-panel {
        max-height: 70vh !important;
        height: 70vh !important;
        padding: 20px !important;
    }

    #termsModal .terms-content-box {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
}

 .flatpickr-day.saturday-day {
    color: #2563eb !important;
}

.flatpickr-day.sunday-day,
.flatpickr-day.holiday-day {
    color: #dc2626 !important;
    font-weight: 700;
}
#reserveConfirmModal .reserve-confirm-panel {
    max-height: 70vh;
    overflow-y: auto;
}







.room-list-card {
    height: auto !important;
    min-height: auto !important;
}

.room-list-card-inner {
    min-height: 360px;
}

.room-list-image-area {
    display: flex;
    align-items: stretch;
}

.room-list-card .room-list-image-slider {
    height: 100% !important;
    min-height: 260px !important;
    max-height: none !important;
}

.room-list-content-area {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.room-list-info-box {
    max-height: 320px;
}

.room-list-amenity-box {
    margin-top: auto;
    padding-top: 16px;
}

@media (min-width: 768px) {
    .room-list-card-inner {
        min-height: 360px;
        max-height: 460px;
    }

    .room-list-content-area {
        max-height: 460px;
        display: flex;
        flex-direction: column;
    }

    .room-list-info-box {
        max-height: 300px;
        overflow-y: auto;
    }

    .room-list-amenity-box {
        margin-top: auto;
    }

    .room-list-card .room-list-image-slider {
        height: 100% !important;
        min-height: 360px !important;
    }
}

@media (max-width: 768px) {
    .room-list-card-inner {
        min-height: 0;
        max-height: none;
    }

    .room-list-image-area {
        display: block;
    }

    .room-list-card .room-list-image-slider {
        height: 220px !important;
        min-height: 220px !important;
        max-height: none !important;
    }

    .room-list-content-area {
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    .room-list-info-box {
        max-height: none;
        overflow: visible;
    }

    .room-list-amenity-box {
        margin-top: auto;
        padding-top: 20px;
    }
}




.reserve-calendar-day {
    min-height: 150px;
    position: relative;
}

.reserve-room-row {
    height: 22px;
    margin-bottom: 4px;
    overflow: visible;
}

.reserve-room-bar {
    position: relative;
    z-index: 1;
    height: 20px;
    min-width: 0;
    padding: 0 6px;
    border: 1px solid transparent;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.reserve-room-bar.is-available {
    border-radius: 9999px;
}

.reserve-room-bar.is-available.is-connected-prev {
    margin-left: -9px;
    padding-left: 15px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.reserve-room-bar.is-available.is-connected-next {
    margin-right: -9px;
    padding-right: 15px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.reserve-room-bar.is-available.is-start {
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
}

.reserve-room-bar.is-available.is-end {
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
}

.reserve-room-bar.is-unavailable {
    border-radius: 9999px;
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: default;
}

.reserve-room-bar.is-bar-hovered {
    z-index: 5;
    filter: brightness(0.96);
}

.reserve-period-layer {
    position: absolute;
    left: 160px;
    right: 0;
    top: 8px;
    height: 30px;
    pointer-events: none;
}

.reserve-period-block {
    position: absolute;
    top: 0;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.reserve-period-block:hover {
    z-index: 50;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .2);
    filter: brightness(.98);
}

.reserve-period-block.is-unavailable {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .room-image-slider {
        height: 220px;
    }

    .reserve-calendar-day {
        min-height: 130px;
    }

    .reserve-room-bar {
        font-size: 10px;
        padding: 0 4px;
    }

    .reserve-timeline-head,
    .reserve-timeline-row {
        grid-template-columns: 120px repeat(var(--days-count), minmax(32px, 1fr));
    }

    .reserve-period-layer {
        left: 120px;
    }

    .reserve-timeline-room {
        font-size: 11px;
    }

    .reserve-period-block {
        font-size: 10px;
        padding: 0 7px;
    }
}

