/* ============================================================
   BOOKING PAGE — MommaTrip redesign skin (app/templates/booking.html)
   Loaded via base.html's extra_css block. Tokens + .btn/.has-fallback-photo
   grammar come from styles.css. Only page-specific classes are defined
   here. See ui-redesign/PORT-CONTRACT.md.
   ============================================================ */

.booking-page { padding-bottom: 4rem; }

.page-kicker {
  display: flex;
  align-items: center;
  margin: 0 0 0.375rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-kicker::before {
  content: '';
  width: 18px;
  height: 3px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 99px;
  background: currentColor;
}

/* ── Hero ──────────────────────────────────────────────────── */
.booking-hero {
  position: relative;
  min-height: 320px;
  height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 2rem;
  background: var(--ink-deep);
}
.booking-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.booking-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9,47,44,0.1) 0%, rgba(9,47,44,0.88) 100%);
}
.booking-hero-content { position: relative; z-index: 1; padding: clamp(1.5rem, 4vw, 3rem); }
.booking-hero .page-kicker { color: var(--sun); }
.booking-dest {
  max-width: 16ch;
  margin: 0 0 0.75rem;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
}
.booking-meta { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.booking-meta-item {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Section shell ─────────────────────────────────────────── */
.booking-section {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.booking-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1.5px dashed var(--line-strong);
  background: var(--sun-soft);
}
.booking-section-icon { font-size: 1.25rem; }
.booking-section-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink-deep); }
.booking-section-body { padding: 1.25rem 1.5rem; }

.result-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.select {
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.helper { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ── Transport tips ────────────────────────────────────────── */
.transport-tips { display: flex; flex-direction: column; gap: 0.5rem; }
.transport-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9375rem;
  background: var(--mint-light);
  border: 1.5px solid #75ae92;
  border-radius: 13px;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
}
.transport-tip::before { content: '→'; color: var(--forest-600); flex-shrink: 0; font-weight: 900; }

/* ── Hotel card(s) ─────────────────────────────────────────── */
.hotel-booking-card { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.hotel-booking-card + .hotel-booking-card { border-top: 1.5px dashed var(--line-strong); padding-top: 1.25rem; margin-top: 1.25rem; }
.hotel-booking-img-wrap {
  width: 160px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
}
.hotel-booking-img { width: 100%; height: 100%; object-fit: cover; background: var(--mint-light); }
.hotel-booking-info { flex: 1; min-width: 220px; }
.hotel-booking-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink-deep); margin-bottom: 0.25rem; }
.hotel-booking-stars { color: var(--sun); font-size: 0.9rem; margin-bottom: 0.5rem; }
.hotel-booking-price { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.875rem; }
.hotel-booking-price strong { font-size: 1.2rem; color: var(--coral-dark); }

/* ── Booking links (hotel / itinerary / book section) ─────────
   Real JS renderers (booking.html script, affLink()) emit this exact
   grammar; only the visual treatment is defined here. */
.booking-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.booking-link:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.booking-link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.booking-link-primary { background: var(--coral); color: white; border-color: var(--coral-dark); }
.booking-link-primary:hover { background: var(--coral-dark); }
.booking-link-secondary { background: var(--white); color: var(--ink); }
.booking-link-secondary:hover { background: var(--mint-light); }

/* ── Day accordion (real JS renderer grammar) ─────────────────── */
.day-accordion { border: 1.5px solid var(--line-strong); border-radius: 14px; margin-bottom: 1rem; overflow: hidden; }
.day-accordion:last-child { margin-bottom: 0; }
.day-accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9375rem 1.25rem;
  cursor: pointer;
  background: var(--sun-soft);
  user-select: none;
}
.day-accordion-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--ink-deep); }
.day-accordion-date { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.day-accordion-count { margin-left: auto; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.375rem; font-weight: 700; }
.day-accordion-chevron { font-size: 0.7rem; color: var(--ink); transition: transform 0.18s ease; }
.day-accordion.open .day-accordion-chevron { transform: rotate(90deg); }
.day-accordion-body { padding: 0 1.25rem 1.125rem; display: none; }
.day-accordion.open .day-accordion-body { display: block; }
.day-weather-badge {
  font-size: 0.78rem;
  color: var(--forest-700);
  background: var(--forest-100);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.day-weather-badge.severe { color: #92400e; background: #fef3c7; }
.packing-line {
  font-size: 0.85rem;
  color: var(--forest-700);
  background: var(--earth-50);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.weather-attribution { font-size: 0.75rem; color: var(--ink-300); margin-top: 0.375rem; }
.weather-attribution a { color: inherit; text-decoration: underline; }

/* ── Distance between consecutive stops ───────────────────────── */
.distance-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.125rem 0 0.125rem 22px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}
.distance-divider a { color: var(--forest-600); text-decoration: none; }
.distance-divider a:hover { text-decoration: underline; }

/* ── Attraction row (real JS renderer grammar) ─────────────────── */
.attraction-row { display: flex; align-items: flex-start; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px dashed var(--line); }
.attraction-row:last-child { border-bottom: none; }
.attraction-thumb-wrap { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1.5px solid var(--line-strong); }
.attraction-thumb { width: 100%; height: 100%; object-fit: cover; background: var(--mint-light); }
.attraction-name { font-weight: 700; color: var(--ink-deep); font-size: 0.9375rem; margin-bottom: 0.2rem; }
.attraction-name a { color: inherit; text-decoration: none; }
.attraction-name a:hover { text-decoration: underline; }
.attraction-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }
.attraction-meta span { margin-right: 0.75rem; }
.attraction-meta .item-time-chip { font-weight: 700; color: var(--forest-600); }
.attraction-meta .item-time-chip.conflict { color: var(--coral-dark); }

/* ── Nap row (quiet band, no booking affordance) ──────────────── */
.attraction-row.nap-row {
  padding: 0.625rem 0.875rem;
  background: var(--mint-light);
  border: 1.5px solid #75ae92;
  border-radius: 13px;
  border-bottom: 1.5px solid #75ae92;
}
.attraction-row.nap-row .attraction-name { font-size: 0.875rem; color: var(--forest-600); margin-bottom: 0; }
.attraction-row.nap-row .attraction-meta { margin-top: 0.2rem; margin-bottom: 0; }

/* ── Share/export/finalize controls ───────────────────────────
   export-pdf, export-docx and finalize-btn have their textContent
   swapped by inline script on click (e.g. "Preparing…"), so their
   markup must stay a single flat text node — no nested icon/label
   spans here, or the JS's plain-text restore would flatten them. */
.action-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.action-btn:hover:not(:disabled) { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); background: var(--mint-light); }
.action-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.action-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.action-btn-primary { background: var(--coral); color: white; }
.action-btn-primary:hover:not(:disabled) { background: var(--coral-dark); }
.action-section-note { margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

/* ── Finalize ──────────────────────────────────────────────── */
.finalize-section {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--ink-deep);
  color: white;
}
.finalize-section h2 { font-family: var(--font-display); font-size: 1.75rem; color: white; margin: 0 0 0.5rem; }
.finalize-section p { color: rgba(255,255,255,0.75); margin: 0 0 1.25rem; }

@media (max-width: 700px) {
  .hotel-booking-card { flex-direction: column; }
  .hotel-booking-img-wrap { width: 100%; height: 180px; }
}
