.map-page {
  padding: clamp(28px, 5vw, 65px) 0 48px;
}

.map-page h1 {
  font-size: clamp(3.4rem, 6.5vw, 6.2rem);
}

.map-page .lead {
  max-width: 58ch;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
  margin: 12px 0 18px;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-controls button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #66818D;
  background: transparent;
  color: #203B50;
  font: 700 .84rem/1.35 Arial, sans-serif;
  cursor: pointer;
}

.map-controls button[aria-pressed="true"] {
  background: #203B50;
  color: #fff;
  border-color: #203B50;
}

#como-map {
  height: clamp(360px, 61vh, 630px);
  border: 1px solid #A8BBC4;
  background: #C5D3D9;
}

#map-fallback {
  padding: 20px;
  border: 1px solid #A8BBC4;
}

.map-directory {
  border-top: 1px solid #A8BBC4;
  padding-top: 12px;
}

.map-directory h2 {
  margin-bottom: 12px;
  font-size: 1.9rem;
  letter-spacing: -.035em;
}

.place-search {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: #465D69;
  font: 700 .82rem/1.4 Arial, sans-serif;
}

.place-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #66818D;
  background: #F7F5EF;
  color: #203B50;
  font: 1rem Arial, sans-serif;
}

.map-filters button {
  padding-inline: 10px;
}

.place-count, .map-note {
  font: .88rem/1.55 Arial, sans-serif;
  color: #465D69;
}

.place-count {
  margin-top: 12px;
}

.map-places {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: clamp(240px, 41vh, 450px);
  overflow-y: auto;
}

.map-places li {
  border-top: 1px solid #C5D3D9;
  padding: 10px 2px 10px 0;
}

.place-name {
  display: inline-block;
  border: 0;
  padding: 2px 0;
  background: none;
  color: inherit;
  font: 700 1rem/1.35 Georgia, serif;
  text-align: left;
}

button.place-name {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.place-meta {
  display: block;
  color: #465D69;
  font: .83rem/1.45 Arial, sans-serif;
}

.place-directions, .map-popup a {
  font: 700 .83rem/1.45 Arial, sans-serif;
}

.map-popup p {
  margin: 6px 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font: .81rem/1.45 Arial, sans-serif;
}

.map-legend li {
  display: flex;
  gap: 6px;
  align-items: center;
}

.map-legend span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.map-marker {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  box-shadow: 0 1px 5px #0006;
}

.pin-residence { background: #3c513e; }
.pin-transport { background: #31566a; }
.pin-restaurant { background: #8b4430; }
.pin-bar { background: #66476b; }
.pin-cafe { background: #78542a; }
.pin-landmark { background: #465D69; }

@media (max-width: 850px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #como-map {
    height: clamp(330px, 55vh, 490px);
  }

  .map-places {
    max-height: 440px;
  }
}

.illustrated-map {
  max-width: 1050px;
  margin: 18px 0 44px;
}

.illustrated-map a {
  display: block;
  border: 1px solid #C5D3D9;
}

#interactive {
  scroll-margin-top: 20px;
}

#interactive-title {
  font-size: clamp(2rem, 4vw, 3.8rem);
}
