/* ============================================================
   Apartments Veronika — Booking Engine
   ============================================================ */

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.booking-page {
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 6rem);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

/* ── STEP INDICATOR ──────────────────────────────────────── */
.booking-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Connector line between steps */
.booking-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50% + 18px);
  right: calc(50% + 18px);
  height: 2px;
  background: var(--border-soft);
  z-index: -1;
}

.booking-step:first-child::before { display: none; }

.booking-step.is-complete::before {
  background: var(--accent);
}

.booking-step__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text3);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.booking-step.is-active .booking-step__circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.booking-step.is-complete .booking-step__circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

.booking-step.is-complete .booking-step__circle::after {
  content: '✓';
  font-size: 0.875rem;
}

.booking-step.is-complete .booking-step__num {
  display: none;
}

.booking-step__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text3);
  text-align: center;
  white-space: nowrap;
}

.booking-step.is-active .booking-step__label {
  color: var(--accent);
  font-weight: 600;
}

.booking-step.is-complete .booking-step__label {
  color: var(--text2);
}

/* ── FORM PANELS ─────────────────────────────────────────── */
.booking-panel {
  display: none;
}

.booking-panel.is-active {
  display: block;
  animation: booking-panel-in 0.30s ease both;
}

@keyframes booking-panel-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.booking-panel__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.booking-panel__subtitle {
  font-size: 0.9375rem;
  color: var(--text2);
  margin-bottom: 2rem;
}

/* ── FORM FIELD GROUPS ───────────────────────────────────── */
.booking-field-group {
  margin-bottom: 1.25rem;
}

.booking-field-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px;
}

.booking-field-group label .req {
  color: var(--accent);
  margin-left: 2px;
}

.booking-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.booking-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.booking-input::placeholder { color: var(--text3); }

textarea.booking-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select.booking-input {
  cursor: pointer;
  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='%238B88A0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Row of two inputs */
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── DATE RANGE PICKER ───────────────────────────────────── */
.booking-date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-date-range:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.booking-date-half {
  padding: 13px 16px;
  background: var(--surface);
  transition: background 0.15s ease;
}

.booking-date-half:first-child {
  border-right: 1px solid var(--border-soft);
}

.booking-date-half:hover { background: var(--surface2); }

.booking-date-half__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
  display: block;
}

.booking-date-half input[type="date"] {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  width: 100%;
  outline: none;
  cursor: pointer;
  padding: 0;
}

/* ── GUEST STEPPER SECTION ───────────────────────────────── */
.booking-guests-section {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.booking-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
}

.booking-guest-row:last-child { border-bottom: none; }

.booking-guest-row__info {}
.booking-guest-row__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.booking-guest-row__hint {
  font-size: 0.8rem;
  color: var(--text3);
}

.booking-guest-row__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bk-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.bk-stepper-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.bk-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bk-stepper-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  min-width: 24px;
  text-align: center;
}

/* Children ages grid */
.bk-children-ages {
  display: none;
  padding: 14px 18px;
  border-top: 1px solid var(--divider);
  background: var(--surface2);
}

.bk-children-ages.is-visible { display: block; }

.bk-children-ages__label {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 10px;
}

.bk-children-ages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.bk-age-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bk-age-field label {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.bk-age-field select {
  padding: 7px 10px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.bk-age-field select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── APARTMENT SELECTOR ──────────────────────────────────── */
.booking-apt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}

.booking-apt-option {
  position: relative;
}

.booking-apt-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.booking-apt-option__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-apt-option input:checked + .booking-apt-option__label {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.booking-apt-option__label:hover {
  border-color: var(--accent-mid);
  background: var(--surface2);
}

.booking-apt-option__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.booking-apt-option__detail {
  font-size: 0.75rem;
  color: var(--text3);
}

.booking-apt-option__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.booking-apt-option input:checked ~ .booking-apt-option__check {
  display: flex;
}

/* ── PROMO CODE ───────────────────────────────────────────── */
.booking-promo {
  display: flex;
  gap: 10px;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.booking-promo .booking-field-group {
  flex: 1;
  margin-bottom: 0;
}

.booking-promo__btn {
  padding: 11px 20px;
  background: var(--surface2);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.booking-promo__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.booking-promo__result {
  font-size: 0.8125rem;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.booking-promo__result.is-success {
  display: flex;
  background: var(--success-bg);
  color: var(--text);
  border: 1px solid rgba(46,204,113,0.25);
}

.booking-promo__result.is-error {
  display: flex;
  background: var(--error-bg);
  color: var(--text);
  border: 1px solid rgba(229,62,62,0.25);
}

/* ── PRICE SUMMARY (step 1) ──────────────────────────────── */
.booking-price-summary {
  background: var(--surface2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 1.25rem;
  display: none;
}

.booking-price-summary.is-visible { display: block; }

.booking-price-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 4px 0;
  color: var(--text2);
}

.booking-price-summary__row.total {
  border-top: 1px solid var(--divider);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.booking-price-summary__note {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── CAPACITY WARNING ────────────────────────────────────── */
.bk-capacity-warn {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--warning-bg);
  border: 1px solid rgba(246,173,85,0.30);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.bk-capacity-warn.is-visible { display: flex; }

/* ── REVIEW PANEL (step 3) ───────────────────────────────── */
.booking-review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.booking-review-card__section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.booking-review-card__section:last-child { border-bottom: none; }

.booking-review-card__section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
}

.booking-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.9rem;
}

.booking-review-row__label { color: var(--text2); }
.booking-review-row__value { font-weight: 500; color: var(--text); }

.booking-review-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--accent-light);
}

.booking-review-total__label {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.booking-review-total__value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.booking-review-total__note {
  font-size: 0.75rem;
  color: var(--text2);
  text-align: right;
}

/* GDPR checkbox */
.bk-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding: 14px 16px;
  background: var(--surface2);
  border-radius: var(--radius-md);
}

.bk-gdpr input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.bk-gdpr label {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.6;
  cursor: pointer;
  margin: 0;
}

.bk-gdpr label a { color: var(--accent); }

/* ── NAV BUTTONS ─────────────────────────────────────────── */
.booking-nav {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
}

.booking-nav .btn-back {
  background: var(--surface2);
  border: 1.5px solid var(--border-soft);
  color: var(--text2);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-nav .btn-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── SUCCESS STATE ───────────────────────────────────────── */
.booking-success {
  display: none;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  animation: booking-panel-in 0.4s ease both;
}

.booking-success.is-visible { display: block; }

.booking-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(46,204,113,0.25);
}

.booking-success__ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin: 1rem 0 1.5rem;
}

/* ── SIDEBAR SUMMARY CARD ────────────────────────────────── */
.booking-summary-card {
  position: sticky;
  top: calc(var(--banner-h,0px) + var(--navbar-h,72px) + 24px);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.booking-summary-card__cover {
  height: 180px;
  background: var(--surface2);
  overflow: hidden;
  position: relative;
}

.booking-summary-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-summary-card__body {
  padding: 1.25rem;
}

.booking-summary-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.booking-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.booking-summary-row__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.booking-summary-row__text { color: var(--text2); line-height: 1.4; }
.booking-summary-row__text strong { color: var(--text); display: block; }

.booking-summary-card__price {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}

.booking-summary-card__price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text2);
  margin-bottom: 6px;
}

.booking-summary-card__price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

.booking-summary-card__price-total .label {
  font-size: 0.875rem;
  color: var(--text2);
}

.booking-summary-card__price-total .amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary-card {
    position: static;
    order: -1;
  }

  .booking-summary-card__cover { height: 140px; }

  .booking-steps {
    gap: 0;
  }

  .booking-step__label { display: none; }
}

@media (max-width: 540px) {
  .booking-row { grid-template-columns: 1fr; }
  .booking-date-range { grid-template-columns: 1fr; }
  .booking-date-half:first-child { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .booking-nav { flex-direction: column-reverse; }
  .booking-nav .btn-back,
  .booking-nav .btn { width: 100%; }
}
/* ── Pricelist selector toggle (booking page) ────────────────────────────── */
/* Mirrors the apartment option style so it feels native */

.bk-pricelist-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.bk-pricelist-option {
  position: relative;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--surface);
}

.bk-pricelist-option:hover {
  border-color: var(--accent);
}

.bk-pricelist-option.is-active {
  border-color: var(--accent);
  background: var(--accent-light, rgba(128,104,254,.06));
}

.bk-pricelist-option__name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 2px;
}

.bk-pricelist-option__price {
  display: block;
  font-size: 0.8rem;
  color: var(--text2);
}

.bk-pricelist-option__check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
}

.bk-pricelist-option.is-active .bk-pricelist-option__check {
  display: flex;
}
