/* GX Tracking | History endpoint flags anchored v2.
 * Only mobile History endpoints. The Leaflet divIcon keeps its original
 * geographic iconAnchor [22,68] and all original click handlers.
 * No circular red/green pin: the flag pole ends EXACTLY at that anchor.
 * SVG poles use x=12,y=40; CSS position left=10,top=28 => [22,68].
 * Do not touch route, playhead, map movement, or start/end coordinates.
 */
@media (max-width: 850px) {
  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.start,
  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.end {
    display: block !important;
    width: 48px !important;
    height: 68px !important;
  }

  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.start .history-endpoint-pin,
  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.end .history-endpoint-pin {
    position: absolute !important;
    left: 10px !important;
    top: 28px !important;
    width: 36px !important;
    height: 42px !important;
    display: block !important;
    flex: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.start .history-endpoint-pin > span,
  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.end .history-endpoint-pin > span {
    display: block !important;
    width: 36px !important;
    height: 42px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
  }

  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.start .history-endpoint-pin > span {
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2036%2042%22%3E%3Cpath%20d%3D%22M12%203V40%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%203V40%22%20fill%3D%22none%22%20stroke%3D%22%2318334b%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M13%205C19%202%2025%2010%2032%206V23C24%2026%2019%2020%2013%2023Z%22%20fill%3D%22%23168a47%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.9%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M13%205C19%202%2025%2010%2032%206%22%20fill%3D%22none%22%20stroke%3D%22%23176c3b%22%20stroke-width%3D%22.8%22%2F%3E%3C%2Fsvg%3E") center / 36px 42px no-repeat !important;
  }

  html body.tracking-dashboard.gx64-mobile #map .history-endpoint.history-endpoint-large.end .history-endpoint-pin > span {
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2036%2042%22%3E%3Cpath%20d%3D%22M12%203V40%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%203V40%22%20fill%3D%22none%22%20stroke%3D%22%2318334b%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22checker%22%3E%3Cpath%20d%3D%22M13%205L33%207L31%2024L13%2023Z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%205L33%207L31%2024L13%2023Z%22%20fill%3D%22%23ffffff%22%2F%3E%3Cg%20clip-path%3D%22url%28%23checker%29%22%20fill%3D%22%23161e29%22%3E%3Crect%20x%3D%2213%22%20y%3D%225%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2223%22%20y%3D%225%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2210%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2228%22%20y%3D%2210%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%2215%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2223%22%20y%3D%2215%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2220%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%2228%22%20y%3D%2220%22%20width%3D%225%22%20height%3D%225%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M13%205L33%207L31%2024L13%2023Z%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / 36px 42px no-repeat !important;
  }
}
