/* MISTER FAST LiveMapChat WEB V3.5.0 — Fleet Radius Engine
   Thin radius rail + line-separated real-data driver list. */
:root{
  --mf350-blue:#0758c9;
  --mf350-blue-dark:#003da5;
  --mf350-yellow:#ffc400;
  --mf350-line:#dbe5f1;
  --mf350-muted:#6c7f98;
  --mf350-soft:#f7f9fc;
}

/* ─────────────────────────────────────────────────────────────
   Radius rail: attached to the map bottom, not a floating card.
   ───────────────────────────────────────────────────────────── */
.mf514-map-wrap{position:relative!important;}
.mf514-map-wrap .mf532-radius-panel{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:8px!important;
  transform:translateX(-50%)!important;
  z-index:780!important;
  display:grid!important;
  grid-template-columns:104px minmax(280px,620px) 54px!important;
  align-items:center!important;
  column-gap:12px!important;
  width:min(820px,calc(100% - 190px))!important;
  min-width:460px!important;
  max-width:820px!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

.mf514-map-wrap .mf532-radius-head{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  min-width:0!important;
  margin:0!important;
  color:#173e70!important;
  white-space:nowrap!important;
}
.mf514-map-wrap .mf532-radius-head>div{display:block!important;min-width:0!important;}
.mf514-map-wrap .mf532-radius-head b{
  display:block!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1.15!important;
}
.mf514-map-wrap .mf532-radius-head small{display:none!important;}
.mf514-map-wrap .mf532-radius-head strong{
  display:inline!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--mf350-blue)!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}

.mf514-map-wrap .mf532-radius-panel .mf54-range-wrap{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 0 13px!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.mf514-map-wrap .mf532-radius-panel input[type="range"]{
  width:100%!important;
  height:4px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  outline:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:linear-gradient(90deg,var(--mf350-blue) 0 var(--mf350-progress,9.1%),#cfdbea var(--mf350-progress,9.1%) 100%)!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.mf514-map-wrap .mf532-radius-panel input[type="range"]::-webkit-slider-thumb{
  width:17px!important;
  height:17px!important;
  border:3px solid #fff!important;
  border-radius:50%!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:var(--mf350-blue)!important;
  box-shadow:0 2px 7px rgba(0,49,126,.36)!important;
}
.mf514-map-wrap .mf532-radius-panel input[type="range"]::-moz-range-thumb{
  width:11px!important;
  height:11px!important;
  border:3px solid #fff!important;
  border-radius:50%!important;
  background:var(--mf350-blue)!important;
  box-shadow:0 2px 7px rgba(0,49,126,.36)!important;
}
.mf514-map-wrap .mf532-radius-panel .mf54-range-bubble{
  position:absolute!important;
  left:var(--mf350-progress,9.1%)!important;
  top:-2px!important;
  transform:translate(-50%,-100%)!important;
  display:block!important;
  min-width:38px!important;
  padding:3px 6px!important;
  border-radius:6px!important;
  background:var(--mf350-blue-dark)!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
  box-shadow:0 2px 6px rgba(0,49,126,.20)!important;
  pointer-events:none!important;
}
.mf350-radius-scale{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  justify-content:space-between;
  color:#667b96;
  font-size:8px;
  font-weight:750;
  line-height:1;
  pointer-events:none;
}
.mf350-radius-scale span:first-child{text-align:left;}
.mf350-radius-scale span:last-child{text-align:right;}

/* Keep only one compact value at the right. Presets and old summary stay hidden. */
.mf514-map-wrap .mf532-radius-presets,
.mf514-map-wrap .mf532-radius-summary,
.mf514-map-wrap .mf54-nearest-driver{display:none!important;}
.mf350-radius-result{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
  color:var(--mf350-blue-dark);
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}

/* ─────────────────────────────────────────────────────────────
   Driver feed: table-like rows, no separate cards.
   Existing real-data DOM/actions are preserved.
   ───────────────────────────────────────────────────────────── */
.mf3306-feed{
  padding:12px 18px 28px!important;
  background:#fff!important;
}
.mf3306-feed-head{
  grid-template-columns:minmax(230px,1fr) minmax(250px,390px)!important;
  align-items:center!important;
  margin-bottom:7px!important;
}
.mf3306-feed-title b{font-size:16px!important;}
.mf3306-feed-title small{font-size:10px!important;}
.mf3306-summary{display:none!important;}
.mf3306-toolbar{
  margin:0!important;
  padding:5px 0 7px!important;
  border-bottom:1px solid var(--mf350-line)!important;
  background:#fff!important;
}
.mf3306-filters{gap:5px!important;}
.mf3306-filters button,.mf3306-sort{
  min-height:28px!important;
  padding:5px 9px!important;
  font-size:9px!important;
  border-radius:999px!important;
}
.mf3306-list{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  align-items:stretch!important;
  border-top:0!important;
  border-bottom:1px solid var(--mf350-line)!important;
  background:#fff!important;
}
.mf3306-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(210px,1.55fr) minmax(160px,1fr) minmax(175px,1.15fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:62px!important;
  margin:0!important;
  padding:7px 10px!important;
  border:0!important;
  border-bottom:1px solid var(--mf350-line)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
  scroll-margin-top:72px!important;
}
.mf3306-card:last-child{border-bottom:0!important;}
.mf3306-card:hover{
  background:#f8fbff!important;
  border-color:var(--mf350-line)!important;
  box-shadow:none!important;
  transform:none!important;
}
.mf3306-card.is-selected{
  background:#fffaf0!important;
  border-color:var(--mf350-line)!important;
  box-shadow:inset 4px 0 0 var(--mf350-yellow)!important;
}
.mf3306-card-top{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.mf3306-avatar{
  width:36px!important;
  height:36px!important;
  border-width:1px!important;
  font-size:18px!important;
}
.mf3306-name b{font-size:11px!important;line-height:1.15!important;}
.mf3306-name small{margin-top:2px!important;font-size:8px!important;}
.mf3306-distance{
  align-self:center!important;
  padding:4px 6px!important;
  border-radius:999px!important;
  font-size:8px!important;
}
.mf3306-badges{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  margin:0!important;
}
.mf3306-badge{
  padding:3px 6px!important;
  border-radius:999px!important;
  font-size:8px!important;
  line-height:1.1!important;
}
.mf3306-meta{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin:0!important;
}
.mf3306-meta div{
  min-width:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.mf3306-meta small{font-size:7px!important;}
.mf3306-meta b{
  overflow:hidden!important;
  font-size:8px!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.mf3306-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  margin:0!important;
}
.mf3306-actions button,.mf3306-actions a{
  min-width:30px!important;
  min-height:28px!important;
  padding:5px 7px!important;
  border-radius:8px!important;
  font-size:8px!important;
  white-space:nowrap!important;
}
.mf3306-empty{border-radius:0!important;box-shadow:none!important;}

@media(max-width:1180px){
  .mf514-map-wrap .mf532-radius-panel{
    grid-template-columns:92px minmax(230px,1fr) 48px!important;
    width:min(680px,calc(100% - 150px))!important;
    min-width:390px!important;
  }
  .mf3306-card{grid-template-columns:minmax(205px,1.35fr) minmax(150px,.9fr) auto!important;}
  .mf3306-meta{display:none!important;}
}
@media(max-width:900px){
  .mf514-map-wrap .mf532-radius-panel{
    bottom:7px!important;
    grid-template-columns:75px minmax(180px,1fr)!important;
    width:calc(100% - 100px)!important;
    min-width:260px!important;
  }
  .mf350-radius-result{display:none!important;}
  .mf514-map-wrap .mf532-radius-head b{font-size:9px!important;}
  .mf3306-feed-head{grid-template-columns:1fr!important;}
  .mf3306-card{grid-template-columns:minmax(190px,1fr) auto!important;}
  .mf3306-badges,.mf3306-meta{display:none!important;}
}
@media(max-width:560px){
  .mf514-map-wrap .mf532-radius-panel{
    grid-template-columns:58px minmax(130px,1fr)!important;
    width:calc(100% - 76px)!important;
    min-width:210px!important;
  }
  .mf514-map-wrap .mf532-radius-head b{display:none!important;}
  .mf514-map-wrap .mf532-radius-head strong{font-size:10px!important;}
  .mf3306-feed{padding:10px 9px 24px!important;}
  .mf3306-card{
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:58px!important;
    padding:7px 4px!important;
  }
  .mf3306-actions button:not([data-mf3306-chat]):not([data-mf3306-select]),
  .mf3306-actions a{display:none!important;}
  .mf3306-actions button{min-width:30px!important;padding:5px!important;}
  .mf3306-distance{display:none!important;}
}
