@font-face {
  font-family: "NeutraText-Book";
  src: url("../fonts/NeutraText-Book.eot");
  src:
    url("../fonts/NeutraText-Book.eot?#iefix") format("embedded-opentype"),
    url("../fonts/NeutraText-Book.woff2") format("woff2"),
    url("../fonts/NeutraText-Book.woff") format("woff"),
    url("../fonts/NeutraText-Book.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.due90-map {
  position: relative;
  display: block;
  height: 700px;
  min-height: 700px;
  overflow: hidden;
  background: #e8eae7;
  font-family: "NeutraText-Book", "Avenir Next", Avenir, Arial, sans-serif;
  isolation: isolate;
}

.due90-map__canvas {
  position: absolute;
  inset: 0 0 0 370px;
  height: 100%;
  transition: inset .38s cubic-bezier(.22,.61,.36,1);
}

.due90-map .leaflet-container,
.due90-map .leaflet-control {
  font-family: "NeutraText-Book", sans-serif;
}

/*
 * Trattamento cartografico "silver".
 * La classe viene assegnata solo alle tessere stradali in map.js, quindi la
 * vista satellite mantiene i suoi colori originali.
 */
.due90-map .leaflet-tile.due90-map__tiles--silver {
  filter: grayscale(1) saturate(0) contrast(.86) brightness(1.035);
}

.due90-map .leaflet-tile-pane {
  background: #dfe1e1;
}

.due90-map .leaflet-popup-content,
.due90-map .leaflet-popup-content * {
  font-family: "NeutraText-Book", "Avenir Next", Avenir, Arial, sans-serif !important;
}

.due90-map .leaflet-popup {
  bottom: 18px !important;
}

.due90-map__sidebar,
.due90-map__sidebar * {
  font-family: "NeutraText-Book", sans-serif !important;
}

.due90-map.is-sidebar-closed .due90-map__canvas {
  inset: 0;
}

.due90-map__sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 700;
  width: 370px;
  background: rgba(255,255,255,.97);
  border-right: 1px solid rgba(18,36,48,.12);
  box-shadow: 8px 0 22px rgba(28,41,47,.08);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
}

.due90-map.is-sidebar-closed .due90-map__sidebar {
  transform: translateX(-100%);
}

.due90-map__toggle {
  position: absolute;
  top: 12px;
  left: 100%;
  width: 35px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 5px 5px 0;
  background: #fff;
  color: #173145;
  box-shadow: 3px 1px 8px rgba(0,0,0,.18);
  cursor: pointer;
}

.due90-map__toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .38s ease;
}

.due90-map.is-sidebar-closed .due90-map__toggle svg {
  transform: rotate(180deg);
}

.due90-map__list {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #89918c transparent;
}

.due90-map__item {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 18px 16px;
  border: 0;
  border-bottom: 1px solid rgba(18,36,48,.12);
  background: transparent;
  color: #101820;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease;
}

.due90-map__item:hover,
.due90-map__item.is-active {
  background: #f0f2ef;
}

.due90-map__item--home {
  min-height: 126px;
  grid-template-columns: minmax(0,1fr) 90px;
  padding-top: 15px;
  padding-bottom: 15px;
  background: #f2f3f1;
}

.due90-map__item-copy {
  min-width: 0;
}

.due90-map__item-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: inherit;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
}

.due90-map__item--home .due90-map__item-title {
  max-width: 180px;
  font-size: 22px;
  text-transform: uppercase;
}

.due90-map__item-number {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.due90-map__item-address {
  display: block;
  margin-top: 9px;
  color: #5b5d5f;
  font-size: 16px;
  line-height: 1.35;
}

.due90-map__item-image {
  width: 90px;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
}

.due90-map__layers {
  position: absolute;
  z-index: 650;
  top: 12px;
  right: 12px;
  display: flex;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
}

.due90-map__layers button {
  min-width: 94px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #ddd;
  background: #fff;
  color: #555;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.due90-map__layers button:last-child {
  border-right: 0;
}

.due90-map__layers button.is-active {
  color: #111;
  font-weight: 600;
}

.due90-map__fullscreen {
  position: absolute;
  z-index: 650;
  top: 80px;
  right: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #5f6668;
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
  cursor: pointer;
}

.due90-map__fullscreen svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.due90-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
}

.due90-map .leaflet-control-zoom a {
  color: #374247;
}

.due90-map .leaflet-control-attribution {
  font-size: 10px;
}

.due90-map .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(14,31,39,.25);
}

.due90-map .leaflet-popup-content {
  margin: 0;
  font-family: "NeutraText-Book", "Avenir Next", Avenir, Arial, sans-serif !important;
}

.due90-map .leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 10;
  display: block !important;
  border: none;
  text-align: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: #989898;
  text-decoration: none;
  background: #323232;
  opacity: 1;
}

.due90-map .leaflet-container a.leaflet-popup-close-button > span {
  font-family: Arial, sans-serif !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.due90-map__popup--home {
  width: 300px;
  max-width: calc(100vw - 56px);
  background: #fff;
}

.due90-map__popup-image {
  width: 100%;
  height: 153px;
  display: block;
  object-fit: cover;
}

.due90-map__popup-bar {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 18px;
  background: #1d1d1d;
  color: #fff;
}

.due90-map__popup-bar h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.due90-map__popup-bar > a:not(.due90-map__popup-route) {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  padding-bottom: 10px;
}

.due90-map__popup-route {
  position: absolute;
  right: 18px;
  bottom: -28px;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 3px 10px rgba(0,0,0,.24);
  text-decoration: none;
  margin-right: 0;
}

.due90-map__popup-route:hover {
  background: #f2f2f2;
}

.due90-map__popup-route svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: #171717;
}

.due90-map__popup-details {
  padding: 28px 18px 18px;
}

.due90-map__popup-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 9px;
  color: #464646;
  font-size: 14px;
  line-height: 1.3;
}

.due90-map__popup-details p > span {
  display: inline-flex;
  width: 15px;
  flex: 0 0 15px;
  align-items: center;
  justify-content: center;
  color: #202224;
  text-align: center;
}

.due90-map__popup-details svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: #202224;
}

.due90-map__popup-details a {
  color: inherit;
  text-decoration: none;
}

.due90-map__popup-details .due90-map__popup-description {
  display: block;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #d8d8d8;
  color: #343434;
  font-size: 14px;
  line-height: 1.35;
}

.due90-map__popup--service {
  width: 300px;
  max-width: calc(100vw - 56px);
  background: #fff;
}

.due90-map__popup--service .due90-map__popup-bar {
  padding-right: 38px;
}

.due90-map__popup--service .due90-map__popup-bar h3 {
  max-width: 170px;
  line-height: 1.15;
}

.due90-map__popup--service .due90-map__popup-details {
  min-height: 72px;
  padding: 42px 18px 34px;
}

.due90-map__popup--service .due90-map__popup-details p {
  margin-bottom: 0;
}

@media (max-width: 430px) {
  .due90-map__popup-image {
    height: 145px;
  }
}

.due90-map__marker {
  background: transparent;
  border: 0;
}

.due90-map__marker-number {
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #000;
  font-family: "NeutraText-Book", sans-serif !important;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  transition: background-color .2s ease, box-shadow .2s ease, text-shadow .2s ease;
}

.due90-map.is-satellite .due90-map__marker-number {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.3);
  box-sizing: border-box;
  text-shadow: none;
}

.due90-map__marker-home {
  width: 34px;
  height: 36px;
  display: block;
  color: #000;
  filter: drop-shadow(0 2px 3px rgba(255,255,255,.75));
}

.due90-map__marker-home svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.due90-map.is-satellite .due90-map__marker-home {
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.95));
}

.due90-map:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

@media (max-width: 780px) {
  .due90-map {
    height: 700px;
    min-height: 700px;
  }

  .due90-map__canvas {
    inset: 0;
  }

  .due90-map__sidebar {
    inset: auto 12px 12px 12px;
    width: auto;
    height: 245px;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 7px 28px rgba(0,0,0,.22);
    transition: transform .35s ease;
  }

  .due90-map.is-sidebar-closed .due90-map__sidebar {
    transform: translateY(calc(100% + 12px));
  }

  .due90-map__toggle {
    top: auto;
    bottom: 100%;
    left: 14px;
    width: 48px;
    height: 34px;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -2px 7px rgba(0,0,0,.16);
  }

  .due90-map__toggle svg {
    transform: rotate(-90deg);
  }

  .due90-map.is-sidebar-closed .due90-map__toggle svg {
    transform: rotate(90deg);
  }

  .due90-map__item {
    min-height: 84px;
  }

  .due90-map__item--home {
    min-height: 112px;
  }

  .due90-map__layers {
    top: 10px;
    right: 10px;
  }

  .due90-map__layers button {
    min-width: 70px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .due90-map__fullscreen {
    top: 62px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}
