:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20352a;
  background: #eef0e7;
  --green: #173d2b;
  --line: #dce2d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  background: #fffffff2;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(9px);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  text-decoration: none;
}

.home-brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green);
  color: #e2edb9;
  font-size: 26px;
}

.home-brand small,
.hero small,
.list-head small {
  display: block;
  font-size: 9px;
  letter-spacing: .16em;
  font-weight: 900;
  color: #78847c;
}

.home-brand strong {
  display: block;
  font: 20px Georgia, serif;
}

.account-nav {
  position: relative;
}

.account-nav button,
.account-nav .about-link,
.account-menu a,
.account-menu button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: #edf0e9;
  color: #405448;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.account-nav .about-link {
  display: inline-flex;
  margin-right: 7px;
  text-decoration: none;
}

.account-menu {
  position: absolute;
  right: 0;
  top: 48px;
  display: grid;
  gap: 7px;
  min-width: 190px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 40px #173d2b24;
}

.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  border-radius: 10px;
  text-align: left;
}

.account-menu .primary {
  background: var(--green);
  color: #fff;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 58px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.hero h1 {
  font: 43px Georgia, serif;
  color: var(--green);
  margin: 7px 0 8px;
}

.map-search {
  width: min(620px, 100%);
  margin-top: 18px;
}

.map-search > div {
  display: flex;
  padding: 5px;
  border: 1px solid #cdd8ca;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px #243b2d0f;
}

.map-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  color: var(--green);
  background: transparent;
  font: inherit;
}

.map-search button {
  border: 0;
  border-radius: 11px;
  padding: 9px 17px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.map-search small {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: #638068;
  font-size: 11px;
  letter-spacing: 0;
}

.hero-count {
  border: 1px solid #d7dfd3;
  border-radius: 18px;
  background: #fff;
  padding: 15px 18px;
  color: #52645a;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 24px #243b2d0f;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.map-card,
.live-list {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px #243b2d12;
  overflow: hidden;
}

.map-card {
  position: relative;
  min-height: 620px;
}

.osm-map {
  position: relative;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 560px;
  overflow: hidden;
  background: #dbe8df;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.osm-map.dragging {
  cursor: grabbing;
}

.tile-layer,
.marker-layer {
  position: absolute;
  inset: 0;
}

.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
}

.marker-layer {
  pointer-events: none;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 9px 13px #173d2b4d);
}

.map-cluster {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  padding: 0 8px;
  background: #2f7047;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 7px 18px #173d2b55, 0 0 0 6px #77a96855;
  cursor: zoom-in;
}

.map-cluster:hover,
.map-cluster:focus-visible {
  background: #1d5434;
  outline: 3px solid #dcebb9;
}

.map-marker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #c85f33;
  color: #fff;
  transform: rotate(-45deg);
  font-size: 17px;
  font-weight: 900;
}

.map-marker span i {
  display: block;
  transform: rotate(45deg);
  font-style: normal;
}
.map-marker.location-only span{background:#d67a3d}.map-marker.location-only b{border-color:#e4b18c}.map-marker[aria-disabled="true"]{cursor:default;opacity:.9}.live-item.location-only{background:#fff8ef}.live-item.location-only em{color:#9a5b32}

.map-marker b {
  position: absolute;
  left: 26px;
  top: 7px;
  max-width: 190px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fffffff2;
  color: var(--green);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 5px 16px #173d2b24;
}

.map-marker:hover span,
.map-marker:focus-visible span,
.map-marker.search-focus span {
  background: #e88746;
  outline: 3px solid #f1d8a8;
}

.map-marker.search-focus span {
  animation: searched-marker 1s ease-in-out 3;
}

@keyframes searched-marker {
  50% { transform: rotate(-45deg) scale(1.25); }
}

.map-controls {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.map-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid #cfd8cc;
  border-radius: 10px;
  background: #fff;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 6px 18px #173d2b24;
  cursor: pointer;
}

.map-attribution {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 7px;
  background: #ffffffe8;
  color: #53645a;
  font-size: 10px;
  text-decoration: none;
}

.map-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  border-radius: 14px;
  padding: 11px 13px;
  background: #fffffff0;
  color: #52645a;
  font-size: 12px;
  box-shadow: 0 8px 24px #243b2d1a;
  pointer-events: none;
}

.live-list {
  padding: 19px;
  max-height: min(72vh, 720px);
  overflow: auto;
}

.list-head h2 {
  font: 27px Georgia, serif;
  color: var(--green);
  margin: 4px 0 14px;
}

.list-search-selection {
  margin: 0 0 10px;
  padding: 11px;
  border: 1px solid #d8e4d2;
  border-radius: 13px;
  background: #f2f8e9;
}

.list-search-selection span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.list-search-selection button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #397047;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.live-item {
  display: block;
  border-top: 1px solid #edf0eb;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}

.live-item:first-child {
  border-top: 0;
}

.live-item strong {
  display: block;
  color: var(--green);
  font-size: 15px;
}

.live-item span {
  display: block;
  margin-top: 4px;
  color: #638068;
  font-size: 12px;
  line-height: 1.35;
}

.live-item em {
  display: inline-block;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf4dc;
  color: #2e673c;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.empty {
  padding: 22px;
  border: 1px dashed #cbd6c8;
  border-radius: 14px;
  background: #fbfcf7;
  color: #6d786f;
  font-size: 13px;
  line-height: 1.45;
}

footer {
  text-align: center;
  color: #7b867e;
  font-size: 10px;
  padding: 0 20px 28px;
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 34px;
  }

  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 480px;
  }

  .osm-map {
    height: 60vh;
    min-height: 430px;
  }

  .live-list {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .home-header {
    padding: 0 13px;
  }

  .home-brand strong {
    font-size: 17px;
  }

  .home-brand small {
    font-size: 8px;
  }

  .account-nav button {
    padding: 9px 10px;
  }

  .account-nav .about-link {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
  }

  main {
    padding: 24px 13px 44px;
  }

  .map-marker b {
    display: none;
  }

  .map-marker.touch-reveal b {
    display: block;
    z-index: 3;
  }
}
