/* ═══════════════════════════════════════════════════════════════════════
   Blue Dot Booking Widget — Styles
   Matches the Django booking app UI (Inter font, brand blue #145AE2)
   ═══════════════════════════════════════════════════════════════════════ */

.bd-widget {
  font-family:  ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: #111827;
}

.bd-widget *, .bd-widget *::before, .bd-widget *::after {
  box-sizing: border-box;
}

.bd-widget [x-cloak] { display: none !important; }

/* ── Hero ── */
.bd-hero {
  /* background: linear-gradient(135deg, #0a1e5e 0%, #145AE2 55%, #124CBF 100%); */
  padding: 1rem 0; 
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.bd-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  /* padding: 0 1rem; */
}

@media (min-width: 640px) {
  .bd-hero-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .bd-hero-inner { padding: 0 2rem; }
}

/* ── Badge ── */
.bd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.bd-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #4ade80;
  border-radius: 9999px;
  animation: bd-pulse 2s infinite;
}

@keyframes bd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Headline ── */
.bd-headline {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.bd-headline h1 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.bd-headline h1 span { color: #bfdbfe; }

.bd-headline p {
  font-size: 1.125rem;
  color: #dbeafe;
  line-height: 1.75;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .bd-headline h1 { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .bd-headline h1 { font-size: 4.5rem; }
}

/* ── Cards grid ── */
.bd-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 64rem;
}

@media (min-width: 1024px) {
  .bd-cards-grid { grid-template-columns: 2fr 1fr; }
}

/* ── Search card ── */
.bd-search-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .bd-search-card { padding: 2rem; }
}

.bd-search-card h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bd-search-card h2 svg { color: #145AE2; }

/* ── Form grid ── */
.bd-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .bd-form-grid { grid-template-columns: 1fr 1fr; }
}

.bd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

/* ── Form elements ── */
.bd-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.bd-input,
.bd-select {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1f2937;
  font-family: inherit;
  transition: all 150ms;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.bd-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  cursor: pointer;
}

.bd-input:focus,
.bd-select:focus {
  border-color: #145AE2;
  box-shadow: 0 0 0 4px rgba(20,90,226,0.1);
  background-color: white;
}

.bd-input:disabled,
.bd-select:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.bd-input.bd-error {
  border-color: #f87171;
  background-color: #fef2f2;
}

.bd-error-text {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #dc2626;
}

.bd-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.bd-hint-closed { color: #ef4444; }

/* ── Submit button ── */
.bd-submit {
  width: 100%;
  background: #145AE2;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 150ms;
  font-family: inherit;
  margin-top: 1rem;
}

.bd-submit:hover { background: #124CBF; }
.bd-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Manage booking card ── */
.bd-manage-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .bd-manage-card { padding: 2rem; }
}

.bd-manage-card h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bd-manage-card h2 svg { color: #bfdbfe; }

.bd-subtitle {
  color: #bfdbfe;
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}

.bd-manage-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.375rem;
}

.bd-manage-input {
  width: 100%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: all 150ms;
}

.bd-manage-input::placeholder { color: rgba(255,255,255,0.5); }
.bd-manage-input.bd-mono { font-family: ui-monospace, monospace; letter-spacing: 0.05em; }
.bd-manage-input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }

.bd-manage-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.bd-manage-submit {
  margin-top: auto;
  width: 100%;
  background: white;
  color: #0C327D;
  font-weight: 700;
  padding: 0.625rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 150ms;
  font-family: inherit;
}

.bd-manage-submit:hover { background: #eff6ff; }

.bd-manage-link {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #bfdbfe;
  margin-top: 0.75rem;
  text-decoration: underline;
}

.bd-manage-link:hover { color: white; }

/* ── Stats ── */
.bd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
}

.bd-stat-number {
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
}

.bd-stat-label {
  color: #bfdbfe;
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

/* ── Fleet showcase carousel ─────────────────────────────────── */
.bd-fleet-section {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding: 2rem 0;
  max-width: 1280px;
  margin: 0 auto;
}
.bd-fleet-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.5rem;
}
.bd-fleet-wrap {
  position: relative;
}
.bd-fleet-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bd-fleet-track::-webkit-scrollbar { display: none; }
.bd-fleet-card {
  position: relative;
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.bd-fleet-card.is-booked { opacity: 0.85; }
.bd-fleet-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #facc15;
  color: #1f2937;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.04em;
}
.bd-fleet-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.bd-fleet-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.bd-fleet-img-placeholder {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.85rem;
  border-radius: 8px;
}
.bd-fleet-cat {
  font-size: 0.8rem;
  font-style: italic;
  color: #6b7280;
  text-align: center;
}
.bd-fleet-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a1e5e;
  margin-top: 0.25rem;
  line-height: 1.2;
}
.bd-fleet-sub {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}
.bd-fleet-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
}
.bd-fleet-specs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #374151;
}
.bd-fleet-specs li svg {
  flex-shrink: 0;
  color: #145AE2;
}
.bd-fleet-cta {
  display: block;
  text-align: center;
  background: #145AE2;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.15s ease;
}
.bd-fleet-cta:hover { background: #124CBF; }
.bd-fleet-cta.is-disabled {
  background: #e5e7eb;
  color: #6b7280 !important;
  cursor: not-allowed;
  pointer-events: none;
}
.bd-fleet-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.bd-fleet-nav:hover { color: #111827; }
.bd-fleet-prev { left: -8px; }
.bd-fleet-next { right: -8px; }

@media (min-width: 768px) {
  .bd-fleet-card { flex: 0 0 240px; }
  .bd-fleet-nav { display: flex; }
}
@media (min-width: 1024px) {
  .bd-fleet-track { padding: 0.5rem 0.5rem 1rem; }
  .bd-fleet-card { flex: 0 0 calc((100% - 3rem) / 4); }
}


.bd-manage-input {
	color: #fff !important;
	opacity: 1 !important;
}