/* 24-hour visual time picker (pairs with hotel-jalali-datepicker triggers) */
.hotel-time-picker {
    position: relative;
    width: 100%;
    overflow: visible;
}

@media (max-width: 575.98px) {
    .hotel-time-picker-backdrop {
        position: fixed;
        inset: 0;
        z-index: 4999;
        background: rgba(15, 23, 42, 0.45);
    }

    .hotel-jdp-panel.hotel-jdp-panel--sheet {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        border-radius: 1.15rem 1.15rem 0.75rem 0.75rem;
        max-height: min(52vh, 380px);
        overflow: hidden;
        box-shadow: 0 -12px 40px rgba(0, 50, 30, 0.18);
    }

    .hotel-jdp-panel.hotel-jdp-panel--sheet .hotel-time-slot-grid {
        max-height: min(44vh, 300px);
    }
}

.hotel-time-picker .hotel-jdp-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
    text-align: left;
    padding-left: 0.875rem;
    padding-right: 2.5rem;
    min-height: 41px;
    border-radius: 0.375rem;
}

.hotel-time-picker .hotel-jdp-trigger::before {
    content: '\F214';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 0.875rem;
    color: var(--hotel-primary, #008a4b);
    font-size: 1.05rem;
    line-height: 1;
}

.hotel-time-picker .hotel-jdp-panel {
    padding: 0.75rem;
}

.hotel-time-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 2px;
}

@media (max-width: 575.98px) {
    .hotel-time-slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hotel-time-slot {
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    direction: ltr;
    border: 1.5px solid var(--gray-100, #e9ecef);
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.45rem 0.25rem;
    cursor: pointer;
    transition: var(--hotel-transition, 0.2s ease);
    color: var(--gray-800, #343a40);
}

.hotel-time-slot:hover:not(.is-disabled) {
    border-color: var(--hotel-primary, #008a4b);
    background: var(--hotel-primary-light, #e8f5ee);
}

.hotel-time-slot.is-selected {
    border-color: var(--hotel-primary, #008a4b);
    background: var(--hotel-primary, #008a4b);
    color: #fff;
}

.hotel-time-slot.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
