/* Rentals index (/rentals): date picker hero + per-rental availability cards.
   Order-independent — owns the .avail-* selectors only; media queries at the
   end (project CSS convention). */

.avail-hero {
  position: relative;
  overflow: hidden;
  padding: 56px var(--pad-x) 64px;
  background: var(--cream);
}

.avail-blob {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.18;
}

.avail-dot {
  position: absolute;
  top: 28px;
  left: 40%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
}

.avail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

/* Heading and lead are centred like the About and Contact heroes; the picker
   card below keeps its own left-aligned field labels. */
.avail-hero h1,
.avail-lead {
  text-align: center;
}

.avail-hero h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.avail-hero h1 .accent {
  color: var(--pink);
}

.avail-lead {
  margin: 0 0 28px;
  color: var(--body);
  font-size: 1.1rem;
  font-weight: 600;
}

/* The picker card */
.avail-picker {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.avail-field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.avail-field span {
  padding-left: 6px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 0.9rem;
  font-weight: 800;
}

.avail-field input {
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid #e5e2da;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.avail-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62, 193, 255, 0.22);
}

.avail-submit {
  min-height: 52px;
  margin-bottom: 6px;
  white-space: nowrap;
}

/* Results. No bottom padding: the shared "Where We Deliver" section that
   follows supplies the gap, matching the contact page. */
.avail-results {
  padding: 48px var(--pad-x) 0;
  background: #fff;
}

.avail-results-inner {
  max-width: 960px;
  margin: 0 auto;
}

.avail-notice {
  margin: 0;
  padding: 32px 28px;
  background: var(--sky-wash);
  border-radius: var(--card-radius);
  color: var(--body);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.avail-notice--problem {
  background: #fff1f4;
  color: var(--no-ink);
}

.avail-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.avail-count {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.7rem;
  font-weight: 800;
}

.avail-range {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.avail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.avail-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.avail-media {
  position: relative;
}

/* Same 3:2 photo slot as the homepage card / detail hero (one crop everywhere). */
.avail-photo {
  vertical-align: top;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.avail-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--green);
}

.avail-card.is-booked .avail-badge {
  background: var(--ink);
}

.avail-card.is-booked .avail-photo {
  filter: saturate(0.55);
}

.avail-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 24px;
}

.avail-body h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 800;
}

.avail-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.avail-body h3 a:hover {
  color: var(--pink);
}

.avail-specs {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.avail-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.avail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.avail-price strong {
  color: var(--pink);
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.avail-price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.avail-book,
.avail-next {
  width: 100%;
  text-align: center;
}

.avail-conflict {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.avail-details {
  color: var(--ink); /* 0.9rem: pink would be 3.4:1 */
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 820px) {
  .avail-picker {
    flex-direction: column;
    align-items: stretch;
  }

  .avail-submit {
    margin-bottom: 0;
  }

  .avail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .avail-hero {
    padding: 40px 20px 48px;
  }

  .avail-results {
    padding: 36px 20px 0;
  }
}
