/* my-bookings.css — styles only the My Bookings page needs: lookup box and booking rows.
   Used by: pages/my-bookings.html */


/* Lookup box, results and help row share one centred column */
.lookup-card,
.booking-list,
.lookup-help {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

/* Photo band at the top (shared .photo-band styles are in layout.css) */
.lookup-hero {
  --photo-dim: 0.48;
  padding: 3rem 0 4rem;
  text-align: center;
}

.lookup-hero .photo-band-img {
  object-position: center 65%;
}

.lookup-hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.lookup-lead {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-wrap: balance;          /* splits the line evenly instead of leaving one word alone */
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

/* White box on the photo (a framed dark box in dark mode) */
.lookup-card {
  padding: 1.75rem;
  background-color: var(--color-bg);
  text-align: left;
}

[data-theme="dark"] .lookup-card {
  border: 1px solid var(--color-border);
}

.lookup-row {
  display: flex;
  gap: 0.75rem;
}

.lookup-row .form-control {
  flex: 1;
}

.demo-hint {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.demo-hint .link-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* [TOPIC: grid]  three short help items under thin rules */
.lookup-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0;
  list-style: none;
}

/* No results yet → the help row moves up */
.booking-list:empty + .lookup-help {
  margin-top: 0;
}

.lookup-help li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.lookup-help .icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-red-text);   /* same red line icons as the home page */
}

.lookup-help h2 {
  margin-bottom: 0.35rem;
  font-size: 1.125rem;
}

.lookup-help p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* [TOPIC: grid]  picture | details | price + button */
.booking-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}

.booking-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.booking-card.is-cancelled img {
  opacity: 0.4;
}

.booking-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.booking-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.375rem;
}

.booking-card-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.booking-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

.booking-card-note {
  color: var(--color-muted);
  font-size: 0.875rem;
}


/* [TOPIC: media queries] */
@media (max-width: 768px) {
  .lookup-help {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .booking-card {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .booking-card-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: left;
  }
}

@media (max-width: 480px) {
  .lookup-row {
    flex-direction: column;
  }

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

  .booking-card img {
    max-height: 10rem;
  }
}
