/* Additions for the generated project pages (everything else comes from css/project-page.css, the Florida design). */

/* hero: the project's own photograph in place of the film */
.project-hero-photo { position: absolute; inset: 0; overflow: hidden; background: var(--charcoal-deep); }
.project-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* location map */
#project-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; background: #F5F1E9; }

/* gallery with fewer than five frames */
.gallery-triptych-grid.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-triptych-grid.count-1 .is-hero { grid-row: auto; }
.gallery-triptych-grid.count-2 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr; }
.gallery-triptych-grid.count-2 .is-hero { grid-row: auto; }
.gallery-triptych-grid.count-3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-triptych-grid.count-4 { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-triptych-grid.count-4 .gallery-triptych-tile:last-child { grid-column: span 2; }

/* highlight lists have no page-specific icon set: keep the grid tidy at any count */
.amenities-monograph-grid li { min-width: 0; }
.amenities-monograph-grid.is-few li { flex-basis: auto; }

/* small screens: stack the FAQ columns and let the plan tabs wrap */
@media (max-width: 960px) {
  .faq-layout-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-monograph-list { min-width: 0; }
  .residence-nav-tabs { flex-wrap: wrap; gap: 14px 24px; }
}

/* sparse highlights: fewer than six items get larger tiles that span the row, and balanced spacing, so the section does not look empty */
.amenities-section.is-sparse { padding-bottom: 72px; }
.amenities-monograph-grid.is-few { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 40px 28px; padding-top: 48px; }
.amenities-monograph-grid.is-few li { gap: 18px; }
.amenities-monograph-grid.is-few .amenity-circular-ico { width: 88px; height: 88px; }
.amenities-monograph-grid.is-few .amenity-circular-ico svg { width: 38px; height: 38px; }
.amenities-monograph-grid.is-few li span:last-child { font-size: 0.82rem; max-width: 220px; }
@media (max-width: 960px) { .amenities-monograph-grid.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); } .amenities-monograph-grid.is-few li { flex-basis: auto; } }

/* TN RERA registration: compact verification card in the overview */
.rera-card {
  margin-top: 20px; max-width: 470px;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-subtle, #CFC5B4);
  border-left: 3px solid var(--interactive, #A21C40);
}
.rera-card img { display: block; width: 180px; max-width: 46%; height: auto; flex: 0 0 auto; }
.rera-card p { margin: 0; font: var(--text-body-sm, 400 0.9rem/1.5 sans-serif); font-size: 0.78rem; line-height: 1.45; color: var(--text-secondary, #5B544B); }
.rera-card strong { display: block; font: 600 0.62rem/1.2 var(--font-sans, sans-serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary, #2A2723); margin-bottom: 4px; }
.rera-card a { color: var(--interactive, #A21C40); }
@media (max-width: 640px) {
  .rera-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rera-card img { width: 190px; max-width: 100%; }
}

/* rows of four / three on wide screens when five per row would leave one item alone */
@media (min-width: 961px) {
  .amenities-monograph-grid.cols-4 li { flex-basis: calc((100% - 42px) / 4); }
  .amenities-monograph-grid.cols-3 li { flex-basis: calc((100% - 28px) / 3); }
}
