@font-face {
  font-display: swap;
  font-family: "Gharghya Sans";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/Roboto-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Gharghya Sans";
  font-style: normal;
  font-weight: 600 800;
  src: url("./assets/Roboto-Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --page: #f7faf7;
  --surface: #ffffff;
  --surface-soft: #eef6f0;
  --text: #14201d;
  --muted: #63706b;
  --line: #dce6df;
  --accent: #0e8f6f;
  --accent-dark: #08745b;
  --accent-soft: #dff4ed;
  --coral: #ee7b5d;
  --shadow: 0 18px 44px rgba(21, 48, 40, 0.1);
  --radius: 8px;
  --radius-small: 6px;
  --max: 1180px;
  font-family: "Gharghya Sans", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(223, 244, 237, 0.55) 0, rgba(247, 250, 247, 0) 280px),
    var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

button,
select,
input {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 22px 24px 14px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--text);
  border-radius: var(--radius-small);
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-mark svg,
.icon-button svg,
.primary-button svg,
.save-card svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.brand-mark svg {
  height: 20px;
  width: 20px;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
}

.desktop-nav a {
  color: #40524b;
  font-size: 0.93rem;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-button,
.save-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 40px;
}

.icon-button svg,
.save-card svg {
  height: 19px;
  width: 19px;
}

.icon-button:hover,
.save-card:hover,
.icon-button.is-active {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.icon-button.is-active {
  background: var(--accent-soft);
}

.header-cta,
.primary-button,
.secondary-button,
.details-link,
.compare-button {
  align-items: center;
  border-radius: var(--radius-small);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.header-cta,
.primary-button,
.details-link {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.header-cta {
  padding: 0 16px;
}

.header-cta:hover,
.primary-button:hover,
.details-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.search-stage {
  margin: 0 auto;
  max-width: var(--max);
  padding: 48px 24px 0;
}

.stage-copy {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  margin-bottom: 22px;
}

.stage-copy h1 {
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 680px;
}

.stage-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  margin: 0 0 8px;
  max-width: 410px;
}

.filter-panel {
  align-items: end;
  background: var(--surface);
  border: 1px solid rgba(220, 230, 223, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.05fr 1.1fr 0.95fr 1fr auto;
  padding: 14px;
}

.filter-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.filter-field span {
  color: #52615c;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 54% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 54% / 6px 6px no-repeat,
    #f9fcfa;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  height: 48px;
  overflow: hidden;
  padding: 0 34px 0 13px;
  text-overflow: ellipsis;
  width: 100%;
}

.filter-field select:focus,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.compare-button:focus-visible,
.details-link:focus-visible,
.back-link:focus-visible,
.similar-card:focus-visible,
.save-card:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(14, 143, 111, 0.25);
  outline-offset: 2px;
}

.primary-button {
  gap: 8px;
  height: 48px;
  padding: 0 19px;
}

.primary-button svg {
  height: 18px;
  width: 18px;
}

.active-strip {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 58px;
}

.active-strip p {
  color: #40524b;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.active-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(14, 143, 111, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  height: 30px;
  padding: 0 11px;
}

.listing-layout {
  display: block;
}

.locality-panel {
  background: #16231f;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 18px;
  min-height: 564px;
  order: 2;
  overflow: hidden;
  padding: 22px;
  position: sticky;
  top: 18px;
}

.locality-panel h2 {
  font-size: 1.1rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 8px;
}

.locality-panel p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  margin: 0;
}

.mini-map {
  background:
    radial-gradient(circle at 22% 24%, rgba(238, 123, 93, 0.42), transparent 14%),
    radial-gradient(circle at 76% 66%, rgba(14, 143, 111, 0.45), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  height: 304px;
  overflow: hidden;
  position: relative;
}

.map-line,
.pin {
  position: absolute;
}

.map-line {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  height: 4px;
  transform-origin: left center;
}

.line-a {
  left: 14%;
  top: 31%;
  transform: rotate(24deg);
  width: 84%;
}

.line-b {
  left: 8%;
  top: 62%;
  transform: rotate(-17deg);
  width: 86%;
}

.line-c {
  left: 48%;
  top: 5%;
  transform: rotate(92deg);
  width: 74%;
}

.pin {
  background: var(--coral);
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  height: 22px;
  width: 22px;
}

.pin-a {
  left: 22%;
  top: 27%;
}

.pin-b {
  background: var(--accent);
  left: 61%;
  top: 51%;
}

.pin-c {
  left: 42%;
  top: 72%;
}

.panel-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.panel-stat-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-small);
  padding: 14px;
}

.panel-stat-grid span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.panel-stat-grid strong {
  font-size: 1rem;
  line-height: 1.2;
}

.project-results {
  min-width: 0;
}

.results-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.results-toolbar h2,
.section-heading h2 {
  font-size: 1.36rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.results-toolbar p,
.section-heading p {
  color: var(--muted);
  font-size: 0.91rem;
  margin: 5px 0 0;
}

.secondary-button,
.compare-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: #34463f;
  padding: 0 14px;
}

.secondary-button:hover,
.compare-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.project-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--surface);
  border: 1px solid rgba(220, 230, 223, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 48, 40, 0.07);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.save-card {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.save-card.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-image,
.modal-image,
.detail-hero-image,
.similar-image,
.photo-gallery-image,
.photo-thumb {
  --project-photo: none;
  aspect-ratio: 1.48 / 1;
  background-color: #dfe9e4;
  background-image: var(--project-photo), url("./assets/project-thumbnails.png"), var(--project-fallback);
  background-position: center, var(--project-position), center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, 300% 200%, cover;
}

.project-image.image-0,
.modal-image.image-0,
.detail-hero-image.image-0,
.similar-image.image-0,
.photo-gallery-image.image-0,
.photo-thumb.image-0 {
  --project-position: 0 0;
  --project-fallback:
    linear-gradient(155deg, rgba(17, 31, 28, 0.22), rgba(17, 31, 28, 0.08) 34%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(115deg, #8fb8c5 0%, #e8f2eb 42%, #c3a17f 43%, #f7f2df 100%);
}

.project-image.image-1,
.modal-image.image-1,
.detail-hero-image.image-1,
.similar-image.image-1,
.photo-gallery-image.image-1,
.photo-thumb.image-1 {
  --project-position: 50% 0;
  --project-fallback:
    radial-gradient(circle at 22% 64%, rgba(26, 150, 117, 0.42), transparent 18%),
    linear-gradient(135deg, #b8d7c7 0%, #edf7ed 48%, #8aa46e 49%, #dce7c4 100%);
}

.project-image.image-2,
.modal-image.image-2,
.detail-hero-image.image-2,
.similar-image.image-2,
.photo-gallery-image.image-2,
.photo-thumb.image-2 {
  --project-position: 100% 0;
  --project-fallback:
    linear-gradient(90deg, rgba(16, 37, 33, 0.24) 0 10%, transparent 10% 22%, rgba(16, 37, 33, 0.18) 22% 31%, transparent 31%),
    linear-gradient(140deg, #dce7ef 0%, #ffffff 46%, #adc19a 47%, #edf3df 100%);
}

.project-image.image-3,
.modal-image.image-3,
.detail-hero-image.image-3,
.similar-image.image-3,
.photo-gallery-image.image-3,
.photo-thumb.image-3 {
  --project-position: 0 100%;
  --project-fallback:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.7), transparent 13%),
    linear-gradient(135deg, #a4bdca 0%, #eff8f5 40%, #728f6f 41%, #d9e4c9 100%);
}

.project-image.image-4,
.modal-image.image-4,
.detail-hero-image.image-4,
.similar-image.image-4,
.photo-gallery-image.image-4,
.photo-thumb.image-4 {
  --project-position: 50% 100%;
  --project-fallback:
    linear-gradient(90deg, rgba(20, 43, 38, 0.16) 0 7%, transparent 7% 20%, rgba(20, 43, 38, 0.15) 20% 28%, transparent 28%),
    linear-gradient(145deg, #c4d4c9 0%, #ffffff 42%, #8bb19a 43%, #dbe7d1 100%);
}

.project-image.image-5,
.modal-image.image-5,
.detail-hero-image.image-5,
.similar-image.image-5,
.photo-gallery-image.image-5,
.photo-thumb.image-5 {
  --project-position: 100% 100%;
  --project-fallback:
    radial-gradient(circle at 24% 72%, rgba(22, 147, 113, 0.3), transparent 17%),
    linear-gradient(140deg, #d4dde7 0%, #f7faf7 44%, #c2b190 45%, #f0e8ce 100%);
}

.project-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.project-topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.status,
.bhk {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 25px;
  padding: 0 9px;
}

.status {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status.under {
  background: #fff0e9;
  color: #b95438;
}

.bhk {
  background: #f3f5f3;
  color: #52615c;
}

.project-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.project-location {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -4px 0 0;
}

.project-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding-top: 11px;
}

.project-facts div {
  min-width: 0;
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.project-facts dd {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.card-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr auto;
}

.details-link {
  min-width: 0;
  padding: 0 12px;
}

.compare-button {
  min-width: 92px;
}

.compare-button.is-added {
  background: rgba(14, 143, 111, 0.1);
  border-color: rgba(14, 143, 111, 0.4);
  color: var(--accent-dark);
}

.compare-panel {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}

.compare-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.compare-heading h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 5px;
}

.compare-heading p {
  color: var(--muted);
  margin: 0;
}

.compare-table {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  box-shadow: 0 12px 30px rgba(20, 48, 40, 0.06);
  display: grid;
  gap: 13px;
  padding: 16px;
}

.compare-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.compare-card h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

.compare-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.compare-remove {
  background: transparent;
  border: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}

.compare-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.compare-card dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding-top: 9px;
}

.compare-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.compare-card dd {
  font-weight: 700;
  margin: 0;
}

.neighborhoods {
  margin: 0 auto;
  max-width: var(--max);
  padding: 64px 24px 34px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.neighborhood-rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.neighborhood-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 17px;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.neighborhood-card:hover {
  border-color: rgba(14, 143, 111, 0.45);
  box-shadow: 0 14px 34px rgba(21, 48, 40, 0.08);
  transform: translateY(-2px);
}

.neighborhood-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.neighborhood-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.neighborhood-card em {
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 700;
}

.empty-state {
  align-items: center;
  background: var(--surface);
  border: 1px dashed rgba(14, 143, 111, 0.38);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  justify-items: center;
  min-height: 240px;
  padding: 32px;
  text-align: center;
}

.empty-state strong {
  font-size: 1.2rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.insights-section,
.contact-section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 34px 24px;
}

.insight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.insight-grid strong,
.contact-copy h2,
.modal-card h2 {
  letter-spacing: 0;
}

.insight-grid span,
.contact-copy p,
.form-note,
.modal-content p {
  color: var(--muted);
}

.contact-section {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  padding-bottom: 76px;
}

.contact-copy h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 10px;
}

.contact-copy p {
  margin: 0;
  max-width: 520px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 48, 40, 0.07);
  display: grid;
  gap: 13px;
  padding: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: #52615c;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input {
  background: #f9fcfa;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--text);
  font-size: 0.95rem;
  height: 46px;
  padding: 0 12px;
  width: 100%;
}

.contact-form input:focus {
  outline: 3px solid rgba(14, 143, 111, 0.25);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  min-height: 22px;
}

.detail-hero[hidden],
.detail-content-grid[hidden],
.photo-gallery-section[hidden],
.similar-section[hidden],
.not-found-panel[hidden] {
  display: none;
}

.detail-page {
  margin: 0 auto;
  max-width: var(--max);
  padding: 42px 24px 76px;
}

.detail-hero {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
}

.detail-copy {
  align-content: start;
  display: grid;
  gap: 14px;
  padding: 16px 0;
}

.back-link {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  width: fit-content;
}

.back-link:hover {
  color: var(--accent);
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 720px;
}

.detail-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 600;
  margin: 0;
}

.detail-media {
  align-content: start;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.detail-hero-image {
  border: 1px solid rgba(220, 230, 223, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 430px;
}

.photo-updated {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin: -2px 0 0;
}

.photo-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  min-height: 82px;
  padding: 0;
  transition: border-color 160ms ease, transform 160ms ease;
}

.photo-thumb:hover,
.photo-thumb.is-active {
  border-color: var(--accent);
}

.photo-thumb:hover {
  transform: translateY(-1px);
}

.photo-gallery-section {
  margin-top: 34px;
}

.photo-gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-gallery-item {
  background: var(--surface);
  border: 1px solid rgba(220, 230, 223, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 48, 40, 0.06);
  display: grid;
  gap: 0;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.photo-gallery-image {
  aspect-ratio: 1.5 / 1;
}

.photo-gallery-item figcaption {
  color: #34463f;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 14px;
}

.detail-facts-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 2px;
}

.detail-facts-grid div,
.detail-list div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
}

.detail-facts-grid dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-facts-grid dd,
.detail-list dd {
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.detail-actions .details-link,
.detail-actions .secondary-button {
  min-height: 46px;
  padding: 0 18px;
}

.detail-content-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.78fr);
  margin-top: 28px;
}

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 48, 40, 0.06);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.detail-panel h2 {
  font-size: 1.34rem;
  line-height: 1.16;
  margin: 0;
}

.detail-panel p {
  color: var(--muted);
  margin: 0;
}

.detail-highlight-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-highlight-list li {
  background: #f7fbf8;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  color: #34463f;
  font-weight: 600;
  padding: 11px 12px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-cta-card {
  background: #16231f;
  color: #fff;
}

.detail-cta-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-cta-card p {
  color: rgba(255, 255, 255, 0.72);
}

.detail-cta-card .details-link {
  width: 100%;
}

.similar-section {
  margin-top: 38px;
}

.similar-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.similar-card {
  background: var(--surface);
  border: 1px solid rgba(220, 230, 223, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 48, 40, 0.06);
  display: grid;
  min-width: 0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.similar-card:hover {
  border-color: rgba(14, 143, 111, 0.45);
  box-shadow: 0 16px 36px rgba(21, 48, 40, 0.1);
  transform: translateY(-2px);
}

.similar-image {
  aspect-ratio: 1.68 / 1;
}

.similar-card-body {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.similar-card h3 {
  font-size: 1.05rem;
  line-height: 1.22;
  margin: 0;
}

.similar-card p {
  color: var(--muted);
  margin: -3px 0 0;
}

.similar-card strong {
  font-size: 0.9rem;
}

.not-found-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  justify-items: start;
  margin: 62px auto;
  max-width: 720px;
  padding: 32px;
}

.not-found-panel h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0;
}

.not-found-panel p {
  color: var(--muted);
  margin: 0 0 8px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  inset: 0;
  position: fixed;
  z-index: 30;
}

.modal-backdrop {
  background: rgba(20, 32, 29, 0.52);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(20, 32, 29, 0.28);
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  left: 50%;
  max-width: 820px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 36px);
}

.modal-close {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 2;
}

.modal-close svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 18px;
}

.modal-image {
  background-color: #dfe9e4;
  background-image: url("./assets/project-thumbnails.png"), var(--project-fallback);
  background-position: var(--project-position), center;
  background-repeat: no-repeat, no-repeat;
  background-size: 300% 200%, cover;
  min-height: 360px;
}

.modal-content {
  align-content: start;
  display: grid;
  gap: 13px;
  padding: 28px;
}

.modal-card h2 {
  font-size: 1.7rem;
  line-height: 1.12;
  margin: 0;
  padding-right: 34px;
}

.modal-content p {
  margin: 0;
}

.modal-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 4px 0;
  padding-top: 14px;
}

.modal-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-facts dd {
  font-weight: 700;
  margin: 0;
}

@media (max-width: 1040px) {
  .site-header {
    gap: 18px;
  }

  .desktop-nav {
    gap: 17px;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .listing-layout {
    grid-template-columns: 1fr;
  }

  .locality-panel {
    min-height: auto;
    order: 2;
    position: static;
  }

  .project-results {
    order: 1;
  }

  .mini-map {
    height: 210px;
  }

  .panel-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-image {
    min-height: 360px;
  }

  .photo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    background:
      linear-gradient(180deg, rgba(223, 244, 237, 0.65) 0, rgba(247, 250, 247, 0) 220px),
      var(--page);
  }

  .site-header {
    padding: 16px 18px 10px;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .search-stage {
    padding: 34px 18px 0;
  }

  .stage-copy {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stage-copy h1 {
    font-size: clamp(2.25rem, 13vw, 3.7rem);
    max-width: 540px;
  }

  .stage-copy p {
    margin: 0;
  }

  .active-strip,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .active-chips {
    justify-content: flex-start;
  }

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

  .neighborhoods {
    padding: 54px 18px 28px;
  }

  .neighborhood-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page {
    padding: 34px 18px 62px;
  }

  .similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .insight-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .filter-panel {
    border-radius: var(--radius);
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .filter-field select {
    font-size: 0.88rem;
    height: 46px;
  }

  .project-grid,
  .neighborhood-rail,
  .panel-stat-grid,
  .compare-table,
  .detail-facts-grid,
  .similar-grid,
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .detail-copy h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .detail-hero-image {
    min-height: 260px;
  }

  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-thumb {
    min-height: 74px;
  }

  .detail-actions {
    display: grid;
  }

  .detail-actions .details-link,
  .detail-actions .secondary-button {
    width: 100%;
  }

  .compare-heading {
    align-items: start;
    flex-direction: column;
  }

  .locality-panel {
    padding: 18px;
  }

  .mini-map {
    height: 190px;
  }

  .results-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .secondary-button {
    width: 100%;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .compare-button {
    min-width: 0;
    width: 100%;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 36px);
    overflow: auto;
  }

  .modal-image {
    min-height: 220px;
  }

  .modal-content {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
