/*
 * MSV Tours — booking flow styles (plain CSS, no build step).
 *   1. Google Places suggestion dropdown (homepage widget)
 *   2. Widget validation states
 *   3. /book trip summary
 *   4. Default pickup ("Use my location", first-visit prompt)
 *   5. /book taxi form (planning/12)
 * Colours/radii follow resources/css/app.css (.msv-input, emerald palette, Inter).
 */

/* ── 1. Places dropdown ─────────────────────────────────────────────── */
.msv-places {
    position: absolute;
    z-index: 35;                 /* above the hero (z-10), below the sticky header (z-40) */
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.28);
    font-family: var(--font-sans);
}
.msv-places[hidden] { display: none; }
.msv-places__list {
    max-height: min(18rem, 50vh);
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}
.msv-places__list:empty { display: none; }
.msv-places__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.65rem;
    border-radius: 0.6rem;
    cursor: pointer;
    color: #1e293b;
}
.msv-places__item[aria-selected="true"] { background: #ecfdf5; }
.msv-places__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #059669;
}
.msv-places__icon svg { width: 0.9rem; height: 0.9rem; }
.msv-places__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.msv-places__text strong {
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msv-places__text small {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msv-places__status {
    margin: 0;
    padding: 0.75rem 0.9rem 0.25rem;
    color: #64748b;
    font-size: 0.8rem;
}
.msv-places__status[hidden] { display: none; }
/* Google attribution — required when showing Places results without a map */
.msv-places__brand {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 0.75rem 0.5rem;
    border-top: 1px solid #f1f5f9;
    color: #5f6368;
    font-family: Roboto, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
}
@media (max-width: 639px) {
    .msv-places__item { padding: 0.75rem 0.65rem; }   /* bigger touch targets */
}

/* ── 2. Widget validation ───────────────────────────────────────────── */
.msv-input.msv-input--invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}
.msv-field-error {
    margin: 0.3rem 0 0;
    color: #be123c;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}
.msv-field-error[hidden] { display: none; }
.msv-field-notice {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.75rem;
    line-height: 1.4;
}
.msv-field-notice[hidden] { display: none; }

/* ── 2b. Travel Date | Pickup Time | Passengers ─────────────────────────
 * One component group: same 44px height as the other widget inputs, same
 * radius/border/focus (from .msv-input). Icons sit in a wrapper, absolutely
 * positioned with pointer-events:none, and the input/select gets matching
 * padding so the value never runs under an icon. The wrapper is a size
 * container: on narrow columns (lg screens, ~104–140px) padding and font
 * step down instead of truncating the value.
 * (Tailwind utilities can't do this here: .msv-input is unlayered CSS and
 * beats them, which is what made the old pl-6 a no-op.)
 */
.msv-sched {
    position: relative;
    container-type: inline-size;
}
.msv-sched .msv-input {
    height: 2.75rem;                                /* = From / To / Trip Type (44px) */
    padding: 0 2.25rem 0 0.875rem;
    font-size: 0.875rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}
.msv-sched .flatpickr-input { cursor: pointer; }
.msv-sched .flatpickr-input.active {               /* popup open: keep the focus look */
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.msv-sched input.msv-input:not(.flatpickr-input) { padding-right: 0.6rem; } /* native fallback has its own icon */

.msv-sched__icon,
.msv-sched__lead {
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;                           /* clicks reach the input underneath */
}
.msv-sched__icon { right: 0.8rem; display: none; }
.msv-sched .flatpickr-input ~ .msv-sched__icon { display: block; }
.msv-sched__lead { left: 0.75rem; }

.msv-sched--pax select.msv-input {
    padding-left: 2.25rem;
    padding-right: 2.1rem;
    background-position: right 0.65rem center;
    background-size: 1.1rem;
}

@container (max-width: 9.5rem) {
    .msv-sched .msv-input { padding: 0 1.85rem 0 0.6rem; font-size: 0.8125rem; }
    .msv-sched__icon { right: 0.6rem; width: 0.9rem; height: 0.9rem; }
    .msv-sched__lead { left: 0.55rem; width: 0.9rem; height: 0.9rem; }
    .msv-sched--pax select.msv-input {
        padding-left: 1.8rem;
        padding-right: 1.55rem;
        background-position: right 0.4rem center;
        background-size: 1rem;
    }
}
@container (max-width: 7.25rem) {
    .msv-sched .msv-input { padding: 0 1.6rem 0 0.5rem; font-size: 0.75rem; }
    .msv-sched__icon { right: 0.5rem; width: 0.85rem; height: 0.85rem; }
    .msv-sched__lead { left: 0.45rem; width: 0.85rem; height: 0.85rem; }
    .msv-sched--pax select.msv-input {
        padding-left: 1.6rem;
        padding-right: 1.35rem;
        background-position: right 0.3rem center;
        background-size: 0.95rem;
    }
}

/* (Trip Type dropdown styles: public/css/msv-select-menu.css — shared with the contact form) */

/* ── 3. /book trip summary ──────────────────────────────────────────── */
.bk-sum[hidden], .bk-sum [hidden] { display: none !important; }
.bk-sum {
    padding: 2.5rem 0 4rem;
    background: #f4f8f5;
    min-height: 60vh;
}
.bk-sum__wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .bk-sum__wrap { padding: 0 1.5rem; } }
.bk-sum__grid { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) {
    .bk-sum__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.75rem; align-items: start; }
    .bk-sum__aside { position: sticky; top: 6rem; }
}

.bk-card {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
@media (min-width: 640px) { .bk-card { padding: 1.75rem 2rem; } }
.bk-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.35rem;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.bk-eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: currentColor; }
.bk-title {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

/* Route */
.bk-route { position: relative; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.bk-route::before {                      /* dotted connector between the two stops */
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 1.6rem;
    bottom: 1.6rem;
    border-left: 2px dashed #cbd5e1;
}
.bk-route__stop { position: relative; display: flex; gap: 0.9rem; padding: 0.6rem 0; }
.bk-route__dot {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    border: 4px solid #d1fae5;
    border-radius: 999px;
    background: #059669;
}
.bk-route__stop--to .bk-route__dot { border-color: #ffe4e6; background: #f43f5e; }
.bk-route__label { color: #64748b; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bk-route__name { margin: 0.1rem 0 0; color: #0f172a; font-size: 1.05rem; font-weight: 700; }
.bk-route__addr { margin: 0.1rem 0 0; color: #64748b; font-size: 0.8rem; line-height: 1.4; }
.bk-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Travel details */
.bk-subhead {
    margin: 1.75rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}
.bk-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
@media (min-width: 640px) { .bk-details { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-detail { padding: 0.75rem 0.9rem; border: 1px solid #eef2f6; border-radius: 0.9rem; background: #f8fafc; }
.bk-detail dt { color: #64748b; font-size: 0.7rem; font-weight: 600; }
.bk-detail dd { margin: 0.2rem 0 0; color: #0f172a; font-size: 0.9rem; font-weight: 700; }

/* Fare */
.bk-fare {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: #064e3b;
    color: #fff;
    box-shadow: 0 18px 40px -20px rgba(6, 78, 59, 0.6);
}
@media (min-width: 640px) { .bk-fare { padding: 1.75rem; } }
.bk-fare__label { margin: 0; color: #a7f3d0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bk-fare__amount {
    margin: 0.35rem 0 0;
    font-family: var(--font-sans);
    font-size: clamp(2.25rem, 6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.bk-fare__amount--tbc { font-size: 1.6rem; }
.bk-fare__breakdown { margin: 0.9rem 0 0; padding: 0; list-style: none; font-size: 0.8rem; color: #d1fae5; }
.bk-fare__breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.bk-fare__note {
    margin: 0.9rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #a7f3d0;
    font-size: 0.75rem;
    line-height: 1.5;
}
.bk-actions { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bk-btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.bk-btn--whatsapp { background: #22c55e; color: #052e16; }
.bk-btn--whatsapp:hover { background: #4ade80; }
.bk-btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
.bk-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.bk-btn--primary { background: #065f46; color: #fff; }
.bk-btn--primary:hover { background: #064e3b; }
.bk-btn:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.bk-sent {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ecfdf5;
    font-size: 0.8rem;
    line-height: 1.5;
}
.bk-sent a { color: #86efac; font-weight: 700; }
.bk-fare__next { margin: 0.75rem 0 0; color: #a7f3d0; font-size: 0.75rem; line-height: 1.5; text-align: center; }
.bk-btn:disabled { cursor: progress; opacity: 0.75; }
.bk-btn--busy svg { animation: bk-spin 0.9s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-btn--busy svg { animation: none; } }
.bk-alert {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #fecdd3;
    border-radius: 0.9rem;
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Customer details form */
.bk-form { display: grid; gap: 1rem; }
.bk-form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bk-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-field { min-width: 0; }
.bk-field label { display: block; margin-bottom: 0.35rem; color: #334155; font-size: 0.8rem; font-weight: 600; }
.bk-field .msv-input { min-height: 2.875rem; font-size: 1rem; }   /* 16px: no iOS zoom on focus */
.bk-field__req { color: #e11d48; }
.bk-field__opt { color: #94a3b8; font-weight: 500; }
.bk-field__hint { margin: 0.3rem 0 0; color: #64748b; font-size: 0.75rem; line-height: 1.4; }
.bk-field__count { text-align: right; }
.bk-textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
.bk-phone { position: relative; }
.bk-phone__code {
    position: absolute;
    top: 50%;
    left: 0.875rem;
    transform: translateY(-50%);
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
}
.bk-phone .msv-input { padding-left: 3.1rem; }

/* Confirmation */
.bk-confirm:focus { outline: none; }
.bk-confirm__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
}
.bk-confirm__icon svg { width: 1.6rem; height: 1.6rem; }
.bk-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1.5px dashed #86efac;
    border-radius: 1rem;
    background: #f0fdf4;
}
.bk-ref__label { color: #166534; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bk-ref__value {
    margin: 0.15rem 0 0;
    color: #064e3b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}
.bk-ref__copy {
    padding: 0.5rem 0.9rem;
    border: 1px solid #bbf7d0;
    border-radius: 0.6rem;
    background: #fff;
    color: #065f46;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.bk-ref__copy:hover { background: #ecfdf5; }
.bk-ref__copy:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.bk-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
}
.bk-status__dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #f59e0b; }
.bk-confirm__text { margin: 1rem 0 0; color: #475569; font-size: 0.9rem; line-height: 1.6; }
.bk-detail--wide { grid-column: 1 / -1; }
.bk-detail__notes { white-space: pre-line; overflow-wrap: anywhere; font-weight: 600; }

/* Empty state */
.bk-empty { max-width: 32rem; margin: 0 auto; text-align: center; }
.bk-empty__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}
.bk-empty__icon svg { width: 1.6rem; height: 1.6rem; }
.bk-empty p { margin: 0.6rem 0 1.5rem; color: #64748b; font-size: 0.95rem; line-height: 1.6; }
.bk-empty .bk-btn { width: auto; padding-left: 1.75rem; padding-right: 1.75rem; }

/* ── 4. Default pickup: "Use my location" (homepage widget) + first-visit prompt ── */
.msv-locate {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #047857;
    transform: translateY(-50%);
    cursor: pointer;
}
.msv-locate:hover { background: #ecfdf5; }
.msv-locate:focus-visible { outline: 2px solid #059669; outline-offset: 1px; }
.msv-locate:disabled { cursor: progress; opacity: 0.6; }
.msv-locate[hidden] { display: none; }
.msv-locate svg { width: 1.05rem; height: 1.05rem; }
.msv-field-hint { margin: 0.3rem 0 0; color: #475569; font-size: 0.72rem; line-height: 1.35; }
.msv-field-hint[hidden] { display: none; }

.msv-loc {
    position: fixed;
    z-index: 60;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.9rem;
    max-width: 26rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid #d1fae5;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 48px -16px rgba(6, 78, 59, 0.35);
    font-family: var(--font-sans);
    animation: msv-loc-in 0.25s ease-out;
}
@media (min-width: 640px) { .msv-loc { left: 1.5rem; right: auto; bottom: 1.5rem; } }
@keyframes msv-loc-in { from { opacity: 0; transform: translateY(0.75rem); } }
@media (prefers-reduced-motion: reduce) { .msv-loc { animation: none; } }
.msv-loc__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}
.msv-loc__icon svg { width: 1.25rem; height: 1.25rem; }
.msv-loc__body { min-width: 0; }
.msv-loc__title { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.msv-loc__text { margin: 0.3rem 0 0; color: #475569; font-size: 0.82rem; line-height: 1.5; }
.msv-loc__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.msv-loc__btn {
    padding: 0.6rem 0.95rem;
    border: 1.5px solid #a7f3d0;
    border-radius: 0.7rem;
    background: #fff;
    color: #065f46;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}
.msv-loc__btn:hover { background: #ecfdf5; }
.msv-loc__btn--primary { border-color: #065f46; background: #065f46; color: #fff; }
.msv-loc__btn--primary:hover { background: #064e3b; }
.msv-loc__btn:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.msv-loc__btn:disabled { cursor: progress; opacity: 0.7; }
.msv-loc__status { margin: 0.6rem 0 0; color: #047857; font-size: 0.8rem; font-weight: 600; }
.msv-loc__status[hidden] { display: none; }

/* ── 5. /book taxi form ─────────────────────────────────────────────── */
/* Notices above the form: bookings closed in admin, a tour link that no longer exists */
.bk-notice {
    margin-bottom: 1.25rem;
    border-color: #fde68a;
    background: #fffbeb;
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.6;
}
.bk-notice[hidden] { display: none; }
.bk-notice__title { margin: 0 0 0.35rem; color: #78350f; font-size: 1.05rem; font-weight: 800; }
.bk-notice p { margin: 0.35rem 0 0; }
.bk-notice a { color: #92400e; font-weight: 700; text-decoration: underline; }
.bk-context {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
.bk-context__img {
    flex-shrink: 0;
    width: 6.5rem;
    height: 5rem;
    border-radius: 1rem;
    object-fit: cover;
}
@media (min-width: 640px) { .bk-context__img { width: 9rem; height: 6.5rem; } }
.bk-context__body { min-width: 0; }
.bk-context__title { margin: 0; color: #0f172a; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.bk-context__text { margin: 0.35rem 0 0; color: #475569; font-size: 0.85rem; line-height: 1.5; }
.bk-context__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    color: #047857;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.bk-context__link:hover { text-decoration: underline; }

.bk-label { display: block; margin-bottom: 0.45rem; padding: 0; color: #334155; font-size: 0.8rem; font-weight: 600; }
.bk-segments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    border: 0;
}
@media (min-width: 640px) { .bk-segments { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk-segment { position: relative; display: block; cursor: pointer; }
.bk-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.bk-segment:hover span { border-color: #a7f3d0; }
.bk-segment input:checked + span { border-color: #065f46; background: #064e3b; color: #fff; }
.bk-segment input:focus-visible + span { outline: 3px solid #86efac; outline-offset: 2px; }

/* Editable route: the dots of .bk-route with fields next to them */
.bk-route--edit { margin-top: 0; }
.bk-route--edit::before { top: 2.4rem; bottom: 2.4rem; }
.bk-route--edit .bk-route__stop { padding: 0.35rem 0; }
.bk-route--edit .bk-route__dot { margin-top: 2.05rem; }
.bk-route__field { flex: 1; }
.bk-route__stops { margin: 0; padding: 0; list-style: none; }
.bk-route__stops:empty { display: none; }
.bk-route__dot--stop { width: 0.85rem; height: 0.85rem; margin-left: 0.2rem; margin-right: 0.2rem; border-width: 3px; border-color: #e2e8f0; background: #94a3b8; }
.bk-route--edit .bk-route__stop--add { align-items: center; padding: 0.15rem 0; }
.bk-route--edit .bk-route__stop--add .bk-route__dot { margin-top: 0; }
.bk-link {
    padding: 0.35rem 0;
    border: 0;
    background: none;
    color: #047857;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}
.bk-link:hover { text-decoration: underline; }
.bk-link:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; border-radius: 0.25rem; }
.bk-link[hidden] { display: none; }
.bk-place { position: relative; display: flex; gap: 0.5rem; align-items: stretch; }
.bk-place .msv-input { flex: 1; min-width: 0; }
.bk-place__locate,
.bk-place__remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.875rem;
    padding: 0 0.75rem;
    border: 1.5px solid #d1fae5;
    border-radius: 0.75rem;
    background: #f0fdf4;
    color: #065f46;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.bk-place__remove { border-color: #e2e8f0; background: #fff; color: #64748b; padding: 0; }
.bk-place__locate:hover { background: #dcfce7; }
.bk-place__remove:hover { color: #be123c; border-color: #fecdd3; }
.bk-place__locate:focus-visible,
.bk-place__remove:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.bk-place__locate:disabled { cursor: progress; opacity: 0.6; }
.bk-place__locate[hidden] { display: none; }
.bk-place__locate-text { display: none; }
@media (min-width: 480px) { .bk-place__locate-text { display: inline; } }

/* Vehicle cards (fares from the live quote) */
.bk-vehicles { display: grid; gap: 0.6rem; }
.bk-vehicle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.bk-vehicle:hover { border-color: #a7f3d0; }
.bk-vehicle--selected { border-color: #065f46; background: #f0fdf4; box-shadow: 0 0 0 1px #065f46; }
.bk-vehicle--muted .bk-vehicle__img { opacity: 0.55; }
.bk-vehicle__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-vehicle:focus-within { outline: 3px solid #86efac; outline-offset: 2px; }
.bk-vehicle__img { flex-shrink: 0; width: 4.5rem; height: 3rem; object-fit: contain; }
.bk-vehicle__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-vehicle__name { color: #0f172a; font-size: 0.95rem; font-weight: 700; }
.bk-vehicle__meta { color: #64748b; font-size: 0.75rem; }
.bk-vehicle__note { color: #b45309; font-size: 0.72rem; font-weight: 600; }
.bk-vehicle__note:empty { display: none; }
.bk-vehicle__fare { flex-shrink: 0; color: #064e3b; font-size: 1.05rem; font-weight: 700; text-align: right; }

/* Live estimate panel */
.bk-fare__status { margin: 0.5rem 0 0; color: #d1fae5; font-size: 0.82rem; line-height: 1.5; }
.bk-fare .bk-link { color: #fff; text-decoration: underline; }
.bk-fare--loading .bk-fare__amount { opacity: 0.45; }
.bk-fare--loading .bk-fare__status::before {
    content: "";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.45rem;
    vertical-align: -0.1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: bk-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .bk-fare--loading .bk-fare__status::before { animation: none; } }
.bk-fare__km { margin: 0.6rem 0 0; color: #a7f3d0; font-size: 0.75rem; line-height: 1.5; }
.bk-fare__trip {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
}
.bk-fare__trip div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.5rem; }
.bk-fare__trip dt { color: #a7f3d0; }
.bk-fare__trip dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.bk-fare__policy { margin: 0.9rem 0 0; padding: 0.9rem 0 0 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); color: #a7f3d0; font-size: 0.72rem; line-height: 1.5; }
.bk-fare__policy:empty { display: none; }
.bk-btn--light { background: #fff; color: #064e3b; }
.bk-btn--light:hover { background: #ecfdf5; }
.bk-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }

/* ── Estimated temple tour fares (partials/tour-fare-picker, partials/tour-fare, js/msv/tour-fares.js) ── */
.tf-picker {
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid #d1fae5;
    border-radius: 1rem;
    background: #f0fdf4;
}
.tf-picker__title { margin: 0; color: #064e3b; font-size: 0.95rem; font-weight: 800; }
.tf-picker__intro { margin: 0.2rem 0 0; color: #475569; font-size: 0.8rem; line-height: 1.5; }
.tf-picker__fields { display: grid; gap: 0.75rem; margin-top: 0.9rem; }
@media (min-width: 768px) {
    .tf-picker__fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}
.tf-picker__field label { display: block; margin-bottom: 0.3rem; color: #334155; font-size: 0.75rem; font-weight: 700; }
.tf-picker__field select.msv-input { width: 100%; }
.tf-picker__note { margin: 0.8rem 0 0; color: #64748b; font-size: 0.72rem; line-height: 1.5; }

.tf-fare { display: flex; flex-direction: column; min-width: 0; }
.tf-fare__label { color: #94a3b8; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.tf-fare__amount { color: #166534; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.tf-fare__meta { margin-top: 0.1rem; color: #64748b; font-size: 0.72rem; font-weight: 500; line-height: 1.4; }
.tf-fare--empty .tf-fare__amount,
.tf-fare--error .tf-fare__amount { color: #334155; font-size: 0.85rem; }
.tf-fare--error .tf-fare__meta { color: #b45309; }
.tf-fare--loading .tf-fare__amount { color: #64748b; font-size: 0.85rem; }
.tf-fare--loading .tf-fare__amount::before {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.4rem;
    vertical-align: -0.08rem;
    border: 2px solid #bbf7d0;
    border-top-color: #15803d;
    border-radius: 999px;
    animation: bk-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .tf-fare--loading .tf-fare__amount::before { animation: none; } }
.tf-fare__retry { padding: 0; border: 0; background: none; color: #047857; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.tf-fare--full {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e8edf2;
    border-radius: 0.9rem;
    background: #fff;
}
.tf-fare--full .tf-fare__amount { font-size: 1.6rem; }
.tf-fare--full.tf-fare--empty .tf-fare__amount,
.tf-fare--full.tf-fare--error .tf-fare__amount,
.tf-fare--full.tf-fare--loading .tf-fare__amount { font-size: 1rem; }
.tf-fare__facts { display: grid; gap: 0.5rem; margin: 0.9rem 0 0; }
@media (min-width: 640px) { .tf-fare__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-fare__facts dt { color: #64748b; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tf-fare__facts dd { margin: 0.15rem 0 0; color: #0f172a; font-size: 0.85rem; font-weight: 600; }
.tf-fare__lines { display: grid; gap: 0.3rem; margin: 0.9rem 0 0; padding: 0.8rem 0 0; border-top: 1px dashed #e2e8f0; list-style: none; }
.tf-fare__lines li { display: flex; justify-content: space-between; gap: 1rem; color: #475569; font-size: 0.8rem; }
.tf-fare__lines strong { color: #0f172a; white-space: nowrap; }
.tf-fare__policy { margin: 0.8rem 0 0; color: #64748b; font-size: 0.72rem; line-height: 1.5; }

/* inside the tour fact tiles the fare keeps the tile's text sizes */
.tt-facts__price .tf-fare__amount { font-size: 1rem; }
.tt-facts__price .tf-fare__label { display: none; }   /* the fact's own "Taxi fare" title says it */
