@font-face {
  font-family: Manrope;
  src: url(manrope-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
  font-family: Manrope, sans-serif;
  color: #192735;
  background: #e9eee9;
  --surface: #fff;
  --muted: #526273;
  --accent: #185b62;
  --line: #dce4e7;
  --shadow: 0 8px 30px #21394b25;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main, #map { position: absolute; inset: 0; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent); }
.panel, .search-row {
  background: var(--surface);
  border: 1px solid #dce4e7d9;
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.tools {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  width: min(420px, calc(100% - 32px));
}
.search-row { display: flex; align-items: center; padding: 5px; gap: 4px; }
.search { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 0 8px 0 12px; }
.search input { min-width: 0; width: 100%; padding: 7px 0; border: 0; background: transparent; font-size: 1rem; }
.search-icon { flex: 0 0 14px; height: 14px; border: 2px solid #556776; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; background: #556776; right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 2px; }
.filter-toggle {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: #e9f4f3;
  color: #194f56;
  font-weight: 800;
  font-size: .875rem;
}
.filter-toggle[aria-expanded="true"] { background: #195a61; color: white; }
.filter-icon { width: 15px; height: 12px; background: linear-gradient(currentColor,currentColor) center top/15px 2px no-repeat, linear-gradient(currentColor,currentColor) center/11px 2px no-repeat, linear-gradient(currentColor,currentColor) center bottom/7px 2px no-repeat; }
.filters, .results { margin-top: 8px; padding: 15px; max-height: calc(100dvh - 105px); overflow: auto; overscroll-behavior: contain; }
.filters select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; padding: 7px 10px; }
.district-label, .filter-header { font-weight: 800; font-size: .875rem; }
.district-label { display: block; margin-bottom: 6px; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 5px; }
.filter-header button { background: none; border: 0; color: var(--accent); font-weight: 800; padding: 6px 0 6px 6px; }
.group {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  min-height: 38px;
  font-size: .875rem;
  cursor: pointer;
}
.group input { margin: 0; accent-color: var(--accent); width: 17px; height: 17px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; background: var(--marker, var(--accent)); }
.group-count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.results { padding: 7px; }
.results-heading { margin: 7px 9px; font-size: .875rem; color: var(--muted); }
.result {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 9px;
  background: transparent;
  text-align: left;
  font-size: .875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.result:hover { background: #edf6f5; }
.result .dot { margin-top: 5px; }
.result small { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); margin-top: 3px; }
.detail {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 54px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 19px;
}
.close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #eef3f5;
  font-size: 1.5rem;
  line-height: 1;
}
.detail h1 { margin: 9px 27px 12px 0; font-size: 1.15rem; line-height: 1.36; overflow-wrap: anywhere; }
.detail p { margin: 0 0 11px; line-height: 1.5; overflow-wrap: anywhere; }
.detail .category { display: flex; align-items: center; gap: 7px; margin: 1px 35px 0 0; font-size: .8125rem; font-weight: 800; color: var(--muted); }
.detail .location-note { color: var(--muted); font-size: .8125rem; }
.detail dl { margin: 15px 0; }
.detail dt { margin-top: 11px; color: var(--muted); font-weight: 800; font-size: .8125rem; }
.detail dd { margin: 3px 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.detail dd a + a { margin-left: 9px; }
.detail .open-yandex, .detail .back {
  display: inline-block;
  background: #e9f4f3;
  color: #194f56;
  border: 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: .875rem;
  text-decoration: none;
}
.status {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 36px);
  width: max-content;
  padding: 12px 17px;
  font-size: .875rem;
  text-align: center;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--marker, #185b62);
  box-shadow: 0 2px 6px #17314555;
  color: white;
  font: 800 11px Manrope, sans-serif;
}
.pin--multiple { width: 30px; height: 30px; }
.pin--cluster { width: 38px; height: 38px; background: #fff; border: 3px solid #185b62; color: #194f56; font-size: .8125rem; }
.pin:hover { outline: 3px solid #ffffffa8; }
.credits { position: absolute; z-index: 1; left: 12px; bottom: 29px; border-radius: 4px; background: #fffffff0; padding: 2px 5px; font-size: .75rem; }
@media (max-width: 860px) {
  .detail { top: auto; bottom: 44px; max-height: min(55dvh, 480px); }
}
@media (max-width: 480px) {
  .tools { left: 10px; top: 10px; width: calc(100% - 20px); }
  .detail { right: 10px; width: calc(100% - 20px); padding: 16px; }
}
