/* bus-layout.html — same on Seat Layout tab, public booking, and admin preview */

.fivesBusLayout{
  display:flex;
  border:2px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 6px rgba(0,0,0,.05);
  width:100%;
  max-width:100%;
}

.fivesBusLayout__driver{
  width:60px;
  min-width:60px;
  flex:0 0 60px;
  background:#f0f4f8;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:45px;
  border-right:1px solid #e5e7eb;
}

.fivesBusLayout__wheel{
  width:28px;
  height:28px;
  border:3px solid #6b7280;
  border-radius:50%;
  position:relative;
  box-sizing:border-box;
  flex-shrink:0;
}

.fivesBusLayout__wheel::before{
  content:'';
  position:absolute;
  top:50%;
  left:-3px;
  right:-3px;
  height:3px;
  background:#6b7280;
  transform:translateY(-50%);
}

.fivesBusLayout__wheel::after{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:3px;
  height:14px;
  background:#6b7280;
  transform:translateX(-50%);
}

.fivesBusLayout__seats{
  display:grid;
  grid-template-columns:repeat(var(--seat-cols, 11), 30px);
  gap:12px;
  padding:30px;
  overflow-x:auto;
  overflow-y:hidden;
  flex:1;
  min-width:0;
  align-content:start;
}

.fivesBusLayout__aisleBand{
  display:contents;
}

.fivesBusLayout__empty{
  width:30px;
  height:30px;
  display:block;
  box-sizing:border-box;
}

.fivesBusSeat{
  width:30px;
  height:30px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  position:relative;
  cursor:pointer;
  box-sizing:border-box;
  transition:transform .2s ease;
}

.fivesBusSeat__box{
  display:block;
  width:30px;
  height:30px;
  border-radius:6px;
  position:relative;
  box-sizing:border-box;
  pointer-events:none;
}

.fivesBusSeat__box::after{
  content:'';
  position:absolute;
  top:1px;
  right:-3px;
  width:14px;
  height:28px;
  border:4px solid #9ca3af;
  border-left:none;
  border-radius:0 6px 6px 0;
  box-sizing:border-box;
}

.fivesBusSeat.available .fivesBusSeat__box{
  background:#fff;
  border:1px solid #d1d5db;
}

.fivesBusSeat.booked .fivesBusSeat__box,
.fivesBusSeat.off .fivesBusSeat__box,
.fivesBusSeat.is-public-hidden .fivesBusSeat__box,
.fivesBusSeat:disabled .fivesBusSeat__box{
  background:#d1d5db;
  border:1px solid #c5c9ce;
}

.fivesBusSeat.on .fivesBusSeat__box{
  background:#dbeafe;
  border:2px solid #2563eb;
}

.fivesBusSeat.on .fivesBusSeat__box::after{
  border-color:#2563eb;
}

.fivesBusSeat:hover:not(:disabled){
  transform:scale(1.05);
}

.fivesBusLayout--noLabels .fivesBusSeat__label{
  display:none!important;
}

.fivesSeatVendor{
  display:inline-block;
}

.fivesSeatVendor__check{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

.fivesSeatVendor.fivesBusSeat{
  margin:0;
}

.fivesBusLayout__seats--van{
  grid-template-columns:repeat(auto-fill, 30px);
}

.fivesBusLayout__aisleGap{
  grid-column:1 / -1;
  height:20px;
}

.obd-preview .fivesBusLayout,
#obdSeatLayoutMap .fivesBusLayout,
.h197-seatmap-scroll .fivesBusLayout,
.a161-seatmap-wrap .fivesBusLayout{
  max-width:100%;
}

.obd-preview,
.obd-seat-layout-map,
#obdSeatLayoutMap{
  overflow-x:auto;
  width:100%;
}

.fivesSeatMapExact.fivesBusLayout{
  border:2px solid #e5e7eb;
  height:auto!important;
  min-height:unset!important;
  max-width:100%!important;
}

/* Undo compact seat-map overrides inside bus-layout grid */
.fivesBusLayout.fivesSeatMapExact{
  display:flex!important;
  flex-direction:row!important;
  height:auto!important;
  max-width:100%!important;
}

.fivesBusLayout button.v2seat.fivesSeatExact,
.fivesBusLayout label.fivesBusSeat.fivesSeatVendor,
.fivesBusLayout .fivesBusSeat{
  display:inline-block!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 30px!important;
}

.fivesBusLayout .fivesSeatExact__svg{
  display:none!important;
}

.fivesBusLayout .fivesBusSeat__box{
  width:30px!important;
  height:30px!important;
}

/* Public booking — never clip wide seat grids */
.v2inlineSeat .fivesBusLayout,
.v2seatPage .fivesBusLayout,
.v2inlineSeat .fivesSeatMapExact.fivesBusLayout,
.v2seatPage .fivesSeatMapExact.fivesBusLayout,
.v2inlineSeat .fivesBusLayout.fivesSeatMapExact,
.v2seatPage .fivesBusLayout.fivesSeatMapExact{
  overflow:visible!important;
  max-width:none!important;
  width:max-content!important;
  min-width:min(100%,300px)!important;
}

.v2inlineSeat .fivesBusLayout__seats,
.v2seatPage .fivesBusLayout__seats{
  overflow:visible!important;
}
