/* ===================================
   DBE Booking System - CUSTOM CALENDAR
   =================================== */

/* Roboto Font */
.db-booking,
.db-sidebar-booking,
.db-sidebar-booking *,
.db-booking *,
#dbSelectedDateLabel,
#dbNote,
#dbPricePax,
#dbPrice,
#dbBookBtn {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

input[type="text"],
input[type="date"],
select,
textarea {
  font-size: 16px !important;
}

.db-booking-error {
  padding: 12px 16px;
  background: #FFF9E6;
  border-left: 3px solid #F5A623;
  color: #8B6914;
  font-size: 14px;
  margin: 16px 0;
}

.db-sidebar-booking {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  padding: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.db-sidebar-booking h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.db-sidebar-booking > p,
.db-sidebar-booking .db-note,
.db-sidebar-booking .help-text {
  display: none !important;
}

.db-sidebar-pax {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.db-pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #E5E7EB;
}

.db-pax-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.db-pax-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-pax-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.db-pax-sub {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
}

.db-pax-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-pax-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #2E2E2E !important;
  background: #ffffff !important;
  color: #2E2E2E !important;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  outline: none !important;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Hover only on devices with mouse pointer */
@media (hover: hover) and (pointer: fine) {
  .db-pax-btn:hover {
    background: #2E2E2E !important;
    color: #ffffff !important;
  }
}

/* Active state - brief press effect */
.db-pax-btn:active {
  background: #2E2E2E !important;
  color: #ffffff !important;
  transform: scale(0.96);
}

/* Focus should NOT change appearance - prevents stuck state */
.db-pax-btn:focus {
  background: #ffffff !important;
  color: #2E2E2E !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Ensure focus-visible also doesn't stick */
.db-pax-btn:focus:not(:focus-visible) {
  background: #ffffff !important;
  color: #2E2E2E !important;
}

.db-pax-btn:focus-visible {
  background: #ffffff !important;
  color: #2E2E2E !important;
  outline: 2px solid #2E2E2E !important;
  outline-offset: 2px;
}

.db-pax-value {
  width: 56px;
  height: 44px;
  border: 1px solid #2E2E2E;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  background: #ffffff;
  pointer-events: none;
  user-select: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.db-pax-value::-webkit-outer-spin-button,
.db-pax-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* DATE INPUT */
.db-sidebar-date {
  margin-bottom: 16px;
}

.db-sidebar-date label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.db-sidebar-date input[type="text"],
.db-sidebar-date input[data-role="sidebar-date"] {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 14px;
  border: 1px solid #D1D5DB;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.15s ease;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
}

.db-sidebar-date input[type="text"]:focus,
.db-sidebar-date input[data-role="sidebar-date"]:focus {
  outline: none;
  border-color: #2E2E2E;
}

.db-sidebar-date input[type="text"]:hover,
.db-sidebar-date input[data-role="sidebar-date"]:hover {
  border-color: #9CA3AF;
}

/* ===================================
   CUSTOM CALENDAR OVERLAY
   =================================== */

.dbe-calendar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 16px;
  box-sizing: border-box;
}

.dbe-calendar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dbe-calendar-container {
  background: #ffffff;
  border-radius: 0px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.dbe-calendar-overlay.is-open .dbe-calendar-container {
  transform: scale(1) translateY(0);
}

.dbe-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  background: #ffffff;
  color: #2E2E2E;
}

.dbe-calendar-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dbe-calendar-nav {
  width: 36px;
  height: 36px;
  position: relative;
  background: transparent;
  border: 1px solid #2E2E2E;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.dbe-calendar-nav svg {
  width: 16px;
  height: 16px;
  stroke: #2E2E2E;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dbe-calendar-nav:hover:not(:disabled) {
  background: #2E2E2E;
}

.dbe-calendar-nav:hover:not(:disabled) svg {
  stroke: #ffffff;
}

.dbe-calendar-nav:active:not(:disabled) {
  background: #2E2E2E;
}

.dbe-calendar-nav:active:not(:disabled) svg {
  stroke: #ffffff;
}

.dbe-calendar-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #9CA3AF;
  background: transparent;
  pointer-events: none;
}

.dbe-calendar-nav:disabled:hover {
  background: transparent;
}

.dbe-calendar-nav:disabled svg {
  stroke: #9CA3AF;
}

.dbe-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

.dbe-calendar-weekday {
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dbe-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 4px;
}

.dbe-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  border-radius: 0%;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dbe-calendar-day:hover:not(.is-disabled):not(.is-other-month):not(.is-selected) {
  background: #F3F4F6;
}

.dbe-calendar-day:active:not(.is-disabled):not(.is-other-month) {
  transform: scale(0.95);
}

.dbe-calendar-day.is-other-month {
  color: #D1D5DB;
  cursor: default;
}

.dbe-calendar-day.is-disabled {
  color: #D1D5DB;
  cursor: not-allowed;
  text-decoration: line-through;
}

.dbe-calendar-day.is-today:not(.is-selected) {
  background: #F3F4F6;
  font-weight: 700;
  color: #2E2E2E;
}

.dbe-calendar-day.is-selected {
  background: #2E2E2E;
  color: #ffffff;
  font-weight: 600;
}

.dbe-calendar-day.is-selected:hover {
  background: #1a1a1a;
}

/* CHECK AVAILABILITY */
.db-check-availability {
  width: 100% !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #2E2E2E !important;
  color: #ffffff !important;
  border: 1px solid #D1D5DB !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  transition: all 0.1s ease;
}

.db-check-availability:hover {
  background: #1a1a1a !important;
}

/* MAIN BOOKING */
.db-booking {
  background: #ffffff;
  border: 1px solid #F5F5F5;
  padding: 20px;
  margin: 20px 0;
}

.db-engine-results.is-hidden {
  display: none;
}

.db-engine-results {
  margin-top: 18px;
}

/* DATE ROW - horizontal date picker */
#dbDateRow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Wrapper for date cells */
.db-date-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.db-date-cell {
  flex: 1;
  min-width: 0;
  height: 90px;
  padding: 8px 4px;
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 0px !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box;
  gap: 2px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Hover - black border (not pink!) */
.db-date-cell:hover:not(.is-disabled):not(.is-active) {
  border-color: #2E2E2E !important;
}

/* Active/selected state */
.db-date-cell.is-active {
  border: 2px solid #2E2E2E !important;
  background: #ffffff !important;
}

/* Disabled state */
.db-date-cell.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* OLD .db-date class - keep for compatibility */
.db-date {
  padding: 0;
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 0px !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 85px;
  height: 85px;
  text-align: center !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 4px;
  transition: all 0.15s ease;
}

.db-date:hover:not(.is-disabled):not(.is-active) {
  border-color: #2E2E2E !important;
}

.db-date.is-active {
  border: 2px solid #2E2E2E !important;
}

.db-date-weekday {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1 !important;
}

.db-date-day {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1 !important;
}

.db-date-month {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1 !important;
}

.db-date:disabled,
.db-date.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#dbSelectedDateLabel {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

/* SLOTS */
#dbSlots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

/* Skeleton Loading Overlay for Slots */
#dbSlots.is-loading {
  pointer-events: none;
}

#dbSlots.is-loading .db-slot {
  position: relative;
  overflow: hidden;
}

#dbSlots.is-loading .db-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

#dbSlots.is-loading .db-slot::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 200, 200, 0.4) 50%,
    transparent 100%
  );
  z-index: 2;
  animation: slotShimmer 1.2s infinite;
}

@keyframes slotShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Skeleton placeholder when no slots exist yet */
.db-slots-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.db-slot-skeleton {
  height: 65px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0px;
  border: 1px solid #F0F0F0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.db-slot {
  padding: 12px;
  background: #ffffff !important;
  border: 2px solid #F0F0F0 !important;
  border-radius: 0px !important;
  cursor: pointer;
  min-height: 65px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  gap: 2px;
  transition: border-color 0.15s ease;
}

.db-slot:hover:not(:disabled) {
  border-color: #2E2E2E !important;
}

.db-slot.is-active {
  border-color: #2E2E2E !important;
}

.db-slot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.db-slot-time {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

#dbNote {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* BOOKING FOOTER */
.db-booking-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.db-price-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#dbPricePax {
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
}

#dbPrice {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

#dbBookBtn {
  height: 44px !important;
  padding: 0 32px !important;
  background: #2E2E2E !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  white-space: nowrap;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

#dbBookBtn:hover:not(:disabled):not(.is-loading) {
  background: #1a1a1a !important;
}

#dbBookBtn:disabled {
  background: #D1D5DB !important;
  cursor: not-allowed;
  opacity: 0.6;
  color: #6B7280 !important;
}

/* Book Button Loading State */
#dbBookBtn.is-loading {
  background: #2E2E2E !important;
  color: transparent !important;
  pointer-events: none;
  cursor: wait;
}

#dbBookBtn.is-loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alternative: Full form loading overlay */
.db-booking.is-loading {
  position: relative;
  pointer-events: none;
}

.db-booking.is-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

.db-booking.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #E5E7EB;
  border-top-color: #2E2E2E;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
  z-index: 11;
}

/* SIDEBAR PAX */
.db-sidebar-booking .db-sidebar-pax .db-pax-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

.db-sidebar-booking .db-sidebar-pax .db-pax-actions {
  display: grid !important;
  grid-template-columns: 44px minmax(64px, 1fr) 44px !important;
  gap: 10px !important;
}

/* MOBILE TOUCH FIX */
@media (hover: none) and (pointer: coarse) {
  .db-pax-btn:focus {
    background: #ffffff !important;
    color: #2E2E2E !important;
  }
}

@media (pointer: coarse) {
  .db-pax-btn:focus:not(:focus-visible) {
    background: #ffffff !important;
    color: #2E2E2E !important;
    outline: none !important;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .db-date { min-height: 85px; height: 85px; }
  .db-date-day { font-size: 26px; }
}

@media (max-width: 768px) {
  .db-sidebar-booking,
  .db-booking { padding: 20px; }
  
  .db-date { min-height: 80px; height: 80px; }
  .db-date-day { font-size: 24px; }
  .db-date-weekday,
  .db-date-month { font-size: 10px; }
  
  .db-booking-footer {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  #dbBookBtn { 
    min-width: 0;
    padding: 0 16px;
  }

  #dbPrice { font-size: 20px; }
  
  .db-sidebar-booking {
    order: 1;
    margin-bottom: 16px;
  }

  .db-booking {
    order: 2;
  }
}

@media (max-width: 480px) {
  .db-sidebar-booking,
  .db-booking { padding: 16px; margin: 16px 0; }
  
  #dbDateRow { gap: 6px; }
  
  /* Date cells - flex stretches them to fill width */
  .db-date-cell {
    height: 80px;
  }
  
  .db-date { min-height: 90px; height: 90px; }
  .db-date-weekday { font-size: 11px; font-weight: 600; }
  .db-date-day { font-size: 28px; font-weight: 700; }
  .db-date-month { font-size: 11px; font-weight: 600; }

  #dbSlots { gap: 4px; }

  .db-slot { 
    min-height: 68px;
    height: auto;
    padding: 10px;
  }
  .db-slot-time { 
    font-size: 15px; 
    font-weight: 700;
    line-height: 1.4;
  }

  .db-booking-footer { gap: 10px; }

  #dbPrice { font-size: 18px; }
  #dbBookBtn { 
    height: 44px;
    padding: 0 12px; 
    font-size: 13px; 
  }

  /* Calendar mobile adjustments */
  .dbe-calendar-container {
    max-width: 100%;
    border-radius: 0px;
  }

  .dbe-calendar-header {
    padding: 14px 10px;
  }

  .dbe-calendar-title {
    font-size: 16px;
  }

  .dbe-calendar-day {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .db-sidebar-booking .db-sidebar-pax .db-pax-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .db-sidebar-booking .db-sidebar-pax .db-pax-actions {
    display: grid !important;
    grid-template-columns: 36px minmax(40px, 1fr) 36px !important;
    gap: 4px !important;
  }
  
  .db-sidebar-booking .db-pax-btn {
    width: 36px !important;
    height: 44px !important;
    font-size: 18px;
  }
  
  .db-sidebar-booking .db-pax-value {
    width: 100% !important;
    height: 44px !important;
    min-width: 40px;
  }
}

@media (max-width: 360px) {
  .db-sidebar-booking,
  .db-booking { padding: 12px; }
  
  #dbDateRow { gap: 4px; }
  
  /* Date cells - smaller height on very small screens */
  .db-date-cell {
    height: 75px;
  }
  
  .db-date { min-height: 85px; height: 85px; }
  .db-date-day { font-size: 24px; }
  .db-date-weekday,
  .db-date-month { font-size: 10px; font-weight: 600; }

  .db-slot { 
    min-height: 65px;
    padding: 10px;
  }
  .db-slot-time { 
    font-size: 14px; 
    font-weight: 700;
  }

  .db-booking-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #dbBookBtn { width: 100%; }

  .dbe-calendar-days {
    padding: 6px;
    gap: 2px;
  }

  .dbe-calendar-weekday {
    padding: 10px 0;
    font-size: 11px;
  }
}

@media print {
  .db-sidebar-booking,
  .db-check-availability,
  #dbBookBtn {
    display: none;
  }
}

/* OVERFLOW FIX */
.db-booking-engine,
.db-booking-engine * {
  box-sizing: border-box;
}

.db-booking-engine {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.db-booking-engine .db-sidebar-booking,
.db-booking-engine .db-sidebar-date,
.db-booking-engine .db-sidebar-date * {
  min-width: 0;
}

.db-booking-engine .db-field,
.db-booking-engine .db-row,
.db-booking-engine .db-sidebar {
  max-width: 100%;
}

.db-booking-engine input,
.db-booking-engine button,
.db-booking-engine select,
.db-booking-engine textarea {
  max-width: 100%;
}

/* Hide H3 title */
.db-booking-engine .db-sidebar-booking > h3 {
  display: none !important;
}

.db-sidebar-booking > h3 {
  display: none !important;
}

/* ============================================================================
   ITINERARY TIMELINE
   ============================================================================ */

.dbe-itinerary {
  padding: 0;
  margin: 0;
}

.dbe-itinerary-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px 0;
  padding: 0;
}

.dbe-itinerary-timeline {
  position: relative;
  padding: 0;
  margin: 0;
}

.dbe-itinerary-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 0;
}

.dbe-itinerary-item.is-hidden {
  display: none;
}

.dbe-itinerary-item.is-last {
  padding-bottom: 0;
}

/* Marker column (dot + line) */
.dbe-itinerary-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  position: relative;
}

/* The dot */
.dbe-itinerary-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #A79983;
  border: 4px solid #F8F5F0;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* The connecting line */
.dbe-itinerary-line {
  width: 3px;
  flex-grow: 1;
  background: #A79983;
  min-height: 20px;
  margin: 0;
}

/* Content column */
.dbe-itinerary-content {
  flex: 1;
  padding-bottom: 20px;
  min-width: 0;
}

.dbe-itinerary-item.is-last .dbe-itinerary-content {
  padding-bottom: 0;
}

.dbe-itinerary-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 24px; /* Match dot height for alignment */
  margin: 0 0 2px 0;
}

/* Link styles */
.dbe-itinerary-item-title a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dbe-itinerary-item-title a:hover {
  color: #A79983;
}

/* Arrow icon */
.dbe-itinerary-arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 18px;
  color: #A79983;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dbe-itinerary-item-title a:hover .dbe-itinerary-arrow {
  transform: translateX(5px);
  color: #111827;
}

.dbe-itinerary-item-desc {
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

/* See more / See less toggle */
.dbe-itinerary-toggle {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 12px;
  margin-left: 40px; /* Align with content */
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dbe-itinerary-toggle:hover {
  color: #A79983;
}

.dbe-itinerary-toggle .dbe-toggle-less {
  display: none;
}

.dbe-itinerary-toggle[data-expanded="true"] .dbe-toggle-more {
  display: none;
}

.dbe-itinerary-toggle[data-expanded="true"] .dbe-toggle-less {
  display: inline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .dbe-itinerary-marker {
    width: 20px;
  }
  
  .dbe-itinerary-dot {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }
  
  .dbe-itinerary-line {
    width: 2px;
  }
  
  .dbe-itinerary-item {
    gap: 12px;
  }
  
  .dbe-itinerary-item-title {
    font-size: 14px;
    line-height: 20px;
  }
  
  .dbe-itinerary-item-desc {
    font-size: 13px;
  }
  
  .dbe-itinerary-toggle {
    margin-left: 32px;
  }
}