/* Tour picker sheet (assets/js/tour-picker.js). Shared by public booking and admin New Booking forms. Classes only: CSP blocks inline style="". */
/* ── Tour picker ───────────────────────────────────────────────────────────── */
.tp-wrap { position: relative; margin-top: 6px; }
.tp-native {
    position: absolute !important;
    width: 1px; height: 1px; min-height: 0 !important;
    opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0);
}
.tp-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title chev" "meta chev";
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 12px 14px;
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}
.tp-trigger:hover { border-color: var(--teal-text); }
.tp-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tp-trigger-title { grid-area: title; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.tp-trigger-meta { grid-area: meta; font-size: .84rem; font-weight: 500; color: #52636a; }
.tp-trigger-meta:empty { display: none; }
.tp-trigger-chev { grid-area: chev; font-size: 1.4rem; line-height: 1; color: var(--teal-text); }

.tp-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.tp-sheet[hidden] { display: none; }
.tp-backdrop { position: absolute; inset: 0; background: rgba(15, 63, 75, .55); }
.tp-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    max-height: 88dvh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
.tp-head,
.tp-search,
.tp-chips { flex: 0 0 auto; }
.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.tp-head h2 { margin: 0; font-size: 1.2rem; }
.tp-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.tp-search { padding: 8px 18px 4px; }
.tp-search-input { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--line); border-radius: 12px; }
.tp-chips { display: flex; gap: 8px; padding: 8px 18px 10px; overflow-x: auto; scrollbar-width: none; }
.tp-chips::-webkit-scrollbar { display: none; }
.tp-chip { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tp-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 12px 18px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tp-group { margin: 14px 6px 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text, #8a6d1f); }
.tp-item {
    position: relative;
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 0 0 6px;
    padding: 12px 44px 12px 14px;
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}
.tp-item:hover { border-color: var(--teal-text); background: #f0fafb; }
.tp-item.is-selected { border-color: var(--teal-text); background: #e8f6f8; }
.tp-item-title { display: block; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.tp-item-meta { display: block; margin-top: 2px; font-size: .84rem; color: #52636a; }
.tp-item-check { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--teal-text); font-weight: 800; }
.tp-empty { margin: 24px 8px; text-align: center; color: #52636a; }
html.tp-lock, html.tp-lock body { overflow: hidden; }
@media (min-width: 821px) {
    .tp-sheet { align-items: center; }
    .tp-panel { border-radius: 20px; max-height: 80vh; }
}

