/* Booking pickers – guest grid, calendar and time slots (public/assets/js/booking-pickers.js) */

/* Native field stays in the DOM for the page scripts, but is hidden visually. */
.bp-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Visible read-only field: inherits each form's input styling from its wrapper. */
.bp-display {
    cursor: pointer;
    caret-color: transparent;
    text-overflow: ellipsis;
}

.bp-display:disabled {
    cursor: not-allowed;
}

/* Chevron for the guest field, unless Bootstrap's .form-select already draws one. */
.bp-display--guests:not(.form-select) {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Popover */
.bp-pop {
    --bp-bg: #0f0f0f;
    --bp-cell: #1c1c1c;
    --bp-cell-hover: #2a2a2a;
    --bp-gold: #e5b94e;
    --bp-gold-line: rgba(229, 185, 78, 0.45);
    --bp-ink: #141414;
    --bp-text: #ffffff;
    --bp-muted: #9a9a9a;
    position: fixed;
    z-index: 2000;
    box-sizing: border-box;
    padding: 14px;
    background: var(--bp-bg);
    border: 1px solid var(--bp-gold-line);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    color: var(--bp-text);
    font-family: 'Lato', sans-serif;
    text-align: left;
}

.bp-pop *,
.bp-pop *::before,
.bp-pop *::after {
    box-sizing: border-box;
}

.bp-title {
    margin: 0 0 10px 2px;
    color: var(--bp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-grid {
    display: grid;
    gap: 6px;
}

.bp-scroll {
    max-height: 296px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #8a6d2c transparent;
}

.bp-scroll::-webkit-scrollbar {
    width: 6px;
}

.bp-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.bp-scroll::-webkit-scrollbar-thumb {
    background: #8a6d2c;
    border-radius: 6px;
}

.bp-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bp-cell);
    color: var(--bp-text);
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.bp-cell:hover:not([disabled]) {
    background: var(--bp-cell-hover);
}

.bp-cell:focus-visible {
    outline: 2px solid var(--bp-gold);
    outline-offset: 1px;
}

.bp-cell.is-today {
    border-color: var(--bp-gold-line);
}

.bp-cell.is-selected,
.bp-cell.is-selected:hover {
    background: var(--bp-gold);
    color: var(--bp-ink);
    font-weight: 700;
}

.bp-cell[disabled] {
    opacity: 0.28;
    cursor: not-allowed;
}

/* Time: hour and minute columns */
.bp-time {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bp-time-col {
    --bp-cell: transparent;
    gap: 4px;
    max-height: 292px; /* cuts through the sixth row, hinting that the list scrolls */
}

.bp-time-col .bp-cell {
    height: 48px;
    border-radius: 10px;
}

.bp-time-col .bp-cell.is-selected {
    font-size: 18px;
}

/* Calendar */
.bp-month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bp-month-label {
    font-size: 15px;
    font-weight: 700;
}

.bp-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 8px;
    background: var(--bp-cell);
    color: var(--bp-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bp-nav:hover:not([disabled]) {
    background: var(--bp-cell-hover);
}

.bp-nav:focus-visible {
    outline: 2px solid var(--bp-gold);
    outline-offset: 1px;
}

.bp-nav[disabled] {
    opacity: 0.28;
    cursor: not-allowed;
}

.bp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
    color: var(--bp-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.bp-days .bp-cell {
    height: 38px;
    font-size: 14px;
}

.bp-note {
    margin: 10px 2px 0;
    color: var(--bp-muted);
    font-size: 12px;
    line-height: 1.4;
}

#quickbookingForm input.form-select.bp-display.bp-display--guests {
    padding: 16px 10px;
    width: 100%;
    background-color: #2E2E2E;
    border: none;
    border-radius: 0;
    color: white;
    color-scheme: light;
    -webkit-appearance: none;
    height: 55px !important;
    padding-left: 50px !important;
}

@media (max-width: 575px) {
    .bp-cell {
        height: 42px;
        font-size: 16px;
    }

    .bp-days .bp-cell {
        height: 36px;
    }
}
