/* Booking a price: the choices on the service page's price cards (slideshow.html) and on the
   buy-now page (static/JS/booking.js) */

.booking:empty {
    display: none;
}

.booking,
#bookingCard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

#bookingCard[hidden] {
    display: none;
}

.bk-choice {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bk-choice > legend,
.bk-title {
    float: none;
    width: auto;
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
}

.bk-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bk-pill {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.bk-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bk-pill span {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 96px;
    padding: 7px 12px;
    text-align: left;
    color: var(--navy-900);
    background-color: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.bk-pill:hover span {
    border-color: var(--river-600);
}

/* the names take the colour of their pill or row */
.bk-pill strong,
.productType .bk-pill strong,
.productType .bk-age-name strong {
    font-size: 14px;
    color: inherit !important;
}

.bk-pill small {
    font-size: 12px;
    opacity: .85;
}

.bk-pill input:checked + span {
    color: #fff;
    background-color: var(--river-600);
    border-color: var(--river-600);
}

.bk-pill input:focus-visible + span {
    outline: 3px solid var(--navy-900);
    outline-offset: 2px;
}

.bk-choice.invalid .bk-pill span {
    border-color: var(--ochre-600, #a9733a);
}

/* who is coming: a - / + counter per age group */
.bk-age-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

.bk-age-row + .bk-age-row {
    border-top: 1px solid var(--cream-200);
}

.bk-age-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--navy-900);
}

.bk-age-name small {
    font-size: 12px;
    color: var(--ink-600);
}

.bk-stepper {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.bk-stepper button {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--river-600);
    background-color: var(--cream-50);
    border: 1px solid var(--river-600);
    border-radius: 50%;
    cursor: pointer;
}

.bk-stepper button:hover:not(:disabled) {
    background-color: var(--river-100);
}

.bk-stepper button:focus-visible {
    outline: 3px solid var(--navy-900);
    outline-offset: 2px;
}

.bk-stepper button:disabled {
    color: var(--ink-400);
    border-color: var(--cream-200);
    cursor: not-allowed;
}

.bk-stepper output {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    color: var(--navy-900);
}

.bk-age-total {
    margin: 4px 0 0 0;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    color: var(--navy-900);
}

.bk-ages[hidden] {
    display: none;
}

/* ---- Sections that open and close: who is coming, vehicle, guide (booking.js makeFoldable). The heading is
   a button; closed, it shows the choice in short. The panel's only grid row goes from 0fr to 1fr, which
   animates its height smoothly, with a fade ---- */
.bk-choice.bk-fold > legend {
    width: 100%;
    margin: 0;
}

.bk-fold__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 6px 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
}

.bk-fold__toggle:hover,
.bk-fold__toggle:focus {
    color: inherit;
    background: none;
}

.bk-fold__toggle:focus-visible {
    outline: 2px solid var(--navy-900);
    outline-offset: 3px;
}

.bk-fold__title {
    flex: none;
}

.bk-fold__summary {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font: 600 13px/1.3 var(--font-body, sans-serif);
    letter-spacing: normal;
    text-transform: none;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--navy-900);
    transition: opacity .25s ease;
}

/* nothing chosen yet (e.g. no vehicle) */
.bk-fold__summary.is-empty {
    font-weight: 500;
    color: var(--ochre-600);
}

/* open: the section shows it all */
.bk-fold.is-open .bk-fold__summary {
    opacity: 0;
}

.bk-fold__chevron {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--navy-900);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), stroke .2s;
}

.bk-fold__toggle:hover .bk-fold__chevron {
    stroke: var(--ochre-500);
}

.bk-fold.is-open .bk-fold__chevron {
    transform: rotate(180deg);
}

.bk-fold__panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .4s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}

.bk-fold.is-open .bk-fold__panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.bk-fold__inner {
    min-height: 0;
    overflow: hidden;
}

/* room inside the clipped area for the chosen pill's shadow and the focus rings; the space under the
   heading folds away with the content */
.bk-fold__body {
    margin: 0 -6px;
    padding: 10px 6px 8px 6px;
}

/* a vehicle is missing (buy-now) */
.bk-fold.invalid .bk-fold__summary {
    color: var(--ochre-600, #a9733a);
}

@media (prefers-reduced-motion: reduce) {
    .bk-fold__panel,
    .bk-fold__chevron,
    .bk-fold__summary {
        transition: none;
    }
}

/* the card's people dropdown is replaced by the counters (it still keeps the total) */
.bk-counted > p,
.bk-counted > select.quantity {
    display: none;
}

.bk-message {
    margin: 0;
    color: var(--ochre-600, #a9733a);
    font-size: 14px;
}

.bk-message:empty {
    display: none;
}

.bk-message.is-success {
    color: var(--river-600);
}

.bk-hint {
    margin: 0;
    font-size: 14px;
    color: var(--ink-600);
}

/* the price of the booking on the buy-now page */
#booking-summary .bk-pending {
    font-size: 14px;
    color: var(--ink-600);
}

#booking-summary .bk-error {
    color: var(--ochre-600, #a9733a);
}

#booking-summary .bk-total {
    background-color: var(--cream-50);
}

/* notes and terms (buy-now page) */
.bk-notes textarea {
    min-height: 90px;
}

/* the notes field at the end of the price card (booking.js notesField), like the date field */
.bk-notes-input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 84px;
    padding: 10px 14px;
    font: 400 15px/1.45 var(--font-body, sans-serif);
    color: var(--navy-900);
    background-color: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}

.bk-notes-input::placeholder {
    color: #8a8f98;
}

.bk-notes-input:hover {
    border-color: var(--river-400);
}

.bk-notes-input:focus-visible {
    outline: none;
    border-color: var(--navy-900);
    box-shadow: 0 0 0 3px rgba(7, 35, 57, .14);
}

.bk-notes-input.is-invalid {
    border-color: var(--ochre-600, #a9733a);
}

.bk-terms a {
    color: var(--river-600);
}

/* a Location specification value on the price card */
.spss .spss-map {
    display: block;
    width: 100%;
    height: 180px;
    margin-top: 6px;
    border: 0;
    border-radius: 6px;
}

/* ---- The price card's actions (slideshow.html booking_buttons) and the cart page's "Book Now":
   outlined in the logo ochre, no fill until hovered ---- */
.bk-btn {
    --bk-btn-color: #c59054e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 22px;
    font: 600 15px/1 var(--font-body, sans-serif);
    letter-spacing: .01em;
    color: var(--bk-btn-color);
    background: transparent;
    border: 1.5px solid var(--bk-btn-color);
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

/* styles.css colours .buy-btn (and everything in it) red: the outline wins inside the card */
.cart-container .bk-btn,
.cart-container .bk-btn * {
    color: var(--bk-btn-color);
    background: transparent;
}

.bk-btn:hover,
.cart-container .bk-btn:hover,
.cart-container .bk-btn:hover * {
    color: var(--bk-btn-color);
    background-color: rgba(197, 144, 84, .12);
}

.bk-btn:hover {
    border-color: #c59054;
    box-shadow: 0 10px 22px -14px rgba(197, 144, 84, .9);
}

.cart-container .bk-btn:hover * {
    background-color: transparent;
}

.bk-btn:focus-visible {
    outline: 2px solid var(--navy-900, #072339);
    outline-offset: 3px;
}

.bk-btn:disabled {
    cursor: progress;
    opacity: .6;
}

.bk-btn svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bk-btn--book::after {
    content: "\2192";
    font-size: 17px;
    transition: transform .2s;
}

.bk-btn--book:hover::after {
    transform: translateX(3px);
}

/* added: a tick for a moment */
.bk-btn--cart.is-added {
    background-color: rgba(197, 144, 84, .12);
}

.cart-container:has(.bk-btn) {
    gap: 10px;
}

/* "Added to your cart" (the card's message, just above the buttons), with a link to the cart */
.bk-message a {
    margin-left: 6px;
    font-weight: 600;
    color: var(--navy-900);
}

@media (max-width: 480px) {
    .cart-container .bk-btn {
        flex: 1 1 0;
        padding: 0 14px;
    }
}

/* ---- The day of the booking (booking.js dateField) ---- */
.bk-date-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font: 500 15px/1.2 var(--font-body, sans-serif);
    color: var(--navy-900);
    background-color: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    color-scheme: light;
    transition: border-color .15s, box-shadow .15s;
}

.bk-date-input:hover {
    border-color: var(--river-400);
}

.bk-date-input:focus-visible {
    outline: none;
    border-color: var(--navy-900);
    box-shadow: 0 0 0 3px rgba(7, 35, 57, .14);
}

.bk-date-input.is-invalid {
    border-color: var(--ochre-600, #a9733a);
}

.bk-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .7;
}

/* ---- "Same day as another booking?" (booking.js confirmSameDay). It is added to the end of the page, where
   styles.css and Bootstrap style every button and centre the text: the rules here are scoped to win ---- */
.bk-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(calc(100% - 32px), 440px);
    height: fit-content;
    max-height: calc(100% - 32px);
    margin: auto;
    overflow: auto;
    padding: 28px;
    color: var(--navy-900);
    font-family: var(--font-body, sans-serif);
    text-align: left;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 30px 80px -20px rgba(4, 24, 42, .45);
}

.bk-dialog::backdrop {
    background: rgba(4, 24, 42, .45);
}

.bk-dialog h2 {
    margin: 0 0 12px 0;
    font: 400 1.5rem/1.2 var(--font-display, serif);
    color: var(--navy-900);
}

.bk-dialog p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-600);
}

.bk-dialog__list {
    margin: 0 0 14px 0;
    padding: 12px 14px 12px 32px;
    font-size: 15px;
    font-weight: 600;
    background: var(--cream-50);
    border-radius: 12px;
}

.bk-dialog .bk-dialog__question {
    color: var(--navy-900);
    font-weight: 600;
}

.bk-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* styles.css centres every paragraph on narrower screens (p:not(.ql-editor p)) */
.bk-dialog .bk-dialog__text,
.bk-dialog .bk-dialog__question,
.bk-dialog .bk-dialog__list,
.bk-dialog #bkDialogTitle {
    text-align: left;
}

.bk-dialog .bk-dialog__actions .bk-btn {
    flex: 1 1 auto;
    justify-content: center;
    width: auto;
    margin: 0;
    color: var(--bk-btn-color);
    background-color: transparent;
    border: 1.5px solid var(--bk-btn-color);
    border-radius: 999px;
}

.bk-dialog .bk-dialog__actions .bk-btn:hover {
    background-color: rgba(197, 144, 84, .12);
}

/* the filled ochre button (the answer that goes on) */
.bk-dialog .bk-dialog__actions .bk-btn--solid {
    color: var(--navy-950);
    background-color: var(--ochre-500);
    border-color: var(--ochre-500);
}

.bk-dialog .bk-dialog__actions .bk-btn--solid:hover {
    color: var(--navy-950);
    background-color: #b98446;
    border-color: #b98446;
}
