/* WorkFlow Station map — search + filters + Leaflet map + scrollable list.
   Shared by compare.html (Station) and partnership.html. Markup: see #station-locations. */
:root{
  --wf-neutral-50:#f4f4f0;
  --wf-neutral-100:#e8e8e2;
  --wf-neutral-200:#d4d3cc;
  --wf-neutral-500:#5e5c58;
  --wf-neutral-600:#3e3c3a;
  --yellow-on-white:#ffd21e;
}

.stx{background:var(--light);padding:80px 0;border-top:1px solid var(--border)}
.stx-eyebrow{font-family:var(--font-body);font-size:15px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--wf-neutral-500);margin-bottom:10px}
.stx .display-56{font-size:54px;letter-spacing:-2px;line-height:.95;white-space:nowrap}
.stx .title-icon{height:.78em;width:auto;margin-left:.2em;display:inline-block;vertical-align:baseline}
.stx .sub-eyebrow{margin-top:13px;color:var(--gray)}

.stx-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px}
.stx-head>div:first-child{flex:1 1 auto;min-width:0}
.stx-kpis{flex:0 0 auto;display:grid;grid-template-columns:repeat(2,285px);gap:14px}
.stx-kpi{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:12px;border:1px solid}
.stx-kpi.is-active{background:#f0fbf4;border-color:#bbf7d0}
.stx-kpi.is-upcoming{background:#fffbea;border-color:#f6e6a0}
.stx-kpi-num{font-family:var(--font-body);font-size:36px;font-weight:700;line-height:1;letter-spacing:-.02em}
.stx-kpi.is-active .stx-kpi-num{color:#15803d}
.stx-kpi.is-upcoming .stx-kpi-num{color:#e0b100}
.stx-kpi-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;white-space:nowrap}
.stx-kpi-sub{font-family:var(--font-ui);font-size:12px;color:var(--wf-neutral-500);margin-top:4px;max-width:200px}
.stx .st-status-dot{width:10px;height:10px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.18);flex-shrink:0;display:inline-block}
.stx .st-status-dot.upcoming{background:var(--yellow);box-shadow:0 0 0 4px rgba(255,216,0,.28)}

.stx-toolbar{display:flex;gap:10px;margin:24px 0 14px;flex-wrap:wrap}
.stx-search{flex:1 1 360px;max-width:440px;display:flex;align-items:center;gap:10px;height:42px;padding:0 16px;background:#fff;border:1px solid var(--border);border-radius:10px;color:var(--wf-neutral-500)}
.stx-search input{flex:1;border:0;outline:0;background:transparent;font-family:var(--font-body);font-size:14px;color:var(--dark);min-width:0}
.stx-select{position:relative}
.stx-select select{appearance:none;-webkit-appearance:none;height:42px;padding:0 42px 0 16px;background:#fff;border:1px solid var(--border);border-radius:10px;font-family:var(--font-body);font-size:14px;font-weight:500;color:var(--dark);cursor:pointer}
.stx-select::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid var(--dark);border-bottom:2px solid var(--dark);transform:translateY(-70%) rotate(45deg);pointer-events:none}

.stx-body{display:grid;grid-template-columns:1fr 1fr;gap:16px;height:540px}
.stx-map-wrap{position:relative;z-index:1;isolation:isolate;height:100%;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#eef0f2}
.stx-map{width:100%;height:100%;background:#eef0f2}
.stx-map .leaflet-top.leaflet-left{top:50px}
.stx-map .leaflet-popup-content-wrapper{border-radius:12px;font-family:var(--font-body);padding:2px}
.stx-legend{position:absolute;top:14px;left:14px;z-index:500;display:flex;gap:16px;padding:9px 14px;background:#fff;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.12);font-size:13px;font-weight:500}
.stx-legend>span{display:inline-flex;align-items:center;gap:8px}

.stx-list-wrap{background:#fff;border:1px solid var(--border);border-radius:14px;padding:6px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--wf-neutral-200) transparent}
.stx-list-wrap::-webkit-scrollbar{width:6px}
.stx-list-wrap::-webkit-scrollbar-thumb{background:var(--wf-neutral-200);border-radius:6px}
.stx-list{list-style:none;display:flex;flex-direction:column;gap:2px;margin:0;padding:0}
.stx-item{display:grid;grid-template-columns:112px 1fr 16px;gap:14px;align-items:center;padding:8px;border-radius:12px;border:1px solid transparent;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.stx-item:hover,.stx-item.is-selected{background:var(--wf-neutral-50);border-color:var(--border)}
.stx-thumb{width:112px;height:76px;border-radius:8px;overflow:hidden;background:var(--wf-neutral-50);border:1px solid var(--wf-neutral-100);display:flex;align-items:center;justify-content:center}
.stx-thumb img{width:100%;height:100%;object-fit:cover}
.stx-thumb .ph{width:26px;height:auto;opacity:.55}
.stx-row1{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:10px}
.stx-name{font-family:var(--font-body);font-size:15.5px;font-weight:600;line-height:1.3;min-width:0}
.stx-badge{flex-shrink:0;margin-left:auto;font-family:var(--font-ui);font-size:11px;font-weight:600;padding:3px 10px;border-radius:9999px;white-space:nowrap}
.stx-badge.active{background:#dcfce7;color:#15803d}
.stx-badge.upcoming{background:#fff1a8;color:#5c4a00}
.stx-addr{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--wf-neutral-500);margin-top:2px}
.stx-feats{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:12.5px;color:var(--dark)}
.stx-feats span{display:inline-flex;align-items:center;gap:7px}
.stx-feats svg{width:15px;height:15px;color:var(--wf-neutral-600)}
.stx-chev{color:var(--wf-neutral-500)}
.stx-empty{padding:40px 16px;text-align:center;color:var(--wf-neutral-500)}

.stx-pin{display:flex;align-items:center;gap:6px;white-space:nowrap}
.stx-pin .n{width:32px;height:32px;border-radius:50%;background:#16a34a;color:#fff;border:3px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;font-family:var(--font-ui);font-size:13px;font-weight:700}
.stx-pin.upcoming .n{background:var(--yellow);color:var(--dark)}
.stx-pin .lbl{background:#fff;padding:5px 11px;border-radius:9999px;box-shadow:0 2px 8px rgba(0,0,0,.18);font-family:var(--font-body);font-size:13px;font-weight:600;color:var(--dark)}

@media (max-width:1280px){
  .stx-head{flex-direction:column;align-items:stretch;gap:20px}
  .stx-kpis{grid-template-columns:1fr 1fr}
  .stx-kpi-sub{max-width:none}
}
@media (min-width:1025px) and (max-width:1280px){
  .stx-body{grid-template-columns:1fr 1.1fr;height:520px}
  .stx-item{grid-template-columns:96px 1fr 16px;gap:12px}
  .stx-thumb{width:96px;height:68px}
}
@media (max-width:1024px){
  .stx{padding:52px 0}
  .stx .display-56{font-size:36px;letter-spacing:-1.2px}
  .stx-body{grid-template-columns:1fr;height:auto}
  .stx-map-wrap{height:320px}
  .stx-list-wrap{max-height:420px}
  .stx-item{grid-template-columns:96px 1fr;gap:12px}
  .stx-thumb{width:96px;height:72px}
  .stx-chev{display:none}
}
@media (max-width:640px){
  .stx .display-56{white-space:normal}
  .stx-kpis{grid-template-columns:1fr 1fr;gap:10px}
  .stx-kpi{padding:12px;gap:10px}
  .stx-kpi-num{font-size:28px}
  .stx-kpi-title{font-size:12.5px;white-space:normal}
  .stx-kpi-title .st-status-dot,.stx-kpi-sub{display:none}
  .stx-toolbar{margin:18px 0 12px}
  .stx-search{flex-basis:100%;max-width:none}
  .stx-select{flex:1}
  .stx-select select{width:100%;font-size:14px;padding:0 34px 0 12px}
  .stx-map-wrap{height:260px}
  .stx-list-wrap{max-height:380px}
  .stx-legend{font-size:11.5px;gap:10px;padding:7px 10px}
  .stx-item{grid-template-columns:84px 1fr}
  .stx-thumb{width:84px;height:68px}
}
