/* 3 Day Rental panel: used on the home page and the item page.
   Sizes follow the width of the panel itself (container queries), so it adapts
   whether it sits in a narrow column or spans the full page. */
#rental3 {
  --r3-card: #f3e9de;
  --r3-ink: #7b3b2a;
  container-type: inline-size;
  color: var(--r3-ink);
  margin: 24px 0;
}
#rental3 .rental3-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--r3-ink);
}

/* Day 1 / 2 / 3 cards: three across at every size */
#rental3 .rental3-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}
#rental3 .r3card {
  background: var(--r3-card);
  border: 1px solid rgba(123, 59, 42, .15);
  border-radius: 16px;
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
#rental3 .r3day {
  align-self: stretch;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
}
#rental3 .r3label { font-size: 1.05rem; }
#rental3 .r3card img {
  height: 64px;                         /* fallback */
  height: clamp(56px, 11cqw, 120px);    /* grows with the panel, capped at 120px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Late returns / Item damage: stacked in narrow spaces, side by side when there's room */
#rental3 .rental3-policies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
#rental3 .r3policy {
  background: var(--r3-card);
  border: 1px solid rgba(123, 59, 42, .15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#rental3 .r3policy img {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: contain;
}
#rental3 .r3policy h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#rental3 .r3policy p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
}

/* Roomy panel (tablet, desktop, or full-width on a page) */
@container (min-width: 600px) {
  #rental3 .rental3-days { gap: 16px; }
  #rental3 .r3card { padding: 18px 16px 20px; gap: 14px; }
  #rental3 .r3day,
  #rental3 .r3label { font-size: 1.2rem; }
  #rental3 .rental3-policies { grid-template-columns: 1fr 1fr; }
  #rental3 .r3policy { padding: 22px; gap: 20px; }
  #rental3 .r3policy img { width: 84px; height: 84px; }
  #rental3 .r3policy h4 { font-size: 1.3rem; }
  #rental3 .r3policy p { font-size: 1.02rem; }
}
