.btb-route-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
}

.btb-route-card{
  background:#fff;
  border:1px solid #e8edf5;
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  overflow:hidden;
}

.btb-route-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:22px;
  border-bottom:1px solid #eef2f7;
}

.btb-route-line{
  font-size:26px;
  font-weight:800;
  letter-spacing:-.3px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.btb-route-arrow{opacity:.6}

.btb-route-badges{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btb-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #e8edf5;
  background:#f8fafc;
  font-weight:700;
  font-size:13px;
}

.btb-pill-strong{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.btb-route-price{
  display:flex;
  align-items:center;
}

.btb-price-box{
  background:#111827;
  color:#fff;
  border-radius:16px;
  padding:14px 16px;
  text-align:center;
  min-width:110px;
}

.btb-price{font-size:22px;font-weight:900;line-height:1}
.btb-price-sub{opacity:.85;font-size:12px;margin-top:4px}

.btb-route-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  padding:22px;
}

@media (max-width: 980px){
  .btb-route-grid{grid-template-columns:1fr}
}

.btb-driver-box,
.btb-details-box,
.btb-booking-box{
  border:1px solid #e8edf5;
  background:#f8fbff;
  border-radius:16px;
  padding:18px;
}

.btb-driver-head{
  display:flex;
  gap:14px;
  align-items:center;
}

.btb-avatar img{
  width:64px;height:64px;
  border-radius:14px;
  object-fit:cover;
  display:block;
}
.btb-avatar-fallback{
  width:64px;height:64px;
  border-radius:14px;
  background:#e9eef6;
}

.btb-driver-name{font-weight:900;font-size:18px}
.btb-driver-sub{margin-top:4px;color:#475467;font-weight:700}
.btb-driver-rating{margin-top:6px;font-weight:800}
.btb-muted{color:#667085}

.btb-driver-contacts{
  margin-top:14px;
  display:grid;
  gap:10px;
}

.btb-contact{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e8edf5;
  border-radius:14px;
  padding:12px;
}

.btb-ico{
  width:34px;height:34px;
  border-radius:12px;
  background:#eef4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#1d4ed8;
  flex:0 0 auto;
}

.btb-contact-label{font-size:12px;color:#667085;font-weight:800}
.btb-contact-val{font-weight:900;color:#111827;text-decoration:none}

.btb-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid transparent;
}

.btb-btn-primary{
  background:#0b5fff;
  color:#fff;
}
.btb-btn-dark{
  background:#111827;
  color:#fff;
}
.btb-btn-ghost{
  background:#fff;
  color:#111827;
  border-color:#e8edf5;
}
.btb-btn-disabled{
  background:#f2f4f7;
  color:#98a2b3;
  border-color:#eaecf0;
}

.btb-section-title{
  font-weight:1000;
  font-size:16px;
  margin-bottom:12px;
}

.btb-kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 520px){
  .btb-kpis{grid-template-columns:1fr}
}

.btb-kpi{
  background:#fff;
  border:1px solid #e8edf5;
  border-radius:14px;
  padding:12px;
}
.btb-kpi-label{font-size:12px;color:#667085;font-weight:900}
.btb-kpi-val{margin-top:4px;font-weight:900;color:#111827}

.btb-note{
  margin-top:12px;
  font-size:12px;
  color:#667085;
  font-weight:700;
}

.btb-booking-box{
  margin:0 22px 22px;
  background:#fff;
}
.btb-booking-inner{
  border:1px dashed #d0d5dd;
  border-radius:14px;
  padding:14px;
  background:#f9fafb;
}
/* Reuse booking form styles from search dropdown */
.btb-book-form .btb-field label{display:block;font-size:12px;font-weight:600;color:#111827;margin-bottom:4px;}
.btb-book-form input, .btb-book-form textarea{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
}
.btb-book-form .btb-actions{display:flex;justify-content:flex-end;}
.btb-book-form .btb-btn.primary{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
/* Booking form (same look as dropdown) */
.btb-book{
  margin-top:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.btb-book-form .btb-field label{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#111827;
  margin-bottom:4px;
}

.btb-book-form .btb-field input,
.btb-book-form .btb-field textarea{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
}

.btb-book-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

@media (max-width:640px){
  .btb-book-grid{ grid-template-columns:1fr; }
}
.btb-route-line{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:#0f172a;
  line-height:1.15;
}

.btb-loc{
  display:flex;
  align-items:center;
  gap:10px;
}

.btb-flagimg{
  width:16px;
  height:12px;
  border-radius:2px;
  box-shadow:0 1px 2px rgba(15,23,42,.15);
}

.btb-loc-text{
  display:flex;
  flex-direction:column;
}

.btb-city{
  font-size:16px;
}

.btb-country{
  font-size:11px;
  color:#64748b;
  font-weight:800;
}

/* animated arrow */
.btb-arrow{
  flex:1;
  position:relative;
  height:14px;
  min-width:120px;
}

.btb-arrow::before{
  content:"";
  position:absolute;
  left:0;right:0;top:50%;
  height:3px;
  background:#cbd5e1;
  border-radius:999px;
  transform:translateY(-50%);
}

.btb-arrow::after{
  content:"";
  position:absolute;
  left:0;top:50%;
  width:26%;
  height:3px;
  border-radius:999px;
  transform:translateY(-50%);
  background:linear-gradient(
    90deg,
    rgba(37,99,235,0),
    rgba(37,99,235,.9),
    rgba(37,99,235,0)
  );
  animation:btbFlow 1.4s linear infinite;
}

@keyframes btbFlow{
  0%{transform:translate(0,-50%);}
  100%{transform:translate(285%,-50%);}
}

.btb-arrowhead{
  position:absolute;
  right:-2px;
  top:50%;
  width:10px;
  height:10px;
  border-right:3px solid #0f172a;
  border-top:3px solid #0f172a;
  transform:translateY(-50%) rotate(45deg);
}
/* ================================
   BTB Single Route - Booking form FIX
================================ */

/* wrapper */
#btb-booking{
  width:100%;
  max-width:100%;
  margin-top:18px;
  clear: both;
}

/* in caz ca btb_render_booking_form scoate .btb-book */
#btb-booking .btb-book,
#btb-booking .btb-book-form,
#btb-booking form{
  width:100% !important;
  max-width:100% !important;
}

/* card styling (ca dropdown-ul) */
#btb-booking .btb-book{
  display:block !important;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  margin:0;
}

/* grid: 2 coloane pe desktop */
#btb-booking .btb-book-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:10px;
}

/* full width pentru textarea row */
#btb-booking .btb-book-grid .btb-field[style*="grid-column"],
#btb-booking .btb-book-grid .btb-field.btb-field--full{
  grid-column:1 / -1;
}

/* inputs */
#btb-booking .btb-field label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#111827;
  margin:0 0 6px;
}

#btb-booking .btb-field input,
#btb-booking .btb-field textarea{
  box-sizing:border-box;
  width:100% !important;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
}

/* buton */
#btb-booking .btb-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

#btb-booking .btb-btn,
#btb-booking button[type="submit"]{
  border:0;
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  background:#0f172a;
  color:#fff;
}

/* mobil: 1 col */
@media (max-width: 640px){
  #btb-booking .btb-book-grid{
    grid-template-columns:1fr;
  }
  #btb-booking .btb-actions{
    justify-content:stretch;
  }
  #btb-booking .btb-btn,
  #btb-booking button[type="submit"]{
    width:100%;
  }
}
