@font-face {
  font-family: Geist;
  src: url("geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("geist-central.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
  font-family: Geist, system-ui, sans-serif;
  color: #1c2623;
  background: #f5f6f3;
  --ink: #1c2623;
  --muted: #52605b;
  --line: #dde3dd;
  --green: #205540;
  --paper: #fff;
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2e7b5c; outline-offset: 3px; }
.top {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: clamp(16px, 3.5vw, 54px);
  background: #202b27;
  color: #f5f6f2;
}
.brand { font-size: 1.55rem; letter-spacing: -.085em; font-weight: 780; }
.brand span { color: #95bc97; }
.top-divider { height: 23px; width: 1px; background: #4d5b54; flex: none; }
.top-label { font-size: .9rem; font-weight: 550; }
.customer { margin-left: auto; color: #e0ebe3; font-size: .875rem; text-align: right; }
.portal { width: min(100%, 1800px); margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 54px); }
.projects { padding-top: clamp(32px, 6vw, 76px); padding-bottom: 36px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3.9vw, 3.25rem); font-weight: 700; line-height: 1.06; letter-spacing: -.06em; }
.projects > p { margin-top: 16px; color: var(--muted); }
.projects-title { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 385px)); gap: 20px; list-style: none; padding: 0; }
.project-card {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.project-card:hover { border-color: #91aa9c; box-shadow: 0 9px 26px #20312b16; }
.project-image { display: block; width: 100%; height: 205px; object-fit: cover; object-position: center 50%; background: #e2e7de; }
.project-caption { display: grid; gap: 12px; padding: 19px 20px 20px; }
.project-caption h2 { font-size: 1.3rem; letter-spacing: -.04em; }
.open-map { width: max-content; color: var(--green); font-size: .875rem; font-weight: 650; border-bottom: 1px solid #bad2c5; padding-bottom: 2px; }
.viewer { padding-bottom: 24px; }
.viewer-toolbar { min-height: 112px; display: grid; align-content: center; justify-items: start; gap: 10px; padding-block: 14px; }
.viewer-toolbar h1 { font-size: clamp(1.65rem, 3.3vw, 2.55rem); }
.back { color: var(--green); font-size: .875rem; font-weight: 620; text-underline-offset: 3px; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(248px, 300px); align-items: start; gap: 18px; }
.map-frame {
  position: relative;
  overflow: hidden;
  height: clamp(420px, calc(100dvh - 210px), 1080px);
  border: 1px solid #b8c6bb;
  border-radius: 12px;
  background: #e9ede5;
}
.map { height: 100%; z-index: 0; }
.map.leaflet-container {
  background-color: #e9ede5;
  background-image: linear-gradient(#ced6cb80 1px, transparent 1px), linear-gradient(90deg, #ced6cb80 1px, transparent 1px);
  background-size: 34px 34px;
  font-family: inherit;
}
.map .leaflet-control-zoom { box-shadow: 0 1px 10px #1e2b2330; border: solid 1px #d5dfd7; border-radius: 8px; }
.map .leaflet-control-zoom a { width: 38px; height: 37px; line-height: 37px; color: var(--ink); }
.map .leaflet-control-zoom a.leaflet-disabled { color: #737a76; }
.map .leaflet-right .leaflet-control { margin-right: 12px; }
.map .leaflet-top .leaflet-control { margin-top: 12px; }
.fit-map { border: 1px solid #d5dfd7; box-shadow: 0 1px 9px #1e2b2326; border-radius: 7px; color: var(--ink); background: white; padding: 7px 10px; font-size: .875rem; font-weight: 620; }
.fit-map:hover { background: #edf3ee; }
.map .leaflet-control-scale-line { background: #fffffff0; color: var(--ink); padding: 2px 5px; font-size: .8rem; }
.map-status { position: absolute; z-index: 1; left: 12px; bottom: 33px; max-width: calc(100% - 24px); background: white; border-radius: 6px; padding: 9px 12px; }
.layer-panel { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.layer-panel h2 { font-size: 1.1rem; padding: 16px; border-bottom: 1px solid var(--line); }
.layer { padding: 16px; }
.layer + .layer { border-top: 1px solid #edf0ed; }
.layer-top, .layer-name { display: flex; align-items: center; }
.layer-top { justify-content: space-between; gap: 8px; }
.layer-name { gap: 9px; min-height: 30px; font-size: .9375rem; font-weight: 620; cursor: pointer; }
.swatch { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid #476b51; flex: none; }
.swatch-ortho { background: #537351; }
.swatch-red { background: #dc4045; border-color: #ae3036; }
.swatch-white { background: #fff; border: 1px solid #6a7770; }
.switch { appearance: none; width: 39px; height: 23px; border-radius: 20px; background: #6d7971; position: relative; flex: none; cursor: pointer; margin: 0; }
.switch:checked { background: var(--green); }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; transition: transform .14s; }
.switch:checked::after { transform: translateX(16px); }
.layer-bottom { min-height: 34px; display: grid; grid-template-columns: auto minmax(48px, 1fr) 3.1rem; align-items: center; margin-top: 6px; gap: 9px; color: var(--muted); font-size: .875rem; }
.layer-bottom output { text-align: right; font-variant-numeric: tabular-nums; }
.layer-hidden { opacity: .56; }
.opacity { width: 100%; margin: 0; appearance: none; background: transparent; height: 28px; cursor: pointer; }
.opacity:disabled { cursor: default; }
.opacity::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(to right, var(--green) var(--value, 0%), #dce4dd var(--value, 0%)); }
.opacity::-moz-range-track { height: 4px; border-radius: 3px; background: linear-gradient(to right, var(--green) var(--value, 0%), #dce4dd var(--value, 0%)); }
.opacity::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; margin-top: -5.5px; background: var(--green); border-radius: 50%; }
.opacity::-moz-range-thumb { width: 15px; height: 15px; border: 0; background: var(--green); border-radius: 50%; }
.message { color: var(--muted); margin-block: 16px; }
.error, .layer-error { color: #9b343a; }
.layer-error { padding: 16px; }
@media (max-width: 750px) {
  .top { height: 57px; gap: 12px; }
  .viewer-toolbar { min-height: 88px; }
  .viewer-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .map-frame { height: clamp(285px, 47dvh, 580px); }
  .layer-panel h2 { padding: 12px 14px; }
  .layer { padding: 8px 14px; }
  .layer-bottom { margin-top: 0; }
}
