/* ===== PAGINA RAGGIO INTERVENTI ===== */

.mp-radius-page{
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mp-radius-shell{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.mp-radius-card{
  background: transparent;
}

.mp-radius-top{
  background: linear-gradient(180deg, #0c8ca2 0%, #10b5cf 100%);
  min-height: 80px;
  padding: 14px 18px 18px;
  position: relative;
}

.mp-radius-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-radius-userbox{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mp-radius-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, #f3d3b0 0 30%, transparent 31%),
    radial-gradient(circle at 50% 78%, #d9e2ec 0 38%, transparent 39%),
    #b7c5d3;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
  flex: 0 0 38px;
}

.mp-radius-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-radius-hello-wrap{
  min-width: 0;
}

.mp-radius-hello{
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.mp-radius-subtitle{
  margin: 6px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  opacity: .98;
}

.mp-radius-logout{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 34px;
}

.mp-radius-logout:hover{
  background: rgba(255,255,255,.08);
}

.mp-radius-body{
  background: #f6f6f6;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  margin-top: -10px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  overflow: hidden;
  padding-bottom: 16px;
}

.mp-radius-back{
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3d5064;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mp-radius-back:hover{
  background: rgba(0,0,0,.04);
  color: #3d5064;
  text-decoration: none;
}

.mp-radius-search-wrap{
  position: absolute;
  left: 56px;
  right: 14px;
  top: 12px;
  z-index: 5;
}

.mp-radius-search{
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #ececec;
  color: #7f8b97;
  font-size: 14px;
  font-weight: 600;
  padding: 0 16px 0 38px;
  outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.mp-radius-search:focus{
  box-shadow: 0 0 0 .2rem rgba(17,179,207,.18);
  background: #e9eef0;
}

.mp-radius-search-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #16b6d0;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.mp-radius-map-wrap{
  position: relative;
  height: calc(100vh - 260px);
  background: #ddd;
}

#mpRadiusMap{
  width: 100%;
  height: 100%;
}

.mp-radius-map-fade{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(246,246,246,0) 0%, rgba(246,246,246,.92) 68%, #f6f6f6 100%);
  pointer-events: none;
  z-index: 2;
}

.mp-radius-locate-btn{
  position: absolute;
  left: 18px;
  bottom: 118px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  color: #16b6d0;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.mp-radius-locate-btn:hover{
  background: #f1f1f1;
}

.mp-radius-bottom{
  position: relative;
  z-index: 3;
  margin-top: -2px;
  padding: 0 16px;
}

.mp-radius-slider-card{
  background: #f6f6f6;
  border-radius: 14px;
  padding: 0 0 8px;
}

.mp-radius-slider-row{
  display: grid;
  grid-template-columns: 48px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.mp-radius-km-left,
.mp-radius-km-right{
  color: #4b5d70;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.mp-radius-km-right{
  text-align: right;
}

.mp-radius-range-wrap{
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.mp-radius-range-track{
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: #bdbdbd;
  pointer-events: none;
}

.mp-radius-range-progress{
  position: absolute;
  left: 0;
  width: 50%;
  height: 6px;
  border-radius: 999px;
  background: #16b6d0;
  pointer-events: none;
}

.mp-radius-range{
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
}

.mp-radius-range::-webkit-slider-runnable-track{
  height: 6px;
  background: transparent;
}

.mp-radius-range::-webkit-slider-thumb{
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16b6d0;
  border: 0;
  margin-top: -8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer;
}

.mp-radius-range::-moz-range-track{
  height: 6px;
  background: transparent;
  border: 0;
}

.mp-radius-range::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16b6d0;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer;
}

.mp-radius-actions{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  margin-top: 12px;
}

.mp-radius-btn-cancel,
.mp-radius-btn-confirm{
  height: 54px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

.mp-radius-btn-cancel{
  border: 3px solid #16b6d0;
  background: #fff;
  color: #16b6d0;
}

.mp-radius-btn-cancel:hover{
  background: rgba(17,179,207,.05);
  color: #16b6d0;
}

.mp-radius-btn-confirm{
  border: 0;
  background: #16b6d0;
  color: #fff;
}

.mp-radius-btn-confirm:hover{
  background: #10abc4;
  color: #fff;
}

.pac-container{
  z-index: 2000 !important;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

@media (min-width: 992px){
  .mp-radius-shell{
    max-width: 100%;
  }
}

@media (max-width: 991.98px){
  .mp-user-main{
    padding: 0 0 90px;
  }

  .mp-radius-page{
    min-height: calc(100vh - 90px);
  }

  .mp-radius-shell{
    max-width: 100%;
  }

  .mp-radius-map-wrap{
    height: calc(100vh - 300px);
  }
}





/* Overlay fisso mappa */
#mpRadiusMap {
  position: relative;
  overflow: hidden;
}












/* ── Bottoni mappa (locate + layer) ── */
.mp-radius-map-btns {
  position: absolute;
  right: 14px;
  top: 74px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-radius-map-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #16b6d0;
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background .15s;
}

.mp-radius-map-btn:hover {
  background: #f1f1f1;
}

/* Rimuovi il vecchio locate btn posizionato in basso */
.mp-radius-locate-btn {
  display: none;
}

/* ── Pill valore slider ── */
.mp-radius-km-value {
  position: relative;
  height: 28px;
  margin-top: 4px;
}

.mp-radius-km-pill {
  position: absolute;
  transform: translateX(-50%);
  background: #16b6d0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  pointer-events: none;
  transition: left .05s linear;
}

/* ── Bottom sheet tipo mappa ── */
.mp-maptype-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.mp-maptype-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.mp-maptype-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1051;
  background: #fff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 12px 20px 36px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.14);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,1,.45,1);
}

.mp-maptype-sheet.is-open {
  transform: translateY(0);
}

.mp-maptype-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d0d8e0;
  margin: 0 auto 18px;
}

.mp-maptype-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 14px;
}

.mp-maptype-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #e5eaee;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #1a2b3c;
  background: #fff;
  transition: border-color .15s, background .15s;
}

.mp-maptype-option.is-active {
  border-color: #16b6d0;
  background: #f0fbfd;
}

.mp-maptype-check {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #c8d4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: transparent;
  transition: all .15s;
}

.mp-maptype-option.is-active .mp-maptype-check {
  background: #16b6d0;
  border-color: #16b6d0;
  color: #fff;
}
