/* Off the Clock Plays — builds on stays.css (same tokens, cards, panel and date picker).
   Line-of-business colors from Brand Guidelines v1: Golf = marigold, water = lake, events = rose.
   Marigold and rose are fills only, always with dusk text. */

.otc-plays { --marigold: #FFB938; --rose: #E8918A; }

/* Search band: When + What + button */
.otc-search--plays { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
@media (max-width: 900px) { .otc-search--plays { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .otc-search--plays { grid-template-columns: minmax(0, 1fr); } }

/* Stay already in the cart */
.otc-staynote { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--shell); border-left: 4px solid var(--lake); color: var(--ink); font-size: 15px; line-height: 22px; }
.otc-staynote b { color: var(--dusk); }
.otc-staynote--inline { margin: 0; }

/* Badges */
.otc-badge--golf { background: var(--marigold); color: var(--dusk); }
.otc-badge--water { background: var(--lake); color: var(--cream); }
.otc-badge--events { background: var(--rose); color: var(--dusk); }
.otc-badge--other { background: var(--cream); color: var(--dusk); box-shadow: inset 0 0 0 1.5px var(--dusk); }
.otc-badge--soon { background: var(--cream); color: var(--dusk); box-shadow: inset 0 0 0 1.5px var(--dusk); }
.otc-badge--quote { background: var(--dusk); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }

/* Photo placeholder until real photos are added: the mark on dusk with the line's color as a band */
.otc-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--dusk); }
.otc-ph img { width: 72px; height: 72px; }
.otc-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: var(--marigold); }
.otc-ph--water::after { background: var(--lake); }
.otc-ph--events::after { background: var(--rose); }
.otc-ph--other::after { background: var(--tangerine); }
.otc-drawer .otc-ph img { width: 96px; height: 96px; }

/* Cards */
.otc-card--play .otc-card__where { color: var(--ink); }
a.otc-card__link { text-decoration: none; }
a.otc-card__link:hover { text-decoration: underline; }
.otc-card--play.is-soon .otc-media { filter: saturate(0.65); }
.otc-avail { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.otc-avail.is-open { color: var(--lake); }
.otc-avail.is-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lake); }
.otc-card--play .otc-card__foot { margin-top: auto; padding-top: 8px; }
.otc-card--play { height: 100%; }
.otc-card--play .otc-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }

/* Bottom band linking to Stays */
.otc-crosslink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 48px 0 56px; padding: 28px; border-radius: calc(var(--radius) + 8px); background: var(--dusk); color: var(--cream); }
.otc-crosslink h2 { margin: 0 0 4px; font: 700 26px/32px var(--font-display); color: var(--cream); }
.otc-crosslink p { margin: 0; max-width: 60ch; color: var(--cream); opacity: 0.9; }
.otc-crosslink .otc-btn { flex: none; }
@media (max-width: 520px) { .otc-crosslink { padding: 20px; margin-top: 32px; } .otc-crosslink .otc-btn { width: 100%; } }

/* Panel */
.otc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.otc-facts li { display: flex; gap: 10px; align-items: flex-start; }
.otc-facts svg { flex: none; margin-top: 4px; color: var(--lake); }

.otc-lengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.otc-length { position: relative; display: grid; gap: 2px; justify-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--dusk); text-align: left; min-height: 72px; }
.otc-length b { font: 700 16px/22px var(--font-sans); }
.otc-length span { font: 800 20px/24px var(--font-display); font-variant-numeric: tabular-nums; }
.otc-length em { font-style: normal; padding: 1px 8px; border-radius: var(--pill); background: var(--marigold); color: var(--dusk); font: 700 12px/18px var(--font-sans); }
.otc-length small { font-size: 13px; color: var(--ink-muted); }
.otc-length:hover:not(:disabled) { border-color: var(--dusk); }
.otc-length[aria-checked="true"] { border-color: var(--dusk); background: var(--dusk); color: var(--cream); }
.otc-length[aria-checked="true"] span, .otc-length[aria-checked="true"] b { color: var(--cream); }
.otc-length:disabled { opacity: 0.5; cursor: not-allowed; }
.otc-length:disabled span, .otc-length:disabled b { text-decoration: line-through; }

.otc-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.otc-time { display: grid; gap: 2px; justify-items: start; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--dusk); font: 600 15px/20px var(--font-sans); text-align: left; font-variant-numeric: tabular-nums; }
.otc-time small { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.otc-time:hover:not(:disabled) { border-color: var(--dusk); }
.otc-time[aria-checked="true"] { border-color: var(--dusk); background: var(--dusk); color: var(--cream); }
.otc-time:disabled { opacity: 0.5; cursor: not-allowed; }

/* Coming-soon panel: the side column has less to show, so center it on wide screens */
.otc-drawer--play .otc-col--side .otc-btn { width: auto; }

/* Group size, recommended length and the start-time price note (v0.5.2) */
.otc-people { max-width: 220px; }
.otc-rec { font-style: normal; padding: 1px 8px; border-radius: var(--pill); background: var(--lake); color: var(--cream); font: 700 12px/18px var(--font-sans); }
.otc-length[aria-checked="true"] .otc-rec { box-shadow: inset 0 0 0 1.5px var(--cream); }
.otc-time small { display: block; }
.otc-time[aria-checked="true"] small { color: var(--cream); opacity: 0.85; }
.otc-nudge { margin: 12px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--shell); border-left: 4px solid var(--tangerine); }
.otc-nudge p { margin: 0 0 10px; }
.otc-nudge .otc-btn { width: auto; }

/* Few rentals: no "What" filter, so the band is just When + button (v0.5.4) */
.otc-search--nowhat { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 520px) { .otc-search--nowhat { grid-template-columns: minmax(0, 1fr); } }
.otc-search .otc-field[hidden] { display: none; }

/* Large groups tile: two buttons instead of a price (v0.6.1) */
.otc-card__foot--quote { display: block; }
.otc-card__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.otc-card__btns .otc-btn { flex: 1 1 auto; justify-content: center; }
.otc-ph img { width: 96px; height: 96px; }

/* v0.9.0: simulator line-up */
.otc-facts li.is-warn { padding: 8px 10px; border-radius: var(--radius); background: var(--shell); font-weight: 600; }
.otc-facts li.is-warn svg { color: var(--tangerine); margin-top: 3px; }
.otc-recline { display: inline-block; margin: 4px 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--marigold); color: var(--dusk); font: 700 14px/20px var(--font-sans); }
.otc-promo { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; color: var(--dusk); font: 600 14px/20px var(--font-sans); }
.otc-promo svg { flex: none; margin-top: 2px; color: var(--tangerine); }
.otc-zipform { display: flex; gap: 8px; margin: 0 0 10px; }
.otc-zipform .otc-input { max-width: 160px; font-variant-numeric: tabular-nums; }
.otc-zipform .otc-btn { flex: none; }
.otc-zipres.otc-success { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; margin: 0; }
.otc-zipres.otc-success svg { flex: none; margin-top: 3px; }
.otc-zipres.otc-alert p { margin: 0 0 10px; }
.otc-zipres.otc-alert .otc-btn { width: 100%; }

/* v0.9.3: delivery heads-up (e.g. states we're not serving yet) */
.otc-notice { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--shell); font-weight: 600; }
.otc-notice svg { flex: none; color: var(--tangerine); margin-top: 3px; }

/* v0.9.4: browse-only call to action */
.otc-browse-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* v0.9.5: price list in the browse-only popup */
.otc-pricelist { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.otc-pricelist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius); background: var(--shell); font-variant-numeric: tabular-nums; }
.otc-small { font-size: 14px; margin-top: 6px; }

/* v0.9.6: small note under a price line ("2-hour minimum ($120)") */
.otc-price__note { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted, #5E5366); }

/* v0.10.2: the mark's dusk ring vanished on the dusk band, so marks looked off center. A cream outline shows the
   full circle, and the mark is centered over the dusk area above the colored stripe (stripe = bottom 18%). */
.otc-ph { grid-template-rows: 82% 18%; }
.otc-ph img { grid-row: 1; align-self: center; justify-self: center; border-radius: 50%; box-shadow: 0 0 0 3px var(--cream, #FFF7EE); }
