/* localhost Booking — uses the theme's tokens (assets/css/main.css). */

.lhb-page { padding: 40px var(--gutter) var(--section-gap); }
.lhb-hint { font-size: 12px; line-height: 1.4; color: var(--c-muted); }
.lhb-label { font-size: 16px; font-weight: 500; line-height: 1.2; margin-bottom: 8px; }
.lhb-strong { font-weight: 700; }
.lhb-rule { border: 0; border-top: 1px solid var(--c-divider); margin: 24px 0; }
.lhb-rule--tight { margin: 12px 0; }
.lhb-w-half { max-width: calc(50% - 12px); }
[data-field="term"].lhb-w-half { max-width: 320px; }
.lhb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.lhb-block { margin-bottom: 20px; }
.lhb-block p { line-height: 1.45; }
.lhb-policy { margin: 4px 0 0; }
.lhb-title { margin: 20px 0 24px; }
.lhb-ref { font-size: 16px; margin-bottom: 8px; }
.lhb-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.lhb-back .lh-icon { width: 16px; height: 16px; transform: rotate(90deg); }
.lhb-back .lh-icon-close { transform: none; }
.lhb-msg:empty { display: none; }
.lhb-msg { margin-bottom: 16px; }
@media (max-width: 767px) { .lhb-w-half { max-width: none; } .lhb-cols { grid-template-columns: 1fr; gap: 16px; } }

/* Skeleton loading (Figma "Global Loading States") */
.is-loading { position: relative; pointer-events: none; }
[data-sum-price].is-loading > *, [data-sum-details].is-loading > *, .lhb-timeline__grid.is-loading > * { visibility: hidden; }
[data-sum-price].is-loading, [data-sum-details].is-loading, .lhb-timeline__grid.is-loading, .lhb-skel-grid { background: linear-gradient(90deg, #ececea 0, #f4f4f2 50%, #ececea 100%); background-size: 200% 100%; animation: lhb-skel 1.2s linear infinite; min-height: 48px; }
.lhb-skel-grid { min-height: 220px; }
@keyframes lhb-skel { to { background-position: -200% 0; } }
.lh-btn.is-loading { opacity: .7; }
@media (prefers-reduced-motion: reduce) { [data-sum-price].is-loading, .lhb-skel-grid { animation: none; } }

/* Browse: tabs + date filter bar */
.lhb-filterbar { background: #f9f9f8; border-bottom: 1px solid var(--c-divider); padding-inline: var(--gutter); }
.lhb-filterbar__inner { display: flex; align-items: center; gap: 32px; min-height: 64px; flex-wrap: wrap; }
.lhb-tabs { display: flex; gap: 32px; }
.lhb-tabs a { font-size: 16px; padding: 4px 0; border-bottom: 1px solid transparent; }
.lhb-tabs a[aria-current="page"], .lhb-tabs a:hover { border-bottom-color: var(--c-ink); }
.lhb-datefilter { position: relative; }
.lhb-datebtn, .lhb-select {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #fff;
  border: 1px solid var(--c-border); font-size: 16px; color: var(--c-ink); white-space: nowrap;
}
.lhb-select { width: 100%; height: 48px; padding: 0 16px 0 20px; }
.lhb-select [data-cal-label] { flex: 1; text-align: left; }
.lhb-datebtn .lh-icon, .lhb-select .lh-icon { width: 18px; height: 18px; }
@media (max-width: 767px) { .lhb-filterbar__inner { gap: 12px; padding: 12px 0; } .lhb-tabs { gap: 20px; overflow-x: auto; } }

.lhb-browse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 540px; }
.lhb-browse__list { padding: 24px 32px 48px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.lhb-browse__map { position: relative; border-left: 1px solid var(--c-divider); }
.lhb-browse__map iframe { position: sticky; top: var(--header-h); width: 100%; height: calc(100vh - var(--header-h)); max-height: 720px; border: 0; display: block; }
.lhb-count { font-size: 13px; margin-bottom: 16px; }
@media (max-width: 1199px) { .lhb-browse { grid-template-columns: 1fr; } .lhb-browse__list { padding: 24px var(--gutter); } .lhb-browse__map iframe { height: 360px; position: static; } }

.lhb-result { position: relative; display: grid; grid-template-columns: 212px 1fr; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--c-divider); }
.lhb-result:last-of-type { border-bottom: 0; }
.lhb-result__open { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.lhb-result__open:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }
.lhb-result:hover .lhb-result__title { text-decoration: underline; }
.lhb-result__img { aspect-ratio: 212 / 132; }
.lhb-result__title { font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.lhb-result__addr { font-size: 11px; line-height: 1.4; margin-bottom: 12px; }
.lhb-result__rows div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--c-divider); font-size: 13px; }
.lhb-result__rows div:last-child { border-bottom: 1px solid var(--c-divider); }
.lhb-result__rows dt { font-weight: 700; }
.lhb-result__rows dd { margin: 0; }
.lhb-result.is-unavailable .lhb-result__img { opacity: .6; }
.lhb-flag { font-size: 12px; color: var(--c-error); margin-bottom: 8px; }
@media (max-width: 767px) { .lhb-result { grid-template-columns: 1fr; } }

/* Dialogs */
.lhb-dialog { width: min(586px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; color: var(--c-ink); }
.lhb-dialog::backdrop { background: rgba(46, 46, 46, .55); }
.lhb-dialog__bar { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 12px 32px; border-bottom: 1px solid var(--c-divider); min-height: 48px; }
.lhb-dialog__body { padding: 24px; }
.lhb-dialog--agreement .lhb-dialog__body { padding: 24px 32px 32px; }
.lhb-dialog--small { width: min(524px, calc(100vw - 32px)); }
.lhb-dialog--small .lhb-dialog__body { padding: 32px; }
.lhb-dialog__img { aspect-ratio: 526 / 226; margin-bottom: 16px; }
.lhb-dialog__title { font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.lhb-dialog .lhb-label { margin-top: 24px; margin-bottom: 12px; }
.lhb-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.lhb-amenities li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lhb-amenities .lh-icon { width: 16px; height: 16px; }
@media (max-width: 767px) { .lhb-amenities { grid-template-columns: 1fr 1fr; } }

.lhb-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lhb-plans--one { grid-template-columns: 1fr; }
.lhb-plan { position: relative; border: 1px solid var(--c-border); padding: 24px 16px 16px; }
.lhb-plan__badge { position: absolute; top: -1px; left: 12px; }
.lhb-plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-divider); margin-bottom: 12px; }
.lhb-plan__head h4 { font-size: 16px; font-weight: 500; margin: 0 0 2px; }
.lhb-plan__head p { font-size: 13px; }
.lhb-plan__facts div { margin-bottom: 10px; font-size: 13px; }
.lhb-plan__facts dt { font-weight: 500; }
.lhb-plan__facts dd { margin: 2px 0 0; }
.lhb-plan__foot { font-size: 10px; color: var(--c-muted); }
.lhb-plan [aria-disabled="true"] { opacity: .4; pointer-events: none; }
@media (max-width: 767px) { .lhb-plans { grid-template-columns: 1fr; } }

/* Checkout layout (Figma: 534px form + 298px sticky summary) */
.lhb-checkout { display: grid; grid-template-columns: minmax(0, 534px) minmax(0, 298px); justify-content: space-between; gap: 64px; align-items: start; }
.lhb-summary { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.admin-bar .lhb-summary { top: calc(var(--header-h) + 56px); }
.lhb-card { border: 1px solid var(--c-divider); padding: 20px 16px; background: #fff; }
.lhb-card > .lhb-label:first-child { margin-bottom: 0; }
.lhb-card h3.lhb-label { font-size: 15px; margin-bottom: 10px; }
.lhb-included li { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.lhb-included .lh-icon { width: 16px; height: 16px; }
.lhb-sumrows div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 4px 0; }
.lhb-sumrows dd { margin: 0; text-align: right; }
.lhb-price__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
.lhb-price__row.is-muted { color: var(--c-muted); }
.lhb-price__row.is-small { font-size: 12px; color: var(--c-muted); }
.lhb-price__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--c-divider); margin-top: 12px; padding-top: 14px; font-size: 15px; }
.lhb-price__total strong { font-size: 18px; }
@media (max-width: 1199px) { .lhb-checkout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; } }
@media (max-width: 767px) {
  .lhb-checkout { grid-template-columns: 1fr; gap: 24px; }
  .lhb-summary { position: static; order: -1; margin-top: 0; }
  .lhb-checkout__main { order: 0; }
}

.lhb-term { position: relative; max-width: 320px; }
.lhb-term .lh-select { padding-right: 140px; }
.lhb-term__best { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); pointer-events: none; }
[data-field="term"] { margin-bottom: 24px; }
[data-field="start"].lhb-w-half { margin-bottom: 12px; }
.lhb-term__best[hidden] { display: none; }
.lhb-me .lhb-hint { font-size: 14px; color: var(--c-ink); }
.lhb-step__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lhb-step[data-locked] { opacity: .4; pointer-events: none; user-select: none; }
.lhb-step .lh-btn { margin-top: 16px; }
.lhb-signed { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.lhb-signed[hidden] { display: none; }
.lhb-pass { position: relative; }
.lhb-pass input { padding-right: 48px; }
.lhb-pass button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.lhb-pass .lh-icon { width: 20px; height: 20px; }

/* Payment */
.lhb-paytabs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 16px; }
.lhb-paytabs[hidden] { display: none; }
.lhb-paytabs button { height: 36px; border: 1px solid var(--c-border); font-size: 15px; }
.lhb-paytabs button[aria-selected="true"] { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.lhb-card-fields { display: flex; flex-direction: column; gap: 12px; }
.lhb-grid-card { display: grid; grid-template-columns: 1.85fr 1fr 1fr; gap: 16px; }
.lhb-grid-address { display: grid; grid-template-columns: 2.7fr 1fr; gap: 16px; }
@media (max-width: 767px) { .lhb-grid-card { grid-template-columns: 1fr 1fr; } .lhb-grid-card > :first-child { grid-column: 1 / -1; } .lhb-grid-address { grid-template-columns: 1fr; } }
.lhb-testmode { font-size: 12px; padding: 8px 12px; background: #fff8e1; border: 1px solid #f0d58a; }
.lhb-save { margin-top: 16px; }
.lhb-saved { border: 0; padding: 0; margin: 0 0 16px; }
.lhb-radio { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--c-border); margin-top: 8px; cursor: pointer; font-size: 15px; }
.lhb-radio:has(input:checked) { border-color: var(--c-ink); }
.lhb-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 12px 0 8px; font-size: 14px; }
.lhb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lhb-switch__ui { width: 36px; height: 20px; border-radius: 10px; background: var(--c-border); position: relative; transition: background .15s; flex: none; }
.lhb-switch__ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lhb-switch input:checked + span + .lhb-switch__ui, .lhb-switch input:checked + .lhb-switch__ui { background: var(--c-ink); }
.lhb-switch input:checked + span + .lhb-switch__ui::after, .lhb-switch input:checked + .lhb-switch__ui::after { transform: translateX(16px); }
.lhb-switch input:focus-visible ~ .lhb-switch__ui { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* Calendar popover */
.lhb-cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 300px; background: #fff; border: 1px solid var(--c-border); padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lhb-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lhb-cal__head button { width: 32px; height: 32px; font-size: 20px; }
.lhb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.lhb-cal__wd { font-size: 11px; color: var(--c-muted); text-align: center; padding: 4px 0; }
.lhb-cal__day { height: 36px; font-size: 14px; }
.lhb-cal__day:hover:not([disabled]) { background: var(--c-sand); }
.lhb-cal__day[disabled] { color: #bdbdbd; text-decoration: line-through; cursor: default; }
.lhb-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--c-divider); }
.lhb-cal__day.is-in { background: #e9efe9; }
.lhb-cal__day.is-start, .lhb-cal__day.is-end { background: var(--c-ink); color: #fff; }

/* Meeting room timeline */
.lhb-timeline { margin: 4px 0 24px; }
.lhb-timeline p.lhb-hint { margin-bottom: 8px; min-height: 17px; }
.lhb-timeline__grid { display: grid; grid-template-columns: repeat(var(--cols, 17), minmax(0, 1fr)); border: 1px solid var(--c-divider); }
.lhb-slot { height: 80px; border-left: 1px solid var(--c-divider); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 4px; font-size: 10px; line-height: 1.1; text-align: left; background: linear-gradient(#fff 0 26px, #fff 26px); border-top: 0; }
.lhb-slot:first-child { border-left: 0; }
.lhb-slot span { display: block; }
.lhb-slot.is-busy { background: linear-gradient(#fff 0 28px, #e2e2e0 28px); cursor: not-allowed; }
.lhb-slot.is-sel { background: linear-gradient(#fff 0 28px, #a8d5c2 28px); }
.lhb-slot.is-first, .lhb-slot.is-last { position: relative; }
.lhb-slot.is-first::after, .lhb-slot.is-last::after { content: ""; position: absolute; top: 40px; width: 8px; height: 26px; background: var(--c-ink); border-radius: 2px; }
.lhb-slot.is-first::after { left: 2px; }
.lhb-slot.is-last::after { right: 2px; }
.lhb-slot:hover:not(.is-busy):not(.is-sel) { background: linear-gradient(#fff 0 28px, #eef5f1 28px); }
@media (max-width: 767px) { .lhb-timeline { overflow-x: auto; } .lhb-timeline__grid { min-width: 620px; } }

/* Agreement */
.lhb-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 12px 0 8px; }
.lhb-terms dt { font-size: 14px; }
.lhb-terms dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.lhb-sig { display: flex; flex-direction: column; gap: 4px; }
.lhb-sig input { border: 0; border-bottom: 1px solid var(--c-border); height: 40px; font: inherit; font-size: 15px; padding: 0; background: transparent; }
.lhb-sig input:focus { outline: none; border-bottom-color: var(--c-ink); }
.lhb-sig span { font-size: 11px; color: var(--c-muted); }
.lh-btn[disabled] { background: #e0e0e0; border-color: #e0e0e0; color: #8a8a8a; }

/* Confirmation */
.lhb-qr { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; border: 1px solid var(--c-divider); padding: 16px; margin-top: 20px; }
.lhb-qr img { width: 200px; height: auto; }
.lhb-qr .lhb-hint { grid-column: 1 / -1; }
@media (max-width: 767px) { .lhb-qr { grid-template-columns: 1fr; justify-items: center; } }
