/*
 * Booking box, price calendar, map (PF-022, PF-040). Theme presets for colours (white label), logical properties.
 */

.sh-box { display: grid; gap: .85rem; }
.sh-box .sh-booking__title { margin: 0; }
.sh-box__form { display: grid; gap: .85rem; margin: 0; }
.sh-box__fields { display: grid; gap: .75rem; }
.sh-box__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.sh-box .sh-pax__panel { inset-inline: 0 auto; inline-size: 100%; min-inline-size: 18rem; }
.sh-box__options { display: grid; gap: .75rem; }
.sh-box__options:empty { display: none; }
.sh-box__hint, .sh-box__prompt { margin: 0; color: var(--wp--preset--color--muted, #5e6b73); font-size: .8125rem; }
.sh-box__add:disabled { opacity: .55; cursor: not-allowed; }

/* calendar toggle and month view */
.sh-box__cal-toggle { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; min-block-size: 40px; padding: .3rem 0; border: 0; background: none; color: var(--wp--preset--color--accent, #b5462f); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sh-box__cal-toggle .sh-icon { inline-size: 18px; block-size: 18px; }
.sh-cal { padding: .75rem; border: 1px solid var(--sh-line, #e3dcd2); border-radius: var(--sh-radius-m, 12px); background: #fff; }
.sh-cal[hidden] { display: none; }
.sh-cal__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .5rem; }
.sh-cal__title { margin: 0; font-weight: 700; text-transform: capitalize; color: var(--wp--preset--color--primary, #0f2a3d); }
.sh-cal__nav { inline-size: 40px; block-size: 40px; border: 1px solid #c9bfb3; border-radius: 50%; background: #fff; font-size: 1.25rem; cursor: pointer; }
.sh-cal__nav:disabled { opacity: .35; cursor: not-allowed; }
.sh-cal__grid { inline-size: 100%; border-collapse: collapse; table-layout: fixed; }
.sh-cal__grid th { padding-block: .25rem; font-size: .75rem; font-weight: 600; color: var(--wp--preset--color--muted, #5e6b73); text-align: center; }
.sh-cal__grid td { padding: 1px; }
.sh-cal__day { display: grid; place-items: center; inline-size: 100%; min-block-size: 44px; padding: .15rem 0; border: 1px solid transparent; border-radius: 6px; background: #f6faf7; font: inherit; line-height: 1.1; cursor: pointer; }
button.sh-cal__day:hover, button.sh-cal__day:focus-visible { border-color: var(--wp--preset--color--accent, #b5462f); }
.sh-cal__num { font-weight: 700; font-size: .875rem; }
.sh-cal__price { font-size: .625rem; color: #1e7b4f; font-weight: 600; }
.sh-cal__day.is-off { background: #f1eeea; color: #a49b90; cursor: not-allowed; text-decoration: line-through; }
.sh-cal__legend { margin: .5rem 0 0; font-size: .75rem; color: var(--wp--preset--color--muted, #5e6b73); }

/* choices (departures, sessions) */
.sh-choices { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.sh-choices__list { display: grid; gap: .35rem; max-block-size: 16rem; overflow-y: auto; }
.sh-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-block-size: 44px; padding: .45rem .65rem; border: 1px solid #c9bfb3; border-radius: var(--sh-radius-s, 6px); background: #fff; cursor: pointer; font-size: .9375rem; }
.sh-choice:has(input:checked) { border-color: var(--wp--preset--color--accent, #b5462f); box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent, #b5462f); background: #fff7f4; }
.sh-choice input { inline-size: 18px; block-size: 18px; accent-color: var(--wp--preset--color--accent, #b5462f); }
.sh-choice__main { font-weight: 600; }
.sh-choice__side { display: grid; justify-items: end; font-size: .8125rem; color: var(--wp--preset--color--muted, #5e6b73); text-align: end; }
.sh-choice.is-full { border-style: dashed; background: #f6f3ef; color: #8a8178; cursor: not-allowed; }
.sh-choice.is-full .sh-choice__side { color: var(--wp--preset--color--error, #b42318); font-weight: 700; }
.sh-scarcity--inline { color: #8a3a00; font-weight: 700; }

/* price panel */
.sh-box__price { position: relative; min-block-size: 3rem; transition: opacity 150ms ease; }
.sh-box__price.is-loading { opacity: .45; }
.sh-box__price.is-loading::after { content: ""; position: absolute; inset-block-start: .5rem; inset-inline-end: .25rem; inline-size: 1.1rem; block-size: 1.1rem; border: 2px solid var(--wp--preset--color--accent, #b5462f); border-inline-end-color: transparent; border-radius: 50%; animation: sh-spin .7s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sh-box__price.is-loading::after { animation: none; } }
.sh-quote { display: grid; gap: .5rem; }
.sh-quote__lines { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.sh-quote__line { display: flex; justify-content: space-between; gap: .75rem; font-size: .875rem; }
.sh-quote__line > span { display: grid; }
.sh-quote__label { font-weight: 600; }
.sh-quote__line small { color: var(--wp--preset--color--muted, #5e6b73); }
.sh-quote__line strong { white-space: nowrap; }
.sh-quote__total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding-block-start: .5rem; border-block-start: 1px solid var(--sh-line, #e3dcd2); font-weight: 700; }
.sh-quote__total .sh-price__amount { font-size: 1.75rem; }
.sh-quote__for, .sh-quote__hold { margin: 0; color: var(--wp--preset--color--muted, #5e6b73); font-size: .8125rem; }
.sh-quote__for { text-align: end; }
.sh-plans { display: grid; gap: .3rem; padding: .65rem .75rem; border-radius: var(--sh-radius-s, 6px); background: var(--wp--preset--color--sand, #f4ede4); font-size: .8125rem; }
.sh-plans__title { margin: 0; font-weight: 700; color: var(--wp--preset--color--primary, #0f2a3d); }
.sh-plan { margin: 0; }
.sh-plan.is-off { color: var(--wp--preset--color--muted, #5e6b73); }
.sh-alert--info { background: #eef4f8; border-color: var(--wp--preset--color--primary, #0f2a3d); color: var(--wp--preset--color--primary, #0f2a3d); }
.sh-quote__error { font-size: .875rem; }

/* added to cart */
.sh-added { display: grid; gap: .5rem; padding: .85rem 1rem; border: 1px solid #b7dfc6; border-radius: var(--sh-radius-m, 12px); background: #eef8f1; }
.sh-added[hidden] { display: none; }
.sh-added__title { display: flex; align-items: center; gap: .4rem; margin: 0; font-weight: 700; color: #145a35; }
.sh-added__title .sh-icon { inline-size: 20px; block-size: 20px; }
.sh-added__lines { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.sh-added__lines li { display: flex; justify-content: space-between; gap: .5rem; }
.sh-added__total { margin: 0; font-size: .8125rem; color: var(--wp--preset--color--muted, #5e6b73); }
.sh-added__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* mobile bottom bar: live total */
.sh-booking-bar__price .sh-price { margin: 0; }

/* map */
.sh-map-section { display: grid; gap: .6rem; }
.sh-map__place { display: flex; align-items: center; gap: .35rem; margin: 0; color: var(--wp--preset--color--muted, #5e6b73); }
.sh-map { display: grid; place-items: center; gap: .5rem; min-block-size: 10rem; padding: 1rem; border-radius: var(--sh-radius-m, 12px); background: var(--sh-motif, none) var(--wp--preset--color--sand, #f4ede4); text-align: center; }
.sh-map__note { margin: 0; font-size: .8125rem; color: var(--wp--preset--color--muted, #5e6b73); }
.sh-map__canvas { inline-size: 100%; block-size: 22rem; border-radius: var(--sh-radius-m, 12px); }
.sh-map:has(.sh-map__canvas) { padding: 0; }
.sh-choice__main small { display: block; font-weight: 400; color: var(--wp--preset--color--muted, #5e6b73); font-size: .8125rem; }
.sh-box .sh-check { font-size: .9375rem; align-items: flex-start; }
.sh-box .sh-check input { margin-block-start: .2rem; }
.sh-choices__list { position: relative; }
.sh-booking-bar { transition: transform 200ms ease; }
.sh-booking-bar.is-hidden { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .sh-booking-bar { transition: none; } }
.sh-choice { padding-block: .65rem; line-height: 1.3; }
.sh-choice__main small { line-height: 1.3; margin-block-start: .1rem; }
/* Choice cards (room / board / departure): rows keep the height of their two lines instead of being squeezed by the scrolling list. */
.sh-choices__list { grid-auto-rows: max-content; align-content: start; }
.sh-choice { min-block-size: 44px; block-size: auto; overflow: visible; }
.sh-choice__main, .sh-choice__main small { line-height: 1.35; }
