/**
 * Host checkout (priami hostitelia) — vylepšený UX nad rámec booking.css.
 * Štruktúra: ľavý sticky preview panel s fotkou + cenou, pravý form panel.
 * Používa rovnaké design tokeny ako portal.css (DM Sans / Fraunces / #071532 / #ac8510).
 *
 * Mobile-first: na mobile sú panely stacknuté, preview ide hore (foto + sumár),
 * form pod ním. Na desktope (>=920px) je preview vľavo (sticky), form vpravo.
 */

.host-checkout { padding: 96px 0 80px; max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.host-checkout__header { margin-bottom: 24px; }
.host-checkout__header h1 {
  font-family: 'Fraunces', serif; font-weight: 600; color: #071532; margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 36px);
}

.host-checkout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 920px) {
  .host-checkout__grid {
    grid-template-columns: 380px minmax(0, 1fr);
  }
}

/* ============================ LEFT — preview ============================ */
.host-checkout__preview { min-width: 0; }
.host-checkout__preview-stick {
  position: sticky;
  top: 96px;
}
.host-preview-card {
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(7, 21, 50, 0.06);
}
.host-preview-card__media {
  aspect-ratio: 16/10;
  background: #f4f5f7;
  overflow: hidden;
}
.host-preview-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.host-preview-card__body { padding: 20px; }
.host-preview-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: #071532;
  margin: 0 0 4px;
}
.host-preview-card__loc {
  font-size: 13px;
  color: #6b7290;
  margin: 0 0 16px;
}

.host-preview-card__list {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 8px;
  column-gap: 12px;
  font-size: 13px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.host-preview-card__list dt { color: #6b7290; align-self: center; }
.host-preview-card__list dd { color: #1f2540; margin: 0; align-self: center; }

.host-preview-card__h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #5b6280;
  margin: 16px 0 8px;
}

.host-preview-card__inclusions {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.host-preview-card__inclusions li {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; color: #15803d;
}
.host-preview-card__inc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

.host-preview-card__cancel {
  font-size: 13px; color: #2b3556; line-height: 1.45;
  margin: 0; padding: 10px 12px;
  background: #fafbfc; border-left: 3px solid #071532; border-radius: 4px;
}

.host-preview-card__rates {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.host-preview-card__rates td {
  padding: 5px 0; color: #5b6280;
  border-bottom: 1px solid #f4f5f7;
}
.host-preview-card__amount {
  text-align: right; color: #1f2540; font-variant-numeric: tabular-nums;
}

.host-preview-card__totals {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.host-preview-card__row {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 13px; color: #5b6280;
}
.host-preview-card__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0 0; font-size: 16px; color: #071532;
  border-top: 2px solid #071532; margin-top: 8px;
}
.host-preview-card__total strong {
  color: #ac8510; font-size: 24px; font-weight: 700;
  font-family: 'Fraunces', serif;
}

/* ============================ RIGHT — form ============================ */
.host-checkout__form-col { min-width: 0; }
.host-checkout-form {
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(7, 21, 50, 0.04);
}
.host-checkout-form__fs {
  border: 0; padding: 0; margin: 0 0 24px;
}
.host-checkout-form__fs legend {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 600; color: #071532;
  margin-bottom: 12px; padding: 0;
}
.host-checkout-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.host-checkout-form__grid .booking-field--full { grid-column: 1 / -1; }

.host-checkout-form__hint--accent {
  color: #8a6d0d !important; font-weight: 500;
  background: rgba(172, 133, 16, 0.1);
  padding: 6px 8px; border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
}

/* Pobyt na firmu toggle */
.host-checkout-form__toggle-row {
  margin: -14px 0 16px;
  padding: 12px 14px;
  background: #fafbfc; border: 1px solid #e3e6ee; border-radius: 10px;
}
.host-checkout-form__toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: #1f2540;
  margin: 0;
}
.host-checkout-form__toggle input {
  width: 20px; height: 20px; accent-color: #ac8510; flex-shrink: 0;
}
.host-checkout-form__company {
  background: rgba(172, 133, 16, 0.07); border: 1px solid rgba(172, 133, 16, 0.35); border-radius: 10px;
  padding: 16px; margin-bottom: 24px;
}
.host-checkout-form__company legend { color: #8a6d0d; }

/* Trip purpose radio group */
.host-checkout-form__radio-group {
  border: 1px solid #e3e6ee; border-radius: 10px; padding: 12px 14px; margin: 0;
}
.host-checkout-form__radio-group legend {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #5b6280; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 0 6px;
}
.host-checkout-form__radio {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px 16px 4px 0; font-size: 14px; color: #1f2540;
  cursor: pointer;
}
.host-checkout-form__radio input { accent-color: #ac8510; width: 18px; height: 18px; }

/* Mená cestujúcich */
.host-checkout-form__guests {
  border: 1px dashed #d4d8e2; border-radius: 10px; padding: 12px 14px; margin: 0;
}
.host-checkout-form__guests legend {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #5b6280; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 0 6px;
}
.host-checkout-form__guests .booking-field { margin: 8px 0; }

/* Payment options */
.host-checkout-form__payment {
  display: flex; flex-direction: column; gap: 10px;
}
.host-checkout-form__payment-opt {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid #e3e6ee; border-radius: 10px; padding: 14px;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.host-checkout-form__payment-opt:hover {
  border-color: #c0c7d6;
}
.host-checkout-form__payment-opt input {
  margin-top: 4px; accent-color: #ac8510; flex-shrink: 0;
}
.host-checkout-form__payment-body strong {
  display: block; color: #071532; font-size: 14px; margin-bottom: 2px;
}
.host-checkout-form__payment-body small {
  display: block; color: #6b7290; font-size: 12px; line-height: 1.45;
}
.host-checkout-form__payment-opt--active {
  border-color: #ac8510; background: rgba(172, 133, 16, 0.06);
}
.host-checkout-form__payment-opt--disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f3f4f8;
  filter: grayscale(0.35);
}

.host-checkout-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.host-checkout-form__payment-gate-hint {
  margin: 4px 0 0 32px;
  font-size: 12px;
  line-height: 1.4;
  color: #5b6280;
}

.host-checkout-form__stripe-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e3e6ee;
  border-radius: 10px;
  background: #fafbfd;
}
.host-checkout-form__stripe-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #2b3556;
  line-height: 1.45;
}
.host-checkout-form__stripe-mount {
  margin-bottom: 12px;
}
.host-checkout-form__stripe-pay {
  width: 100%;
  margin-top: 4px;
}

/* Storno NAD button — samostatne, zvýraznené */
.host-checkout-form__cancel-summary {
  margin: 24px 0 16px;
  padding: 16px 18px;
  background: #f7f8fb;
  border: 2px solid #071532;
  border-radius: 10px;
}
.host-checkout-form__cancel-summary h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 600; color: #071532;
  margin: 0 0 6px;
}
.host-checkout-form__cancel-summary p {
  margin: 0 0 12px;
  font-size: 13px; color: #2b3556; line-height: 1.5;
}
.booking-checkbox--strong { font-weight: 500; color: #071532; }

/* Submit button */
.host-checkout-form__submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 17px; font-weight: 600;
  background: #071532; color: #fff; border: 0; border-radius: 12px;
  cursor: pointer; margin-top: 12px;
  transition: background .15s ease, transform .1s ease;
}
.host-checkout-form__submit:hover:not(:disabled) {
  background: #0c2848;
}
.host-checkout-form__submit:active:not(:disabled) {
  transform: translateY(1px);
}
.host-checkout-form__submit:disabled {
  background: #c0c7d6; color: #fff; cursor: not-allowed;
}
.host-checkout-form__note {
  font-size: 12px; color: #6b7290; line-height: 1.5;
  margin-top: 8px; text-align: center;
}

/* Responsive — mobile order: form first? Nie, preview hore (foto + cena = ja vidím čo bookujem). */
@media (max-width: 919px) {
  .host-checkout__preview-stick { position: static; }
  .host-preview-card__media { aspect-ratio: 16/8; }
  .host-checkout-form { padding: 18px; }
  .host-checkout-form__grid { grid-template-columns: 1fr; }
}

/* ============================ Pending modal (submit) ============================ */
.host-checkout-pending {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.host-checkout-pending[hidden] {
  display: none !important;
}
.host-checkout-pending__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 50, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.host-checkout-pending__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(7, 21, 50, 0.12),
    0 24px 48px rgba(7, 21, 50, 0.08);
  border: 1px solid rgba(227, 230, 238, 0.95);
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}
.host-checkout-pending__logo-wrap {
  margin: 0 auto 8px;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.host-checkout-pending__logo {
  width: 72px;
  height: auto;
  max-height: 72px;
  display: block;
  animation: host-checkout-pending-logo 2.4s ease-in-out infinite;
}
@keyframes host-checkout-pending-logo {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  40% { transform: scale(1.06) rotate(-2deg); opacity: 0.92; }
  70% { transform: scale(1.03) rotate(1.5deg); opacity: 1; }
}
.host-checkout-pending__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 600;
  color: #071532;
  margin: 0 0 16px;
  line-height: 1.25;
}
.host-checkout-pending__step {
  font-size: 15px;
  color: #2b3556;
  line-height: 1.5;
  margin: 0 0 20px;
  min-height: 3em;
}
.host-checkout-pending__track {
  height: 6px;
  border-radius: 999px;
  background: #e8eaf0;
  overflow: hidden;
  margin-bottom: 14px;
}
.host-checkout-pending__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #071532, #ac8510);
  transition: width 0.35s ease;
}
.host-checkout-pending__steps-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3b8;
}
.host-checkout-pending__steps-row span {
  flex: 1;
  line-height: 1.25;
}
.host-checkout-pending__steps-row span.is-done {
  color: #15803d;
}
.host-checkout-pending__steps-row span.is-active {
  color: #ac8510;
}

/* Platobné overenie (3DS návrat / confirmPayment): rovnaká karta ako pending, bez krokov. */
.host-checkout-payment-pending .host-checkout-pending__track,
.host-checkout-payment-pending .host-checkout-pending__steps-row {
  display: none !important;
}
.host-checkout-payment-pending .host-checkout-pending__step.host-checkout-payment-pending__desc {
  min-height: auto;
  margin-bottom: 0;
}
.host-checkout-payment-pending__stripe {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #635bff;
  margin: -8px 0 4px;
}
.host-checkout-payment-pending__desc {
  color: #5b6280;
  font-size: 14px;
}

/* ============================================================
 * Host variants section v hotel.php (direct hosts)
 * ============================================================ */
.host-variants { margin: 28px 0; }
.host-variants__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7290;
}
.host-variants__empty { margin: 0 0 18px; }

.host-variants__next-available {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #e3e6ee;
  border-radius: 12px;
  background: #fafbff;
}
.host-variants__next-h {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #071532;
}
.host-variants__next-loading,
.host-variants__next-error {
  margin: 0;
  font-size: 14px;
}
.host-variants__next-error { color: #a15a0a; }
.host-variants__next-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.host-variants__next-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cdd4e8;
  background: #fff;
  color: #071532;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.host-variants__next-chip:hover {
  border-color: #5b7cfa;
  background: #f4f6ff;
}
.host-variants__next-chip-date { font-weight: 700; }
.host-variants__next-chip-price {
  font-size: 12px;
  font-weight: 500;
  color: #5b6280;
}

.host-variants__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .host-variants__grid { grid-template-columns: repeat(2, 1fr); }
}

.host-variant-card {
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(7, 21, 50, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.host-variant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 21, 50, 0.1);
}
.host-variant-card__media {
  aspect-ratio: 16/10;
  background: #f4f5f7;
  overflow: hidden;
}
.host-variant-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.host-variant-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.host-variant-card__title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  color: #071532;
  margin: 0;
}
.host-variant-card__rate-name {
  font-size: 13px;
  color: #5b6280;
  margin: -4px 0 0;
}

.host-variant-card__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.host-variant-card__badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f2f7;
  color: #2b3556;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.host-variant-card__badge--green {
  background: #dcfce7;
  color: #15803d;
}
.host-variant-card__badge--orange {
  background: rgba(172, 133, 16, 0.12);
  color: #8a6d0d;
  font-weight: 600;
}

.host-variant-card__inclusions {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.host-variant-card__inclusions li {
  font-size: 13px;
  color: #15803d;
}

.host-variant-card__cancel-summary {
  font-size: 12px;
  color: #6b7290;
  margin: 6px 0 0;
  padding: 8px 10px;
  background: #fafbfc;
  border-radius: 6px;
  border-left: 2px solid #c0c7d6;
  line-height: 1.4;
}

.host-variant-card__price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.host-variant-card__price-stay {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.host-variant-card__price-label {
  font-size: 13px;
  color: #5b6280;
}
.host-variant-card__price-stay strong {
  font-family: 'DM Sans';
    font-size: 26px;
    font-weight: 700;
    color: var(--icon-color-navy);
}
.host-variant-card__price-night {
  text-align: right;
  font-size: 12px;
  color: #6b7290;
  margin-top: 2px;
}

.host-variant-card__btn {
  margin-top: 12px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

/* Search prompt (no URL params yet) */
.host-variants__search-prompt {
  background: #fafbfc;
  border: 1px dashed #d4d8e2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.host-variants__search-prompt p {
  margin: 0 0 16px;
  color: #2b3556;
  font-size: 14px;
}
.host-variants__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}
@media (min-width: 600px) {
  .host-variants__form-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.host-variants__field--dates {
  grid-column: span 2;
}
.host-variants__date-range.ts-calendar-field {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.host-variants__form .ts-calendar-trigger {
  width: 100%;
}
.host-variants__refine {
  margin: 0 0 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(7, 21, 50, 0.04);
}
.host-variants__refine-form .btn {
  margin-top: 4px;
}
.host-variants__form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.host-variants__form span {
  font-size: 12px;
  color: #5b6280;
  font-weight: 500;
}
.host-variants__form input {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #e3e6ee;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

/* Bank QR modal (booking-bank-qr-modal + timer) */
.host-checkout-bank-qr-modal .host-checkout-bank-qr-modal__timer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
  border: 1px solid #f0d9c4;
  border-radius: 10px;
  text-align: center;
}
.host-checkout-bank-qr-modal .host-checkout-bank-qr-modal__timer-label {
  font-size: 14px;
  color: #4a5168;
}
.host-checkout-bank-qr-modal .host-checkout-bank-qr-modal__timer {
  font-family: 'DM Sans', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c2410c;
  min-width: 3.2em;
}
.host-checkout-bank-qr-modal .host-checkout-bank-qr-modal__fallback {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}
.host-checkout-bank-qr-modal .host-checkout-bank-qr-modal__fallback[hidden] {
  display: none !important;
}
