/* =========================================================
   LEASING (/rent)
   Sections added beneath the two category tiles: the actual
   inventory, the lease terms everyone asks about, why the
   properties are owner-managed, and a short FAQ.
   ========================================================= */

.rent-block {
  padding: 56px 0 0;
}

.rent-block--tint {
  margin-top: 56px;
  padding: 48px 0;
  background: #faf8f4;
  border-top: 1px solid #f0ebe0;
  border-bottom: 1px solid #f0ebe0;
}

.rent-block__head {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.rent-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7b1f;
}

.rent-block__head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.rent-block__head p {
  margin: 0;
  font-size: 16px;
  color: #5c5c5c;
}

/* ---------- Inventory ---------- */

.rent-group + .rent-group {
  margin-top: 36px;
}

.rent-group__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1c1c;
}

.rent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rent-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ece7dc;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Photography where the property has it. Marcela Prestige has none yet, so
   those cards show the brand mark on a tinted panel of the same height,
   which keeps the row even instead of leaving a gap. */
.rent-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1ede4;
}

.rent-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rent-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f4;
  border-bottom: 1px solid #f0ebe0;
}

.rent-card__media--logo img {
  position: static;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.rent-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}

a.rent-card:hover {
  transform: translateY(-3px);
  border-color: #ddd4bf;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.rent-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rent-card__where {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  color: #8a8a8a;
}

.rent-card__text {
  display: block;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #5c5c5c;
}

.rent-card__more {
  display: block;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #9a7b1f;
}

.rent-card--soon {
  border-style: dashed;
  background: #fcfbf8;
}

.rent-card--soon .rent-card__more {
  color: #9a9a9a;
}

/* ---------- Lease terms ---------- */

.rent-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rent-term {
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ece7dc;
}

.rent-term strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.rent-term span {
  font-size: 14px;
  line-height: 1.55;
  color: #5c5c5c;
}

/* ---------- FAQ ---------- */

.rent-faq {
  max-width: 820px;
  margin: 0 auto;
}

.rent-faq details {
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 1px solid #ece7dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.rent-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #202020;
}

.rent-faq summary::-webkit-details-marker {
  display: none;
}

.rent-faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(225, 177, 44, 0.18);
  color: #5b4305;
  font-weight: 700;
  flex: 0 0 24px;
}

.rent-faq details[open] summary::before {
  content: "\2212";
}

.rent-faq details p {
  margin: 12px 0 0;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

/* ---------- Closing ---------- */

.rent-close {
  margin: 56px 0 0;
  padding: 40px;
  border-radius: 20px;
  background: #1c1c1c;
  color: #fff;
  text-align: center;
}

.rent-close h2 {
  margin: 0 0 10px;
  font-size: 26px;
  color: #fff;
}

.rent-close p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.8);
}

.rent-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.rent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}

.rent-btn:hover {
  transform: translateY(-1px);
}

.rent-btn--primary {
  background: var(--brand-yellow, #e1b12c);
  color: #1c1c1c;
}

.rent-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.rent-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .rent-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .rent-terms {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rent-block {
    padding-top: 40px;
  }

  .rent-block--tint {
    margin-top: 40px;
    padding: 36px 0;
  }

  .rent-cards,
  .rent-terms {
    grid-template-columns: 1fr;
  }

  .rent-block__head h2 {
    font-size: 24px;
  }

  .rent-close {
    margin-top: 40px;
    padding: 30px 22px;
  }

  .rent-faq details p {
    padding-left: 0;
  }

  .rent-close__actions .rent-btn {
    flex: 1 1 100%;
  }
}
