/* Public housing experience */
:root {
  --rose-pale: #fff3f6;
  --rose-line: #f0d3db;
  --map-water: #dceef1;
}

.home-hero-new {
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  max-width: 1500px;
  margin-inline: auto;
  width: 90%;
  align-items: stretch;
}
.home-hero-new .hero-copy {padding: clamp(24px,3.3vw,48px);}
.home-hero-new .hero-copy h1 {max-width: 760px; overflow-wrap: anywhere; hyphens: auto;}
.hero-member {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}
.hero-member img {object-fit: contain; flex: none;}
.hero-member:hover {color: var(--red-dark);}
.hero-map-visual {position: relative; min-width: 0; background: #fcebf0;}
.hero-map-visual > img {width: 100%; height: 100%; min-height: 280px; object-fit: cover;}
.hero-map-visual > a {
  position: absolute;
  inset: auto 22px 22px;
  background: #fff;
  border: 1px solid var(--rose-line);
  border-radius: 14px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  box-shadow: 0 8px 24px #63304416;
}
.hero-map-visual a span {font-size: 16px; color: var(--muted);}
.hero-map-visual a strong {grid-row: 2; font-size: 23px;}
.hero-map-visual a svg {grid-column: 2; grid-row: 1/3; color: var(--red);}
.latest-properties .section-heading {margin-bottom: 22px;}
.property-card {position: relative; border-radius: 16px;}
.property-card-link::after {content: ''; position: absolute; inset: 0; z-index: 2;}
.property-card:focus-within {outline: 2px solid var(--red); outline-offset: 3px;}
.property-card .favorite-button {z-index: 4;}
.property-card .property-bottom > a {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 43px;
  padding: 8px 12px;
  gap: 8px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--red-dark);
  border-radius: 8px;
  border-color: var(--rose-line);
  background: var(--rose-pale);
}
.property-card .property-bottom {gap: 12px; flex-wrap: wrap;}
.property-card .property-bottom > a:hover {background: #fbe0e7;}
.property-card:has(.no-property-image) .property-image {height: 146px;}
.property-image .no-property-image, .photo-gallery-empty .no-property-image {
  color: #765765;
  background: radial-gradient(ellipse at 30% 15%,#fff 0%,#f9e8ee 90%);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.property-image .no-property-image {min-height: 0; padding: 42px 12px 8px; font-size: 17px;}
.property-image .no-property-image svg, .photo-gallery-empty .no-property-image svg {width: 34px; height: 34px; color: var(--red);}
.photo-gallery-empty {
  display: block;
  height: auto;
  border: 1px solid var(--rose-line);
  border-radius: 16px;
  overflow: hidden;
}
.photo-gallery-empty .no-property-image {min-height: 114px; padding: 22px; justify-content: flex-start; flex-direction: row;}
.photo-gallery-empty .no-property-image p {margin: 3px 0 0; font-size: 17px;}
.photo-gallery:not(.photo-gallery-empty) {border-radius: 18px; overflow: hidden; gap: 7px;}
.photo-gallery .gallery-all {min-height: 46px; border-radius: 12px; font-size: 17px;}
.detail-loan-link {display: inline-block; margin: 8px 0 16px; color: var(--red-dark); text-decoration: underline; font-weight: 700;}

.home-map-section {background: #f6faf9; border-block: 1px solid #e2eae6; scroll-margin-top: 20px;}
.housing-map-panel {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0,1fr);
  background: #fff;
  border: 1px solid #d7e1db;
  border-radius: 17px;
  overflow: hidden;
}
.housing-map-panel.has-map-list {grid-template-columns: minmax(0, 1fr) minmax(250px, 30%);}
.map-area {position: relative; min-width: 0;}
.map-area .map-canvas {height: 480px; min-height: 0; background: var(--map-water); z-index: 0; font-family: inherit;}
.has-map-list .map-canvas {height: 560px;}
.map-reset {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  border: 1px solid #cbd9d3; border-radius: 8px; padding: 7px 12px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 700;
}
.map-attribution {position: absolute; bottom: 0; right: 0; z-index: 1; padding: 2px 8px; background: #ffffffec; font-size: 12px;}
.map-attribution a, .road-panel small a {text-decoration: underline;}
.map-city-label {text-align: center; pointer-events: none; font-weight: 700; font-size: 13px; color: #37545c; text-shadow: 0 0 3px #fff, 0 1px 2px #fff; white-space: nowrap;}
.housing-map-pin {display: grid; place-items: center; background: var(--red-dark); color: #fff; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 5px #6c344b46; font: 700 19px/1 'DM Sans',sans-serif;}
.housing-map-pin.is-cluster {background: #c01d46; box-shadow: 0 0 0 5px #d5264c2c,0 2px 5px #6c344b46; font-size: 13px;}
.housing-map-pin:focus {outline: 3px solid #331225; outline-offset: 3px;}
.map-list {min-width: 0; height: 560px; overflow: auto; border-left: 1px solid #d7e1db;}
.map-list h3 {font-size: 20px; margin: 0; padding: 17px; background: #fff; position: sticky; top: 0; border-bottom: 1px solid #e4ebe7;}
.map-property-link {display: flex; flex-direction: column; gap: 3px; padding: 11px 17px; color: var(--ink); border-bottom: 1px solid #e4ebe7; font-size: 17px;}
.map-property-link span {font-size: 15px; color: var(--muted);}
.map-property-link:hover {background: var(--rose-pale); color: var(--red-dark);}
.map-popup-list .map-property-link {padding: 8px 0;}
.housing-map-panel .map-message {grid-column: 1/-1; margin: 0; padding: 11px 16px; font-size: 16px; border-top: 1px solid #e4ebe7;}

.road-panel, .loan-panel {
  background: var(--rose-pale);
  border: 1px solid var(--rose-line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin: 25px 0;
}
.road-panel h3 {font-size: 24px; margin-bottom: 4px;}
.road-panel p {font-size: 18px; margin: 0 0 12px;}
.road-panel {scroll-margin-top:16px;}
.road-panel label {display:block;font-size:16px;font-weight:700;}
.road-panel select {display:block;width:min(100%,380px);min-height:46px;margin:5px 0 12px;padding:8px 10px;border:1px solid #d9cdd0;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:16px;}
.road-actions {display: flex; gap: 15px; flex-wrap: wrap; align-items: center;}
.road-actions .h-btn, .road-actions .text-link {font-size: 17px;}
.road-panel .road-result {font-weight: 700; color: var(--ink); margin: 12px 0;}
.road-result:empty {display: none;}
.road-panel small {display: block; font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 13px;}
.loan-panel {scroll-margin-top: 20px;}
.loan-panel header p:not(.eyebrow) {margin-top: 10px;}
.loan-form {display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; margin-top: 24px;}
.loan-fields {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; align-content: start;}
.loan-fields label {display: grid; gap: 6px; font-size: 17px; font-weight: 700;}
.loan-fields input {width: 100%; padding: 11px 13px; min-height: 48px; border: 1px solid #cdbfc4; border-radius: 9px; background: #fff; font-size: 19px;}
.loan-results {background: #fff; border: 1px solid var(--rose-line); border-radius: 13px; padding: 15px 18px;}
.loan-primary {display: grid; gap: 3px;}
.loan-primary span {font-weight: 700; font-size: 16px;}
.loan-primary output {font-weight: 700; font-size: clamp(27px,3vw,39px); color: var(--red-dark); overflow-wrap: anywhere;}
.loan-results dl {margin: 12px 0 0;}
.loan-results dl > div {display: flex; gap: 8px; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--rose-line); font-size: 15px;}
.loan-results dd {margin: 0; font-weight: 700; overflow-wrap: anywhere;}
.loan-panel .loan-note {font-size: 16px; margin: 15px 0 8px;}

.membership-panel {display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 26px; align-items: center; padding: clamp(22px,3vw,36px); border: 1px solid var(--rose-line); background: #fff7f9; border-radius: 18px;}
.membership-logo {background: #fff; border: 1px solid var(--rose-line); padding: 17px; border-radius: 13px;}
.membership-logo img {object-fit: contain;}
.membership-panel h2 {font-size: clamp(24px,2.2vw,33px); margin: 0 0 8px; overflow-wrap: anywhere;}
.membership-panel p:not(.eyebrow) {max-width: 800px; font-size: 18px;}
.membership-panel .h-btn {font-size: 17px; text-align: center;}
.editorial-hero {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 28px;
  align-items: center; border: 1px solid var(--rose-line); border-radius: 21px; margin: 26px 5vw 0;
  padding: clamp(24px,4vw,52px); background: linear-gradient(120deg,#fff7f9 0%,#fff 65%);
}
.editorial-hero h1 {font-size: clamp(32px,3.6vw,54px); margin: 0; overflow-wrap: anywhere;}
.editorial-hero p:not(.eyebrow) {margin-top: 15px; max-width: 680px; font-size: 21px;}
.editorial-hero > img {width: 100%; border: 1px solid var(--rose-line); border-radius: 15px;}
.editorial-hero:has(> div:only-child) {grid-template-columns: 1fr;}
.editorial-overview,.editorial-membership,.calculator-wrap {padding-block: 28px;}
.editorial-cards {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px;}
.editorial-card {padding: 26px; border: 1px solid var(--rose-line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px #33122508; overflow-wrap: anywhere;}
.editorial-card > span {display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--rose-pale); color: var(--red-dark); font-size: 17px; font-weight: 700; margin-bottom: 14px;}
.editorial-card h3 {font-size: 24px; line-height: 1.25; margin-bottom: 9px;}
.editorial-card p {font-size: 18px; margin: 0 0 9px;}
.editorial-card b {color: var(--red-dark); font-size: 17px;}
a.editorial-card:hover {border-color: #cf7890; background: #fffafb;}
.content-redesign .content-layout {padding-block: 38px; gap: 36px;}
.content-redesign .content-article > h2 {margin-top: 0;}
.editorial-topic, .legal-topic {border: 1px solid #ebe1e5; border-radius: 12px; margin: 0 0 12px; background: #fff; overflow: hidden;}
.editorial-topic summary {font-size: 20px; font-weight: 700; padding: 17px 22px; cursor: pointer; background: #fff7f9;}
.editorial-topic > div, .legal-topic {padding: 20px 22px;}
.legal-topic h2 {margin: 0 0 12px;}
.content-redesign .content-side > div {border: 1px solid var(--rose-line); border-radius: 15px; background: var(--rose-pale);}
.content-redesign .content-side a {overflow-wrap: anywhere;}
.content-redesign .content-contact {margin: 0 5vw; border-radius: 18px; scroll-margin-top: 20px;}

@media (max-width: 1000px) {
  .membership-panel {grid-template-columns: auto minmax(0,1fr);}
  .membership-panel > a {grid-column: 2; justify-self: start;}
  .loan-form {grid-template-columns: 1fr;}
}
@media (max-width: 740px) {
  .home-hero-new,.editorial-hero {grid-template-columns: 1fr;}
  .hero-map-visual > img {height: 235px; min-height: 0; object-fit: contain;}
  .hero-map-visual > a {inset: auto 12px 12px;}
  .hero-member {font-size: 16px;}
  .housing-map-panel.has-map-list {grid-template-columns: minmax(0,1fr);}
  .map-area .map-canvas,.has-map-list .map-canvas {height: 390px;}
  .map-list {height: 230px; border-left: 0; border-top: 1px solid #d7e1db;}
  .editorial-cards {grid-template-columns: 1fr;}
  .editorial-hero > img {max-height: 220px; object-fit: cover;}
  .membership-panel {grid-template-columns: minmax(0,1fr); gap: 15px;}
  .membership-panel > a {grid-column: 1;}
  .membership-logo {width: fit-content; padding: 10px;}
  .membership-logo img {width: 72px; height: auto;}
  .photo-gallery-empty .no-property-image {align-items: flex-start;}
  .property-card .property-bottom > a {width: auto;}
}
