/* Generated from the homepage styles, scoped under .tool-ui so it cannot affect the rest of the site.
   Styles used only by this tool. */
.tool-ui .charging-tabs{display:flex;gap:8px;margin-bottom:20px;background:#f1f5f9;padding:6px;border-radius:50px;border:1px solid #e2e8f0}
.tool-ui .tab-button{flex:1;padding:10px;border-radius:40px;font-size:14px;font-weight:800;cursor:pointer;border:none;background:transparent;color:var(--text-muted);transition:all .2s}
.tool-ui .tab-button.active{background:#fff;color:var(--text-main);box-shadow:var(--shadow-sm)}
.tool-ui .charging-panel{display:none}
.tool-ui .charging-panel.active{display:block}
.tool-ui .button-row-3{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px}
.tool-ui .route-summary-widget{display:none;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px;background:#fff;padding:16px;border-radius:16px;border:1.5px solid var(--card-border);text-align:center}
.tool-ui .rs-item{border-right:1.5px solid #f1f5f9;padding:4px}
.tool-ui .rs-item:last-child{border-right:none}
.tool-ui .rs-val{display:block;font-size:20px;font-weight:800}
.tool-ui .rs-lbl{display:block;font-size:11px;color:var(--text-muted);font-weight:700;text-transform:uppercase}
.tool-ui .map-container{height:480px;width:100%;border-radius:18px;border:2px solid #cbd5e1;margin-top:20px;margin-bottom:20px;z-index:1;display:none}
.tool-ui #routeStatus, .tool-ui #nearbyStatus{margin-top:20px;margin-bottom:12px;font-size:15px;font-weight:800;padding:14px 18px;background:#e0e7ff;border-radius:14px;border:2px solid #818cf8;display:none;text-align:center;color:#1e1b4b}
.tool-ui .station-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:20px}
.tool-ui .station-card{background:#fff;border:1px solid var(--card-border);border-radius:16px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow-sm)}
.tool-ui .map-legal-note a{color:#1d4ed8;font-weight:800}
@media (max-width:900px){
  .tool-ui .button-row-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tool-ui .button-row-3 .btn-action{min-width:0;min-height:54px;padding:10px 6px;gap:0;font-size:22px}
  .tool-ui .button-row-3 .desktop-action-label{display:none}
  .tool-ui .route-summary-widget{grid-template-columns:repeat(2,1fr)}
}
.tool-ui .route-disclaimer-footer{position:static;clear:both;margin-top:22px;padding-top:14px;border-top:1px solid #e2e8f0;color:#64748b;font-size:10.5px;line-height:1.55}
.tool-ui .route-disclaimer-footer>div{margin:6px 0}
.tool-ui .route-disclaimer-footer a{color:#2563eb;font-weight:800}
.tool-ui .route-disclaimer-footer .map-legal-note{font-size:10.5px}
.tool-ui .route-disclaimer-footer b{color:#475569}
.tool-ui .map-popup{font-family:'Plus Jakarta Sans',Arial,sans-serif;min-width:220px;line-height:1.5}
.tool-ui .map-popup-btn{display:inline-block;padding:6px 9px;border-radius:8px;background:#eef2ff;color:#1e3a8a;text-decoration:none;font-size:11px;font-weight:800}
.tool-ui .map-popup-btn.primary{background:#2563eb;color:#fff}
.tool-ui .map-popup-btn:hover{filter:brightness(.96)}
.tool-ui #routeStatus, .tool-ui #nearbyStatus{scroll-margin-top:100px}
.tool-ui .station-card{transition:transform .18s ease,box-shadow .18s ease}
.tool-ui .station-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,23,42,.08)}
@media(max-width:700px){
  .tool-ui .map-popup{min-width:190px}
}
.tool-ui .network-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.tool-ui .ev-charger-marker{--marker-color:#64748b;width:26px;height:26px;border-radius:50%;background:var(--marker-color);border:2px solid #fff;box-shadow:0 2px 7px rgba(15,23,42,.34),0 0 0 1px rgba(15,23,42,.10);display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:transform .12s ease,box-shadow .12s ease}
.tool-ui .ev-charger-marker:hover{transform:scale(1.12);box-shadow:0 3px 10px rgba(15,23,42,.42),0 0 0 2px rgba(255,255,255,.85)}
.tool-ui .ev-charger-marker span{font-family:Arial,sans-serif;font-size:15px;line-height:1;color:#fff;font-weight:900;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.tool-ui .tab-button:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}
.tool-ui .map-container{min-height:320px}
@media(max-width:1100px){
  .tool-ui .button-row-3{gap:10px}
  .tool-ui .route-summary-widget{gap:8px;padding:12px}
  .tool-ui .rs-item{padding:4px 2px}
  .tool-ui .map-container{height:55vh;min-height:300px;max-height:520px}
  .tool-ui .station-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .tool-ui .charging-tabs{gap:5px;padding:4px;border-radius:14px}
  .tool-ui .tab-button{min-height:44px;padding:9px 7px;font-size:12px;line-height:1.25}
  .tool-ui .button-row-3{grid-template-columns:1fr;gap:9px}
  .tool-ui .route-summary-widget{grid-template-columns:1fr 1fr;gap:6px;padding:10px}
  .tool-ui .rs-val{font-size:17px}
  .tool-ui .rs-lbl{font-size:9px;line-height:1.25}
  .tool-ui .map-container{height:56vh;min-height:280px;max-height:460px;border-radius:14px;margin-top:14px}
  .tool-ui .station-list{grid-template-columns:1fr;gap:11px}
  .tool-ui .station-card{padding:14px;border-radius:14px}
  .tool-ui .station-card h4{font-size:14px;line-height:1.35}
  .tool-ui .station-card .btn-action{width:100%}
  .tool-ui .route-disclaimer-footer{font-size:10px}
  .tool-ui .route-disclaimer-footer .map-legal-note{font-size:10px}
}
@media(max-width:380px){
  .tool-ui .tab-button{font-size:11px}
  .tool-ui .route-summary-widget{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){
  .tool-ui .station-card{transition:none}
}
.tool-ui .station-card{overflow-wrap:anywhere}
.tool-ui .route-disclaimer-footer{overflow-wrap:anywhere}
.tool-ui #routeMapContainer, .tool-ui #nearbyMapContainer{width:100%;min-width:0;box-sizing:border-box;}
.tool-ui .map-container{overflow:hidden;background:#eef3df;}
.tool-ui .map-container{height:360px!important;min-height:360px!important;max-height:360px!important;width:100%!important;margin-top:16px;margin-bottom:18px;overflow:hidden;position:relative;}
.tool-ui #routeMapContainer, .tool-ui #nearbyMapContainer{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden;}
@media(max-width:700px){
  .tool-ui .map-container{height:340px!important;min-height:340px!important;max-height:340px!important;}
}
.tool-ui .route-start-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;}
.tool-ui .route-start-label-row>label{margin:0;min-width:0;}
.tool-ui .route-start-control{display:flex;gap:7px;align-items:stretch;}
.tool-ui .route-start-control .hub-input{flex:1 1 auto;min-width:0;}
.tool-ui .current-location-btn{flex:0 0 auto;min-height:30px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:9px;padding:4px 10px;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap;transition:.15s ease;}
.tool-ui .current-location-btn:hover{background:#dbeafe;transform:translateY(-1px);}
.tool-ui .current-location-btn:disabled{opacity:.65;cursor:wait;transform:none;}
.tool-ui .current-location-mobile-label{display:none;}
@media(max-width:700px){
  .tool-ui .route-start-label-row{gap:6px}
  .tool-ui .current-location-btn{min-width:38px;min-height:32px;padding:3px 8px}
  .tool-ui .current-location-full-label{display:none}
  .tool-ui .current-location-mobile-label{display:inline;font-size:17px;}
}
.tool-ui .planner-info-row{display:flex;align-items:center;gap:9px;margin:0 0 16px;padding:9px 12px;border:1px solid #dbeafe;background:#f8fbff;border-radius:12px;color:#334155;font-size:12.5px;line-height:1.4;}
.tool-ui .planner-info-row>span{flex:1;}
.tool-ui .planner-info-tip{position:relative;flex:0 0 auto;}
.tool-ui .planner-info-tip>summary{list-style:none;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e0edff;border:1px solid #93c5fd;color:#1d4ed8;font-size:14px;font-weight:800;font-style:normal;cursor:pointer;user-select:none;}
.tool-ui .planner-info-tip>summary::-webkit-details-marker{display:none;}
.tool-ui .planner-info-popover{position:absolute;right:0;top:calc(100% + 9px);z-index:30;width:min(290px,calc(100vw - 70px));padding:13px 14px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.16);color:#334155;font-size:12px;line-height:1.55;}
.tool-ui .planner-info-popover p{margin:5px 0 0;}
@media(max-width:700px){
  .tool-ui .planner-info-row{margin-bottom:13px;padding:8px 10px}
  .tool-ui .planner-info-popover{width:min(270px,calc(100vw - 52px));}
}
.tool-ui .charging-tabs{background:linear-gradient(135deg,#eef6ff,#f0fdf4)!important;
      border:1px solid #d7e3f3!important;
      padding:6px!important;
      gap:8px!important;}
.tool-ui .charging-tabs .tab-button{background:rgba(255,255,255,.72)!important;
      color:#475569!important;
      border:1px solid transparent!important;
      box-shadow:none!important;
      transition:all .2s ease!important;}
.tool-ui .charging-tabs .tab-button:hover{background:#ffffff!important;
      color:#1e3a8a!important;
      transform:translateY(-1px);}
.tool-ui .charging-tabs #routeTab.active{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
      color:#ffffff!important;
      border-color:#2563eb!important;
      box-shadow:0 5px 14px rgba(37,99,235,.25)!important;}
.tool-ui .charging-tabs #nearbyTab.active{background:linear-gradient(135deg,#059669,#0d9488)!important;
      color:#ffffff!important;
      border-color:#059669!important;
      box-shadow:0 5px 14px rgba(5,150,105,.24)!important;}
.tool-ui .charging-tabs #routeTab.active:hover{color:#ffffff!important;}
.tool-ui .charging-tabs #nearbyTab.active:hover{color:#ffffff!important;}
@media(max-width:700px){
  .tool-ui .charging-tabs{padding:4px!important;gap:5px!important;}
  .tool-ui .charging-tabs .tab-button{min-height:44px!important;}
}
.tool-ui .charging-tabs{display:flex;justify-content:center;align-items:stretch;gap:12px;flex-wrap:nowrap;width:100%}
.tool-ui .charging-tabs .tab-button{flex:1 1 0;min-width:0;width:50%;text-align:center;white-space:nowrap}
.tool-ui .nearby-actions{display:flex;justify-content:center;align-items:stretch;gap:12px;flex-wrap:nowrap;width:100%;margin:16px auto 8px}
.tool-ui .nearby-actions .btn-action{flex:1 1 0;min-width:0;width:0;justify-content:center;white-space:nowrap}
.tool-ui .nearby-actions button[onclick="locateNearMe()"]{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
 color:#fff!important;border:1px solid #2563eb!important;
 box-shadow:0 5px 14px rgba(37,99,235,.18)}
.tool-ui .nearby-actions button.nearby-clear{background:linear-gradient(135deg,#ef4444,#e11d48)!important;
 color:#fff!important;border:1px solid #e11d48!important;
 box-shadow:0 5px 14px rgba(225,29,72,.16)}
.tool-ui .nearby-actions button[onclick="locateNearMe()"]:hover{filter:brightness(.96)}
.tool-ui .nearby-actions button.nearby-clear:hover{filter:brightness(.96)}
.tool-ui .nearby-action-mobile{display:none}
.tool-ui #nearbyStatus{scroll-margin-top:110px}
@media(max-width:600px){
  .tool-ui .charging-tabs{display:flex;flex-direction:row;gap:7px;flex-wrap:nowrap}
  .tool-ui .charging-tabs .tab-button{flex:1 1 0;min-width:0;width:50%;padding:11px 5px;font-size:11px;white-space:normal}
  .tool-ui .nearby-actions{display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;gap:7px;width:100%;flex-wrap:nowrap}
  .tool-ui .nearby-actions .btn-action{flex:1 1 0;min-width:0;width:auto;height:46px;padding:8px 4px;font-size:16px;border-radius:13px}
  .tool-ui .nearby-action-desktop{display:none}
  .tool-ui .nearby-action-mobile{display:inline}
}
@media (max-width:1100px) and (orientation:portrait){
  .tool-ui .button-row-3{display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;}
  .tool-ui .button-row-3 .btn-action{min-width:0!important;
    width:100%!important;
    min-height:54px!important;
    padding:8px 2px!important;
    gap:0!important;
    font-size:21px!important;
    white-space:nowrap!important;}
  .tool-ui .button-row-3 .desktop-action-label{display:none!important}
}
@media (max-width:380px){
  .tool-ui .button-row-3{gap:5px!important}
  .tool-ui .button-row-3 .btn-action{min-height:48px!important;font-size:19px!important}
}

/* Starting-location row: the label sits on its own line, like its neighbours, and the button sits beside the input */
.tool-ui .route-start-control{align-items:stretch}
.tool-ui .route-start-control .current-location-btn{align-self:stretch;min-height:44px;padding:0 14px;border-radius:12px;font-size:13px}
@media (max-width:760px){
  .tool-ui .route-start-control .current-location-btn{min-width:48px;padding:0 10px}
  .tool-ui .current-location-full-label{display:none}
  .tool-ui .current-location-mobile-label{display:inline;font-size:18px}
}

/* Place suggestions under the location boxes */
.ps-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #cbd5e1;border-radius:14px;box-shadow:0 14px 30px -10px rgba(15,23,42,.28);max-height:min(300px,45vh);overflow-y:auto}
.ps-list[hidden]{display:none}
.ps-list li{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border-radius:10px;font-size:14px;font-weight:600;color:#0f172a;cursor:pointer;line-height:1.35}
.ps-list li:hover,.ps-list li.active{background:#ecfdf5;color:#047857}
.ps-pin{flex:0 0 auto;font-size:15px}
