/* ---------------- HEADER BANNER ---------------- */
.type-header {
  background: var(--brand-forest);
  color: #fff;
  /* Horizontal inset comes from the inner .container div (see
     floorplan-type.mjs) — a second helping of padding here doubled up
     with it, pushing type-title 20px right of every other heading. */
  padding: 48px 0 60px;
}
.type-header .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}
.type-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}
.type-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.28em;
  margin-bottom: 10px;
}
.type-intro {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
  margin-bottom: 28px;
}
.type-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.type-stat {
  display: flex;
  flex-direction: column;
}
.type-stat-value {
  font-size: 22px;
  font-weight: 600;
}
.type-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------- UNIT GRID ---------------- */
.type-grid-section {
  padding: 60px 20px 40px;
}
.type-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.type-unit-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(27, 54, 41, 0.08);
  box-shadow: 0 4px 20px rgba(27, 54, 41, 0.05);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.type-unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(27, 54, 41, 0.1);
}
.type-unit-card[hidden] {
  display: none;
}
.type-unit-card .card-image-wrapper {
  height: 160px;
  background: var(--brand-sage-light);
}
.type-unit-card .card-body {
  padding: 18px 20px;
}
.type-unit-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.type-unit-card .unit-id {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-forest);
}
.type-unit-card .unit-price {
  font-size: 19px;
  font-weight: 600;
  color: var(--brand-forest);
  margin-bottom: 6px;
}
.type-unit-card .unit-meta {
  font-size: 13px;
  color: var(--ink-muted);
}
.unit-card-blurb {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  /* Clamped to 2 lines so cards with a short vs. long blurb stay the same
     height in the grid — full text is always one click away on the unit's
     own page. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- BOTTOM CTA ---------------- */
.type-cta {
  background: var(--bg-light);
  text-align: center;
  padding: 40px 20px 60px;
}
.type-cta h2 {
  font-family: var(--font-heading);
  color: var(--brand-forest);
  font-size: 28px;
  letter-spacing: 0.28em;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .type-unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .type-unit-grid {
    grid-template-columns: 1fr;
  }
  .type-title {
    font-size: 32px;
  }
}
