.immc-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(430px, 72vh, 720px);
  min-height: 430px;
  min-width: 0;
  background: #e9edf3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.elementor-widget-indaco_med_mappa_centri,
.elementor-widget-indaco_med_selettore_centri,
.elementor-widget-indaco_med_selettore_province,
.elementor-widget-indaco_med_centro_vicino,
.elementor-widget-indaco_med_mappa_centri .elementor-widget-container,
.elementor-widget-indaco_med_selettore_centri .elementor-widget-container,
.elementor-widget-indaco_med_selettore_province .elementor-widget-container,
.elementor-widget-indaco_med_centro_vicino .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  align-self: stretch;
}

.immc-selector-widget,
.immc-nearest-widget {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  color: #152d5b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.immc-control-label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 800;
}

.immc-center-select,
.immc-province-select,
.immc-address-input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #c9cfdb;
  border-radius: 7px;
  background: #fff;
  color: #152d5b;
  font: inherit;
}

.immc-center-select:focus,
.immc-province-select:focus,
.immc-address-input:focus {
  border-color: #243b7b;
  outline: 2px solid rgba(36, 59, 123, .16);
  outline-offset: 1px;
}

.immc-search-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 48px minmax(110px, auto);
  gap: 9px;
  align-items: stretch;
}
.immc-search-row .immc-address-input { min-width: 0; }

.immc-nearest-button {
  width: 100%;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 7px;
  background: #243b7b;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.immc-location-button {
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #c9cfdb;
  border-radius: 7px;
  background: #fff;
  color: #243b7b;
  cursor: pointer;
}

.immc-location-button:hover,
.immc-location-button:focus-visible {
  border-color: #243b7b;
  background: #f2f4fa;
  outline: 2px solid rgba(36, 59, 123, .16);
  outline-offset: 1px;
}

.immc-location-button:disabled { cursor: wait; opacity: .65; }

.immc-nearest-button:hover, .immc-nearest-button:focus-visible { background: #152d5b; }
.immc-nearest-button:disabled { cursor: wait; opacity: .65; }
.immc-nearest-result { margin-top: 12px; line-height: 1.45; }
.immc-nearest-result strong, .immc-nearest-result span, .immc-nearest-result small { display: block; }
.immc-result-address { margin-top: 3px; color: #566176; }
.immc-nearest-result small { margin-top: 4px; color: #6b7487; }
.immc-nearest-result.is-error { color: #b32d2e; }

.immc-map .immc-marker {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 12%;
  background: linear-gradient(145deg, #3652a4, #152d5b);
  box-shadow: 0 7px 18px rgba(21, 45, 91, .33);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  transform: rotate(-45deg);
}

.immc-map .immc-marker > span { transform: rotate(45deg); }
.immc-map .marker-cluster { background: transparent; }
.immc-map .marker-cluster div { margin: 0; }

.immc-map .marker-cluster .immc-cluster-pin {
  position: relative;
  width: 44px;
  height: 44px;
}

.immc-map .marker-cluster .immc-cluster-pin .immc-marker {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: normal;
  transform: none;
}

.immc-map .marker-cluster .immc-cluster-pin .immc-marker > span {
  display: inline-block;
  font: inherit;
  line-height: 1;
  transform: none;
}

.immc-map .immc-cluster-count {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -8px;
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e85d4a;
  box-shadow: 0 3px 9px rgba(21, 45, 91, .3);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.immc-map .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(16, 31, 63, .18);
}

.immc-map .leaflet-popup-content { margin: 15px 17px; min-width: 185px; line-height: 1.4; }
.immc-popup-title { margin-bottom: 5px; color: #152d5b; font-size: 1rem; font-weight: 800; }
.immc-popup-address { color: #566176; font-size: .87rem; }
.immc-popup-address span { display: block; }
.immc-popup-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 11px; }
.immc-popup-directions, .immc-popup-call { display: inline-flex; color: #243b7b; font-size: .88rem; font-weight: 800; text-decoration: none; }
.immc-popup-directions:hover, .immc-popup-directions:focus-visible, .immc-popup-call:hover, .immc-popup-call:focus-visible { color: #152d5b; text-decoration: underline; }
.immc-map .leaflet-control-zoom { border: 0; box-shadow: 0 7px 20px rgba(16, 31, 63, .16); }
.immc-map .leaflet-control-zoom a { color: #152d5b; }

@media (max-width: 640px) {
  .immc-map { height: 68vh; min-height: 400px; }
  .immc-map .leaflet-control-attribution { max-width: 82vw; font-size: 9px; }
  .immc-search-row { grid-template-columns: minmax(0, 1fr) 48px; }
  .immc-nearest-button { grid-column: 1 / -1; }
}
