/*
 * Module 15 — Adults / Children / Child ages UI.
 * Uses the existing Aurelia Luxe tokens only: no new colours, fonts or
 * radii are introduced, so the luxury design stays untouched.
 */

/* The child ages + rooms note + warning block always sits on its own row
   inside whichever container (hero search bar, room card, booking page). */
.hl-guests-extra {
  flex: 1 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hl-guests-extra:empty { display: none; }

/* Containers that were single-row now wrap onto a second line. */
.hl-search-bar,
.booking-bar { flex-wrap: wrap; }
.hl-room-show__dates-grid .hl-guests-extra { grid-column: 1 / -1; }

/* ── Child age fields ─────────────────────────────────────────────── */
.hl-child-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  padding-top: 0.35rem;
}
.hl-child-age {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 7.5rem;
  flex: 1 1 7.5rem;
}
.hl-child-age label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-text-muted);
}
.hl-child-age select {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--hl-text-primary);
  background: var(--hl-white);
  border: 1px solid var(--hl-border);
  border-radius: calc(var(--hl-radius) * 0.65);
  padding: 0.5rem 0.7rem;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--hl-transition), box-shadow var(--hl-transition);
}
.hl-child-age select:focus {
  outline: none;
  border-color: var(--hl-gold);
  box-shadow: 0 0 0 3px rgba(177, 106, 76, 0.12);
}

/* ── Rooms required note (value comes from the PMS engine) ────────── */
.hl-rooms-required {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--hl-gold-dark);
  background: var(--hl-subtle);
  border-left: 2px solid var(--hl-gold);
  border-radius: calc(var(--hl-radius) * 0.5);
  padding: 0.5rem 0.75rem;
  margin: 0;
}
.hl-rooms-required.is-unavailable {
  color: #8C2F2F;
  background: #FBEDEA;
  border-left-color: #C0503C;
}

/* ── Module 8 informational child-age warning ─────────────────────── */
.hl-child-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--hl-gold-deep);
  background: #FDF4E9;
  border: 1px solid #EBD9BF;
  border-radius: calc(var(--hl-radius) * 0.6);
  padding: 0.65rem 0.8rem;
}
.hl-child-warning svg { flex: 0 0 auto; margin-top: 0.15rem; color: var(--hl-gold-dark); }

/* On dark surfaces (hero search bar) keep the notes legible. */
.hl-hero .hl-rooms-required,
.hl-search-bar .hl-rooms-required { background: rgba(255, 255, 255, 0.92); }
.hl-hero .hl-child-warning,
.hl-search-bar .hl-child-warning { background: rgba(253, 244, 233, 0.96); }

/* ── Booking summary extras ───────────────────────────────────────── */
.hl-summary-row.hl-summary-row--rooms span:last-child,
.hl-confirm-row.hl-confirm-row--rooms span:last-child { color: var(--hl-gold-dark); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .hl-child-age { flex: 1 1 45%; min-width: 0; }
  .hl-rooms-required, .hl-child-warning { font-size: 0.72rem; }
}
