/*
  Site-wide typography + vertical-rhythm refinement.
  Scope: spacing/line-height only. No colors, fonts, component geometry, imagery or functionality changed.
*/

/* ===== Heading rhythm ===== */
main h1,
.not-found h1 {
  line-height: 1.10;
}

.cms-outage-notice {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #e8c66a;
  border-radius: 12px;
  color: #503f12;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.cms-outage-notice p {
  margin: 0;
}

.cms-outage-notice .btn {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .cms-outage-notice {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Project details intentionally reuse the Property Detail layout and tokens. */
.project-detail-gallery {
  position: relative;
}

.project-gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(15, 44, 38, .84);
  color: #fff;
  padding: 7px 12px;
  font-size: .74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.project-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-highlight-grid li {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px 14px 42px;
  overflow-wrap: anywhere;
  font-size: .84rem;
  font-weight: 700;
}

.project-highlight-grid li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--emerald);
  font-weight: 900;
}

.project-plan-grid[data-floor-plan-state="available"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  border-style: solid;
  background: #fff;
  padding: 16px;
  text-align: left;
}

.project-plan-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--ivory);
}

.project-plan-button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--sage);
}

.project-plan-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.project-plan-button:hover img {
  transform: scale(1.025);
}

.project-plan-grid figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px 15px;
}

.project-plan-grid figcaption span {
  color: var(--muted);
  font-size: .78rem;
}

.project-plan-empty {
  display: grid;
  place-items: center;
  text-align: center;
}

.project-plan-empty h3 {
  margin: 12px 0 5px;
}

.project-plan-empty p {
  margin: 0;
}

.project-detail-page .detail-content .overview-grid > div,
.project-detail-page .detail-content .overview-grid span,
.project-detail-page .detail-content .overview-grid b,
.project-detail-page .detail-content .spec-table > div,
.project-detail-page .detail-content .spec-table span,
.project-detail-page .detail-content .spec-table b,
.project-detail-page .property-sidebar > * {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.project-detail-page .overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .project-detail-page .detail-layout {
    grid-template-columns: 1fr;
  }

  .project-detail-page .property-sidebar {
    position: static;
  }
}

@media (max-width: 1180px) {
  body:has(.project-detail-page) .desktop-nav,
  body:has(.project-detail-page) .header-cta {
    display: none;
  }

  body:has(.project-detail-page) .menu-button {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 720px) {
  .project-gallery-count {
    display: none;
  }

  .property-floor-plan-media[data-floor-plan-state="available"] {
    padding-inline: 8px;
  }

  .property-floor-plan-media[data-floor-plan-state="available"] figure,
  .property-floor-plan-media[data-floor-plan-state="available"] img {
    width: 100%;
    max-width: none;
  }

  .property-floor-plan-media[data-floor-plan-state="available"] figure {
    margin-inline: 0;
  }

  .property-floor-plan-media[data-floor-plan-state="available"] img {
    cursor: zoom-in;
    display: block;
    height: auto;
    touch-action: manipulation;
  }

  .project-plan-grid[data-floor-plan-state="available"],
  .project-highlight-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-page .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

main h2 {
  line-height: 1.14;
}

main h3 {
  line-height: 1.25;
}

/* Keep eyebrow/label-to-heading relationships clear without making sections loose. */
main .eyebrow {
  margin-bottom: 18px;
}

main .eyebrow + h1,
main .eyebrow + h2,
main .eyebrow + h3 {
  margin-top: 0;
}

/* ===== Hero / page-title areas ===== */
.hero h1,
.inner-hero h1,
.article-header h1 {
  line-height: 1.10;
}

.inner-hero h1 {
  margin-bottom: 22px;
}

.inner-hero p,
.hero-content > p,
.article-header > p {
  line-height: 1.72;
}

/* Property-detail title remains compact, but no longer feels vertically compressed. */
.detail-top .detail-title h1 {
  line-height: 1.10 !important;
  margin-bottom: 12px !important;
}

/* ===== Standard section heading blocks ===== */
.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head .eyebrow + h2 {
  margin-top: 0;
}

.section-head h2 + p {
  margin-top: 20px;
  line-height: 1.72;
}

.listing-page-head h2 + p {
  margin-top: 18px;
  line-height: 1.70;
}

/* Generic copy pairs used on content pages and detail sections. */
main h2 + p {
  margin-top: 18px;
}

main h3 + p {
  margin-top: 10px;
}

main p + p {
  margin-top: 14px;
}

/* ===== Reusable cards ===== */
.feature-card h3 {
  margin-bottom: 11px;
}

.feature-card p {
  line-height: 1.68;
}

.intent-card h3,
.rental-intent-card h3 {
  margin-bottom: 11px;
}

.intent-card p,
.rental-intent-card p {
  line-height: 1.66;
}

.property-card h3 {
  margin-bottom: 10px;
  line-height: 1.25;
}

.project-card h2 {
  margin-bottom: 11px;
  line-height: 1.15;
}

.listing-location-card h3 {
  margin-bottom: 7px;
  line-height: 1.20;
}

.timeline h3 {
  margin-bottom: 11px;
}

.timeline p {
  line-height: 1.68;
}

.floor-plan h3,
.review-form-card h3,
.movein-check-card h3 {
  margin-bottom: 11px;
}

.floor-plan p,
.review-form-card p,
.movein-check-card p {
  line-height: 1.68;
}

/* Blog listing cards: maintain the compact card while improving multi-line title rhythm. */
.blog-card h2 {
  margin-top: 11px;
  margin-bottom: 11px;
  line-height: 1.17;
}

.blog-card p {
  line-height: 1.66;
}

/* ===== Property / project detail content ===== */
.detail-content > section > h2 {
  margin-bottom: 18px;
}

.detail-content > section > h2 + p {
  margin-top: 0;
}

.detail-content > section > p + p {
  margin-top: 15px;
}

.detail-content .map-embed-side > p {
  line-height: 1.64;
}

.property-reviews .section-head h2 + p {
  margin-top: 18px;
}

/* ===== Legal pages ===== */
.legal-hero h1 {
  line-height: 1.10;
  margin-bottom: 22px;
}

.legal-intro-card h2,
.legal-block h2 {
  line-height: 1.16;
}

.legal-intro-card h2 {
  margin-bottom: 10px;
}

.legal-block h2 {
  margin-bottom: 14px;
}

.legal-block p + p {
  margin-top: 14px;
}

.legal-note b {
  margin-bottom: 7px;
}

/* ===== Blog article typography ===== */
.article-header h1 {
  line-height: 1.10;
}

.article-body h2 {
  line-height: 1.15;
}

.article-body h3 {
  line-height: 1.24;
}

.article-body p,
.article-body li {
  line-height: 1.76;
}

/* ===== Repeated conversion CTA ===== */
.final-cta .eyebrow {
  margin-bottom: 20px;
}

.final-cta h2 {
  line-height: 1.14;
  margin-top: 0;
  margin-bottom: 22px;
}

.final-cta p {
  margin-top: 0;
  line-height: 1.72;
}

.final-cta > div {
  margin-top: 30px;
}

/* ===== Compact supporting copy ===== */
.buyer-support-copy h2 {
  line-height: 1.14;
  margin-bottom: 18px;
}

.buyer-support-copy p {
  line-height: 1.70;
}

.contact-next-step h3 {
  line-height: 1.24;
}

/* ===== Mobile refinement ===== */
@media (max-width: 720px) {
  main h1,
  .not-found h1,
  .hero h1,
  .inner-hero h1,
  .article-header h1 {
    line-height: 1.10;
  }

  main h2 {
    line-height: 1.15;
  }

  main .eyebrow,
  .section-head .eyebrow {
    margin-bottom: 17px;
  }

  .inner-hero h1 {
    margin-bottom: 20px;
  }

  .section-head h2 + p,
  .listing-page-head h2 + p {
    margin-top: 18px;
  }

  main h2 + p {
    margin-top: 16px;
  }

  main h3 + p {
    margin-top: 10px;
  }

  main p + p {
    margin-top: 13px;
  }

  .detail-top .detail-title h1 {
    line-height: 1.10 !important;
    margin-bottom: 11px !important;
  }

  .detail-content > section > h2 {
    margin-bottom: 16px;
  }

  .feature-card h3,
  .intent-card h3,
  .rental-intent-card h3,
  .property-card h3,
  .timeline h3,
  .floor-plan h3,
  .review-form-card h3,
  .movein-check-card h3 {
    margin-bottom: 10px;
  }

  .project-card h2,
  .blog-card h2 {
    line-height: 1.18;
  }

  .legal-hero h1 {
    margin-bottom: 20px;
  }

  .legal-intro-card h2,
  .legal-block h2 {
    line-height: 1.17;
  }

  .article-body h2 {
    line-height: 1.16;
  }

  .final-cta .eyebrow {
    margin-bottom: 18px;
  }

  .final-cta h2 {
    line-height: 1.15;
    margin-bottom: 19px;
  }

  .final-cta p {
    line-height: 1.70;
  }

  .final-cta > div {
    margin-top: 26px;
  }
}

/* Final audit adjustments for compact intro/support blocks. */
.legal-intro-card h2 {
  margin-bottom: 17px;
}

.rental-help-card .eyebrow {
  margin-bottom: 18px;
}

.rental-help-card h3 {
  line-height: 1.24;
  margin-bottom: 10px;
}

.rental-help-card p {
  margin-top: 0;
  line-height: 1.68;
}

@media (max-width: 720px) {
  .legal-intro-card h2 {
    margin-bottom: 16px;
  }

  .rental-help-card .eyebrow {
    margin-bottom: 16px;
  }

  .rental-help-card h3 {
    margin-bottom: 10px;
  }
}

/* ===== Premium property cards — reference-matched shared component ===== */
.property-card.property-card-premium {
  overflow: hidden;
  border: 1px solid #d7e2dd;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 58, 50, 0.075);
}

.property-card-premium .property-image {
  aspect-ratio: 4 / 3;
  background: var(--sage);
}

.property-card-premium .property-image::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 42, 35, 0.13), transparent 32%);
}

.property-card-premium .badges {
  z-index: 2;
  top: 17px;
  right: 73px;
  left: 17px;
  gap: 8px;
  align-items: center;
}

.property-card-premium .property-status-pill,
.property-card-premium .property-transaction-badge {
  min-height: 35px;
  box-sizing: border-box;
  border-radius: 999px;
  align-items: center;
  display: inline-flex;
  white-space: nowrap;
}

.property-card-premium .property-status-pill {
  gap: 8px;
  padding: 9px 13px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.97);
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(10, 42, 35, 0.12);
}

.property-card-premium .property-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--available);
  box-shadow: 0 0 0 3px rgba(31, 157, 104, 0.11);
}

.property-card-premium .status-sold-out .property-status-dot {
  background: var(--sold);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.11);
}

.property-card-premium .status-reserved .property-status-dot {
  background: var(--reserved);
  box-shadow: 0 0 0 3px rgba(217, 140, 50, 0.12);
}

.property-card-premium .status-coming-soon .property-status-dot {
  background: var(--soon);
  box-shadow: 0 0 0 3px rgba(71, 118, 200, 0.11);
}

.property-card-premium .property-transaction-badge {
  padding: 9px 13px;
  color: #fff;
  background: var(--forest);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(10, 42, 35, 0.16);
}

.property-card-premium .deal-badge {
  min-height: 35px;
  padding: 9px 12px;
  box-sizing: border-box;
}



.property-card-premium .property-body {
  padding: 24px 25px 25px;
}

.property-card-premium .property-price {
  min-height: 35px;
  margin-bottom: 16px;
  gap: 16px;
  align-items: baseline;
}

.property-card-premium .property-price strong {
  color: var(--forest);
  font-size: clamp(1.3rem, 2.1vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.property-card-premium .property-price span {
  max-width: 47%;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.property-card-premium h3 {
  margin: 0 0 11px;
  color: var(--dark);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.property-card-premium .location {
  min-width: 0;
  margin: 0;
  padding: 0 0 17px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
}

.property-card-premium .location .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: var(--emerald);
}

.property-card-premium .spec-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  margin: 0;
  padding: 15px 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

.property-card-premium .spec-row span {
  min-width: 0;
  color: #43524c;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.property-card-premium .spec-row .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--emerald);
}

.property-card-premium .property-meta-row {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.property-card-premium .property-type-label {
  flex: 0 1 auto;
  white-space: nowrap;
}

.property-card-premium .property-support-label {
  min-width: 0;
  padding: 0;
  justify-content: flex-end;
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.property-card-premium .card-actions {
  gap: 11px;
  margin-top: 17px;
}

.property-card-premium .card-actions .property-details-button {
  min-height: 52px;
  justify-content: center;
  border-radius: 14px;
  padding-inline: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}

.property-card-premium .property-details-button .icon {
  display: none;
}

.property-card-premium .card-whatsapp {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  color: #13a967;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
}

.property-card-premium .card-whatsapp:hover,
.property-card-premium .card-whatsapp:focus-visible {
  color: #fff;
  background: #13a967;
  border-color: #13a967;
}

@media (max-width: 1100px) {
  .property-card-premium .property-body {
    padding: 22px 21px 23px;
  }

  .property-card-premium .property-price strong {
    font-size: 1.34rem;
  }

  .property-card-premium .spec-row {
    column-gap: 16px;
    row-gap: 9px;
  }

  .property-card-premium .spec-row span {
    gap: 4px;
    font-size: 0.68rem;
  }

  .property-card-premium .spec-row .icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

@media (max-width: 720px) {
  .property-card.property-card-premium {
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(22, 58, 50, 0.075);
  }

  .property-card-premium .badges {
    top: 14px;
    right: 65px;
    left: 14px;
    gap: 6px;
  }

  .property-card-premium .property-status-pill,
  .property-card-premium .property-transaction-badge {
    min-height: 32px;
    padding: 8px 11px;
    font-size: 0.61rem;
  }

  .property-card-premium .deal-badge {
    min-height: 32px;
    padding: 8px 10px;
    font-size: 0.58rem;
  }

  .property-card-premium .property-body {
    padding: 21px 20px 22px;
  }

  .property-card-premium .property-price {
    margin-bottom: 15px;
  }

  .property-card-premium .property-price strong {
    font-size: 1.34rem;
  }

  .property-card-premium .property-price span {
    font-size: 0.71rem;
  }

  .property-card-premium h3 {
    font-size: 1.08rem;
  }

  .property-card-premium .location {
    padding-bottom: 15px;
    font-size: 0.78rem;
  }

  .property-card-premium .spec-row {
    column-gap: 14px;
    row-gap: 8px;
    padding: 14px 0;
  }

  .property-card-premium .spec-row span {
    gap: 4px;
    font-size: 0.68rem;
  }

  .property-card-premium .spec-row .icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .property-card-premium .property-meta-row {
    gap: 9px;
    font-size: 0.72rem;
  }

  .property-card-premium .property-support-label {
    font-size: 0.7rem;
  }

  .property-card-premium .card-actions {
    margin-top: 15px;
  }

  .property-card-premium .card-actions .property-details-button,
  .property-card-premium .card-whatsapp {
    min-height: 50px;
  }

  .property-card-premium .card-whatsapp {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

@media (max-width: 380px) {
  .property-card-premium .property-body {
    padding-inline: 17px;
  }

  .property-card-premium .property-price {
    gap: 9px;
  }

  .property-card-premium .property-price strong {
    font-size: 1.22rem;
  }

  .property-card-premium .property-price span {
    font-size: 0.66rem;
  }

  .property-card-premium .spec-row span {
    gap: 3px;
    font-size: 0.63rem;
  }

  .property-card-premium .spec-row {
    column-gap: 11px;
    row-gap: 7px;
  }

  .property-card-premium .spec-row .icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .property-card-premium .property-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .property-card-premium .property-support-label {
    text-align: left;
  }
}
