/* index.css: only used by templates/index.html
   Sections: hero image -> how it works -> search and size chips -> closet grid -> wider screens */
/* ==========================================================
   HERO IMAGE
   ========================================================== */

.hero {
  position: relative;
}
.hero img {
  width: 100%;
  height: clamp(240px, 62vw, 600px);
  object-fit: cover;
  object-position: 30% 40%;
  display: block;
}
.cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(58, 14, 22, 0.8));
  color: #f8eedd;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cta p {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(18px, 3vw, 28px);
}
.cta .btn {
  background: #f8eedd;
  color: #6e1f2b;
  border-color: #f8eedd;
}

/* ==========================================================
   HOW IT WORKS (3 steps and the terms dropdown)
   ========================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.step .n {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  line-height: 1;
  color: var(--maroon);
  min-width: 30px;
}
.step h3 {
  margin: 0 0 4px;
}
.step p {
  margin: 0;
}
details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--maroon);
}
ol li {
  margin-bottom: 8px;
}

/* OUR LOCATION SECTION */
#map {
  background: var(--panel);
}

#map h2 {
  margin: 0;
}
/* OUR LOCATION SECTION */

/* REVIEW SECTION */
.review-images {
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
}

.review-images img,
.review-images iframe {
  flex: 1 1 calc((100% - 5px) / 2); /* start at 2 per row, then grow to fill the row */
  min-width: 0;
  height: 300px;
}

.review-images img {
  object-fit: cover; /* crop instead of stretching when a photo grows */
  object-position: center top; /* keeps faces in frame */
}

/* tablets and small laptops: 3 per row */
@media (min-width: 600px) {
  .review-images img,
  .review-images iframe {
    flex-basis: calc((100% - 10px) / 3);
  }
}

/* bigger than about 900px: 6 per row */
@media (min-width: 900px) {
  .review-images img,
  .review-images iframe {
    flex-basis: calc((100% - 25px) / 6);
  }
}
/* REVIEW SECTION */

/* OUR CLOSET SECTION */
#closet {
  background: var(--panel);
}
/* OUR CLOSET SECTION */

/* ==========================================================
   SEARCH BAR AND SIZE CHIPS
   ========================================================== */

.bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.bar select {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.bar input[type="search"] {
  flex: 1 1 100%;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  margin-bottom: 6px;
}
.chip {
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.chip[aria-current="true"] {
  background: var(--maroon);
  color: var(--panel);
}

/* ==========================================================
   CLOSET GRID (outfit cards)
   ========================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.card {
  display: block;
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.sw {
  height: 190px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.sw svg {
  height: 90%;
  opacity: 0.55;
}
.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.price {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--tag);
  color: var(--tagink);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 15px;
  z-index: 1;
}
.sizes {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  z-index: 1;
}
.card .b {
  padding: 10px;
}
.card h3 {
  font-size: 15px;
}
.card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================
   WIDER SCREENS (tablet and up). Phone styles are the defaults above.
   ========================================================== */

@media (min-width: 700px) {
  .hero img {
    height: clamp(300px, 45vw, 600px);
  }
  .cta {
    padding: 56px 24px 22px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step {
    display: block;
  }
  .step .n {
    font-size: 54px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
  .sw {
    height: 230px;
  }
  .card .b {
    padding: 12px 14px;
  }
  .card h3 {
    font-size: 18px;
  }
  .price {
    font-size: 18px;
  }
  .bar input[type="search"] {
    flex: 1 1 240px;
  }
}

/* ---- 3 Day Rental panel (responsive) ---- */
#how .rental3 {
  --r3-card: #f3e9de;
  --r3-ink: #7b3b2a;
  color: var(--r3-ink);
  margin: 28px 0;
}
#how .rental3 .rental3-title {
  margin: 0 0 16px;
  text-align: left;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--r3-ink);
}

