/* Bus only: same frame and carousel proportions as Taxi, independent form controls. */
#bottomSheet[data-panel-layout="bus-v1"] {
  --bus-panel-accent: #f3bd45;
  --bus-panel-blue: #83cfff;
  --bus-panel-line: rgba(117, 185, 232, 0.38);
  --bus-panel-glass: linear-gradient(145deg, rgba(5, 18, 31, 0.88), rgba(4, 10, 18, 0.8));
  color: #f8fbff;
  height: max(280px, 36dvh);
  max-height: 60dvh;
}

/* Dwa istniejące przyciski pozostają funkcjonalne i zajmują boczne ramiona. */
#bottomSheet[data-panel-layout="bus-v1"] > .client-panel-fixed-action {
  top: 4.45dvh;
  bottom: auto;
  width: clamp(26px, 3.5dvh, 34px);
  height: clamp(26px, 3.5dvh, 34px);
  min-width: 0;
  padding: 0;
  border: 1px solid var(--panel-theme-border, rgba(143, 208, 255, 0.3));
  border-radius: 50%;
  color: var(--panel-theme-color, #eaf7ff);
  background: var(--panel-theme-background, rgba(7, 22, 36, 0.76));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.25);
  font-size: clamp(14px, 2dvh, 18px);
}

#bottomSheet[data-panel-layout="bus-v1"] > #taxiCardThemeToggle {
  left: 2.2%;
}

#bottomSheet[data-panel-layout="bus-v1"] > #toggleDriverListBtn {
  right: 2.2%;
}

/* Jeden ciągły viewport Swipera, bez wyglądu zestawu osobnych przycisków. */
#bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper {
  position: absolute;
  top: 3.75dvh;
  left: 10%;
  right: 10%;
  width: auto;
  height: clamp(30px, 4.25dvh, 40px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 202, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 38, 58, 0.48), rgba(3, 12, 21, 0.44));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 7px 22px rgba(0, 0, 0, 0.18);
  transform: none;
  z-index: 5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

#bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper .swiper-wrapper {
  height: 100%;
  align-items: center;
}

#bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper .driver-filter-slide {
  position: relative;
  width: 42% !important;
  min-width: 42%;
  height: 100%;
  margin: 0;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 0;
  color: rgba(235, 244, 252, 0.42);
  background: transparent;
  box-shadow: none;
  opacity: 0.58;
  transform: scale(0.88);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
  font-size: clamp(11px, 3.2dvw, 15px);
  font-weight: 650;
}

#bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper .driver-filter-slide.is-active {
  color: #fff;
  background: radial-gradient(circle at 50% 65%, rgba(71, 161, 221, 0.2), transparent 68%);
  box-shadow: none;
  opacity: 1;
  transform: scale(1);
}

#bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper .driver-filter-slide.is-active::after {
  content: "";
  position: absolute;
  left: 34%;
  right: 34%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bus-panel-accent), var(--bus-panel-blue));
  box-shadow: 0 0 8px rgba(111, 196, 255, 0.8);
}

#bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper .driver-filter-slide > span {
  font-size: 0.94em;
  opacity: 0.9;
}


#bottomSheet[data-panel-layout="bus-v1"] #dynamic-form.bus-panel-form {
  position: absolute;
  top: 9dvh;
  bottom: max(6dvh, calc(62px + env(safe-area-inset-bottom, 0px) - 2dvh));
  left: 6%; right: 6%;
  width: auto; height: auto;
  margin: 0; padding: 0 2px 4px;
  display: flex; flex-direction: column; align-items: stretch;
  gap: clamp(3px, .45dvh, 6px);
  background: transparent; border: 0; box-shadow: none;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #4d6575 transparent;
  -webkit-overflow-scrolling: touch;
  z-index: 4;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-panel-form > * { flex-shrink: 0; }
#bottomSheet[data-panel-layout="bus-v1"] .bus-panel-heading {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 16px; margin: 0 3px;
  color: #d7e6f1; font-size: clamp(10px, 1.5dvh, 12px); line-height: 1.3;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-panel-badge {
  color: #e5b95e; font-size: 9px; font-weight: 700; letter-spacing: .17em;
}
/* Bus transport filters occupy the same lower action row as Taxi shortcuts. */
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-actions {
  display: grid; grid-template-columns: 1fr 1fr 1.45fr;
  gap: clamp(4px, 1.2dvw, 8px);
  min-width: 0; width: 100%; margin: .4dvh 0 0; padding: 0;
  border: 0; background: transparent;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action {
  display: grid; grid-template-columns: clamp(22px, 6dvw, 28px) minmax(0, 1fr);
  align-items: center; gap: clamp(3px, .8dvw, 5px);
  min-width: 0; width: 100%; height: clamp(44px, 5.4dvh, 50px);
  margin: 0; padding: 0 clamp(3px, 1dvw, 6px);
  border: 1px solid rgba(125,194,239,.24); border-radius: clamp(10px,1.6dvh,15px);
  color: #f7fbff; background: linear-gradient(145deg,rgba(9,25,40,.68),rgba(4,13,22,.62));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  font: inherit; text-align: left; cursor: pointer;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action__icon {
  display: grid; place-items: center;
  width: clamp(22px,6dvw,28px); height: clamp(22px,6dvw,28px);
  border: 1px solid rgba(131,207,255,.24); border-radius: 50%;
  color: var(--bus-panel-blue); background: rgba(3,13,22,.5);
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action__icon svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action__copy {
  display: grid; gap: 3px; min-width: 0;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action__copy strong {
  font-size: clamp(9px,2.4dvw,12px); line-height: 1.15; font-weight: 650;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action__copy small {
  color: #a4b6c5; font-size: clamp(8px,2dvw,10px); line-height: 1.15;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action.is-active {
  border-color: rgba(243,189,69,.55);
  background: linear-gradient(145deg,rgba(53,43,25,.78),rgba(10,22,32,.8));
  box-shadow: inset 0 1px rgba(255,227,166,.07);
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action.is-active :is(strong,.bus-transport-action__icon) {
  color: var(--bus-panel-accent);
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action.is-active .bus-transport-action__icon {
  border-color: rgba(243,189,69,.4);
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-transport-action:not(.is-active):hover {
  border-color: rgba(131,207,255,.5); background: rgba(17,40,57,.8);
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-module {
  position: relative; width: 100%; min-height: 88px;
  display: grid; grid-template-rows: repeat(2,minmax(44px,1fr));
  border: 1px solid var(--bus-panel-line); border-radius: clamp(13px,2dvh,18px);
  background: var(--bus-panel-glass);
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}
#bottomSheet[data-panel-layout="bus-v1"] #dynamic-form .bus-route-field {
  position: relative; width: 100%; height: auto; min-height: 44px;
  margin: 0; padding: 3px 42px 3px 0;
  display: grid; grid-template-columns: 37px minmax(0,1fr); grid-template-rows: 1fr auto;
  align-items: center; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-field:first-child { border-bottom: 1px solid rgba(139,188,221,.18) !important; }
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-icon {
  grid-column: 1; grid-row: 1 / 3; place-self: center;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(135,204,249,.22); border-radius: 50%;
  color: var(--bus-panel-accent); background: rgba(8,22,34,.58); font-size: 18px;
}
#bottomSheet[data-panel-layout="bus-v1"] [data-address-kind="destination"] .bus-route-icon { color: var(--bus-panel-blue); font-size: 12px; }
#bottomSheet[data-panel-layout="bus-v1"] #dynamic-form .bus-route-field > input {
  grid-column: 2; grid-row: 1; align-self: end; position: static;
  width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0;
  border: 0; outline: 0; border-radius: 0; box-shadow: none;
  color: #f7fbff; background: transparent; text-align: left; text-overflow: ellipsis;
  font-size: 16px; font-weight: 600; line-height: 1.2;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-field input::placeholder { color: #a9bbc9; font-weight: 400; }
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-field:focus-within { background: rgba(83,156,209,.09); }
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-caption {
  position: static; grid-column: 2; grid-row: 2;
  margin: 1px 0 0; padding: 0; width: auto;
  color: #acbecc; font-size: 10px; line-height: 1.25; text-align: left;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-swap {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 56px; min-height: 0; margin: 0; padding: 0; z-index: 3;
  border: 1px solid rgba(243,189,69,.4); border-radius: 999px;
  color: var(--bus-panel-accent); background: #101e29; font-size: 23px;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-schedule-fields {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 6px;
  min-width: 0; margin: 0; padding: 0; border: 0;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-schedule-fields[hidden] { display: none !important; }
#bottomSheet[data-panel-layout="bus-v1"] .bus-schedule-fields label {
  position: static; display: grid; gap: 2px; min-width: 0; margin: 0; padding: 4px 9px;
  border: 1px solid rgba(243,189,69,.32); border-radius: 12px;
  background: rgba(5,17,28,.88); color: #bacbda; font-size: 10px; line-height: 1.2;
}
#bottomSheet[data-panel-layout="bus-v1"] #dynamic-form .bus-schedule-fields input {
  position: static; display: block; width: 100%; min-width: 0; height: 23px; min-height: 0;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  color: #f8fbff; background: transparent; color-scheme: dark; font: inherit; font-size: 16px;
  text-align: left;
}
#bottomSheet[data-panel-layout="bus-v1"] .bus-panel-status {
  margin: 0 4px; padding: 0; color: #a5b9c9; font-size: 11px; line-height: 1.35;
}
#bottomSheet[data-panel-layout="bus-v1"] > #toggleDriverListBtn.is-scheduled {
  color: #f3bd45; border-color: rgba(243,189,69,.6); background: rgba(38,30,15,.88);
}
#bottomSheet > .bus-schedule-toggle svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.45;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
#bottomSheet[data-panel-layout="bus-v1"] :is(button,input):focus-visible { outline: 2px solid #f3bd45; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  #bottomSheet[data-panel-layout="bus-v1"] #driverFilterSwiper .driver-filter-slide { transition: none; }
}

/* As in Taxi, date/time replace secondary controls rather than enlarging the form. */
#bottomSheet[data-panel-layout="bus-v1"][data-bus-booking-mode="scheduled"] .bus-transport-scope { display: none; }
#bottomSheet[data-panel-layout="bus-v1"] .bus-route-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4;
}
@media (max-height: 650px) {
  #bottomSheet[data-panel-layout="bus-v1"] .bus-panel-heading { display: none; }
  #bottomSheet[data-panel-layout="bus-v1"] .bus-route-module {
    min-height: 76px; grid-template-rows: repeat(2, minmax(38px, 1fr));
  }
  #bottomSheet[data-panel-layout="bus-v1"] #dynamic-form .bus-route-field { min-height: 38px; }
}

.bus-search-reach{display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;font-size:12px;
  margin:4px 0}.bus-search-reach select
  {max-width:60%;border:1px solid #526b82;
    border-radius:10px;
    /*padding:7px;*/
    background:#142638;color:#edf6fc;font-size:12px}
.bus-info-dialog{width:min(94vw,640px);max-height:88dvh;overflow:auto;box-sizing:border-box;background:#0c2032;color:#edf6fc;border:1px solid #416580;border-radius:20px;padding:20px;inset:0;margin:auto;box-shadow:0 20px 70px #0008}.bus-info-dialog::backdrop{background:#020d1dbb}.bus-info-dialog p{line-height:1.5}.bus-info-dialog button,.bus-pickup-area-action{padding:10px;border:1px solid #527792;border-radius:10px;background:#183d57;color:#edf6fc;cursor:pointer}.bus-info-close{float:right}.bus-pickup-map{height: min(45dvh,400px);margin:12px 0}.bus-info-dialog label{display:grid;gap:8px;margin:12px 0}.bus-info-dialog input{padding:10px;border-radius:8px;font-size:16px}.bus-pickup-area-action{font-size:12px;width:100%;margin:5px 0}
