/* ============================================
   Booking Page — Hero
   ============================================ */

.booking-hero {
  position: relative;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-8);
  background-color: var(--color-bg-alt);
}

.booking-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.booking-hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}


/* ============================================
   Booking Page — Layout
   ============================================ */

.booking-content {
  padding-block: var(--space-12);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}


/* ============================================
   Form Sections
   ============================================ */

.booking-section {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-sand-dark);
}

.booking-section:last-of-type {
  border-bottom: none;
}

.booking-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.booking-section__info {
  margin-bottom: var(--space-4);
}

.booking-section__info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.booking-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}


/* ============================================
   Form Fields
   ============================================ */

.booking-field__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.booking-field__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-sand-light);
  border: 1px solid var(--color-sand-dark);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.booking-field__input:focus {
  outline: none;
  border-color: var(--color-sea);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.booking-field__input--error {
  border-color: #DC3C3C;
  box-shadow: 0 0 0 3px rgba(220, 60, 60, 0.1);
}

.booking-field__error {
  font-size: var(--text-xs);
  color: #8B2020;
  margin-top: var(--space-1);
}

.booking-field__textarea {
  resize: vertical;
  min-height: 100px;
}


/* ============================================
   Checkbox & Radio
   ============================================ */

.booking-field__checkbox,
.booking-field__radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
}

.booking-field__checkbox input,
.booking-field__radio input {
  accent-color: var(--color-sea);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ============================================
   Conditional Fields
   ============================================ */

.booking-field--conditional {
  grid-column: 1 / -1;
  padding-left: var(--space-8);
  border-left: 2px solid var(--color-sand-dark);
  animation: booking-reveal 0.3s ease;
}

@keyframes booking-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   Summary Sidebar
   ============================================ */

.booking-summary__card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.booking-summary__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.booking-summary__property {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.booking-summary__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.booking-summary__row strong {
  color: var(--color-text);
}

.booking-summary__divider {
  height: 1px;
  background-color: var(--color-sand-dark);
  margin: var(--space-5) 0;
}

.booking-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.booking-summary__total strong {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-sea);
}

.booking-summary__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

.booking-summary__shimmer {
  display: block;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-sand-dark) 25%, var(--color-sand) 50%, var(--color-sand-dark) 75%);
  background-size: 200% 100%;
  animation: booking-shimmer 1.5s ease-in-out infinite;
}

@keyframes booking-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.booking-summary__card .booking-submit-btn {
  width: 100%;
  justify-content: center;
}


/* ============================================
   Loading / Error States
   ============================================ */

.booking-form__loading {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}

.booking-form__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-sand-dark);
  border-top-color: var(--color-sea);
  border-radius: 50%;
  animation: booking-spin 0.6s linear infinite;
  margin: 0 auto var(--space-4);
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

.booking-form__error {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.booking-form__error p {
  font-size: var(--text-lg);
  color: #8B2020;
  margin-bottom: var(--space-6);
}

.booking-form__message {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.booking-form__message--error {
  background: rgba(220, 60, 60, 0.06);
  border: 1px solid rgba(220, 60, 60, 0.2);
  color: #8B2020;
}


/* ============================================
   Mobile Submit (hidden on desktop)
   ============================================ */

.booking-form__submit-mobile .booking-submit-btn {
  width: 100%;
  justify-content: center;
}


/* ============================================
   Success State
   ============================================ */

.booking-success {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-16) 0;
}

.booking-success__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
}

.booking-success__icon {
  width: 64px;
  height: 64px;
  background: rgba(44, 95, 124, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--color-sea);
}

.booking-success h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.booking-success p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.booking-success__email {
  font-weight: 500;
  color: var(--color-sea);
}


/* ============================================
   Responsive
   ============================================ */

@media (min-width: 768px) {
  .booking-layout {
    grid-template-columns: 1fr 380px;
  }

  .booking-section__grid {
    grid-template-columns: 1fr 1fr;
  }

  .booking-field--full {
    grid-column: 1 / -1;
  }

  .booking-form__submit-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .booking-hero__title {
    font-size: var(--text-3xl);
  }

  .booking-summary__card {
    position: static;
    box-shadow: var(--shadow-md);
  }

  .booking-summary {
    order: -1;
  }

  #booking-submit-desktop {
    display: none;
  }
}

/* Start-Panel (Aufruf ohne Buchungsparameter) */
.booking-start { padding: var(--space-4, 1rem) 0; }
.booking-start__intro { color: var(--color-text-muted); margin-bottom: var(--space-6, 1.5rem); }
.booking-start__submit { margin-top: var(--space-4, 1rem); }
.booking-start .booking-field { margin-bottom: var(--space-4, 1rem); }
