/* HL Booking Flow — mobile-first */
:root {
	--hl-accent: #b0885a;
	--hl-accent-dark: #8f6a3f;
	--hl-ink: #2b2b2b;
	--hl-muted: #777;
	--hl-line: #e6e1da;
	--hl-bg: #faf7f2;
}

/* ---------- Section Prestations ---------- */
.hl-prestations { margin-top: 30px; }
.hl-offering-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hl-offering-list { grid-template-columns: 1fr 1fr; } }
.hl-offering { border: 1px solid var(--hl-line); border-radius: 12px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.hl-offering__cat { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-accent); font-weight: 600; }
.hl-offering__name { margin: 2px 0 0; font-size: 18px; line-height: 1.3; }
.hl-offering__desc { margin: 0; color: #555; font-size: 14px; line-height: 1.5; }
.hl-offering__steps { margin: 0; font-size: 13px; color: var(--hl-muted); }
.hl-offering__prices { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hl-offering__prices li { font-size: 14px; }
.hl-offering__prices li span { color: var(--hl-muted); margin-right: 4px; }
.hl-offering__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--hl-muted); }
.hl-offering__cta.button { margin-top: auto; align-self: flex-start; background: var(--hl-accent); }
.hl-offering__cta.button:hover { background: var(--hl-accent-dark); }

.hl-sidebar-book h3 { margin-bottom: 10px; }
.hl-sidebar-book__from { font-size: 22px; margin: 0 0 6px; }
.hl-sidebar-book__note { font-size: 13px; color: var(--hl-muted); margin: 0 0 14px; }
.hl-sidebar-book .button { background: var(--hl-accent); }

/* Barre sticky mobile */
.hl-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; z-index: 990; }
.hl-sticky-cta.is-visible { transform: none; }
.hl-sticky-cta__btn.button { width: 100%; margin: 0; background: var(--hl-accent); }
@media (min-width: 992px) { .hl-sticky-cta { display: none; } }
body.hl-flow-open .hl-sticky-cta { display: none; }

/* ---------- Parcours (plein écran mobile, modal desktop) ---------- */
.hl-flow { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 16, 12, .55); display: flex; align-items: flex-end; justify-content: center; }
.hl-flow[hidden] { display: none; }
body.hl-flow-open { overflow: hidden; }
.hl-flow__box { background: #fff; width: 100%; max-height: 100dvh; height: 100dvh; display: flex; flex-direction: column; color: var(--hl-ink); outline: none; }
@media (min-width: 768px) {
	.hl-flow { align-items: center; padding: 24px; }
	.hl-flow__box { max-width: 640px; height: auto; max-height: calc(100vh - 48px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
}
.hl-flow__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--hl-line); gap: 12px; }
.hl-flow__head strong { display: block; font-size: 16px; }
.hl-flow__step { display: block; font-size: 12px; color: var(--hl-muted); margin-top: 2px; }
.hl-flow__close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--hl-muted); padding: 4px 8px; cursor: pointer; }
.hl-flow__progress { list-style: none; margin: 0; padding: 10px 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hl-flow__progress li { height: 4px; border-radius: 2px; background: var(--hl-line); position: relative; }
.hl-flow__progress li span { position: absolute; top: 8px; left: 0; font-size: 11px; color: var(--hl-muted); white-space: nowrap; }
.hl-flow__progress li.is-done, .hl-flow__progress li.is-current { background: var(--hl-accent); }
.hl-flow__progress li.is-current span { color: var(--hl-accent); font-weight: 600; }
.hl-flow__body { padding: 30px 18px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.hl-flow__box { overflow: hidden; }
.hl-flow__foot { border-top: 1px solid var(--hl-line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; }
.hl-flow__total { font-size: 14px; color: var(--hl-muted); }
.hl-flow__total strong { color: var(--hl-ink); font-size: 16px; }
.hl-flow__nav { display: flex; gap: 8px; }
.hl-flow__error { background: #fdecea; color: #a12622; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.hl-flow__error a { color: inherit; text-decoration: underline; }
.hl-btn.button { margin: 0; background: var(--hl-accent); padding: 12px 20px; }
.hl-btn.button:hover { background: var(--hl-accent-dark); }
.hl-btn.button[disabled] { opacity: .5; cursor: not-allowed; }
.hl-btn--ghost.button { background: transparent; color: var(--hl-ink); border: 1px solid var(--hl-line); }
.hl-btn--ghost.button:hover { background: var(--hl-bg); color: var(--hl-ink); }

.hl-h4 { font-size: 16px; margin: 0 0 12px; }
.hl-muted { color: var(--hl-muted); font-size: 14px; }
.hl-loading::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--hl-line); border-top-color: var(--hl-accent); border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: hl-spin .8s linear infinite; }
@keyframes hl-spin { to { transform: rotate(360deg); } }
.hl-link { background: none; border: 0; color: var(--hl-accent); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0 4px; }

.hl-field { margin-bottom: 16px; }
.hl-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hl-field input[type="text"], .hl-field input[type="email"], .hl-field input[type="tel"], .hl-field input[type="date"], .hl-field input[type="password"], .hl-field textarea { width: 100%; margin: 0; min-height: 46px; border: 1px solid var(--hl-line); border-radius: 8px; padding: 10px 12px; font-size: 16px; box-shadow: none; }
.hl-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hl-grid { grid-template-columns: 1fr 1fr; } }

.hl-stepper { display: inline-flex; align-items: center; gap: 6px; }
.hl-stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hl-line); background: #fff; font-size: 20px; cursor: pointer; color: var(--hl-ink); }
.hl-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.hl-stepper output { min-width: 32px; text-align: center; font-weight: 700; font-size: 18px; }
.hl-stepper__hint { color: var(--hl-muted); font-size: 14px; margin-left: 4px; }
.hl-stepper--sm button { width: 32px; height: 32px; font-size: 16px; }
.hl-stepper--sm output { font-size: 15px; min-width: 22px; }

.hl-toggle { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.hl-toggle input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; }

.hl-cards { display: grid; gap: 10px; }
.hl-card { text-align: left; border: 2px solid var(--hl-line); border-radius: 12px; background: #fff; padding: 14px; display: grid; gap: 4px; cursor: pointer; position: relative; font: inherit; color: inherit; }
.hl-card.is-selected { border-color: var(--hl-accent); background: var(--hl-bg); }
.hl-card__cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--hl-accent); font-weight: 600; }
.hl-card__name { font-weight: 700; font-size: 15px; }
.hl-card__meta { font-size: 13px; color: var(--hl-muted); }
.hl-card__check { position: absolute; top: 12px; right: 12px; font-size: 12px; border: 1px solid var(--hl-line); border-radius: 999px; padding: 2px 10px; color: var(--hl-muted); }
.hl-card.is-selected .hl-card__check { background: var(--hl-accent); border-color: var(--hl-accent); color: #fff; }
.hl-cards--compact .hl-card { padding: 10px 12px; }
.hl-person { border: 1px solid var(--hl-line); border-radius: 12px; padding: 12px; margin: 0 0 14px; }
.hl-person legend { font-weight: 700; font-size: 14px; padding: 0 6px; }

.hl-extras { display: grid; gap: 8px; }
.hl-extra { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; border: 1px solid var(--hl-line); border-radius: 10px; padding: 10px 12px; margin: 0; cursor: pointer; font-weight: 500; }
.hl-extra.is-on { border-color: var(--hl-accent); background: var(--hl-bg); }
.hl-extra__name { grid-column: 1; font-size: 14px; }
.hl-extra__price { grid-column: 1; font-size: 13px; color: var(--hl-muted); font-weight: 400; }
.hl-extra input[type="checkbox"], .hl-extra .hl-stepper { grid-column: 2; grid-row: 1 / span 2; }
.hl-extra input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }

.hl-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hl-slot { border: 1px solid var(--hl-line); border-radius: 8px; background: #fff; padding: 10px 4px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--hl-ink); }
.hl-slot.is-selected { background: var(--hl-accent); border-color: var(--hl-accent); color: #fff; }

.hl-when { font-size: 15px; margin: 0 0 12px; }
.hl-quote { border: 1px solid var(--hl-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--hl-bg); }
.hl-quote ul { list-style: none; margin: 0; padding: 0; }
.hl-quote li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.hl-quote__extra { color: var(--hl-muted); padding-left: 12px !important; }
.hl-quote__total { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hl-line); margin-top: 8px; padding-top: 10px; font-size: 14px; color: var(--hl-muted); }
.hl-quote__total strong { color: var(--hl-ink); font-size: 16px; }

/* ---------- Récap dans les cartes owner/client & confirmation ---------- */
.hl-booking-summary ul { list-style: none; margin: 8px 0 0; padding: 10px 12px; background: var(--hl-bg); border-radius: 8px; }
.hl-booking-summary li { font-size: 13px; line-height: 1.6; }
.hl-booking-summary li i { width: 16px; color: var(--hl-accent); margin-right: 4px; }
.hl-recap--confirmation { border: 1px solid var(--hl-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; background: var(--hl-bg); }
.hl-recap--confirmation ul { list-style: none; margin: 0; padding: 0; }
.hl-success-recap { max-width: 520px; margin: 20px auto 0; text-align: left; }

/* Récaps : neutralise les icônes géantes de Listeo (.booking-confirmation-page i) et aère les cartes */
.booking-confirmation-page .hl-booking-summary li i,
.hl-booking-summary li i { font-size: 14px !important; display: inline-block; width: 18px; line-height: inherit; margin: 0 6px 0 0; text-align: center; vertical-align: baseline; }
.hl-booking-summary li { display: flex; align-items: baseline; gap: 4px; padding: 3px 0; font-size: 14px; line-height: 1.5; }
.hl-booking-summary li + li { border-top: 1px dashed var(--hl-line); }
.booking-confirmation-page .hl-success-recap { text-align: left; }
.booking-confirmation-page .hl-success-recap ul { padding: 14px 18px; }
/* Barre « Book Now » native du thème : remplacée par la barre HL sur les fiches avec parcours HL */
body.hl-has-flow .listing-footer-sticky, body.hl-has-flow .sticky-booking-footer, body.hl-has-flow .booking-sticky-footer { display: none !important; }
