:root {
  --navy: #073c5a;
  --blue: #147fb6;
  --sky: #e7f8ff;
  --mint: #2aae8a;
  --yellow: #ffc945;
  --coral: #ef6d66;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--navy);
  font-family: Nunito, system-ui, sans-serif;
  background: #dff5f8;
}
.app {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 100vh;
}
.side {
  z-index: 2;
  padding: 24px 20px;
  background: linear-gradient(160deg, #f9feff, #e1f6f2);
  box-shadow: 7px 0 24px #194a5b21;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border-radius: 17px;
  background: var(--yellow);
  font-size: 27px;
  box-shadow: 0 4px #d99b14;
}
h1 {
  margin: 0;
  font:
    800 28px/0.95 "Baloo 2",
    sans-serif;
}
.eyebrow {
  margin: 3px 0 0;
  color: #38708a;
  font-size: 12px;
  font-weight: 900;
}
.intro {
  margin: 20px 0 13px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #c5e9f1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
h2 {
  margin: 17px 0 9px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filter {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  color: #24586f;
  background: #fff;
  box-shadow: 0 2px 0 #b7dce8;
  font: 800 12px Nunito;
  cursor: pointer;
}
.filter.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 2px 0 #07547e;
}
.places {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding: 2px;
}
.place {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 13px;
  text-align: left;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 2px 0 #c1e1eb;
  cursor: pointer;
  font-family: inherit;
}
.place:hover {
  transform: translateY(-1px);
}
.place-icon {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  height: 37px;
  border-radius: 12px;
  background: #e8f7fc;
  font-size: 19px;
}
.place strong {
  display: block;
  font-size: 13px;
}
.place small {
  display: block;
  margin-top: 1px;
  color: #5e8292;
  font-size: 11px;
  font-weight: 700;
}
#map {
  min-height: 100vh;
  background: #bde7ef;
}
.leaflet-control-layers {
  font:
    800 12px Nunito,
    system-ui,
    sans-serif;
}
.leaflet-control-layers-expanded {
  padding: 9px 12px;
}
.leaflet-popup-content-wrapper {
  border-radius: 16px;
  font-family: Nunito;
}
.leaflet-popup-content {
  margin: 14px 16px;
}
.popup-title {
  margin: 0 0 3px;
  font-size: 16px;
}
.popup-type {
  margin: 0 0 8px;
  color: #38708a;
  font-size: 12px;
  font-weight: 800;
}
.popup-button {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.pin {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  box-shadow: 0 3px 7px #07536a55;
  transform: rotate(-45deg);
}
.pin span {
  transform: rotate(45deg);
  font-size: 18px;
}
.pin.health {
  background: #e26861;
}
.pin.school {
  background: #5a8bd2;
}
.pin.protection {
  background: #8c63c7;
}
.pin.space {
  background: #36a87b;
}
.pin.institution {
  background: #456d96;
}
@media (max-width: 760px) {
  .app {
    display: flex;
    flex-direction: column;
  }
  .side {
    padding: 14px 14px 12px;
    box-shadow: 0 5px 18px #194a5b21;
  }
  .brand {
    gap: 9px;
  }
  .logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
  }
  h1 {
    font-size: 24px;
  }
  .intro {
    margin: 12px 0 10px;
    padding: 10px 11px;
    font-size: 12px;
  }
  h2 {
    margin: 11px 0 7px;
  }
  .filters {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 3px;
  }
  .filter {
    white-space: nowrap;
    font-size: 11px;
    padding: 7px 10px;
  }
  .places {
    grid-template-columns: 1fr 1fr;
    max-height: 156px;
    overflow: auto;
    margin-top: 9px;
  }
  .place {
    gap: 7px;
    padding: 8px;
  }
  .place-icon {
    flex-basis: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 16px;
  }
  .place strong {
    font-size: 11px;
    line-height: 1.05;
  }
  .place small {
    font-size: 9px;
  }
  #map {
    min-height: 54vh;
    height: 54vh;
  }
  .leaflet-control-attribution {
    font-size: 8px !important;
  }
}
.dialog-icon {
  display: none !important;
}
