/* =========================================================
   BeachBus Timetable & Booking Widget Styles
   ========================================================= */

/* ── Design Tokens ─────────────────────────────────── */
:root {
  --bb-primary: #00a896;
  --bb-primary-dark: #007f72;
  --bb-secondary: #00a896;
  --bb-text: #2c3e50;
  --bb-muted: #6c757d;
  --bb-border: #dee2e6;
  --bb-bg-light: #f4fdfb;
  --bb-radius: 10px;
  --bb-shadow: 0 4px 20px rgba(0, 168, 150, .10);
  --bb-shadow-hover: 0 8px 32px rgba(0, 168, 150, .18);
  --bb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bb-transition: .22s ease;
}

/* =========================================================
   TIMETABLE SHORTCODE — Modern Schedule Layout
   ========================================================= */

.bb-timetable-wrapper {
  font-family: var(--bb-font);
  color: var(--bb-text);
  max-width: 980px;
  margin: 0 auto 40px;
}

.bb-timetable-wrapper *,
.bb-timetable-wrapper *::before,
.bb-timetable-wrapper *::after {
  box-sizing: border-box;
}

/* ── Accordion wrapper ─────────────────────────────── */
.bb-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Accordion item (one per station) ──────────────── */
.bb-accordion-item {
  border: 1.5px solid var(--bb-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: box-shadow var(--bb-transition);
}

.bb-accordion-item.bb-accordion-open {
  box-shadow: 0 4px 20px rgba(0, 168, 150, 0.10);
  border-color: rgba(0, 168, 150, 0.25);
}

/* ── Accordion trigger (clickable header) ──────────── */
.bb-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--bb-font);
  text-align: left;
  outline: none;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background var(--bb-transition);
}

.bb-accordion-trigger:hover {
  background: #f8fafc;
}

.bb-accordion-item.bb-accordion-open .bb-accordion-trigger {
  background: linear-gradient(135deg, #f0fdf9 0%, #e8f8f5 100%);
  border-bottom: 1.5px solid #d1f0eb;
}

/* Station name + meta text */
.bb-accordion-station {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bb-accordion-station-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-accordion-item.bb-accordion-open .bb-accordion-station-name {
  color: var(--bb-primary);
}

.bb-accordion-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--bb-muted);
  letter-spacing: 0.1px;
}

/* Chevron icon — rotates when open */
.bb-accordion-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--bb-muted);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color var(--bb-transition);
}

.bb-accordion-item.bb-accordion-open .bb-accordion-chevron {
  transform: rotate(180deg);
  color: var(--bb-primary);
}

/* ── Accordion panel (collapsible) ─────────────────── */
.bb-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Inner panel padding ────────────────────────────── */
.bb-accordion-panel-inner {
  padding: 20px 20px 24px;
  background: #fafcff;
  border-top: 1.5px solid #e8f0f8;
}

/* ── Panel visibility fallback ──────────────────────── */
.bb-panel-hidden {
  display: none;
}


/* ── Schedule grid (side-by-side North / South) ──────────── */
.bb-schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bb-schedule-grid.bb-schedule-two-col {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Direction column ──────────────────────────────── */
.bb-schedule-col {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bb-border);
  background: #fff;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

/* ── Colored banner header ───────────────────────── */
.bb-dir-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
}

.bb-dir-north .bb-dir-banner {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.bb-dir-south .bb-dir-banner {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.bb-dir-banner-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.bb-dir-banner-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.bb-dir-banner-label {
  flex: 1;
  line-height: 1;
}

.bb-dir-banner-count {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Departing from sub-header ─────────────────────── */
.bb-dir-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 20px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef4;
}

.bb-dir-departing-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--bb-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.bb-dir-departing-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bb-text);
}

/* ── 2-column trips grid ───────────────────────────── */
.bb-trips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  padding: 12px 14px 16px;
}

/* ── Single trip entry ─────────────────────────────── */
.bb-trip-entry {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 6px;
  border-radius: 8px;
  transition: background var(--bb-transition);
}

.bb-trip-entry:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ── Time pill badge ──────────────────────────────── */
.bb-time-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.2px;
}

.bb-dir-north .bb-time-pill {
  background: #16a34a;
}

.bb-dir-south .bb-time-pill {
  background: #ea580c;
}

/* ── Route / destination text ──────────────────────── */
.bb-trip-route {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
  padding-top: 4px;
  word-break: break-word;
  min-width: 0;
}

/* ── Empty state ──────────────────────────────────────── */
.bb-timetable-empty {
  text-align: center;
  color: var(--bb-muted);
  padding: 40px;
  background: #f8f9fa;
  border-radius: var(--bb-radius);
}

/* =========================================================
   BOOKING WIDGET SHORTCODE
   ========================================================= */

.bb-booking-widget {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto 48px !important;
  font-family: var(--bb-font) !important;
}

.bb-widget-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid #f1f5f9 !important;
}

.bb-widget-header-mockup {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 36px 40px 16px !important;
  background: #fff !important;
}

.bb-widget-map-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #00a896 !important;
}

.bb-widget-title-mockup {
  margin: 0 !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  letter-spacing: -0.3px !important;
}

.bb-widget-body-grid {
  display: grid !important;
  grid-template-columns: 380px 1fr !important;
  gap: 48px !important;
  padding: 24px 48px 32px !important;
  background: #fff !important;
}

/* ── Label / Column Title ────────────────────────────── */
.bb-column-title {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-bottom: 14px !important;
}

/* ── Left Column: Dates ───────────────────────────────── */
.bb-widget-col-left {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.bb-custom-date-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  background: #f8fafc !important;
  margin-bottom: 14px !important;
  transition: border-color var(--bb-transition), background var(--bb-transition), box-shadow var(--bb-transition) !important;
}

.bb-custom-date-field:focus-within {
  border-color: var(--bb-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.08) !important;
}

.bb-date-badge {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.8px !important;
  width: 58px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #cbd5e1 !important;
  margin-right: 14px !important;
  padding: 4px 0 !important;
  line-height: 1 !important;
}

.bb-date-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  flex: 1 !important;
  min-width: 0 !important;
  font-family: var(--bb-font) !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.bb-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  opacity: .5 !important;
  filter: hue-rotate(150deg) !important;
}

/* ── Right Column: Destinations ───────────────────────── */
.bb-widget-col-right {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.bb-dest-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  gap: 12px !important;
}

.bb-dest-header-row .bb-column-title {
  margin-bottom: 0 !important;
}

.bb-pill-select-multiple {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--bb-primary) !important;
  background: #e8f8f5 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.bb-dest-scroll {
  display: flex;
  gap: 14px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  padding: 4px 0 16px !important;
  margin-bottom: -16px !important;
  scrollbar-width: none !important;
}

.bb-dest-scroll::-webkit-scrollbar {
  display: none !important;
}

/* Destination full-bleed thumbnail card */
.bb-dest-thumb {
  flex-shrink: 0 !important;
  width: 140px !important;
  height: 180px !important;
  scroll-snap-align: start !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  outline: none !important;
}

.bb-dest-thumb:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}

.bb-dest-thumb.bb-dest-selected,
.bb-dest-thumb[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--bb-primary), 0 8px 20px rgba(0, 168, 150, 0.16) !important;
}

.bb-dest-img-wrap {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  background: #f8fafc !important;
}

.bb-dest-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .4s ease !important;
}

.bb-dest-thumb:hover .bb-dest-img-wrap img {
  transform: scale(1.05) !important;
}

.bb-dest-img-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 38px !important;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1) !important;
}

.bb-dest-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.85) 100%) !important;
  z-index: 1 !important;
}

/* Checkmark overlay */
.bb-dest-check {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: var(--bb-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transform: scale(0.8) !important;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  color: #fff !important;
  z-index: 3 !important;
  box-shadow: 0 2px 8px rgba(0, 168, 150, 0.4) !important;
}

.bb-dest-thumb.bb-dest-selected .bb-dest-check,
.bb-dest-thumb[aria-pressed="true"] .bb-dest-check {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.bb-dest-name-overlay {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  right: 16px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-align: left !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
  z-index: 2 !important;
}

.bb-dest-empty {
  font-size: 13.5px !important;
  color: var(--bb-muted) !important;
  margin: 0 !important;
  padding: 24px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border: 1px dashed #cbd5e1 !important;
  text-align: center !important;
}

/* ── Full Width CTA Footer ────────────────────────────── */
.bb-widget-actions-footer {
  padding: 24px 40px 40px !important;
  background: #fff !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
}

.bb-btn-unlock {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 16px 32px !important;
  background: var(--bb-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: var(--bb-font) !important;
  cursor: pointer !important;
  transition: background 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease !important;
  box-shadow: 0 8px 24px rgba(0, 168, 150, 0.22) !important;
  letter-spacing: -0.1px !important;
  text-shadow: none !important;
  overflow: hidden !important;
}

.bb-btn-unlock:hover:not(:disabled) {
  background: var(--bb-primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(0, 168, 150, 0.32) !important;
}

.bb-btn-unlock:active:not(:disabled) {
  transform: translateY(0) !important;
}

.bb-btn-unlock:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.bb-unlock-arrow {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Spinner (shown when loading) */
.bb-unlock-loader {
  display: none !important;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .4) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
}

.bb-btn-unlock.bb-loading .bb-unlock-loader {
  display: inline-block !important;
  animation: bb-spin .7s linear infinite !important;
}

.bb-btn-unlock.bb-loading .bb-unlock-arrow {
  display: none !important;
}

@keyframes bb-spin {
  to {
    transform: rotate(360deg);
  }
}

.bb-widget-hint {
  font-size: 13px;
  color: #64748b;
  margin: 0 !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

/* =========================================================
   ITINERARY MODAL
   ========================================================= */

/* Overlay backdrop */
.bb-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(12, 20, 28, .68) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  z-index: 99999 !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  animation: bb-overlay-in .25s ease !important;
}

@keyframes bb-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bb-modal-overlay[hidden] {
  display: none !important;
}

/* Modal box */
.bb-modal-box {
  position: relative !important;
  width: 95% !important;
  max-width: 1050px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .28) !important;
  animation: bb-modal-in .28s cubic-bezier(.34, 1.56, .64, 1) !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--bb-primary) #f0f2f4 !important;
}

@keyframes bb-modal-in {
  from {
    opacity: 0;
    transform: scale(.92) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Close button positioned absolutely */
.bb-modal-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid #94a3b8 !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background var(--bb-transition), border-color var(--bb-transition), color var(--bb-transition) !important;
  z-index: 9999 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.bb-modal-close:hover {
  background: #e2e8f0 !important;
  border-color: #64748b !important;
}

.bb-modal-close span {
  display: block !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  margin-top: -2px !important;
}



/* Modal header */
.bb-modal-header {
  padding: 32px 64px 20px 40px !important;
  /* right padding to avoid close button overlap */
  border-bottom: 1.5px solid #f0f3f6 !important;
  margin-top: 0 !important;
  /* Sit naturally, no overlap */
}

.bb-modal-title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}

.bb-modal-dates {
  margin: 0 !important;
  font-size: 14.5px !important;
  color: var(--bb-muted) !important;
  font-weight: 600 !important;
}

/* Modal body — two column */
.bb-modal-body {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  min-height: 360px !important;
}

/* Left: Pass recommendation */
.bb-modal-left {
  padding: 36px 36px 40px !important;
  background: linear-gradient(170deg, #f4fdfb 0%, #e8f8f5 100%) !important;
  border-right: 1.5px solid #e0f0ee !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.bb-pass-badge {
  display: inline-block !important;
  background: rgba(0, 168, 150, .12) !important;
  color: var(--bb-primary) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  align-self: flex-start !important;
}

.bb-pass-name {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.bb-pass-price {
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  color: var(--bb-primary) !important;
  line-height: 1.3 !important;
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* WC price HTML can include <ins>/<del>/<span> */
.bb-pass-price del,
.bb-pass-price .woocommerce-Price-amount del {
  font-size: 1.15rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 600 !important;
  margin-right: 4px !important;
}

.bb-pass-price ins,
.bb-pass-price .woocommerce-Price-amount ins,
.bb-pass-price .woocommerce-Price-amount {
  font-weight: 800 !important;
  color: var(--bb-primary) !important;
  text-decoration: none !important;
}

.bb-pass-desc {
  color: #4a5568;
  margin: 4px 0 0;
  line-height: 1.6;
  flex: 1;
}

.bb-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #00a896 !important;
  color: #ffffff !important;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700 !important;
  font-family: var(--bb-font);
  text-decoration: none !important;
  transition: background var(--bb-transition), transform var(--bb-transition), box-shadow var(--bb-transition);
  box-shadow: 0 4px 14px rgba(0, 168, 150, .28);
  margin-top: auto;
}

.bb-btn-cta:hover {
  background: #008f7f !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 150, .38);
}

/* Right: Beach pills + timeline */
.bb-modal-right {
  padding: 32px 32px 36px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  background: #fff !important;
}

/* Beach pills */
.bb-beach-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.bb-beach-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f0f2f4 !important;
  border-radius: 20px !important;
  padding: 5px 12px 5px 5px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--bb-text) !important;
  overflow: hidden !important;
}

.bb-beach-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bb-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f7f5, #b3e8e3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Timeline */
.bb-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.bb-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--bb-primary) 0%, rgba(0, 168, 150, .15) 100%);
  border-radius: 1px;
}

.bb-timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 20px;
  animation: bb-fade-up .3s ease both;
}

.bb-timeline-item:last-child {
  padding-bottom: 0;
}

@keyframes bb-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bb-tl-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bb-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--bb-primary);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.bb-tl-content {
  flex: 1;
  min-width: 0;
}

.bb-tl-time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--bb-primary);
  margin-bottom: 3px;
}

.bb-tl-activity {
  font-size: 13.5px;
  color: var(--bb-text);
  line-height: 1.55;
  margin: 0;
}

/* Saved notice */
.bb-saved-notice {
  margin-top: 14px;
  padding: 12px 18px;
  background: #e8f8f5;
  border: 1px solid #b2e8df;
  border-radius: 8px;
  font-size: 13px;
  color: #167a68;
  text-align: center;
  animation: bb-fade-up .3s ease;
}

.bb-rec-info {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8f8f5;
  color: var(--bb-secondary);
  border: 1px solid #b2e8df;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  align-self: flex-start;
}

.bb-rec-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1.3;
}

.bb-rec-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bb-primary);
}

.bb-rec-price ins {
  text-decoration: none;
}

.bb-rec-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.bb-btn-book {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  background: var(--bb-primary);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--bb-transition);
  box-shadow: 0 3px 10px rgba(0, 168, 150, .25);
}

.bb-btn-book:hover {
  background: var(--bb-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── View Itinerary button active state ── */
.bb-btn-view-itin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bb-btn-view-itin.active {
  border-color: var(--bb-primary) !important;
  color: var(--bb-primary) !important;
  background: #e0f7f5 !important;
}

/* Itinerary section */
.bb-itinerary-section {
  border-top: 1px solid var(--bb-border);
}

.bb-itinerary-content {
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #111111;
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
}

.bb-itinerary-content.open {
  display: block;
  max-height: 9999px;
  padding: 20px 24px;
  animation: bb-fade-up .25s ease;
}

/* Inner title shown at top of expanded itinerary */
.bb-itin-plan-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bb-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bb-border);
}

.bb-itinerary-content h3,
.bb-itinerary-content h4 {
  color: var(--bb-primary);
  margin: 16px 0 8px;
}

.bb-itinerary-content ul,
.bb-itinerary-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

/* btn-icon alignment (SVG route icon on find button) */
.bb-btn-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* No results */
.bb-no-results {
  padding: 40px 20px;
  text-align: center;
}

.bb-no-results-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 380px;
}

.bb-no-results-icon {
  font-size: 48px;
}

.bb-no-results p {
  color: var(--bb-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* Saved notice */
.bb-saved-notice {
  margin-top: 14px;
  padding: 12px 18px;
  background: #e8f8f5;
  border: 1px solid #b2e8df;
  border-radius: 8px;
  font-size: 13px;
  color: #167a68;
  text-align: center;
  animation: bb-fade-up .3s ease;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet ────────────────────────────────────────────── */
@media (max-width: 840px) {

  /* Timetable: NB + SB stack vertically, trips grid stays 2-col */
  .bb-schedule-grid.bb-schedule-two-col {
    grid-template-columns: 1fr;
  }

  /* Accordion: slightly tighter trigger on tablet */
  .bb-accordion-trigger {
    padding: 14px 16px;
  }

  .bb-accordion-panel-inner {
    padding: 16px 16px 20px;
  }

  /* Modal — stack to single column */
  .bb-modal-body {
    grid-template-columns: 1fr !important;
  }

  .bb-modal-left {
    border-right: none !important;
    border-bottom: 1.5px solid #e0f0ee !important;
  }

  .bb-modal-header {
    padding: 28px 56px 18px 28px !important;
  }

  /* Booking widget */
  .bb-booking-widget {
    width: calc(100% - 40px) !important;
  }

  .bb-widget-body-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 20px 24px !important;
  }

  .bb-widget-header-mockup {
    padding: 24px 24px 8px !important;
  }

  .bb-widget-actions-footer {
    padding: 24px !important;
  }
}

/* Mobile ────────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Accordion: full-width compact on mobile */
  .bb-accordion {
    gap: 8px;
  }

  .bb-accordion-item {
    border-radius: 12px;
  }

  .bb-accordion-trigger {
    padding: 13px 14px;
  }

  .bb-accordion-station-name {
    font-size: 13.5px;
  }

  .bb-accordion-meta {
    font-size: 11px;
  }

  .bb-accordion-panel-inner {
    padding: 14px 12px 16px;
  }

  /* Timetable — 1-column trips on mobile */
  .bb-trips-grid {
    grid-template-columns: 1fr;
    padding: 10px 12px 14px;
  }

  .bb-dir-banner {
    padding: 13px 16px;
    font-size: 15px;
  }

  .bb-dir-info {
    padding: 8px 16px;
  }

  .bb-time-pill {
    min-width: 58px;
    font-size: 12px;
    padding: 4px 9px;
  }

  .bb-trip-route {
    font-size: 11px;
  }

  /* ── Booking widget ─────────────────────────────── */
  .bb-booking-widget {
    width: 100% !important;
    margin: 0 auto 32px !important;
  }

  .bb-widget-card {
    border-radius: 16px !important;
  }

  .bb-widget-body-grid {
    padding: 16px 16px 8px !important;
    gap: 20px !important;
  }

  .bb-widget-header-mockup {
    padding: 20px 16px 4px !important;
    gap: 8px !important;
  }

  .bb-widget-title-mockup {
    font-size: 1.25rem !important;
  }

  .bb-widget-actions-footer {
    padding: 16px !important;
  }

  .bb-dates-row {
    flex-direction: column;
    gap: 8px;
  }

  .bb-dates-arrow {
    display: none;
  }

  /* ── Destination thumbnails: 2-column grid (no carousel) ── */
  /* Use higher-specificity selectors to beat base !important rules */
  .bb-booking-widget .bb-dest-scroll {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: unset !important;
    scroll-snap-type: none !important;
    padding: 4px 0 8px !important;
    margin-bottom: 0 !important;
  }

  .bb-booking-widget .bb-dest-thumb {
    width: 100% !important;
    height: 150px !important;
    flex-shrink: unset !important;
    scroll-snap-align: none !important;
    min-width: 0 !important;
  }

  .bb-booking-widget .bb-dest-img-wrap {
    height: 100% !important;
  }

  .bb-booking-widget .bb-dest-name-overlay {
    font-size: 13px !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
  }

  .bb-btn-unlock {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ── Modal — header stays intact, body goes single-column ── */
  .bb-modal-overlay {
    padding: 16px !important;
    align-items: center !important;
  }

  .bb-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    max-height: 90vh !important;
  }

  /* Header — kept as-is, just tighten right padding so close btn doesn't overlap */
  .bb-modal-header {
    padding: 24px 56px 18px 24px !important;
  }

  .bb-modal-title {
    font-size: 1.2rem !important;
    word-break: break-word !important;
  }

  .bb-modal-dates {
    font-size: 13px !important;
  }

  .bb-modal-close {
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
  }

  /* Body: recommended product + itinerary stacked in 1 column */
  .bb-modal-body {
    display: block !important;
    min-height: unset !important;
  }

  .bb-modal-left {
    padding: 20px 24px !important;
    border-right: none !important;
    border-bottom: 1.5px solid #e0f0ee !important;
  }

  .bb-modal-right {
    padding: 20px 24px !important;
  }

  .bb-pass-name {
    font-size: 1.1rem !important;
  }

  .bb-pass-price {
    font-size: 1.4rem !important;
  }

  .bb-btn-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }

  .bb-beach-pills {
    gap: 6px !important;
  }

  .bb-beach-pill {
    font-size: 12px !important;
    padding: 4px 10px 4px 4px !important;
  }
}

/* Extra-small (≤380px) ─────────────────────────────── */
@media (max-width: 380px) {
  .bb-trip-time {
    width: 60px;
    padding: 10px 6px 10px 10px;
  }

  .bb-time-badge {
    font-size: 12px;
  }

  .bb-dir-header {
    padding: 10px 12px;
    font-size: 11px;
  }

  .bb-dir-count {
    display: none;
    /* hide trip count on very small screens */
  }

  /* Destination thumbnails slightly shorter on very small screens */
  .bb-dest-thumb {
    height: 120px !important;
  }

  /* Tighter modal header on very small screens */
  .bb-modal-header {
    padding: 16px 48px 12px 16px !important;
  }

  .bb-modal-left,
  .bb-modal-right {
    padding: 16px !important;
  }

  .bb-widget-body-grid {
    padding: 12px 12px 6px !important;
  }
}

/* =========================================================
   WP ADMIN STYLES (loaded on all admin pages)
   ========================================================= */

.bb-admin-wrap .nav-tab-active {
  background: #fff;
}

.bb-admin-wrap h1.wp-heading-inline {
  font-size: 1.5rem;
}