/**
 * Tour Booking Price Table - Compact Airline Route Style
 * Version: 1.0.3
 */
/* ========================================
   ROOT VARIABLES
======================================== */
:root {
  --tour-primary-tbl419: #14b8a6;
  --tour-primary-dark-tbl419: #0d9488;
  --tour-secondary-tbl419: #06b6d4;
  --tour-success-tbl419: #10b981;
  --tour-warning-tbl419: #f59e0b;
  --tour-danger-tbl419: #ef4444;
  --tour-text-tbl419: #0f172a;
  --tour-text-light-tbl419: #64748b;
  --tour-bg-tbl419: #ffffff;
  --tour-bg-alt-tbl419: #f8fafc;
  --tour-border-tbl419: #e2e8f0;
  --tour-shadow-tbl419: 0 1px 3px rgba(0, 0, 0, 0.08);
  --tour-shadow-md-tbl419: 0 4px 6px rgba(0, 0, 0, 0.1);
  --tour-radius-tbl419: 12px;
}

/* ========================================
   MAIN WRAPPER
======================================== */
.tour-booking-wrapper-tbl419 {
  width: 100%;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--tour-text-tbl419);
  line-height: 1.5;
}

/* ========================================
   TABLE CONTAINER
======================================== */
.booking-table-container-tbl419 {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--tour-radius-tbl419);
  box-shadow: var(--tour-shadow-md-tbl419);
}

/* ========================================
   TABLE STYLES - COMPACT
======================================== */
.booking-table-tbl419 {
  width: 100%;
  border-collapse: collapse;
  background: var(--tour-bg-tbl419);
  font-size: 0.9rem;
}

.booking-table-tbl419 thead {
  background: linear-gradient(135deg, var(--tour-primary-tbl419) 0%, var(--tour-secondary-tbl419) 100%);
  color: #ffffff;
}

.booking-table-tbl419 thead th {
  padding: 0.75rem 0.875rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}

.header-divider-tbl419 {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.booking-table-tbl419 tbody tr {
  border-bottom: 1px solid var(--tour-border-tbl419);
  transition: background-color 0.2s ease;
}

.booking-table-tbl419 tbody tr:hover {
  background-color: var(--tour-bg-alt-tbl419);
}

.booking-table-tbl419 tbody td {
  padding: 0.75rem 0.875rem;
  vertical-align: middle;
}

/* Column Widths - Optimized */
.col-dates-tbl419 {
  width: 30%;
  /* เพิ่มจาก 26% */
}

.col-prices-tbl419 {
  width: 30%;
  /* เพิ่มจาก 22% */
}

.col-supplement-tbl419 {
  width: 14%;
  /* คงเดิม */
}

.col-status-tbl419 {
  width: 13%;
  /* ลดจาก 20% */
}

.col-action-tbl419 {
  width: 13%;
  /* ลดจาก 18% */
  text-align: center;
}

/* ========================================
   FLIGHT ROUTE DISPLAY
======================================== */
.flight-route-tbl419 {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--tour-border-tbl419);
}

.route-codes-tbl419 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.route-code-tbl419 {
  font-size: 1rem;
  color: var(--tour-text-tbl419);
  letter-spacing: 0.5px;
}

.route-line-tbl419 {
  flex: 1;
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(to right,
      var(--tour-primary-tbl419) 0,
      var(--tour-primary-tbl419) 4px,
      transparent 4px,
      transparent 8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-plane-tbl419 {
  position: absolute;
  color: var(--tour-primary-tbl419);
  font-size: 0.9rem;
  background: var(--tour-bg-tbl419);
  padding: 0 0.25rem;
  transform: rotate(45deg);
}

.route-cities-tbl419 {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--tour-text-light-tbl419);
}

/* ========================================
   DATES GRID - COMPACT
======================================== */
.dates-grid-tbl419 {
  display: flex;
  gap: 0.75rem;
}

.date-col-tbl419 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.date-label-tbl419 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tour-text-light-tbl419);
  letter-spacing: 0.3px;
}

.date-value-tbl419 {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.date-day-tbl419 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tour-text-tbl419);
}

.date-month-tbl419 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tour-text-tbl419);
}

/* ========================================
   PRICES CELL - COMPACT INLINE LAYOUT
======================================== */
.prices-cell-tbl419 {
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: flex-end;
  /* จัดแนวที่ baseline เพื่อให้ราคาอยู่แนวเดียวกัน */
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Price Row - Desktop Inline Layout (Single Row) */
.price-row-tbl419 {
  display: inline-flex;
  align-items: flex-end;
  /* จัดแนว icon และ price ที่ด้านล่าง */
  gap: 0.3rem;
  padding: 0;
}

.price-row-tbl419:first-child {
  padding-top: 0;
}

.price-row-tbl419:last-child {
  padding-bottom: 0;
}

/* Divider between Adult and Child */
.price-row-child-tbl419::before {
  content: '|';
  color: var(--tour-border-tbl419);
  margin: 0 0.4rem;
  font-weight: 400;
}

/* Price Label (Icon only on Desktop) */
.price-label-tbl419 {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tour-text-light-tbl419);
  white-space: nowrap;
  min-width: auto;
}

.price-label-tbl419 i {
  font-size: 0.75rem;
  color: var(--tour-primary-tbl419);
}

/* Hide label text on Desktop */
.price-label-tbl419 .label-text-tbl419 {
  display: none;
}

/* Price Values Container - Stack Vertically */
.price-values-tbl419 {
  display: flex;
  flex-direction: column;
  /* Stack: ราคาเต็มด้านบน, ราคาจริงด้านล่าง */
  align-items: flex-start;
  /* จัดชิดซ้าย */
  gap: 0.1rem;
  /* ระยะห่างเล็ก ๆ */
}

.original-price-tbl419 {
  text-decoration: line-through;
  color: var(--tour-text-light-tbl419);
  font-size: 0.65rem;
  /* เล็กลง จาก 0.7rem */
  line-height: 1;
}

.current-price-tbl419 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tour-primary-dark-tbl419);
  line-height: 1;
}

/* ========================================
   SUPPLEMENT CELL
======================================== */
.supplement-cell-tbl419 {
  text-align: left;
}

/* Supplement Label (Icon only on Desktop) */
.supplement-label-tbl419 {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tour-text-light-tbl419);
  white-space: nowrap;
}

.supplement-label-tbl419 i {
  font-size: 0.75rem;
  color: var(--tour-warning-tbl419);
}

/* Hide label text on Desktop */
.supplement-label-tbl419 .label-text-supp-tbl419 {
  display: none;
}

.supplement-value-tbl419 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tour-warning-tbl419);
}

/* ========================================
   STATUS CELL - COMPACT
======================================== */
.status-cell-tbl419 {
  padding: 0.75rem 0.875rem;
}

.status-badge-tbl419 {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-available-tbl419 {
  background: #d1fae5;
  color: #065f46;
}

.status-almost_full-tbl419 {
  background: #fed7aa;
  color: #92400e;
}

.status-full-tbl419 {
  background: #fee2e2;
  color: #991b1b;
}

.status-waiting-tbl419 {
  background: #dbeafe;
  color: #1e40af;
}

.status-expired-tbl419 {
  background: #f3f4f6;
  color: #6b7280;
}

.seats-info-tbl419 {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  /* ลด 5% จาก 0.8rem */
  color: var(--tour-text-light-tbl419);
  white-space: nowrap;
  /* ป้องกันขึ้นบรรทัดใหม่ */
}

.seats-info-tbl419 i {
  color: var(--tour-secondary-tbl419);
  font-size: 0.81rem;
  /* ลด 5% จาก 0.85rem */
}

/* ========================================
   ACTION CELL - COMPACT
======================================== */
.action-cell-tbl419 {
  padding: 0.75rem 0.875rem;
  text-align: center;
}

.book-now-btn-tbl419,
.fully-booked-btn-tbl419 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.book-now-btn-tbl419 {
  background: linear-gradient(135deg, var(--tour-primary-tbl419) 0%, var(--tour-secondary-tbl419) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.book-now-btn-tbl419:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.book-now-btn-tbl419:focus {
  outline: 2px solid var(--tour-primary-tbl419);
  outline-offset: 2px;
}

.book-now-btn-tbl419.is-loading-tbl419 {
  opacity: 0.7;
  cursor: wait;
}

.book-now-btn-tbl419.is-loading-tbl419::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 0.4rem;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin-tbl419 0.6s linear infinite;
}

@keyframes spin-tbl419 {
  to {
    transform: rotate(360deg);
  }
}

.fully-booked-btn-tbl419 {
  background: var(--tour-bg-alt-tbl419);
  color: var(--tour-text-light-tbl419);
  cursor: not-allowed;
  border: 1px solid var(--tour-border-tbl419);
}

/* ========================================
   EXPIRED ROW STYLES
======================================== */
.expired-row-tbl419 {
  opacity: 0.5;
  background-color: #f9fafb !important;
  pointer-events: none;
}

.expired-row-tbl419:hover {
  background-color: #f9fafb !important;
}

.expired-row-tbl419 .route-code-tbl419,
.expired-row-tbl419 .date-day-tbl419,
.expired-row-tbl419 .date-month-tbl419,
.expired-row-tbl419 .current-price-tbl419 {
  color: #9ca3af;
}

.expired-row-tbl419 .route-line-tbl419 {
  background: repeating-linear-gradient(to right,
      #d1d5db 0,
      #d1d5db 4px,
      transparent 4px,
      transparent 8px);
}

.expired-row-tbl419 .route-plane-tbl419 {
  color: #d1d5db;
}

.expired-row-tbl419 .supplement-value-tbl419 {
  color: #9ca3af;
}

/* ========================================
   PRICING NOTES
======================================== */
.pricing-notes-tbl419 {
  padding: 1.25rem;
  background: var(--tour-bg-alt-tbl419);
  border-radius: var(--tour-radius-tbl419);
  border-left: 4px solid var(--tour-primary-tbl419);
  margin-top: 1.5rem;
}

.notes-title-tbl419 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.875rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tour-text-tbl419);
}

.notes-title-tbl419 .fa-info-circle {
  color: var(--tour-primary-tbl419);
}

.notes-content-tbl419 {
  color: var(--tour-text-tbl419);
  font-size: 0.9rem;
}

.notes-content-tbl419 p {
  margin: 0 0 0.625rem 0;
}

.notes-content-tbl419 ul,
.notes-content-tbl419 ol {
  margin: 0.625rem 0;
  padding-left: 1.25rem;
}

.notes-content-tbl419 li {
  margin-bottom: 0.4rem;
}

/* ========================================
   NOTIFICATION
======================================== */
.booking-notification-tbl419 {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--tour-bg-tbl419);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.booking-notification-tbl419.is-visible-tbl419 {
  transform: translateX(0);
  opacity: 1;
}

.notification-success-tbl419 {
  border-left: 4px solid var(--tour-success-tbl419);
}

.notification-success-tbl419 i {
  color: var(--tour-success-tbl419);
  font-size: 1.5rem;
}

.notification-error-tbl419 {
  border-left: 4px solid var(--tour-danger-tbl419);
}

.notification-error-tbl419 i {
  color: var(--tour-danger-tbl419);
  font-size: 1.5rem;
}

/* ========================================
   NO DATA MESSAGE
======================================== */
.tour-no-pricing-tbl419 {
  padding: 2rem;
  text-align: center;
  color: var(--tour-text-light-tbl419);
  background: var(--tour-bg-alt-tbl419);
  border-radius: var(--tour-radius-tbl419);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .booking-table-tbl419 {
    font-size: 0.85rem;
  }

  .booking-table-tbl419 thead th,
  .booking-table-tbl419 tbody td {
    padding: 0.65rem 0.75rem;
  }

  .route-code-tbl419 {
    font-size: 0.95rem;
  }

  .current-price-tbl419 {
    font-size: 1rem;
  }

  .book-now-btn-tbl419,
  .fully-booked-btn-tbl419 {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .booking-table-container-tbl419 {
    box-shadow: none;
    border-radius: 0;
  }

  .booking-table-tbl419 thead {
    display: none;
  }

  .booking-table-tbl419 tbody {
    display: block;
  }

  .booking-table-tbl419 tbody tr {
    display: block;
    margin-bottom: 1.5rem;
    /* เพิ่มจาก 1rem */
    border: 1px solid var(--tour-border-tbl419);
    border-radius: var(--tour-radius-tbl419);
    padding: 1.25rem;
    /* เพิ่มจาก 1rem */
    background: var(--tour-bg-tbl419);
    box-shadow: var(--tour-shadow-tbl419);
  }

  .booking-table-tbl419 tbody td {
    display: block;
    padding: 0.5rem 0;
    border: none;
  }

  .dates-cell-tbl419 {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--tour-border-tbl419);
    margin-bottom: 0.75rem;
  }

  .flight-route-tbl419 {
    margin-bottom: 0.75rem;
  }

  /* Phase 3: ปรับ Dates Grid ให้สมดุล - เปลี่ยนจาก column เป็น row */
  .dates-grid-tbl419 {
    flex-direction: row;
    /* เปลี่ยนจาก column */
    gap: 1rem;
    /* เพิ่มจาก 0.5rem */
  }

  /* Phase 2: เพิ่มขนาดตัวอักษรให้อ่านง่าย */
  .date-label-tbl419 {
    font-size: 0.85rem;
    /* เพิ่มจาก 0.7rem */
  }

  .route-cities-tbl419 {
    font-size: 0.85rem;
    /* เพิ่มจาก 0.75rem */
  }

  .route-code-tbl419 {
    font-size: 1.05rem;
    /* เพิ่มความชัดเจน */
  }

  .route-plane-tbl419 {
    font-size: 0.95rem;
    /* เพิ่มเล็กน้อย */
  }

  .original-price-tbl419 {
    font-size: 0.85rem;
    /* เพิ่มจาก 0.75rem */
  }

  .current-price-tbl419 {
    font-size: 1.15rem;
    /* เพิ่มความชัดเจน */
  }

  .action-cell-tbl419 {
    padding-top: 0.75rem;
    border-top: 1px solid var(--tour-border-tbl419);
    margin-top: 0.75rem;
  }

  /* Phase 1: เพิ่ม Touch Target Sizes */
  .book-now-btn-tbl419,
  .fully-booked-btn-tbl419 {
    width: 100%;
    min-height: 48px;
    /* เพิ่ม minimum touch target */
    padding: 0.75rem 1.25rem;
    /* เพิ่มจาก 0.6rem 1.25rem */
  }

  .booking-notification-tbl419 {
    right: 1rem;
    left: 1rem;
  }

  /* Prices Cell - Inline Layout for Mobile */
  .prices-cell-tbl419 {
    display: flex;
    flex-direction: row;
    /* เปลี่ยนเป็น row เพื่อวางแนวนอน */
    gap: 0.5rem;
    padding: 0.75rem 0 !important;
    /* override */
    border-top: 1px solid var(--tour-border-tbl419);
    margin-top: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
    /* จัดแนวที่ baseline */
  }

  .price-row-tbl419 {
    display: inline-flex;
    /* เปลี่ยนจาก grid เป็น inline-flex */
    align-items: flex-end;
    /* จัดแนว icon และ price ที่ด้านล่าง */
    gap: 0.3rem;
    padding: 0;
    /* ลบ padding */
    background: transparent;
    /* ลบ background */
    border-radius: 0;
    /* ลบ border-radius */
  }

  /* Price Label - Mobile */
  .price-label-tbl419 {
    font-size: 0.8rem;
    /* ลดขนาดเล็กน้อย */
    font-weight: 600;
    color: var(--tour-text-light-tbl419);
    min-width: auto;
  }

  .price-label-tbl419 i {
    font-size: 0.75rem;
    color: var(--tour-primary-tbl419);
  }

  .label-text-tbl419 {
    display: inline;
    /* แสดง text บน Mobile */
  }

  /* Price Values - Mobile (Stack Vertically) */
  .price-values-tbl419 {
    display: flex;
    /* เปลี่ยนเป็น flex */
    flex-direction: column;
    /* Stack: ราคาเต็มด้านบน, ราคาจริงด้านล่าง */
    align-items: flex-start;
    /* จัดชิดซ้าย */
    gap: 0.1rem;
    /* ระยะห่างเล็ก ๆ */
  }

  .original-price-tbl419 {
    font-size: 0.7rem;
    /* เล็กลงบน Mobile */
    line-height: 1;
  }

  .current-price-tbl419 {
    line-height: 1;
  }

  /* Divider between Adult and Child on Mobile */
  .price-row-child-tbl419::before {
    content: '|';
    color: var(--tour-border-tbl419);
    margin: 0 0.4rem;
    font-weight: 400;
  }

  /* Supplement Cell - Mobile */
  .supplement-cell-tbl419 {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    padding: 0.75rem 0 !important;
    border-top: 1px solid var(--tour-border-tbl419);
    margin-top: 0.75rem;
  }

  .supplement-label-tbl419 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tour-text-light-tbl419);
  }

  .supplement-label-tbl419 i {
    font-size: 0.75rem;
    color: var(--tour-warning-tbl419);
  }

  .label-text-supp-tbl419 {
    display: inline;
    /* แสดง text บน Mobile */
  }

  .supplement-value-tbl419 {
    font-size: 1.15rem;
    font-weight: 700;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .booking-table-tbl419 tbody tr {
    page-break-inside: avoid;
  }

  .book-now-btn-tbl419,
  .fully-booked-btn-tbl419,
  .booking-notification-tbl419 {
    display: none !important;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --tour-text-tbl419: #f1f5f9;
    --tour-text-light-tbl419: #94a3b8;
    --tour-bg-tbl419: #1e293b;
    --tour-bg-alt-tbl419: #0f172a;
    --tour-border-tbl419: #334155;
  }

  .booking-table-tbl419 tbody tr:hover {
    background-color: #334155;
  }

  .route-plane-tbl419 {
    background: #1e293b;
  }

  .status-available-tbl419 {
    background: #065f46;
    color: #d1fae5;
  }

  .status-almost_full-tbl419 {
    background: #92400e;
    color: #fed7aa;
  }

  .status-full-tbl419 {
    background: #991b1b;
    color: #fee2e2;
  }

  .status-waiting-tbl419 {
    background: #1e40af;
    color: #dbeafe;
  }

  .status-expired-tbl419 {
    background: #374151;
    color: #d1d5db;
  }
}

/* ========================================
   MODAL STYLES - OPTIMIZED & COMPACT
======================================== */
.booking-modal-overlay-tbl419 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.booking-modal-overlay-tbl419.is-visible-tbl419 {
  opacity: 1;
}

.booking-modal-overlay-tbl419.modal-closing-tbl419 {
  opacity: 0;
}

.booking-modal-content-tbl419 {
  background: var(--tour-bg-tbl419);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--tour-primary-tbl419) var(--tour-bg-alt-tbl419);
}

/* Custom Scrollbar for Webkit browsers */
.booking-modal-content-tbl419::-webkit-scrollbar {
  width: 6px;
}

.booking-modal-content-tbl419::-webkit-scrollbar-track {
  background: var(--tour-bg-alt-tbl419);
  border-radius: 10px;
}

.booking-modal-content-tbl419::-webkit-scrollbar-thumb {
  background: var(--tour-primary-tbl419);
  border-radius: 10px;
}

.booking-modal-content-tbl419::-webkit-scrollbar-thumb:hover {
  background: var(--tour-primary-dark-tbl419);
}

.booking-modal-content-tbl419.booking-modal-large-tbl419 {
  max-width: 580px;
}

/* ========================================
   CUSTOMER FORM STYLES - COMPACT
======================================== */
.booking-section-tbl419 {
  margin-bottom: 1rem;
}

.section-title-tbl419 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tour-text-tbl419);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tour-primary-tbl419);
}

.section-title-tbl419 i {
  color: var(--tour-primary-tbl419);
  font-size: 0.9rem;
}

.section-divider-tbl419 {
  height: 1px;
  background: var(--tour-border-tbl419);
  margin: 1rem 0;
}

.form-row-tbl419 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.form-group-tbl419 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-tbl419 label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tour-text-tbl419);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-group-tbl419 label i {
  color: var(--tour-primary-tbl419);
  width: 14px;
  font-size: 0.75rem;
}

.required-tbl419 {
  color: var(--tour-danger-tbl419);
  font-weight: 700;
}

.form-input-tbl419 {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid var(--tour-border-tbl419);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--tour-text-tbl419);
  background: var(--tour-bg-tbl419);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input-tbl419:focus {
  outline: none;
  border-color: var(--tour-primary-tbl419);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.form-input-tbl419::placeholder {
  color: var(--tour-text-light-tbl419);
  font-size: 0.8rem;
}

.booking-modal-overlay-tbl419.is-visible-tbl419 .booking-modal-content-tbl419 {
  transform: scale(1);
}

.booking-modal-overlay-tbl419.modal-closing-tbl419 .booking-modal-content-tbl419 {
  transform: scale(0.9);
}

/* Modal Header - Compact */
.modal-header-tbl419 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tour-border-tbl419);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.modal-header-tbl419 h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tour-text-tbl419);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-header-tbl419 h3 i {
  color: var(--tour-primary-tbl419);
  font-size: 1rem;
}

.modal-close-tbl419 {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tour-text-light-tbl419);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-tbl419:hover {
  color: var(--tour-text-tbl419);
}

/* Modal Body - Compact */
.modal-body-tbl419 {
  padding: 1.25rem;
}

.traveler-input-group-tbl419 {
  margin-bottom: 0.85rem;
}

.traveler-input-group-tbl419:last-of-type {
  margin-bottom: 1rem;
}

.traveler-input-group-tbl419 label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--tour-text-tbl419);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.traveler-input-group-tbl419 label i {
  color: var(--tour-primary-tbl419);
  width: 16px;
  font-size: 0.75rem;
}

.price-indicator-tbl419 {
  color: var(--tour-primary-dark-tbl419);
  font-weight: 600;
  font-size: 0.75rem;
}

.quantity-control-tbl419 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.qty-btn-tbl419 {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--tour-border-tbl419);
  background: var(--tour-bg-tbl419);
  color: var(--tour-text-tbl419);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn-tbl419:hover {
  background: var(--tour-primary-tbl419);
  border-color: var(--tour-primary-tbl419);
  color: #ffffff;
}

.qty-btn-tbl419:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantity-control-tbl419 input {
  width: 65px;
  height: 40px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tour-text-tbl419);
  border: 1.5px solid var(--tour-border-tbl419);
  border-radius: 6px;
  background: var(--tour-bg-alt-tbl419);
}

/* Booking Summary - Compact */
.booking-summary-tbl419 {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--tour-primary-tbl419);
}

.summary-row-tbl419 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  color: var(--tour-text-tbl419);
  font-size: 0.85rem;
}

.summary-total-tbl419 {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--tour-border-tbl419);
}

.summary-total-tbl419 strong {
  font-size: 1.1rem;
  color: var(--tour-primary-dark-tbl419);
}

.summary-note-tbl419 {
  margin: 0.5rem 0 0 0;
  font-size: 0.7rem;
  color: var(--tour-text-light-tbl419);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.summary-note-tbl419 i {
  color: var(--tour-secondary-tbl419);
  font-size: 0.7rem;
}

/* Modal Footer - Compact */
.modal-footer-tbl419 {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--tour-border-tbl419);
  background: var(--tour-bg-alt-tbl419);
}

.btn-cancel-tbl419,
.btn-confirm-tbl419 {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-cancel-tbl419 {
  background: var(--tour-bg-tbl419);
  border: 1.5px solid var(--tour-border-tbl419);
  color: var(--tour-text-tbl419);
}

.btn-cancel-tbl419:hover {
  background: var(--tour-bg-alt-tbl419);
  border-color: var(--tour-text-tbl419);
}

.btn-confirm-tbl419 {
  background: linear-gradient(135deg, var(--tour-primary-tbl419) 0%, var(--tour-secondary-tbl419) 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

.btn-confirm-tbl419:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(20, 184, 166, 0.4);
}

.btn-confirm-tbl419:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Smooth Scroll Behavior */
.booking-modal-content-tbl419 {
  scroll-behavior: smooth;
}

/* Focus States for Better UX */
.form-input-tbl419:focus,
.qty-btn-tbl419:focus,
.btn-cancel-tbl419:focus,
.btn-confirm-tbl419:focus {
  outline: 2px solid var(--tour-primary-tbl419);
  outline-offset: 2px;
}

/* Improved Input Validation Feedback */
.form-input-tbl419:invalid:not(:placeholder-shown) {
  border-color: var(--tour-danger-tbl419);
}

.form-input-tbl419:valid:not(:placeholder-shown) {
  border-color: var(--tour-success-tbl419);
}

/* Modal Responsive - Compact & Mobile Optimized */
@media (max-width: 768px) {
  .booking-modal-content-tbl419 {
    max-width: 100%;
    margin: 0.5rem;
  }

  .booking-modal-content-tbl419.booking-modal-large-tbl419 {
    max-width: 100%;
  }

  /* Phase 2: เพิ่ม Modal Padding */
  .modal-header-tbl419 {
    padding: 1rem 1.25rem;
    /* เพิ่มจาก 0.85rem 1rem */
  }

  .modal-body-tbl419 {
    padding: 1.5rem;
    /* เพิ่มจาก 1rem */
  }

  .modal-footer-tbl419 {
    padding: 1rem 1.25rem;
    /* เพิ่มจาก 0.85rem 1rem */
  }

  .modal-header-tbl419 h3 {
    font-size: 0.95rem;
  }

  .form-row-tbl419 {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .section-title-tbl419 {
    font-size: 0.9rem;
  }

  /* Phase 1: แก้ Input Font Size (ป้องกัน iOS auto-zoom) */
  .form-input-tbl419 {
    font-size: 1rem;
    /* เพิ่มจาก 0.85rem - ป้องกัน iOS zoom */
  }

  /* Phase 2: เพิ่ม Font Sizes */
  .price-indicator-tbl419 {
    font-size: 0.85rem;
    /* เพิ่มจาก 0.75rem */
  }

  .summary-note-tbl419 {
    font-size: 0.8rem;
    /* เพิ่มจาก 0.7rem */
  }

  .quantity-control-tbl419 {
    gap: 0.75rem;
    /* เพิ่มจาก 0.6rem */
  }

  /* Phase 1: เพิ่ม Touch Target Sizes */
  .qty-btn-tbl419 {
    width: 44px;
    /* เพิ่มจาก 34px */
    height: 44px;
    /* เพิ่มจาก 34px */
    font-size: 1.2rem;
    /* เพิ่มจาก 1rem */
  }

  .quantity-control-tbl419 input {
    width: 65px;
    /* เพิ่มจาก 60px */
    height: 44px;
    /* เพิ่มจาก 38px */
    font-size: 1rem;
    /* ลดจาก 1.15rem - ป้องกัน iOS zoom */
  }

  .modal-footer-tbl419 {
    flex-direction: column;
    gap: 0.75rem;
    /* เพิ่มจาก 0.6rem */
  }

  .btn-cancel-tbl419,
  .btn-confirm-tbl419 {
    width: 100%;
    min-height: 48px;
    /* เพิ่ม minimum touch target */
  }
}

/* ========================================
   VERY SMALL SCREENS (iPhone SE, Small Android)
======================================== */
@media (max-width: 375px) {

  /* ปรับ Card Spacing สำหรับหน้าจอเล็ก */
  .booking-table-tbl419 tbody tr {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  /* ปรับ Dates Grid */
  .dates-grid-tbl419 {
    gap: 0.75rem;
  }

  /* ปรับ Route Display */
  .route-codes-tbl419 {
    gap: 0.4rem;
  }

  .route-code-tbl419 {
    font-size: 0.95rem;
  }

  .route-cities-tbl419 {
    font-size: 0.8rem;
  }

  /* ปรับ Price Display */
  .current-price-tbl419 {
    font-size: 1.05rem;
  }

  /* Prices Cell - Adjust for small screens */
  .prices-cell-tbl419 {
    gap: 0.4rem;
    /* ลด gap */
  }

  .price-row-tbl419 {
    gap: 0.25rem;
    /* ลด gap สำหรับหน้าจอเล็ก */
  }

  .price-label-tbl419 {
    font-size: 0.75rem;
    /* ลดเล็กน้อย */
  }

  .price-label-tbl419 i {
    font-size: 0.7rem;
  }

  .price-values-tbl419 {
    gap: 0.05rem;
    /* ลด gap ระหว่างราคาเต็มและราคาจริง */
  }

  .original-price-tbl419 {
    font-size: 0.6rem;
    /* เล็กลงสำหรับหน้าจอเล็ก */
  }

  .current-price-tbl419 {
    font-size: 0.9rem;
    /* ลดขนาดให้พอดีหน้าจอเล็ก */
  }

  .price-row-child-tbl419::before {
    margin: 0 0.3rem;
    /* ลด margin ของ divider */
  }

  /* Supplement - Adjust for small screens */
  .supplement-cell-tbl419 {
    gap: 0.25rem;
  }

  .supplement-label-tbl419 {
    font-size: 0.75rem;
  }

  .supplement-value-tbl419 {
    font-size: 0.95rem;
  }

  /* ปรับ Modal สำหรับหน้าจอเล็ก */
  .modal-body-tbl419 {
    padding: 1.25rem;
  }

  .modal-header-tbl419,
  .modal-footer-tbl419 {
    padding: 0.85rem 1rem;
  }

  /* ปรับ Quantity Controls */
  .quantity-control-tbl419 {
    gap: 0.5rem;
  }

  .qty-btn-tbl419 {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .quantity-control-tbl419 input {
    width: 55px;
  }

  /* ปรับ Notification */
  .booking-notification-tbl419 {
    right: 0.5rem;
    left: 0.5rem;
    padding: 0.85rem 1.25rem;
  }
}
