/* Local clone additions: seat selection, booking, ticket */
.local-booking-panel {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: 0 6px 24px rgba(8, 117, 10, 0.06);
}
.local-booking-panel h5 { color: #1b1b3a; font-weight: 700; }
.local-booking-panel .bus-front-label {
  text-align: center;
  font-weight: 700;
  color: #6b7280;
  font-size: 13px;
  border-bottom: 2px dashed #d7d7d7;
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.local-seat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 22px 1fr 1fr;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.local-seat-grid .aisle { width: 22px; }
.local-seat-table {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
}
.local-seat-table td {
  padding: 8px 4px;
  text-align: center;
  vertical-align: middle;
  border: 0;
}
.local-seat-table .local-seat-cell { height: auto; }
.local-seat-table .local-seat { width: 40px; min-height: 40px; margin: 0 auto; }
.local-seat-table .local-bus-icon {
  width: auto;
  max-width: 58px;
  height: 42px;
  object-fit: contain;
  display: inline-block;
}
.local-seat {
  position: relative;
  border: 1px solid #08750a;
  background: #08750a;
  color: #fff;
  border-radius: 10px 10px 2px 2px;
  min-height: 40px;
  line-height: 40px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.local-seat:hover { background: #08750a33; color: #000; }
.local-seat.booked {
  background: red;
  border-color: red;
  color: #fff;
  cursor: no-drop;
}
.local-seat.selected {
  background: #ffc107;
  border-color: #ffc107;
  color: #fff;
}
.local-seat .seat-num { pointer-events: none; }
.local-seat .seat-driver { font-size: 15px; }
.local-seat-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.local-seat-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.local-seat-legend i { width: 20px; height: 20px; border-radius: 6px 6px 1px 1px; display: inline-block; }
.local-seat-legend .av { background: #fff; border: 1px solid #08750a; }
.local-seat-legend .bk { background: #e53935; }
.local-seat-legend .sl { background: #ffc107; }
.local-booking-summary {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}
.local-booking-summary .row-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.local-booking-summary .row-line strong { color: #1b1b3a; }
.local-seat-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.local-seat-chips .chip {
  background: #08750a;
  color: #fff;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
}
.local-total { font-size: 20px; font-weight: 800; color: #08750a; }
.local-form-label { font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 4px; }
.local-terms-en { text-transform: none !important; }
.local-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  z-index: 10800; display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow-y: auto;
}
.local-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 720px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; margin: auto;
}
.local-modal-header {
  padding: 16px 20px; border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
}
.local-modal-header h5 { margin: 0; font-weight: 700; color: #1b1b3a; font-size: 18px; }
.local-modal-header .close-x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #6b7280; cursor: pointer; }
.local-modal-body { padding: 20px; }
.local-modal-footer { padding: 14px 20px; border-top: 1px solid #eee; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.local-btn {
  border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 700;
  font-size: 15px; cursor: pointer; transition: .15s ease;
}
.local-btn-primary { background: #08750a; color: #fff; }
.local-btn-primary:hover { background: #065a07; }
.local-btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }
.local-btn-outline { background: #fff; color: #1b1b3a; border: 1px solid #d1d5db; }
.local-btn-outline:hover { background: #f3f4f6; }
.local-passenger-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fbfbfb; }
.local-passenger-card h6 { font-weight: 700; color: #08750a; margin-bottom: 10px; }
.local-inline-passengers { margin-top: 18px; border-top: 1px solid #e5e7eb; padding-top: 16px; }
.local-inline-passengers .local-modal-header { padding: 0 0 10px; border: 0; }
.local-inline-passengers .local-modal-body { padding: 0; }
.local-inline-passengers .local-modal-footer { padding: 12px 0 0; border: 0; }
.local-pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.local-pay-option { border: 2px solid #e5e7eb; border-radius: 10px; padding: 12px; cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; }
.local-pay-option input { display: none; }
.local-pay-option.selected { border-color: #08750a; background: #08750a0d; }
.local-pay-option i { display: block; font-size: 22px; margin-bottom: 6px; color: #08750a; }
.local-alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.local-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.local-alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.local-success-icon { width: 72px; height: 72px; border-radius: 50%; background: #08750a14; color: #08750a; display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 14px; }
.local-pnr { font-size: 26px; letter-spacing: 2px; font-weight: 800; color: #08750a; }
.local-ticket {
  border: 1px solid #d1d5db; border-radius: 12px; overflow: hidden;
}
.local-ticket-head {
  background: #08750a; color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.local-ticket-head .brand { font-weight: 800; letter-spacing: .5px; font-size: 18px; }
.local-ticket-head .brand small { display: block; font-size: 11px; font-weight: 500; opacity: .85; letter-spacing: 1px; }
.local-ticket-body { padding: 18px; }
.local-ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.local-ticket-grid .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: 2px; }
.local-ticket-grid .val { font-weight: 700; color: #111827; font-size: 15px; }
.local-ticket-seats { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d1d5db; }
.local-ticket-seats .seat-badge { display: inline-block; background: #1b1b3a; color: #fff; border-radius: 6px; padding: 3px 10px; font-weight: 700; margin: 0 4px 4px 0; }
.local-barcode { display: flex; gap: 2px; height: 46px; align-items: flex-end; margin-top: 14px; }
.local-barcode i { display: block; width: 3px; background: #111827; height: 100%; }
.local-barcode i:nth-child(3n) { width: 1px; }
.local-barcode i:nth-child(4n) { width: 5px; }
.local-ticket-foot { background: #f9fafb; padding: 12px 18px; font-size: 12px; color: #6b7280; display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 575px) {
  .local-seat-grid { gap: 6px; }
  .local-seat { min-height: 38px; font-size: 11px; }
  .local-modal-body { padding: 14px; }
  .local-modal-backdrop { padding: 12px; }
  .local-modal { max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
  .local-modal .local-modal-body { overflow-y: auto; }
  .local-modal .local-modal-footer { flex: 0 0 auto; }
}
@media print {
  body * { visibility: hidden !important; }
  #localPrintArea, #localPrintArea * { visibility: visible !important; }
  #localPrintArea { position: absolute; left: 0; top: 0; width: 100%; }
}

/* account page */
.local-account { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(17,24,39,.06); }
.local-account-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.local-avatar { width: 56px; height: 56px; border-radius: 50%; background: #08750a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.local-account-id h2 { margin: 0; font-size: 22px; color: #1b1b3a; }
.local-account-id p { margin: 2px 0 0; color: #6b7280; font-size: 14px; }
.local-account-empty { text-align: center; padding: 40px 24px; }
.local-account-empty h2 { color: #1b1b3a; font-size: 24px; }
.local-account-empty p { color: #6b7280; max-width: 520px; margin: 8px auto 18px; }
.local-account-table { margin: 0; }
.local-account-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; border-top: 0; }
.local-account-table td, .local-account-table th { vertical-align: middle; }
.local-account-table .local-btn { padding: 5px 12px; font-size: 12px; }

#localAccountPanel { min-height: 55vh; }

/* coupon row in payment modal */
.local-coupon-row { display: flex; gap: 8px; align-items: stretch; }
.local-coupon-row .form-control { flex: 1 1 auto; }
.local-coupon-row .local-btn { white-space: nowrap; }

/* print only the ticket */
@media print {
  body * { visibility: hidden !important; }
  #localPrintArea, #localPrintArea * { visibility: visible !important; }
  #localPrintArea { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
  .local-modal-backdrop, .local-modal { background: #fff !important; box-shadow: none !important; }
}
