/* ============================================
   BOOKING ADVANCED FEATURES
   Vol/Train • Return • Waiting Time • Fleet
   ============================================ */

/* Flight/Train Option */
.sd-flight-train-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sd-transport-type {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.sd-transport-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.875rem;
  background: #F5F5F5;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-transport-btn:hover {
  background: #EEEEEE;
}

.sd-transport-btn.active {
  background: #FFFBF0;
  border-color: #D4AF37;
}

.sd-transport-btn svg {
  width: 20px;
  height: 20px;
  color: #666;
}

.sd-transport-btn.active svg {
  color: #D4AF37;
}

.sd-transport-btn span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #666;
}

.sd-transport-btn.active span {
  color: #D4AF37;
}

.sd-flight-train-info {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid #D4AF37;
  border-radius: 8px;
}

.sd-flight-train-info svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #D4AF37;
  flex-shrink: 0;
}

.sd-flight-train-info span {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

/* Return Section */
.sd-return-section {
  padding: 1.25rem;
  margin-top: 0.5rem;
  background: linear-gradient(120deg, #f7f2d7 0%, #ffffff 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
}

.sd-return-header {
  margin-bottom: 1rem;
}

.sd-return-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
}

.sd-checkbox-small {
  padding: 0.625rem 0;
}

.sd-checkbox-small .sd-checkbox-label {
  font-size: 0.85rem;
  color: #555;
}

.sd-return-passengers {
  display: none;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  animation: slideDownFade 0.3s ease;
}

.sd-return-passengers.visible {
  display: block;
}

.sd-return-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
}

.sd-return-info svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #D4AF37;
  flex-shrink: 0;
}

.sd-return-info span {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

/* Waiting Time Estimate */
.sd-waiting-estimate {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  border-radius: 12px;
}

.sd-waiting-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.sd-waiting-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sd-waiting-title {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sd-waiting-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
}

.sd-waiting-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.sd-waiting-cost {
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #10B981;
  white-space: nowrap;
}

/* Route Info - Distance & Duration Display */

.sd-route-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sd-route-info-item svg {
  color: #D4AF37;
  flex-shrink: 0;
}

/* Trip Summary */

/* Price Breakdown */
.sd-price-breakdown {
  margin: 1rem 0;
  padding: 1rem;
  background: #F9F9F9;
  border-radius: 10px;
}

.sd-price-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
}

.sd-price-breakdown-row:not(:last-child) {
  border-bottom: 1px solid #EEEEEE;
}

/* Fleet Modal with Tabs */

.sd-fleet-tabs {
  display: flex;
  border-bottom: 1px solid #E5E5E5;
}

.sd-fleet-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-fleet-tab:hover {
  background: #FAFAFA;
}

.sd-fleet-tab.active {
  background: #FFFBF0;
  border-bottom-color: #D4AF37;
}

.sd-fleet-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #F5F5F5;
  border-radius: 8px;
}

/* Summary Highlight */

/* Optional Field */
.sd-optional-field {
  display: none;
  animation: slideDownFade 0.3s ease;
}

.sd-optional-field.visible {
  display: block;
}

/* Toast Notifications */
.sd-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  max-width: 90%;
  padding: 1rem 1.5rem;
  background: #1A1A1A;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: #FFFFFF;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.sd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .sd-flight-train-row {
    flex-direction: column;
  }
  
  .sd-transport-type {
    width: 100%;
  }
  
  .sd-transport-btn {
    flex: 1;
  }
  
  .sd-waiting-estimate {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .sd-waiting-cost {
    width: 100%;
    text-align: center;
  }
  
  .sd-fleet-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .sd-fleet-tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  
  .sd-fleet-tab.active {
    border-bottom-color: transparent;
    border-left-color: #D4AF37;
  }
}