.bsb-wrap{--primary:#0b63ce;--primary2:#083b82;--cyan:#09b7e8;--navy:#081f3a;--gold:#f5b91e;--red:#dc2d3a;--green:#15945c;--line:#dce6f1;--soft:#f5f9fd;max-width:1120px;margin:38px auto;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#17253a}.bsb-wrap *{box-sizing:border-box}.bsb-head{text-align:center;margin:0 auto 24px;max-width:760px}.bsb-head>span{display:inline-flex;align-items:center;gap:7px;background:#eaf6ff;color:#0879b7;padding:8px 14px;border:1px solid #cdeaff;border-radius:999px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.11em}.bsb-head h2{margin:12px 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.08;color:var(--navy);letter-spacing:-.025em}.bsb-head p{margin:0;color:#64748b;font-size:15px;line-height:1.7}.bsb-search{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;background:linear-gradient(145deg,#fff,#f8fbff);padding:18px;border:1px solid #e2eaf3;border-radius:22px;box-shadow:0 16px 45px rgba(9,39,78,.09);margin-bottom:16px}.bsb-search label,.bsb-form-grid label{display:grid;gap:7px}.bsb-search label>span,.bsb-form-grid label>span{font-size:11px;font-weight:900;color:#526174;text-transform:uppercase;letter-spacing:.055em}.bsb-search select,.bsb-search input,.bsb-search button,.bsb-dialog input,.bsb-dialog button{min-height:48px;padding:10px 13px;border:1px solid #d4dfeb;border-radius:12px;background:#fff;color:#17253a;outline:none}.bsb-search select:focus,.bsb-search input:focus,.bsb-dialog input:focus{border-color:#55a7ed;box-shadow:0 0 0 3px rgba(11,99,206,.1)}.bsb-search button,.bsb-dialog .bsb-confirm{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border:0;font-weight:900;cursor:pointer;align-self:end;padding-inline:22px;box-shadow:0 9px 22px rgba(11,99,206,.22)}.bsb-search button:hover,.bsb-dialog .bsb-confirm:hover{transform:translateY(-1px)}.bsb-legend{display:flex;gap:12px;flex-wrap:wrap;margin:17px 0;justify-content:center;font-size:12px;font-weight:800;color:#536176}.bsb-legend span{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e4ebf3;padding:7px 10px;border-radius:999px}.bsb-legend i{width:14px;height:14px;display:inline-block;border:2px solid #9eb0c2;border-radius:4px}.bsb-legend .available{background:#fff}.bsb-legend .female{background:#fff2f4;border-color:#ef7a86}.bsb-legend .sold{background:#e6edf5;border-color:#c5d0dc}.bsb-legend .selected{background:#fff2b7;border-color:#f1b812}.bsb-bus-shell{width:100%;overflow:hidden;background:#fff;border:1px solid #dce6f1;border-radius:26px;padding:18px;box-shadow:0 20px 60px rgba(9,39,78,.10)}.bsb-layout-title{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:3px 4px 16px}.bsb-layout-title strong{display:block;color:var(--navy);font-size:17px}.bsb-layout-title div span{display:block;color:#7a899c;font-size:11px;margin-top:3px}.bsb-front{font-size:11px!important;font-weight:900;color:#0b63ce!important;background:#eaf4ff;border-radius:999px;padding:7px 10px}.bsb-mobile-note{display:none;text-align:center;font-size:11px;font-weight:700;color:#6b7a8e;margin:2px 0 10px}.bsb-bus{position:relative;width:100%;padding:14px;background:linear-gradient(180deg,#f7fbff,#edf4fa);border:2px solid #b9c9d9;border-radius:34px;overflow:hidden}.bsb-bus:before{content:"";position:absolute;top:8px;right:12%;width:13%;height:5px;border-radius:99px;background:#9fb4c8}.bsb-row{display:flex;gap:8px;min-height:118px;padding:6px 0;position:relative}.bsb-pair{display:flex;gap:6px;flex:0 0 31.5%;min-width:0}.bsb-pair.divider{border-right:0}.bsb-pair.divider:after{content:"";width:5px;border-radius:8px;background:linear-gradient(#ffd95c,#efb313);margin-left:2px;box-shadow:inset 0 0 0 1px #d99d00}.bsb-aisle{flex:1;min-width:64px;background:linear-gradient(180deg,#dff6ff,#bcecff);border-left:1px dashed #72c9e8;border-right:1px dashed #72c9e8;border-radius:12px;position:relative}.bsb-aisle:after{content:"AISLE";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-90deg);font-size:9px;font-weight:900;letter-spacing:.16em;color:#4aa9ce}.bsb-seat{position:relative;flex:1;min-width:0;min-height:102px;border:2px solid #b8c7d6!important;border-radius:13px!important;background:linear-gradient(180deg,#fff,#f7fafc)!important;padding:8px 4px 7px!important;cursor:pointer;color:#17253a!important;box-shadow:0 4px 10px rgba(24,52,84,.08);transition:.18s ease;overflow:hidden}.bsb-seat:before{content:"";position:absolute;left:7px;right:7px;top:6px;height:8px;border-radius:5px;background:#e6edf4;border:1px solid #cbd7e3}.bsb-seat:hover:not(.sold){transform:translateY(-3px);border-color:#4e9fe6!important;box-shadow:0 9px 18px rgba(11,99,206,.16)}.bsb-seat-top{display:flex!important;align-items:flex-end;justify-content:center;gap:4px;margin-top:11px}.bsb-seat b{font-size:20px;line-height:1;color:#092d57}.bsb-seat-top i{font-style:normal;font-size:7px;font-weight:900;letter-spacing:.08em;color:#93a1b1;margin-bottom:2px}.bsb-deck{display:block!important;margin-top:7px!important;font-size:10px!important;font-weight:800!important;line-height:1.15!important;color:#617186!important;white-space:normal}.bsb-seat em{display:inline-block!important;margin-top:5px;padding:3px 5px;border-radius:99px;background:#fff0f2;color:#c91f31;font-style:normal;font-size:7px;font-weight:900;letter-spacing:.05em}.bsb-seat small{display:block;min-height:16px;margin-top:3px}.bsb-seat.is-female{border-color:#ef9aa3!important;background:linear-gradient(180deg,#fff,#fff6f7)!important}.bsb-seat.sold{background:repeating-linear-gradient(135deg,#eef2f6,#eef2f6 7px,#e6ebf0 7px,#e6ebf0 14px)!important;border-color:#c8d1da!important;cursor:not-allowed;opacity:.82;transform:none!important}.bsb-seat.sold b{color:#7f8a96}.bsb-seat.sold small:after{content:'SOLD';display:inline-block;color:#fff;background:#d94b57;border-radius:99px;padding:3px 6px;font-size:7px;font-weight:900;letter-spacing:.05em}.bsb-seat.selected{border-color:#e5a900!important;outline:3px solid rgba(245,185,30,.22);background:linear-gradient(180deg,#fffdf1,#fff4bc)!important;box-shadow:0 9px 20px rgba(222,163,0,.2)}.toilet{flex-direction:column;justify-content:center;align-items:center;border:1px solid #d8e1e9;border-radius:14px;background:linear-gradient(180deg,#f7f9fb,#eef2f5);color:#4f6d84;min-height:102px}.toilet .toilet-icon{font-size:29px}.toilet span:last-child{font-size:8px;font-weight:900;letter-spacing:.1em;margin-top:4px}.bsb-rear{flex:0 0 15%;display:flex;gap:6px;padding:5px;border:2px solid #efbd28;border-radius:14px;background:#fff5c7}.bsb-rear .bsb-seat{background:linear-gradient(180deg,#fffdf2,#fff3ad)!important;border-color:#e4bb3c!important}.bsb-modal{display:none;position:fixed;z-index:999999;inset:0;background:rgba(4,16,32,.72);padding:18px;align-items:center;justify-content:center;backdrop-filter:blur(7px)}.bsb-modal.open{display:flex}.bsb-dialog{background:#fff;width:min(580px,100%);max-height:92vh;overflow:auto;padding:30px;border-radius:24px;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.32)}.bsb-modal-icon{width:56px;height:56px;border-radius:17px;background:#eaf6ff;display:grid;place-items:center;font-size:28px}.bsb-dialog h3{margin:14px 0 5px;font-size:26px;color:#102b4c}.bsb-modal-sub{color:#6c7b8e;margin-bottom:18px}.bsb-dialog form{display:grid;gap:14px}.bsb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bsb-form-grid .full{grid-column:1/-1}.bsb-x{position:absolute;right:15px;top:11px!important;background:#f1f5f9!important;color:#334155!important;border:0!important;border-radius:50%!important;width:38px;height:38px;min-height:38px!important;font-size:24px;padding:0!important}.bsb-msg{font-size:13px;font-weight:800}.bsb-msg.ok{color:#16803d}.bsb-msg.err{color:#c51d25}
@media(max-width:760px){.bsb-wrap{margin:24px auto;padding:0 10px}.bsb-search{grid-template-columns:1fr 1fr;padding:14px}.bsb-search button{grid-column:1/-1}.bsb-mobile-note{display:block}.bsb-bus-shell{padding:10px;border-radius:20px}.bsb-layout-title{padding:4px 3px 10px}.bsb-bus{padding:7px;border-radius:22px}.bsb-row{gap:4px;min-height:88px;padding:3px 0}.bsb-pair{gap:3px;flex-basis:31.5%}.bsb-pair.divider:after{width:3px;margin-left:0}.bsb-aisle{min-width:30px;border-radius:7px}.bsb-aisle:after{font-size:6px}.bsb-seat{min-height:80px;padding:5px 1px!important;border-radius:8px!important;border-width:1.5px!important}.bsb-seat:before{left:4px;right:4px;top:4px;height:5px}.bsb-seat-top{gap:2px;margin-top:8px}.bsb-seat b{font-size:14px}.bsb-seat-top i{display:none}.bsb-deck{font-size:7px!important;margin-top:5px!important;line-height:1.05!important}.bsb-seat em{font-size:5.5px;padding:2px 3px;margin-top:3px}.bsb-seat small{min-height:11px}.bsb-seat.sold small:after{font-size:5.5px;padding:2px 3px}.toilet{min-height:80px}.toilet .toilet-icon{font-size:20px}.toilet span:last-child{font-size:5.5px}.bsb-rear{gap:2px;padding:2px;flex-basis:15%}.bsb-legend{gap:6px;font-size:10px}.bsb-legend span{padding:6px 8px}}
@media(max-width:480px){.bsb-wrap{padding:0 6px}.bsb-head{padding:0 8px}.bsb-head h2{font-size:27px}.bsb-search{grid-template-columns:1fr;border-radius:16px}.bsb-search button{grid-column:auto}.bsb-layout-title strong{font-size:14px}.bsb-layout-title div span{font-size:9px}.bsb-front{font-size:8px!important}.bsb-bus-shell{padding:7px}.bsb-bus{padding:5px}.bsb-row{gap:2px;min-height:74px}.bsb-pair{gap:2px}.bsb-aisle{min-width:22px}.bsb-seat{min-height:68px;padding:3px 0!important;border-radius:6px!important}.bsb-seat:before{left:3px;right:3px;height:4px}.bsb-seat-top{margin-top:7px}.bsb-seat b{font-size:12px}.bsb-deck{font-size:6px!important;margin-top:4px!important;letter-spacing:-.15px}.bsb-seat em{font-size:4.8px;padding:1px 2px}.bsb-seat small{min-height:9px;margin-top:2px}.bsb-seat.sold small:after{font-size:4.8px;padding:1px 2px}.toilet{min-height:68px}.toilet .toilet-icon{font-size:17px}.toilet span:last-child{font-size:4.8px}.bsb-rear{padding:1px}.bsb-form-grid{grid-template-columns:1fr}.bsb-form-grid .full{grid-column:auto}.bsb-dialog{padding:24px 16px}.bsb-legend{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.bsb-legend span{white-space:nowrap}}

/* V3.2: full-width readable seat map with horizontal scrolling */
.bsb-seat-scroll{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:2px 2px 12px;scrollbar-width:thin;scrollbar-color:#78bce8 #eaf4fb}
.bsb-seat-scroll::-webkit-scrollbar{height:10px}.bsb-seat-scroll::-webkit-scrollbar-track{background:#eaf4fb;border-radius:999px}.bsb-seat-scroll::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#45a9df,#0b63ce);border-radius:999px;border:2px solid #eaf4fb}
.bsb-seat-scroll .bsb-bus{min-width:900px;width:900px;margin:0 auto}
@media(max-width:960px){.bsb-bus-shell{overflow:hidden}.bsb-seat-scroll .bsb-bus{margin:0;min-width:900px;width:900px}.bsb-mobile-note{display:block!important;background:#eef8ff;border:1px solid #ccecff;color:#247aa7;border-radius:10px;padding:8px 10px;margin:0 0 9px;font-size:10px;font-weight:800}.bsb-seat-scroll{padding-bottom:14px}.bsb-seat{min-width:72px!important;min-height:102px!important;padding:8px 4px 7px!important;border-radius:13px!important}.bsb-seat b{font-size:20px!important}.bsb-seat-top i{display:inline!important;font-size:7px!important}.bsb-deck{font-size:10px!important;margin-top:7px!important;line-height:1.15!important;letter-spacing:0!important}.bsb-seat em{font-size:7px!important;padding:3px 5px!important}.bsb-seat small{min-height:16px!important}.bsb-seat.sold small:after{font-size:7px!important;padding:3px 6px!important}.bsb-row{gap:8px!important;min-height:118px!important;padding:6px 0!important}.bsb-pair{gap:6px!important;flex:0 0 31.5%!important}.bsb-pair.divider:after{width:5px!important;margin-left:2px!important}.bsb-aisle{min-width:64px!important;border-radius:12px!important}.bsb-aisle:after{font-size:9px!important}.toilet{min-height:102px!important}.toilet .toilet-icon{font-size:29px!important}.toilet span:last-child{font-size:8px!important}.bsb-rear{gap:6px!important;padding:5px!important;flex:0 0 15%!important}}

/* V3.3: TRUE FULL-RANGE SCROLL FIX — seats 1 through 60 remain inside the scrollable coach width */
.bsb-bus-shell{overflow:hidden!important}
.bsb-seat-scroll{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:scroll!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  overscroll-behavior-x:auto;
  padding:4px 4px 16px!important;
  scrollbar-gutter:stable;
}
.bsb-seat-scroll .bsb-bus{
  width:1240px!important;
  min-width:1240px!important;
  max-width:none!important;
  margin:0!important;
  overflow:hidden!important;
}
.bsb-seat-scroll .bsb-row{width:100%!important;min-width:0!important;flex-wrap:nowrap!important}
.bsb-seat-scroll .bsb-pair{flex:0 0 20%!important;width:20%!important;min-width:0!important}
.bsb-seat-scroll .bsb-aisle{flex:0 0 8%!important;width:8%!important;min-width:70px!important}
.bsb-seat-scroll .bsb-rear{flex:0 0 12%!important;width:12%!important;min-width:140px!important}
.bsb-seat-scroll .bsb-seat{min-width:0!important}
.bsb-seat-scroll::-webkit-scrollbar{height:12px!important}
.bsb-seat-scroll::-webkit-scrollbar-thumb{min-width:70px}
@media(min-width:1241px){
  .bsb-seat-scroll .bsb-bus{width:1240px!important;min-width:1240px!important}
}
@media(max-width:960px){
  .bsb-seat-scroll .bsb-bus{width:1240px!important;min-width:1240px!important}
  .bsb-seat-scroll .bsb-pair{flex:0 0 20%!important;width:20%!important}
  .bsb-seat-scroll .bsb-aisle{flex:0 0 8%!important;width:8%!important;min-width:70px!important}
  .bsb-seat-scroll .bsb-rear{flex:0 0 12%!important;width:12%!important;min-width:140px!important}
}
