/* ============================================================
   WALDHOF v2 — CHECKOUT / RESERVATION
   Multi-step booking, restyled in the Apple/Tesla language.
   ============================================================ */

.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.co-label { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 0.6rem; }

/* Stepper */
.checkout-stepper { display: flex; align-items: center; margin-bottom: 3rem; }
.cs-step { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.cs-step__num { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: all var(--t-fast); }
.cs-step__label { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color var(--t-fast); }
.cs-step.active .cs-step__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.cs-step.active .cs-step__label { color: var(--ink); }
.cs-step.done .cs-step__num { background: var(--gold); border-color: var(--gold); color: #fff; }
.cs-step.done .cs-step__label { color: var(--gold); }
.cs-line { flex: 1; height: 1px; background: var(--line); margin: 0 1rem; transition: background var(--t-fast); }
.cs-line.done { background: var(--gold); }

/* Step panels */
.checkout-step { display: none; }
.checkout-step.active { display: block; animation: fadeUp 0.5s var(--ease); }

.step-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 1.25rem; }
.step-card__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.step-card__sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.75rem; }

/* Forms (checkout-specific, used by ported JS) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.form-row--full { grid-template-columns: 1fr; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.form-input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; min-height: 48px; font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--bg); transition: border-color var(--t-fast); }
.form-input:focus { border-color: var(--ink); outline: none; }
.form-input::placeholder { color: var(--muted); opacity: 0.6; }
textarea.form-input { min-height: 90px; resize: vertical; }
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-error { font-size: var(--fs-xs); color: #d0342c; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-input { border-color: #d0342c; }

/* Date range picker */
.date-range { position: relative; margin-bottom: 1.5rem; }
.date-range__bar { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); transition: border-color var(--t-fast); }
.date-range__bar.focus { border-color: var(--ink); }
.date-range__field { padding: 0.8rem 1.1rem; cursor: pointer; background: none; border: none; text-align: left; display: flex; flex-direction: column; gap: 4px; transition: background var(--t-fast); }
.date-range__field:first-child { border-right: 1px solid var(--line-soft); }
.date-range__field:hover, .date-range__field.open { background: var(--bg-alt); }
.date-range__label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.date-range__val { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.date-range__val.placeholder { color: var(--muted); font-weight: 400; }
.date-range__cal { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--bg); border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,0.16); border: 1px solid var(--line-soft); z-index: 60; display: none; }
.date-range__cal.open { display: block; }
.dr-cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.25rem 1.5rem; }
.dr-cal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: all var(--t-fast); color: var(--ink); }
.dr-cal__nav:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.dr-cal__nav svg { width: 15px; height: 15px; }
.dr-cal__month-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; text-align: center; }
.dr-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dr-cal__dh { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 0.45rem; }
.dr-day { aspect-ratio: 1; border-radius: 50%; border: none; background: none; font-size: 0.82rem; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background var(--t-fast); position: relative; width: 100%; }
.dr-day:hover:not(.dr-day--dis):not(.dr-day--sel) { background: var(--bg-alt); }
.dr-day--dis { color: var(--line); cursor: default; pointer-events: none; }
.dr-day--today { font-weight: 700; }
.dr-day--today::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.dr-day--sel { background: var(--ink) !important; color: #fff !important; font-weight: 600; }
.dr-day--range { background: rgba(184,151,90,0.16); border-radius: 0; }
.dr-day--rs { background: var(--ink) !important; color: #fff !important; border-radius: 50% 0 0 50%; }
.dr-day--re { background: var(--ink) !important; color: #fff !important; border-radius: 0 50% 50% 0; }
.dr-day--rs.dr-day--re { border-radius: 50%; }
.dr-cal__footer { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; border-top: 1px solid var(--line-soft); }
.dr-cal__clear { font-size: 0.76rem; font-weight: 500; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; }
.dr-cal__clear:hover { color: var(--ink); }
#drNightsBadge { font-size: 0.76rem; color: var(--muted); }
.dr-cal__confirm { display: none; width: calc(100% - 3rem); margin: 0 1.5rem 1rem; padding: 0.85rem; background: var(--ink); color: #fff; border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) {
  .date-range__cal { position: fixed; bottom: 0; top: auto; left: 0; right: 0; border-radius: 20px 20px 0 0; max-height: 90vh; overflow-y: auto; }
  .dr-cal__months { grid-template-columns: 1fr; }
  .dr-cal__confirm { display: block !important; }
}

/* Guests */
.guest-counter { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem 1rem; margin-bottom: 1.5rem; }
.guest-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.guest-row + .guest-row { border-top: 1px solid var(--line-soft); }
.guest-row__title { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.guest-row__sub { font-size: var(--fs-xs); color: var(--muted); }
.guest-ctrl { display: flex; align-items: center; gap: 1rem; }
.guest-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; color: var(--ink); transition: all var(--t-fast); line-height: 1; }
.guest-btn:hover:not(:disabled) { border-color: var(--ink); }
.guest-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.guest-count { font-size: 1rem; font-weight: 500; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }

/* Type tiles */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 520px) { .type-grid { grid-template-columns: 1fr; } }
.type-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; cursor: pointer; transition: all var(--t-fast); display: flex; align-items: flex-start; gap: 0.85rem; }
.type-tile:hover { border-color: var(--ink); }
.type-tile.selected { border-color: var(--gold); background: rgba(184,151,90,0.05); }
.type-tile__icon { width: 38px; height: 38px; background: var(--bg-alt); border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.type-tile.selected .type-tile__icon { background: rgba(184,151,90,0.14); }
.type-tile__icon svg { width: 18px; height: 18px; stroke: var(--ink); }
.type-tile__title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.type-tile__sub { font-size: var(--fs-xs); color: var(--muted); }

/* Step nav */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.step-nav--right { justify-content: flex-end; }
.btn-step-back { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--muted); background: none; border: none; cursor: pointer; transition: color var(--t-fast); }
.btn-step-back:hover { color: var(--ink); }
.btn-step-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-step-next { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: #fff; border: none; border-radius: 980px; padding: 0.9rem 1.75rem; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: all var(--t-fast); min-height: 44px; }
.btn-step-next:hover { background: #000; }
.btn-step-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Payment */
.applepay-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 52px; background: #000; border-radius: 980px; border: none; cursor: pointer; color: #fff; font-size: 0.95rem; font-weight: 500; margin-bottom: 1.25rem; transition: opacity var(--t-fast); }
.applepay-btn:hover { opacity: 0.85; }
.applepay-btn svg { width: 20px; height: 20px; }
.payment-methods { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.pay-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; cursor: pointer; transition: all var(--t-fast); display: flex; align-items: center; gap: 1rem; background: var(--bg); }
.pay-tile:hover { border-color: var(--ink); }
.pay-tile.selected { border-color: var(--gold); background: rgba(184,151,90,0.04); }
.pay-tile__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; display: grid; place-items: center; transition: all var(--t-fast); }
.pay-tile.selected .pay-tile__radio { border-color: var(--gold); background: var(--gold); }
.pay-tile.selected .pay-tile__radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pay-tile__icon { width: 44px; height: 30px; border-radius: 7px; background: var(--bg-alt); display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.pay-tile__icon svg { stroke: currentColor; fill: none; }
.pay-tile__info { flex: 1; }
.pay-tile__name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.pay-tile__desc { font-size: var(--fs-xs); color: var(--muted); }
.pay-tile__badge { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; background: rgba(184,151,90,0.14); color: var(--gold); border-radius: 5px; padding: 3px 7px; }

.bank-details { background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; margin-top: 0.75rem; display: none; }
.bank-details.visible { display: block; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; }
.bank-row + .bank-row { border-top: 1px solid var(--line-soft); }
.bank-row__label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0; }
.bank-row__value { font-size: 0.85rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.btn-copy { font-size: 0.7rem; color: var(--gold); background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background var(--t-fast); flex-shrink: 0; }
.btn-copy:hover { background: rgba(184,151,90,0.1); }

.trust-strip { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius-sm); margin-top: 1.25rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.trust-item svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; flex-shrink: 0; }

.btn-confirm { width: 100%; padding: 1rem; background: var(--gold); color: #fff; border: none; border-radius: 980px; font-size: 0.95rem; font-weight: 600; cursor: pointer; letter-spacing: 0.02em; transition: all var(--t-fast); display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; }
.btn-confirm:hover { background: var(--gold-soft); }
.btn-confirm svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: 1rem; line-height: 1.5; }
.form-note a { color: var(--gold); text-decoration: underline; }

/* Confirmation */
.confirm-screen { text-align: center; padding: 2rem 1rem; }
.confirm-check { width: 76px; height: 76px; background: var(--gold); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-check svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 2.5; }
.confirm-ref { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }
.confirm-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.confirm-sub { font-size: var(--fs-body); color: var(--muted); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.6; }
.confirm-timeline { display: flex; flex-direction: column; max-width: 440px; margin: 0 auto; text-align: left; }
.confirm-step { display: flex; gap: 1rem; }
.confirm-step__left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 32px; }
.confirm-step__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 600; }
.confirm-step__dot--done { background: var(--gold); color: #fff; }
.confirm-step__dot--pending { background: var(--bg-alt); color: var(--muted); }
.confirm-step__line { width: 1px; flex: 1; background: var(--line); margin: 4px 0; min-height: 24px; }
.confirm-step__body { padding-bottom: 1.25rem; }
.confirm-step__title { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.confirm-step__desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* Sidebar */
.checkout-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.property-summary { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.property-summary__img { width: 100%; height: 190px; object-fit: cover; display: block; }
.property-summary__body { padding: 1.5rem; }
.property-summary__verified { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--gold); background: rgba(184,151,90,0.1); border: 1px solid rgba(184,151,90,0.25); border-radius: 5px; padding: 3px 8px; margin-bottom: 0.75rem; }
.property-summary__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.property-summary__location { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.3rem; }
.property-summary__location svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.property-summary__stars { display: flex; align-items: center; gap: 3px; margin-bottom: 1.25rem; }
.star { color: var(--gold); font-size: 0.8rem; }
.star-count { font-size: var(--fs-xs); color: var(--muted); margin-left: 0.3rem; }
.price-breakdown { border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.price-row__label { flex: 1; }
.price-row__val { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-row--total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 1rem; font-weight: 600; color: var(--ink); }
.price-row--total .price-row__val { font-size: 1.3rem; letter-spacing: -0.02em; }
.sidebar-trust { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.sidebar-trust__title { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.sidebar-trust__item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.75rem 0; }
.sidebar-trust__item + .sidebar-trust__item { border-top: 1px solid var(--line-soft); }
.sidebar-trust__icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(184,151,90,0.1); display: grid; place-items: center; flex-shrink: 0; }
.sidebar-trust__icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.sidebar-trust__name { font-size: 0.85rem; font-weight: 600; margin-bottom: 1px; }
.sidebar-trust__desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-aside { position: static; order: -1; }
  .cs-step__label { display: none; }
}
