.project-filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
}
.project-filters label {
  font-size: 12px;
}
.project-filters label input,
.project-filters select {
  margin-top: 6px;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  border: 1px solid var(--line, #e2d9dc);
  background: var(--surface, #fff);
  color: var(--text, #252525);
  border-radius: 3px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  font-size: 15px;
}
textarea {
  resize: vertical;
}
.project-filters .button {
  min-height: 48px;
  padding: 10px 20px;
}
.project-filters > a {
  font-size: 13px;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.map-header p {
  font-size: 13px;
  color: var(--muted, #626168);
}
.project-map {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2d9dc);
  position: relative;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 30px;
}
.map-canvas {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #e0e4d5;
  direction: ltr;
  border-radius: 2px;
  touch-action: none;
  cursor: grab;
}
.map-canvas.dragging {
  cursor: grabbing;
}
.map-tile {
  position: absolute;
  width: 256px !important;
  height: 256px !important;
  max-width: none;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 2px solid #fff;
  border-radius: 22px 22px 22px 0;
  background: #b52136;
  box-shadow: 0 3px 10px #0004;
  color: #fff;
  width: 40px;
  height: 40px;
  min-height: 40px;
  cursor: pointer;
  z-index: 2;
  font-size: 17px;
}
.map-pin.active {
  background: #8b1829;
}
.map-tools {
  position: absolute;
  z-index: 5;
  top: 24px;
  inset-inline-end: 24px;
  display: flex;
  gap: 6px;
}
.map-tools button {
  background: #fff;
  color: #b52136;
  border: 1px solid #bcc5b7;
  min-height: 44px;
  min-width: 44px;
  border-radius: 3px;
  padding: 7px 12px;
}
.map-detail {
  padding: 20px 10px;
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: 100px;
}
.map-detail img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
}
.map-detail h3 {
  font-size: 23px;
}
.map-detail p {
  font-size: 13px;
  margin: 4px 0;
}
.map-detail a {
  display: inline-block;
  text-decoration: underline;
  font-size: 14px;
  min-height: 40px;
}
.map-attribution {
  font-size: 11px;
  color: var(--muted, #626168);
  display: block;
  line-height: 1.8;
  padding: 8px 10px;
  border-top: 1px solid var(--line, #e2d9dc);
}
.map-attribution a {
  text-decoration: underline;
}
.map-error {
  font-size: 13px;
  background: #fff0d2;
  color: #594323;
  padding: 12px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  position: relative;
  padding-bottom: 35px;
}
.timeline li:before {
  content: "";
  position: absolute;
  inset-inline-start: 170px;
  top: 8px;
  bottom: -8px;
  width: 1px;
  background: var(--line, #e2d9dc);
}
.timeline li:after {
  content: "";
  position: absolute;
  inset-inline-start: 165px;
  top: 10px;
  width: 11px;
  height: 11px;
  background: var(--gold, #b52136);
  border-radius: 50%;
}
.timeline li:last-child:before {
  display: none;
}
.timeline time {
  font-size: 14px;
  color: var(--muted, #626168);
}
.timeline h3 {
  font-size: 25px;
}
.timeline p {
  font-size: 16px;
  color: var(--muted, #626168);
  max-width: 700px;
  margin: 12px 0;
}
.empty-state {
  border: 1px dashed var(--line, #e2d9dc);
  background: var(--surface, #fff);
  padding: 45px;
  text-align: center;
  color: var(--muted, #626168);
  border-radius: 3px;
}
.empty-state > span {
  display: block;
  color: var(--gold, #b52136);
  font-size: 36px;
}
.empty-state p {
  font-size: 16px;
  margin: 12px 0;
}
.filter-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line, #e2d9dc);
}
.filter-tabs a {
  padding: 12px 18px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.filter-tabs a.active {
  border-color: var(--gold, #b52136);
  font-weight: 500;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr;
  gap: 70px;
}
.contact-grid > div > h2 {
  font-size: 38px;
}
.contact-grid > div > p {
  font-size: 16px;
  color: var(--muted, #626168);
}
.form-panel {
  background: var(--surface, #fff);
  padding: 40px;
  border: 1px solid var(--line, #e2d9dc);
  border-radius: 4px;
  max-width: 860px;
}
.form-panel h1 {
  font-size: 36px;
}
.form-panel h2 {
  font-size: 28px;
  margin-top: 0;
}
.form-panel > p {
  font-size: 14px;
  color: var(--muted, #626168);
}
.form-panel label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.form-panel label input,
.form-panel label textarea,
.form-panel label select {
  display: block;
  margin-top: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-panel .checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.8;
}
.checkbox input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.form-panel small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted, #626168);
  margin-top: 6px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  background: var(--soft, #f1ebed);
  border-inline-start: 3px solid var(--gold, #b52136);
  padding: 22px 26px;
  margin-bottom: 30px;
  font-size: 16px;
}
.notice.success {
  border-color: #3e8c63;
}
.notice code {
  display: inline-block;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.notice h2 {
  font-size: 28px;
}
.demo {
  color: var(--text, #252525);
  font-size: 14px;
}
.form-message {
  color: #8d3027;
}
.tracking-form {
  margin: auto;
  max-width: 620px;
}
.project-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 30px;
  margin: 0 0 36px;
  background: var(--soft, #f1ebed);
  border: 1px solid var(--line, #e2d9dc);
}
.project-facts dt {
  font-size: 13px;
  color: var(--muted, #626168);
}
.project-facts dd {
  margin: 8px 0 0;
  font-size: 18px;
}
.project-facts small {
  display: block;
  font-size: 12px;
  color: var(--muted, #626168);
}
progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 14px;
  accent-color: var(--green, #b52136);
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-block: 32px;
}
.photo-gallery:empty {
  display: none;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}
.photo-gallery figcaption {
  font-size: 12px;
  color: var(--muted, #626168);
}
.comparison {
  margin: 32px 0;
}
.compare-images {
  position: relative;
  overflow: hidden;
  --split: 50%;
}
.compare-images > .after {
  width: 100%;
  display: block;
}
.before-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 calc(100% - var(--split)));
}
.before-layer > .before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-label {
  position: absolute;
  bottom: 16px;
  background: #252525bb;
  color: white;
  padding: 4px 14px;
  font-size: 12px;
}
.before-label {
  right: 16px;
}
.after-label {
  left: 16px;
}
.comparison label {
  display: block;
  margin-top: 15px;
  font-size: 14px;
}
.comparison input {
  width: 100%;
  min-height: 44px;
  accent-color: var(--green, #b52136);
}
video {
  display: block;
  width: 100%;
  background: #252525;
  max-height: 75vh;
}
.document-block,
.statistic-block,
.related-links,
.contact-cta {
  border: 1px solid var(--line, #e2d9dc);
  padding: 30px;
  background: var(--surface, #fff);
  margin-block: 30px;
}
.document-block h3,
.statistic-block h3 {
  margin-top: 0;
}
.statistic-block strong {
  font-size: 62px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--green, #b52136);
}
[data-theme="dark"] .statistic-block strong {
  color: var(--gold, #b52136);
}
.related-links a {
  display: block;
  border-bottom: 1px solid var(--line, #e2d9dc);
  padding-block: 12px;
  font-size: 16px;
}
.related-links:has(h3:only-child) {
  display: none;
}
.quote-block {
  padding: 40px;
  background: var(--soft, #f1ebed);
  margin-block: 32px;
}
.quote-block figcaption {
  font-size: 13px;
  color: var(--muted, #626168);
}
.block-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--soft, #f1ebed);
  padding: 36px;
}
.source-note {
  border-top: 1px solid var(--line, #e2d9dc);
  padding-top: 20px;
  font-size: 14px !important;
}
.contact-cta h2 {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .project-filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-filters label:first-child {
    grid-column: 1/-1;
  }
  .contact-grid {
    gap: 40px;
  }
  .form-panel {
    padding: 28px;
  }
}
@media (max-width: 700px) {
  .project-filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .project-filters > a {
    justify-content: center;
  }
  .map-canvas {
    height: 360px;
  }
  .map-tools {
    inset-inline-end: 22px;
    top: 22px;
    gap: 4px;
  }
  .map-tools button:last-child {
    font-size: 11px;
  }
  .map-detail {
    gap: 14px;
  }
  .map-detail img {
    width: 90px;
    height: 90px;
  }
  .map-detail h3 {
    font-size: 19px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-inline-start: 30px;
    padding-bottom: 32px;
  }
  .timeline li:before {
    inset-inline-start: 5px;
  }
  .timeline li:after {
    inset-inline-start: 0;
  }
  .timeline h3 {
    font-size: 23px;
  }
  .timeline p {
    font-size: 15px;
  }
  .empty-state {
    padding: 32px 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-grid > div > h2 {
    font-size: 32px;
  }
  .form-panel {
    padding: 25px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .notice {
    padding: 20px;
  }
  .notice code {
    font-size: 14px;
  }
  .project-facts {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  .block-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .filter-tabs {
    gap: 4px;
  }
  .filter-tabs a {
    padding: 10px 12px;
    font-size: 12px;
  }
  .quote-block {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .comparison * {
    transition: none !important;
  }
}

html:not(.js) [data-map-toggle] {
  display: none;
}
