.map-intro {
  padding: 64px max(5vw, 22px) 40px;
  width: min(1340px, 100%);
  margin: auto;
}
.map-intro h1 {
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: 1.14;
  margin: 0;
}
.map-intro h1 em {
  font-weight: 500;
  color: #8c6430;
}
.map-intro > p:last-child {
  font-size: 16px;
  color: #465847;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 760px;
}
.map-intro > p:last-child a {
  color: #234d2c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  width: min(1340px, 90vw);
  height: min(72vh, 690px);
  min-height: 560px;
  margin: 0 auto 70px;
  border: 1px solid #c6d0c0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(27, 50, 21, 0.09);
}
.map-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border-right: 1px solid #c6d0c0;
}
.map-select-label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #425744;
}
.map-select-label select {
  height: 44px;
  border: 1px solid #b8c4b3;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: #1e3121;
  font-size: 14px;
  letter-spacing: normal;
}
.map-select-label select:focus {
  border-color: #35633f;
  outline: 3px solid rgba(53, 99, 63, 0.24);
}
.map-status {
  font-size: 13px;
  font-weight: 700;
  color: #3f5341;
  border-top: 1px solid #dde3d8;
  padding: 14px 0;
  margin: 2px 0 0;
}
.map-list {
  overflow-y: auto;
  min-height: 0;
}
.map-item-row {
  border-top: 1px solid #e2e8de;
  padding: 13px 4px;
}
.map-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  color: #1e3121;
}
.map-item:hover,
.map-item:focus-visible {
  background: #eef3ea;
}
.map-item strong {
  display: block;
  font: 500 21px/1.22 "Playfair Display", Georgia, serif;
}
.map-item small {
  display: block;
  margin-top: 5px;
  color: #495b4a;
  font-size: 13px;
  line-height: 1.45;
}
.map-item em {
  display: block;
  margin-top: 6px;
  color: #466041;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 4px 0;
  font-size: 12px;
  font-weight: 700;
}
.map-item-links a {
  color: #255232;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map-wrap {
  position: relative;
  min-width: 0;
}
#map {
  width: 100%;
  height: 100%;
  background: #dce7d8;
}
.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 28px;
  text-align: center;
  color: #3f5341;
  font-size: 14px;
  line-height: 1.6;
}
.map-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  max-width: 340px;
  padding: 8px 11px;
  margin: 0;
  background: rgba(255, 253, 245, 0.94);
  border: 1px solid #d5ddd0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.45;
  color: #3e4f3e;
}
.maplibregl-popup-content {
  min-width: 200px;
  padding: 14px;
}
.popup-name {
  font: 500 20px/1.22 "Playfair Display", Georgia, serif;
  margin: 0 0 6px;
}
.popup-place {
  font-size: 13px;
  color: #495b4a;
  margin: 0 0 11px;
}
.popup-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
}
.popup-links a {
  color: #245231;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 820px) {
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
    width: auto;
    margin: 0 18px 60px;
  }
  .map-wrap {
    grid-row: 1;
    height: 50vh;
    min-height: 330px;
  }
  .map-panel {
    border-right: 0;
    border-top: 1px solid #c6d0c0;
    max-height: 500px;
  }
  .map-intro {
    padding: 48px 20px 32px;
  }
}

@media (max-width: 600px) {
  .map-intro h1 {
    font-size: clamp(38px, 10.5vw, 54px);
  }
  .map-intro > p:last-child {
    font-size: 15px;
  }
  .map-wrap {
    height: 46vh;
    min-height: 310px;
  }
  .map-note {
    bottom: 28px;
    max-width: 265px;
    font-size: 11px;
  }
}
