body {
  background-color: #f8f9fa;
  font-family: Arial, sans-serif;
}

/* Bus Card */
.bus-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background: #fff;
  position: relative;
  transition: transform 0.18s ease-in-out;
}
.bus-card:hover { transform: translateY(-6px); }

.image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e9ecef;
}
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 4;
}

.bus-price {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0d6efd;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 3;
}
.bus-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,193,7,0.95);
  color: #000;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
}

/* Seat Layout */
.seat-layout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 1rem;
}
.seat-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* Seat Buttons */
.seat,
.staff-seat,
.driver-seat {
  width: 45px;
  height: 45px;
  margin: 3px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  cursor: pointer;
}
.seat.available:hover {
  background: #cce5ff;
}
.seat.selected {
  background-color: #4caf50;
  color: #fff;
}
.seat-gap {
  width: 45px;
  height: 45px;
  margin: 3px;
}
.staff-seat {
  background-color: #ffc107;
  color: #000;
  cursor: not-allowed;
}
.driver-seat {
  background-color: #dc3545;
  color: #fff;
  cursor: not-allowed;
}

/* Bus Details */
.bus-details {
  padding: 12px;
}
.bus-details p {
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.bus-details p label {
  font-size: 0.79rem;
  font-weight: 600;
  color: #6c757d;
  margin-right: 6px;
}

/* Footer */
.bus-footer {
  border-top: 1px solid #eee;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.footer-left span {
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-right input[type="date"] {
  font-size: 0.78rem;
  padding: 6px;
  height: 32px;
}

/* Reservation Panel */
#reservationPanel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 100vh;
  height: auto;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 12px;
  display: none;
  z-index: 9999;
}
#reservationPanel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#reservationPanel .close-btn {
  cursor: pointer;
  font-size: 1.05rem;
  color: #666;
}

/* Schedule */
.schedule-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.schedule-info {
  font-size: 0.88rem;
}
.schedule-info small {
  color: #666;
  display: block;
}

/* Responsive */
@media (max-width:767px) {
  #reservationPanel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px;
  }
  .bus-footer {
    font-size: 0.72rem;
  }
  .seat,
  .staff-seat,
  .driver-seat {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
