/* ============================================
   CÀ LETIZIA VENICE – BOOKING SYSTEM STYLES
   ============================================ */

/* ============================================
   BOOKING PAGE LAYOUT
   ============================================ */

.booking-page {
  min-height: 100vh;
  background: var(--ivory);
  padding-top: 80px;
}

.booking-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.booking-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.booking-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  align-items: start;
}

/* ============================================
   BOOKING STEPS
   ============================================ */

.booking-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.booking-step {
  flex: 1;
  padding: 1rem;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--ivory-dark);
}

.booking-step:last-child { border-right: none; }

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--taupe-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.booking-step.active .step-number {
  background: var(--gold);
  color: var(--white);
}

.booking-step.done .step-number {
  background: var(--charcoal);
  color: var(--white);
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
}

.booking-step.active .step-label { color: var(--charcoal); }

/* ============================================
   CALENDAR
   ============================================ */

.calendar-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-sm);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.calendar-nav {
  background: none;
  border: 1.5px solid var(--beige-dark);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--charcoal);
  font-size: 1rem;
}

.calendar-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.calendar-month-year {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-weekday {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.calendar-day:hover:not(.disabled):not(.blocked) {
  background: var(--gold-light);
}

.calendar-day.today {
  font-weight: 700;
  color: var(--gold-dark);
}

.calendar-day.selected-start,
.calendar-day.selected-end {
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.calendar-day.in-range {
  background: rgba(201, 169, 110, 0.15);
  border-radius: 0;
}

.calendar-day.selected-start { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.calendar-day.selected-end   { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.calendar-day.blocked,
.calendar-day.disabled {
  color: var(--beige-dark);
  cursor: not-allowed;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.calendar-day.blocked {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 6px
  );
}

.calendar-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--taupe-dark);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-dot.available  { background: var(--ivory-dark); border: 1px solid var(--beige-dark); }
.legend-dot.selected   { background: var(--gold); }
.legend-dot.blocked    { background: var(--beige-dark); }
.legend-dot.range      { background: rgba(201, 169, 110, 0.25); border: 1px solid var(--gold-light); }

/* ============================================
   BOOKING SUMMARY (sidebar)
   ============================================ */

.booking-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.summary-header {
  background: linear-gradient(135deg, var(--wood-dark), var(--charcoal));
  color: var(--white);
  padding: 1.5rem;
}

.summary-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.summary-header p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.summary-body { padding: 1.5rem; }

.summary-dates {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.summary-date-box {
  flex: 1;
  background: var(--ivory-dark);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  text-align: center;
}

.summary-date-box .date-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.25rem;
}

.summary-date-box .date-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.summary-nights {
  text-align: center;
  font-size: 0.8rem;
  color: var(--taupe);
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  background: var(--ivory-dark);
  border-radius: var(--radius-sm);
}

.summary-nights strong { color: var(--charcoal); }

.summary-line-items {
  border-top: 1px solid var(--ivory-dark);
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.summary-line .label { color: var(--taupe-dark); }
.summary-line .value { font-weight: 600; color: var(--charcoal); }
.summary-line .value.discount { color: var(--gold-dark); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--gold-light);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.summary-total .label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
}

.summary-total .value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.summary-deposit-note {
  font-size: 0.78rem;
  color: var(--taupe);
  text-align: center;
  margin: 0.75rem 0;
  background: var(--ivory);
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ============================================
   GUEST INFO FORM
   ============================================ */

.guest-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.guest-form h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: var(--space-md) 0 var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--beige-dark);
}

/* ============================================
   PAYMENT
   ============================================ */

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.payment-option {
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.payment-option:hover { border-color: var(--gold-light); }

.payment-option.selected {
  border-color: var(--gold);
  background: var(--ivory);
}

.payment-option-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.payment-option-desc {
  font-size: 0.8rem;
  color: var(--taupe-dark);
  line-height: 1.5;
}

.payment-option-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--white);
  transition: var(--transition);
}

.payment-option.selected .payment-option-check {
  background: var(--gold);
  border-color: var(--gold);
}

.stripe-element {
  background: var(--white);
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  transition: var(--transition);
}

.stripe-element.focused { border-color: var(--gold); }

.stripe-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--taupe);
  font-size: 0.75rem;
}

.stripe-trust-icon { color: var(--gold); }

/* ============================================
   CONFIRMATION PAGE
   ============================================ */

.confirmation-page {
  min-height: 100vh;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
}

.confirmation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
}

.confirmation-header {
  background: linear-gradient(135deg, var(--wood-dark), var(--charcoal));
  padding: var(--space-md);
  text-align: center;
  color: var(--white);
}

.confirmation-check {
  width: 72px;
  height: 72px;
  background: rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-sm);
  border: 2px solid var(--gold);
}

.confirmation-body { padding: var(--space-md); }

.confirmation-ref {
  background: var(--ivory-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: var(--space-md);
  border: 1px solid var(--beige-dark);
}

.confirmation-ref .ref-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
}

.confirmation-ref .ref-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ============================================
   RESPONSIVE BOOKING
   ============================================ */

@media (max-width: 992px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary-card { position: static; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .summary-dates { flex-direction: column; }
}

/* Riquadro tariffa inline: visibile solo su mobile, dove il riepilogo
   laterale finisce in fondo alla pagina */
.mobile-price-recap {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
@media (max-width: 992px) {
  .mobile-price-recap.visible { display: block; }
}
