.mapars {
  --line: #4b3021;
  --text: #fff4e5;
  --muted: #d6b18b;
  --active: #84522e;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  background: var(--bg);
  padding: 32px 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 640px;
  box-sizing: border-box;
}
.mapars * {
  box-sizing: border-box;
}
.mapars-map-panel,
.mapars-info-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 21px;
  min-width: 0;
  background: #170b05;
  overflow: hidden;
}
.mapars-map-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mapars-map {
  width: 100%;
  position: relative;
}
.mapars-map svg {
  width: 100%;
  height: auto;
  display: block;
}
.mapars-region {
  fill: #29170e;
  stroke: #160c07;
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
  transition: fill 0.17s ease;
}
.mapars-region.has-units {
  fill: var(--active);
  cursor: pointer;
}
.mapars-region.has-units:hover {
  fill: #956039;
}
.mapars-region.dimmed:hover {
  fill: #21130c;
}
.mapars-region.dimmed {
  fill: #21130c;
}
.mapars-region.selected,
.mapars-region.selected:hover {
  fill: #84522e;
  stroke: #e5bc8d;
  stroke-width: 1.4;
}
.mapars-region:focus-visible {
  outline: none;
  stroke: #fff;
  stroke-width: 2;
}
.mapars-tooltip {
  position: absolute;
  pointer-events: none;
  background: #f5e0c3;
  color: #2c170b;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 2;
  max-width: 180px;
}
.mapars-info-panel {
  padding: 30px 28px;
}
.mapars h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 700;
}
.mapars-overview > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px !important;
}
.mapars-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #28170e;
  padding: 0 15px;
  height: 47px;
}
.mapars-search span {
  font-size: 25px;
  color: #c8aa8b;
}
.mapars-search input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
  width: 100%;
  font-size: 14px;
  outline: none;
  padding: 0 !important;
  height: 100%;
}
.mapars-search input::placeholder {
  color: #d3a983;
  opacity: 1;
}
.mapars-cities {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
  max-height: 385px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #9c9690 transparent;
}
.mapars-city {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  min-height: 39px;
  padding: 9px 12px;
  font:
    13px Arial,
    Helvetica,
    sans-serif;
  cursor: pointer;
}
.mapars-city:hover,
.mapars-city:focus-visible {
  background: #382115;
  border-color: #9a643d;
}
.mapars-city small {
  font-size: 11px;
  color: #dbb995;
}
.mapars-back {
  background: none;
  border: 0;
  padding: 0;
  color: #dfb88c;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  margin: 3px 0 21px;
}
.mapars-back {
    background-color: transparent !important;
}
.mapars-details h2 {
  font-size: 23px;
  margin: 0 0 4px;
}
.mapars-total {
  font-size: 11px;
  color: #bc8654;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.mapars-units {
  display: grid;
  gap: 9px;
  max-height: 420px;
  overflow: auto;
}
.mapars-unit {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #29190f;
  padding: 14px 16px;
  font-size: 13px;
  color: #d7ad86;
}
.mapars-unit strong {
  font-weight: 400;
}
.mapars-unit p {
  margin: 8px 0 0;
}
.mapars-unit a {
  display: inline-block;
  color: #f2c08b;
  margin: 10px 12px 0 0;
  text-decoration: underline;
}
.mapars-empty,
.mapars-loading,
.mapars-error {
  color: #d7ad86;
  font-size: 14px;
}
.mapars-error {
  padding-top: 15px;
}
.mapars [hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .mapars {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
    min-height: 0;
  }
  .mapars-map-panel {
    min-height: 330px;
  }
  .mapars-map {
    max-width: 570px;
  }
  .mapars-info-panel {
    padding: 24px 18px;
  }
  .mapars-cities {
    max-height: 350px;
  }
}
@media (max-width: 420px) {
  .mapars-cities {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .mapars-city {
    padding: 8px;
    font-size: 11px;
  }
  .mapars-search input {
    font-size: 12px;
  }
  .mapars-map-panel {
    padding: 4px;
    min-height: 280px;
  }
}
