.illustrated-map-hero {
  min-height: 600px;
  padding: 165px max(24px, calc((100vw - var(--container)) / 2)) 85px;
  display: flex;
  align-items: flex-end;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 176, 93, .18), transparent 29%),
    linear-gradient(125deg, #173326 0%, #234737 62%, #315847 100%);
}

.illustrated-map-hero > div {
  max-width: 1000px;
}

.illustrated-map-hero a {
  display: inline-block;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, .72);
  font: 650 12px/1.3 var(--display);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.illustrated-map-hero h1 {
  max-width: 960px;
  margin: 15px 0 28px;
  font-size: clamp(70px, 9vw, 124px);
  line-height: .86;
}

.illustrated-map-hero > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(20px, 2.2vw, 27px);
}

.illustrated-map-explorer {
  padding: 100px max(24px, calc((100vw - 1440px) / 2)) 120px;
  color: var(--forest);
  background: #f4f0e7;
}

.illustrated-map-heading {
  max-width: 1280px;
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 70px;
  align-items: end;
}

.illustrated-map-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(50px, 6vw, 84px);
  line-height: .9;
}

.illustrated-map-heading > p {
  max-width: 560px;
  margin: 0 0 7px;
  color: #52645b;
  font-size: 19px;
}

.illustrated-map-tools {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.7fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(35, 71, 55, .2);
  border-bottom: 0;
  background: #fffdf8;
}

.illustrated-map-search {
  min-height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(35, 71, 55, .24);
  background: white;
}

.illustrated-map-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
}

.illustrated-map-search input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--forest);
  background: transparent;
  font: 560 13px/1 var(--display);
}

.illustrated-map-search input::placeholder {
  color: #738078;
  opacity: 1;
}

.illustrated-map-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.illustrated-map-filters button,
.illustrated-map-fullscreen {
  min-height: 42px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(35, 71, 55, .22);
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font: 700 10px/1 var(--display);
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.illustrated-map-filters button:hover,
.illustrated-map-filters button:focus-visible,
.illustrated-map-filters button.is-active {
  border-color: var(--forest);
  color: white;
  background: var(--forest);
}

.illustrated-map-fullscreen {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  background: var(--brown);
}

.illustrated-map-fullscreen:hover,
.illustrated-map-fullscreen:focus-visible {
  border-color: var(--forest);
  background: var(--forest);
}

.illustrated-map-stage {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  scroll-margin-top: 112px;
  border: 1px solid rgba(35, 71, 55, .2);
  background: white;
}

.illustrated-map-canvas {
  z-index: 0;
  min-height: 780px;
  background: #e9e5dc;
}

.illustrated-map-canvas .leaflet-image-layer {
  filter: saturate(.96) contrast(1.01);
}

.illustrated-map-canvas .leaflet-control-zoom {
  margin: 18px 0 0 18px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(24, 51, 38, .17);
}

.illustrated-map-canvas .leaflet-control-zoom a {
  width: 46px;
  height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(35, 71, 55, .17);
  border-radius: 0;
  color: var(--forest);
  background: #fffdf8;
  font: 400 25px/44px var(--display);
}

.illustrated-map-canvas .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.illustrated-map-canvas .leaflet-control-zoom a:hover,
.illustrated-map-canvas .leaflet-control-zoom a:focus {
  color: white;
  background: var(--forest);
}

.illustrated-map-leaflet-controls {
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(24, 51, 38, .17);
}

.illustrated-map-leaflet-controls button {
  width: 46px;
  height: 46px;
  display: block;
  border: 0;
  border-bottom: 1px solid rgba(35, 71, 55, .17);
  color: var(--forest);
  background: #fffdf8;
  cursor: pointer;
  font: 600 21px/1 var(--display);
}

.illustrated-map-leaflet-controls button:last-child {
  border-bottom: 0;
}

.illustrated-map-leaflet-controls button:hover,
.illustrated-map-leaflet-controls button:focus-visible {
  color: white;
  background: var(--forest);
}

.merina-map-marker {
  border: 0;
  background: transparent;
}

.merina-map-pin {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 50% 50% 50% 8px;
  color: white;
  background: var(--terracotta);
  box-shadow: 0 5px 18px rgba(23, 51, 38, .32);
  transform: rotate(-45deg);
  transition: width .2s ease, height .2s ease, margin .2s ease, background .2s ease;
}

.merina-map-pin::after {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.merina-map-pin.is-localidades {
  background: #325f4c;
}

.merina-map-pin.is-patrimonio {
  background: #8b5945;
}

.merina-map-pin.is-naturaleza {
  background: #6e917b;
}

.merina-map-pin.is-ganaderias {
  color: var(--forest);
  background: var(--yellow);
}

.merina-map-pin.is-socios {
  background: #406c88;
}

.merina-map-pin.is-experiencias {
  background: #b86d48;
}

.merina-map-pin.is-alojamiento {
  background: #776595;
}

.merina-map-pin.is-gastronomia {
  color: var(--forest);
  background: #e4bd6b;
}

.merina-map-marker:hover .merina-map-pin,
.merina-map-marker:focus .merina-map-pin,
.merina-map-marker.is-active .merina-map-pin {
  width: 42px;
  height: 42px;
  margin: -4px;
  background: var(--forest);
}

.merina-map-marker:focus {
  outline: 3px solid white;
  outline-offset: 4px;
}

.illustrated-map-tooltip {
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  color: white;
  background: var(--forest);
  box-shadow: 0 7px 20px rgba(23, 51, 38, .2);
  font: 650 11px/1.3 var(--display);
}

.illustrated-map-tooltip::before {
  border-top-color: var(--forest);
}

.illustrated-map-card {
  position: absolute;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  width: min(350px, calc(100% - 48px));
  min-height: 440px;
  padding: 48px 35px 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(35, 71, 55, .2);
  background: #fffdf8;
  box-shadow: 0 18px 55px rgba(23, 51, 38, .2);
}

.illustrated-map-card h2 {
  margin: 18px 0 18px;
  color: var(--forest);
  font-size: clamp(35px, 3.2vw, 50px);
  line-height: .94;
}

.illustrated-map-card-location {
  margin-bottom: 28px;
  color: var(--terracotta);
  font: 700 11px/1.4 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.illustrated-map-card > p:not(.eyebrow):not(.illustrated-map-card-location) {
  color: #55645c;
  font-size: 17px;
}

.illustrated-map-card > a {
  width: fit-content;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font: 700 12px/1.35 var(--display);
}

.illustrated-map-card-footer {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-top: 1px solid rgba(35, 71, 55, .16);
  color: #708078;
  font: 650 10px/1.2 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.illustrated-map-card-footer strong {
  color: var(--forest);
  font-size: 25px;
}

.illustrated-map-results {
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 0 0;
}

.illustrated-map-results > div:first-child {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.illustrated-map-results > div:first-child p {
  margin: 0;
}

.illustrated-map-results > div:first-child span {
  color: #68766f;
  font: 650 11px/1.3 var(--display);
}

.illustrated-map-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(35, 71, 55, .2);
  border-left: 1px solid rgba(35, 71, 55, .2);
}

.illustrated-map-result-grid button {
  min-height: 170px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  border-right: 1px solid rgba(35, 71, 55, .2);
  border-bottom: 1px solid rgba(35, 71, 55, .2);
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, background .2s ease;
}

.illustrated-map-result-grid button > span {
  margin-bottom: 28px;
  color: var(--terracotta);
  font: 700 10px/1 var(--display);
}

.illustrated-map-result-grid button strong {
  font: 720 17px/1.14 var(--display);
}

.illustrated-map-result-grid button small {
  margin-top: 8px;
  color: #6b7972;
  font-size: 12px;
}

.illustrated-map-result-grid button:hover,
.illustrated-map-result-grid button:focus-visible,
.illustrated-map-result-grid button.is-active {
  color: white;
  background: var(--forest);
}

.illustrated-map-result-grid button:hover small,
.illustrated-map-result-grid button:focus-visible small,
.illustrated-map-result-grid button.is-active small,
.illustrated-map-result-grid button:hover > span,
.illustrated-map-result-grid button:focus-visible > span,
.illustrated-map-result-grid button.is-active > span {
  color: rgba(255, 255, 255, .72);
}

.illustrated-map-result-grid button[hidden] {
  display: none;
}

.illustrated-map-empty {
  padding: 28px;
  border: 1px solid rgba(35, 71, 55, .2);
  border-top: 0;
  color: #68766f;
}

.map-expanded {
  overflow: hidden;
}

.illustrated-map-stage.is-map-expanded {
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  border: 0;
  background: white;
}

.illustrated-map-stage.is-map-expanded .illustrated-map-canvas {
  min-height: 100vh;
  height: 100vh;
}

.illustrated-map-stage.is-map-expanded .illustrated-map-card {
  min-height: 440px;
}

@media (max-width: 1100px) {
  .illustrated-map-tools {
    grid-template-columns: 1fr auto;
  }

  .illustrated-map-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .illustrated-map-card {
    padding-inline: 28px;
  }

  .illustrated-map-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .illustrated-map-hero {
    min-height: 520px;
    padding: 120px 20px 56px;
  }

  .illustrated-map-hero a {
    margin-bottom: 48px;
  }

  .illustrated-map-hero h1 {
    margin-bottom: 24px;
    font-size: 61px;
  }

  .illustrated-map-hero > div > p:last-child {
    font-size: 19px;
  }

  .illustrated-map-explorer {
    padding: 70px 14px 82px;
  }

  .illustrated-map-heading {
    margin-bottom: 36px;
    display: block;
  }

  .illustrated-map-heading h2 {
    margin-bottom: 24px;
    font-size: 50px;
  }

  .illustrated-map-heading > p {
    font-size: 17px;
  }

  .illustrated-map-tools {
    padding: 12px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .illustrated-map-filters {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .illustrated-map-fullscreen {
    justify-content: space-between;
  }

  .illustrated-map-stage {
    width: calc(100% + 28px);
    margin-inline: -14px;
    display: block;
    border-inline: 0;
  }

  .illustrated-map-canvas {
    min-height: 68svh;
  }

  .illustrated-map-card {
    position: static;
    width: 100%;
    min-height: 390px;
    padding: 35px 25px 28px;
    border-top: 1px solid rgba(35, 71, 55, .2);
    border-inline: 0;
    border-bottom: 0;
    box-shadow: none;
  }

  .illustrated-map-card h2 {
    font-size: 39px;
  }

  .illustrated-map-result-grid {
    grid-template-columns: 1fr;
  }

  .illustrated-map-result-grid button {
    min-height: 130px;
  }

  .illustrated-map-result-grid button > span {
    margin-bottom: 20px;
  }

  .illustrated-map-stage.is-map-expanded {
    display: block;
  }

  .illustrated-map-stage.is-map-expanded .illustrated-map-canvas {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
  }

  .illustrated-map-stage.is-map-expanded .illustrated-map-card {
    position: absolute;
    z-index: 800;
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 0;
    height: auto;
    max-height: 42vh;
    padding: 22px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(23, 51, 38, .27);
  }

  .illustrated-map-stage.is-map-expanded .illustrated-map-card h2 {
    margin-block: 10px;
    font-size: 31px;
  }

  .illustrated-map-stage.is-map-expanded .illustrated-map-card-footer {
    display: none;
  }
}
