/* Where YBS visual system: adapted from the eleven original Stitch mobile screens.
   Native BusOne MapLibre map, its renderer and required attribution remain untouched. */
:root { --wy-navy:#0B2545; --wy-blue:#1A56DB; --wy-soft:#F0F6FE; --wy-fg:#10243e; }
html,body { font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif; }
body .topbar,body #conn,body #sheet { display:none !important; }
#where-ybs-ui { position:fixed;z-index:22;inset:0;pointer-events:none;color:var(--wy-fg);font:500 14px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif; }
#where-ybs-ui button,#where-ybs-ui input { font:inherit; }
#where-ybs-ui button { cursor:pointer; }
#where-ybs-ui .wy-top,#where-ybs-ui .wy-pane,#where-ybs-ui .wy-bottom { pointer-events:auto; }
#where-ybs-ui .wy-top { position:absolute;top:0;left:50%;transform:translateX(-50%);width:min(100%,490px);padding:calc(env(safe-area-inset-top) + 16px) 19px 18px;box-sizing:border-box;background:var(--wy-navy);border-radius:0 0 29px 29px;color:white;box-shadow:0 12px 30px #09274827; }
.wy-brand { display:flex;align-items:center;gap:11px; }
.wy-brand strong { display:block;font-size:21px;font-weight:800;letter-spacing:-.6px; }
.wy-brand small { display:block;color:#B9D4FB;font-size:11px;letter-spacing:.2px; }
.wy-logo { display:grid;place-items:center;width:44px;height:44px;background:#2563EB;border-radius:14px;color:white;font-size:25px;font-weight:850;box-shadow:inset 0 -4px 8px #13388740; }
.wy-layer { margin-left:auto; }
.wy-icon {border:1px solid #ffffff32;border-radius:13px;background:#ffffff16;color:white;padding:10px 13px;font-size:19px !important;}
.wy-searchbar { display:flex;align-items:center;gap:8px;background:white;color:#8492aa;border-radius:22px;padding:5px 7px 5px 16px;margin-top:17px;min-height:48px;box-sizing:border-box;box-shadow:0 3px 12px #001b3922;}
.wy-searchbar span{font-size:27px;line-height:1;}
.wy-searchbar input{flex:1;min-width:0;background:none;border:0;outline:none;padding:9px 1px;color:#0b2545;font-size:13px !important;}
.wy-searchbar input::placeholder{color:#8795ab;}
.wy-search-go{background:#1A56DB;color:white;border:0;border-radius:16px;padding:10px 12px;font-weight:700 !important;font-size:12px !important;}
.wy-head-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:13px;}
.wy-status{font-size:11px;color:#c3d5ef;max-width:76%;line-height:1.3;}
.wy-status[data-state="live"]{color:#9df1c8;}
.wy-small{background:none;border:1px solid #ffffff45;border-radius:30px;color:white;padding:5px 9px;font-size:11px !important;}
#where-ybs-ui .wy-pane{position:absolute;bottom:calc(70px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(100%,490px);box-sizing:border-box;background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -10px 35px #071b341f;padding:14px 20px 20px;max-height:45vh;overflow:auto;overscroll-behavior:contain;}
#where-ybs-ui .wy-pane[data-full="1"]{max-height:calc(100dvh - 216px - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:min(65vh,720px);}
.wy-handle{margin:0 auto 13px;width:43px;height:5px;background:#e6ebf3;border-radius:40px;}
.wy-row{display:flex;justify-content:space-between;align-items:center;gap:14px;}
.wy-row h2,.wy-pane h2 { margin:3px 0 12px;font-size:22px;font-weight:800;letter-spacing:-.7px;color:#0d2747; }
.wy-pane h3{font-size:18px;color:#0d2747;margin:7px 0 10px;}
.wy-eyebrow{display:block;color:#64748b;font-size:10px;font-weight:800;letter-spacing:1.3px;margin:16px 0 8px;}
.wy-round{display:grid;place-items:center;border-radius:18px;background:#e9f1fe;color:#1A56DB;min-width:48px;height:45px;font-size:23px;font-weight:800;}
.wy-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0;}
.wy-btn{display:inline-flex;align-items:center;justify-content:center;background:#1A56DB;border:0;border-radius:14px;color:white;padding:11px 14px;font-size:12px !important;font-weight:700 !important;flex:1;min-width:96px;}
.wy-btn:focus-visible,.wy-list-row:focus-visible,.wy-navitem:focus-visible{outline:3px solid #60a5fa;outline-offset:1px;}
.wy-list{margin-top:10px;}
.wy-list-row{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;border-bottom:1px solid #e9eef5;padding:13px 2px;color:#122947;text-align:left;}
.wy-list-row>span:nth-child(2){flex:1;min-width:0;}
.wy-list-row strong{display:block;font-size:13px;font-weight:750;}
.wy-list-row small{display:block;font-size:11px;color:#7f91a9;white-space:normal;}
.wy-chevron{font-size:21px;color:#a3b1c6;}
.wy-route-badge{display:inline-flex;align-items:center;justify-content:center;background:#1A56DB;color:white;font-weight:800;border-radius:12px;min-width:43px;padding:9px;font-size:14px;}
.wy-stop-icon{display:grid;place-items:center;background:#eaf1ff;color:#1A56DB;border-radius:13px;min-width:40px;height:41px;font-size:23px;}
.wy-stop-row{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid #eaf0f7;background:white;padding:11px 4px;text-align:left;font-size:13px;color:#0d2747;}
.wy-stop-row>span:nth-child(2){flex:1;}
.wy-index{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8effd;color:#1A56DB;font-weight:800;font-size:12px;}
.wy-back{display:flex;align-items:center;gap:13px;border-bottom:1px solid #ecf0f5;padding-bottom:6px;margin-bottom:10px;}
.wy-back>.wy-btn{flex:0 0 auto;min-width:auto;padding:8px 11px;background:#edf4ff;color:#1A56DB;}
.wy-back>h2{margin:0;}
.wy-note{font-size:12px;color:#697e97;line-height:1.6;}
.wy-alert{padding:12px 14px;background:#fff4e6;border:1px solid #ffdda3;border-radius:14px;color:#86521c;font-size:12px;line-height:1.5;margin:9px 0;}
.wy-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;border:1px dashed #dce5f0;background:#f8fbff;border-radius:20px;padding:18px;margin:11px 0;color:#576e8e;}
.wy-empty-art{display:grid;place-items:center;width:56px;height:56px;border-radius:20px;background:#e8f0fd;font-size:27px;}
.wy-empty strong{font-size:13px;}
.wy-choice{display:flex;flex-direction:column;width:100%;gap:6px;text-align:left;border:1px solid #dfe9f6;background:#f8fbff;border-radius:17px;padding:14px;margin:10px 0;}
.wy-choice small{font-size:10px;color:#6a84a8;font-weight:800;letter-spacing:1px;}
.wy-choice strong{color:#0c2545;font-size:14px;}
.wy-result{border:1px solid #dce7f9;background:#f5f9ff;border-radius:18px;padding:14px;margin:10px 0;}
.wy-result>strong{color:#1A56DB;}
.wy-result p{font-size:12px;color:#516882;}
.wy-bus-hero{display:flex;gap:15px;align-items:center;border:1px solid #e1eaf7;background:#f2f7ff;border-radius:22px;padding:17px;margin:12px 0;}
.wy-bus-hero strong{font-size:15px;}
.wy-bus-hero p{color:#64809f;font-size:12px;}
#where-ybs-ui .wy-bottom{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,490px);display:grid;grid-template-columns:repeat(4,1fr);box-sizing:border-box;background:#fff;border-top:1px solid #e6edf7;padding:8px 8px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -3px 18px #0f274a12;}
.wy-navitem{display:flex;align-items:center;flex-direction:column;gap:2px;background:transparent;border:0;border-radius:14px;padding:3px 0;color:#8290a6;font-size:10px !important;font-weight:700 !important;}
.wy-navitem span{font-size:22px;}
.wy-navitem[aria-current="page"]{color:#1A56DB;}
.maplibregl-ctrl-bottom-right{bottom:calc(74px + env(safe-area-inset-bottom));}
.maplibregl-ctrl-top-right{top:calc(175px + env(safe-area-inset-top));}
@media (min-width:720px){
  #where-ybs-ui .wy-top{top:20px;border-radius:29px;}
  #where-ybs-ui .wy-pane{bottom:90px;border-radius:28px;left:20px;transform:none;width:min(390px,35vw);}
  #where-ybs-ui .wy-bottom{bottom:20px;border-radius:25px;width:410px;}
}
@media (max-width:380px){ .wy-top{padding-left:13px!important;padding-right:13px!important;}.wy-pane{padding-left:14px!important;padding-right:14px!important;}.wy-brand strong{font-size:19px;}}

/* UX refinement: map remains the primary surface, controls stay legible at phone sizes. */
#where-ybs-ui {font-family:system-ui,"Noto Sans Myanmar",sans-serif;font-size:15px;line-height:1.55}
#where-ybs-ui .wy-top {padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;border-radius:0 0 20px 20px;box-shadow:0 3px 15px #09274822}
.wy-brand strong {font-size:20px;letter-spacing:-.3px}
.wy-brand small {font-size:12px}
.wy-logo {width:40px;height:40px;border-radius:11px;font-size:22px}
.wy-icon,.wy-small {min-height:44px;min-width:48px}
.wy-searchbar {margin-top:8px;padding:3px 4px 3px 12px;min-height:52px;border-radius:14px}
.wy-searchbar input {min-height:44px;font-size:16px!important}
.wy-searchbar input::placeholder {color:#586a80}
.wy-search-clear {border:0;background:transparent;color:#173553;font-size:24px!important;min-height:48px;min-width:44px}
.wy-search-clear[hidden] {display:none}
.wy-search-go {min-height:46px;font-size:14px!important;border-radius:10px;padding:8px 12px}
.wy-head-foot {margin-top:4px}
.wy-status {font-size:13px;color:#d7e7fb;max-width:72%}
.wy-status[data-state="offline"] {color:#ffe5a3}
.wy-small {font-size:13px!important;border-radius:12px;padding:4px 10px}
#where-ybs-ui .wy-pane {max-height:36dvh;padding:12px 16px 14px;border-radius:20px 20px 0 0;bottom:calc(70px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #09274824}
#where-ybs-ui .wy-pane[data-full="1"] {height:auto;min-height:42dvh;max-height:calc(100dvh - 228px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.wy-home-title {gap:8px;align-items:center}
.wy-home-title h2 {font-size:20px;margin:0}
.wy-home-title .wy-round {height:36px;min-width:36px;font-size:18px;border-radius:10px}
.wy-collapse {margin-left:auto;min-height:48px;min-width:48px;background:transparent;border:1px solid #b5c8e4;color:#1649ac;border-radius:10px;padding:5px 10px;font-size:13px!important}
.wy-eyebrow {font-size:12px;letter-spacing:.4px;color:#4b5f78}
.wy-btn {min-height:48px;font-size:14px!important;border-radius:11px;padding:10px 12px;min-width:88px}
.wy-btn:disabled {opacity:.65;cursor:wait}
.wy-actions {gap:8px;margin:10px 0}
.wy-list-row,.wy-stop-row,.wy-choice {min-height:52px}
.wy-list-row strong,.wy-stop-row {font-size:15px}
.wy-list-row small,.wy-note,.wy-alert,.wy-empty strong,.wy-result p {font-size:14px;color:#40556e}
.wy-alert {color:#79500a;background:#fff7e4;border-color:#edd3a0}
.wy-stop-row {line-height:1.6}
.wy-choice small {font-size:12px;color:#465e7b}
.wy-choice strong {font-size:16px}
.wy-route-badge {font-size:16px;min-width:42px;padding:8px;border-radius:10px}
.wy-back>.wy-btn {min-width:64px}
.wy-navitem {min-height:48px;font-size:12px!important;color:#475e78}
.wy-navitem[aria-current="page"] {background:#eaf2ff;color:#1649ac}
#where-ybs-ui button:focus-visible,#where-ybs-ui input:focus-visible {outline:3px solid #2563eb;outline-offset:2px}
.wy-searchbar:focus-within {box-shadow:0 0 0 3px #a7cbff}
.maplibregl-ctrl-top-right {top:calc(168px + env(safe-area-inset-top))}
@media(min-width:720px){#where-ybs-ui .wy-top{top:16px;border-radius:18px}#where-ybs-ui .wy-pane{bottom:90px;border-radius:20px;max-height:65dvh}#where-ybs-ui .wy-pane[data-full="1"]{min-height:0;max-height:calc(100dvh - 120px)}}
@media(max-width:380px){.wy-btn{font-size:13px!important;min-width:80px}.wy-home-title h2{font-size:18px}.wy-collapse{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){#where-ybs-ui *,#where-ybs-ui *::before,#where-ybs-ui *::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}}
