/* ========================================
   Search Form Styles (Unified)
   This file contains ALL styles for search forms
   Used in: Home page, Results page, and other pages
   ======================================== */

/* Layout Overrides for Results Page */
.ota-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.content-area.primary {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ========================================
   Base Search Form Styles (Generic)
   ======================================== */

/* Search Form Container */
.ota-search-form {
  background: transparent;
  max-width: 100%;
  display: grid;
  gap: 12px;
}

/* Search Form Wrapper (optional container) */
.ota-search {
  background: rgba(var(--background) / 0.4);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(var(--foreground) / 0.2);
}

.ota-search-form h2,
.ota-search-title {
  color: rgb(var(--foreground)) !important;
  text-align: left !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 600;
}

/* Search Fields Grid */
.ota-search-fields {
  display: flex !important;
  align-items: center !important;
  justify-content: end !important;
}

/* Input Wrapper with Icon */
.ota-input-wrapper {
  max-width: 300px;
  position: relative;
  width: 100%;
}

.ota-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}



/* Results page: place icon on the right inside the field */
.ota-results-search-form .ota-input-icon {
  right: 14px;
  left: auto;
}

.ota-input-icon svg.ota-icon-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.ota-icon-location-blue {
  color: rgb(var(--primary));
}

.ota-icon-location-blue svg {
  stroke: rgb(var(--primary));
}

.ota-icon-location-red {
  color: rgb(var(--danger));
}

.ota-icon-location-red svg {
  stroke: rgb(var(--danger));
}

.ota-icon-calendar {
  color: rgb(var(--primary));
}

.ota-icon-calendar svg {
  stroke: rgb(var(--primary));
}

/* Form Fields */
.ota-field {
  text-align: left;
}

.ota-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: rgb(var(--foreground));
  text-align: left !important;
}

.ota-field label strong {
  font-weight: 600;
}

/* Inputs and Selects */
.ota-field select,
.ota-field input[type="date"],
.ota-field input[type="number"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(var(--border));
  border-radius: 0px !important;
  font-size: 15px;
  background: #f5f5f5;
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Date text input (flatpickr) – same style như input date/number */
.ota-field-date input[name="date"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(var(--border));
  border-radius: 0px !important;
  font-size: 15px;
  background: #f5f5f5;
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Inputs with icons */
.ota-field select,
.ota-field input[type="date"],
.ota-field-date input[name="date"] {
  padding-left: 42px;
}

/* Results page: extra space on the right for trailing icon */
.ota-results-search-form .ota-field select,
.ota-results-search-form .ota-field input[type="date"],
.ota-results-search-form .ota-field-date input[name="date"] {
  padding-right: 42px;
}

/* Select Styling */
.ota-field select {
  background-color: #f5f5f5;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.ota-field select option {
  color: rgb(var(--foreground));
  background-color: #fff;
}

/* Date Input Specific */
.ota-field input[type="date"] {
  position: relative;
}

.ota-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Hover States */
.ota-field select:hover,
.ota-field input[type="date"]:hover,
.ota-field input[type="number"]:hover,
.ota-field-date input[name="date"]:hover {
  background-color: #eeeeee;
  border-color: rgb(var(--primary));
}

/* Focus States */
.ota-field select:focus,
.ota-field input[type="date"]:focus,
.ota-field input[type="number"]:focus,
.ota-field-date input[name="date"]:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(var(--primary) / 0.1);
  background-color: #fff;
}

/* Swap Button */
.ota-swap-wrapper {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
  margin-bottom: 0;
}

.ota-swap-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(var(--border));
  background: #fff;
  color: rgb(var(--muted));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 0;
  padding: 0;
}

.ota-swap-btn:hover {
  background: rgb(var(--primary));
  color: rgb(var(--background));
  border-color: rgb(var(--primary));
  transform: rotate(180deg);
}

/* Swap Button for Results Page Search Form */
.ota-results-search-form .ota-operator-swap-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.ota-results-search-form .ota-operator-swap-btn {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 5px !important;
  background: #f4f7fb;
  color: rgb(var(--primary));
  border: 1px solid rgba(var(--primary) / 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(var(--primary) / 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.ota-results-search-form .ota-operator-swap-btn:hover {
  background: rgb(var(--primary) / 0.08) !important;
  border: 1px solid rgb(var(--primary)) !important;
  color: rgb(var(--primary)) !important;
  box-shadow: 0 10px 22px rgba(var(--primary) / 0.18) !important;
}

.ota-results-search-form .ota-operator-swap-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Desktop layout tweaks */
@media (min-width: 1025px) {
  .ota-results-search-form form {
    grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr) minmax(0, 0.9fr) auto;
  }
}

/* Tablet breakpoint */
@media (max-width: 1100px) {
  .ota-results-search-form form {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .ota-results-search-form .ota-field-date,
  .ota-results-search-form .ota-field-submit {
    grid-column: 1 / -1;
  }

  .ota-results-search-form .ota-operator-swap-wrapper {
    width: 100%;
    justify-content: center;
  }

  .ota-results-search-form button[type="submit"],
  .ota-results-search-form .ota-search-btn {
    width: 100%;
  }
}

/* Submit Button */
.ota-field-submit {
  display: flex;
  align-items: flex-end;
}

.ota-search-btn,
.ota-search-form button[type="submit"] {
  flex: 1 !important;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background: rgb(var(--primary));
  color: #fff;
  border: none;
  border-radius: 0px 8px 8px 0px !important;
  font-size: 16px !important;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  padding: 10px 20px !important;
}

.ota-search-btn:hover,
.ota-search-form button[type="submit"]:hover {
  background: rgb(var(--secondary)) !important;
}

/* ========================================
   Home Page Search Form Variations
   ======================================== */

.home-ota .hero .ota-search {
  background: rgba(var(--background) / 0.55);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--background) / 0.6);
  box-shadow: 0 16px 40px rgba(var(--primary-black) / 0.25);
}

.home-ota .hero .ota-search-form {
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100%;
  display: grid;
  gap: 12px;
}

.home-ota .hero .ota-search-fields {
  display: flex;
  align-items: center;
}

/* ========================================
   Results Page Search Form Variations
   ======================================== */

.entry-header {
  display: none !important;
}

.entry-title {
  display: none !important;
}

/* Main Container */
.ota-results-page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* Background styles only for active results page (when from/to are selected) */
.ota-results-page-active {
  background: rgb(var(--surface));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ota-results-page-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(var(--surface) / 1) 0%,
      rgba(var(--background) / 0.92) 40%,
      rgba(var(--background) / 0.92) 70%,
      rgba(var(--surface) / 1) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}

.ota-results-page-active>* {
  position: relative;
  z-index: 1;
}

/* Search Form */
.ota-results-search-form {
  width: 100%;
  max-width: 1280px;
  margin: 20px auto 8px;
  padding: 18px;
  background: rgb(var(--background));
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-lg);
  box-shadow: var(--ota-shadow-soft);
}

.ota-results-search-form h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
}

.ota-results-search-form form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1.15fr) minmax(0, 0.9fr) auto;
  gap: 12px;
  align-items: stretch;
}

/* Inputs + Select2 on results form */
.ota-results-search-form .ota-input-wrapper {
  height: 56px;
}

.ota-results-search-form .ota-input-icon {
  left: 16px;
  right: auto;
  color: rgb(var(--primary));
}

.ota-results-search-form .select2-container--default .select2-selection--single {
  height: 56px;
  padding-left: 42px;
  border-radius: var(--ota-radius-md);
  border: 1px solid rgba(var(--border) / 0.9);
  background: rgb(var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(var(--primary-black) / 0.06);
  display: flex;
  align-items: center;
}

.ota-results-search-form .select2-selection__rendered {
  line-height: 56px !important;
  color: rgb(var(--foreground));
  font-weight: 600;
  padding-left: 2px;
}

.ota-results-search-form .select2-selection__placeholder {
  color: rgb(var(--muted));
}

.ota-results-search-form .select2-selection__arrow {
  height: 100%;
  right: 14px;
}

/* Date input – đồng bộ với Select2 (Chọn điểm đi/đến) trên form kết quả */
.ota-results-search-form .ota-field input[type="date"],
.ota-results-search-form .ota-field-date input[name="date"],
.ota-results-search-form .ota-field-date input {
  height: 56px !important;
  padding-left: 42px;
  padding-right: 42px;
  border-radius: var(--ota-radius-md) !important;
  border: 1px solid rgba(var(--border) / 0.9);
  background: rgb(var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(var(--primary-black) / 0.06);
  font-weight: 600;
  color: rgb(var(--foreground));
  box-sizing: border-box;
}

.ota-results-search-form .ota-field-date .ota-input-wrapper {
  height: 56px;
}

.ota-results-search-form .ota-field input[type="date"]:hover,
.ota-results-search-form .ota-field-date input[name="date"]:hover,
.ota-results-search-form .ota-field-date input:hover {
  border-color: rgba(var(--border) / 0.9);
  background: rgb(var(--surface));
}

.ota-results-search-form .ota-field input[type="date"]:focus,
.ota-results-search-form .ota-field-date input[name="date"]:focus,
.ota-results-search-form .ota-field-date input:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(var(--primary-black) / 0.06), 0 0 0 3px rgba(var(--primary) / 0.1);
  background: rgb(var(--surface));
}

/* Align button bottom with inputs on results page (desktop) */
.ota-results-search-form .ota-search-fields {
  width: 100% !important;
  align-items: stretch;
  gap: 12px;
}


.ota-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: rgb(var(--foreground));
}

.ota-field select,
.ota-field input[type="date"],
.ota-field input[type="number"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  font-size: 15px;
  background: rgb(var(--background));
}

.ota-field select {
  cursor: pointer;
}

.ota-field input[type="date"] {
  cursor: pointer;
}

.ota-results-search-form button[type="submit"],
.ota-results-search-form .ota-search-btn {
  height: 56px;
  padding: 0 22px;
  background: linear-gradient(135deg, rgb(var(--primary)) 0%, rgb(var(--secondary)) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  justify-self: start;
  box-shadow: 0 10px 24px rgba(var(--primary) / 0.35);
}

.ota-results-search-form button:hover,
.ota-results-search-form .ota-search-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(var(--primary) / 0.35);
}

/* Quick Date Picker */
.ota-quick-date-picker {
  width: 100%;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.ota-quick-date-picker>div:first-child {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.ota-quick-date-picker>div:first-child::-webkit-scrollbar {
  height: 6px;
}

.ota-quick-date-picker>div:first-child::-webkit-scrollbar-track {
  background: transparent;
}

.ota-quick-date-picker>div:first-child::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.ota-quick-date-picker>div:first-child>div {
  display: flex;
  gap: 0;
  align-items: center;
  min-width: max-content;
}

.ota-date-item {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  border-right: 1px solid #e0e0e0;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.ota-date-item:hover {
  background: #f0f0f0 !important;
}

.ota-date-item:last-child {
  border-right: none !important;
}

.ota-date-selected {
  background: #fff !important;
  color: #667eea !important;
}

.ota-date-selected span:first-child {
  color: #667eea !important;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.ota-date-selected span:nth-child(2) {
  color: #667eea !important;
  font-weight: 700 !important;
  font-size: 15px;
  font-weight: 600;
}

.ota-date-item span:first-child {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.ota-date-item span:nth-child(2) {
  font-size: 15px;
  font-weight: 600;
}

.ota-date-item .ota-date-today {
  font-size: 11px;
  color: #667eea;
  margin-top: 2px;
}

.ota-date-item .ota-date-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #667eea;
  border-radius: 3px 3px 0 0;
}

/* Empty State Messages */
.ota-empty-message {
  padding: 40px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 24px;
}

.ota-empty-message p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* Results Header */
.ota-results-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.ota-results-header h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
}

.ota-results-header>div {
  color: #666;
  font-size: 14px;
}

/* Layout: Filters + Results */
.ota-results-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

/* Filters Sidebar */
.ota-filters-sidebar {
  position: sticky;
  top: 20px;
}

.ota-filters-toggle-btn {
  display: none;
}

.ota-filters-form {
  background: rgb(var(--background));
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

.ota-filters-form h3 {
  margin: 0 0 12px;
  font-size: var(--ota-font-lg);
  font-weight: var(--ota-font-semibold);
  color: rgb(var(--foreground));
}

.ota-filters-form>div {
  display: grid;
  gap: 16px;
}

.ota-filter-block {
  display: grid;
  gap: 10px;
}

.ota-filter-search {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-md);
  font-size: var(--ota-font-sm);
  background: rgb(var(--background));
  color: rgb(var(--foreground));
}

.ota-filter-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.ota-filter-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--ota-radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ota-filter-item:hover {
  background: rgba(var(--primary) / 0.06);
  border-color: rgba(var(--primary) / 0.2);
}

.ota-filter-item input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: rgb(var(--primary));
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(var(--border) / 0.9);
  border-radius: 4px;
  background: rgb(var(--background));
  position: relative;
  transition: all 0.2s ease;
  align-self: center;
}

.ota-filter-item input[type="checkbox"]:hover {
  border-color: rgba(var(--primary) / 0.6);
  background: rgba(var(--primary) / 0.05);
}

.ota-filter-item input[type="checkbox"]:checked {
  background: rgb(var(--primary));
  border-color: rgb(var(--primary));
}

.ota-filter-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid rgb(var(--background));
  border-width: 0 2px 2px 0;
}

.ota-filter-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ota-filter-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  border: none;
}

.ota-filter-name {
  font-size: var(--ota-font-sm);
  font-weight: var(--ota-font-semibold);
  color: rgb(var(--foreground));
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ota-filter-count {
  font-size: var(--ota-font-xs);
  color: rgb(var(--muted));
  background: rgba(var(--primary) / 0.08);
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ota-filter-empty {
  font-size: var(--ota-font-sm);
  color: rgb(var(--muted));
}

.ota-filters-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.ota-filters-form select,
.ota-filters-form input[type="time"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.ota-filters-form .ota-filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ota-filters-form .ota-filter-clear {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-md);
  background: rgb(var(--background));
  font-size: var(--ota-font-sm);
  color: rgb(var(--foreground));
  cursor: pointer;
}

.ota-filters-form button[type="submit"] {
  height: 44px;
  padding: 0 16px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.ota-filters-form button:hover {
  background: rgb(var(--secondary)) !important;
}

.ota-filters-form .ota-clear-filters {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-md);
  text-decoration: none;
  color: rgb(var(--foreground));
  font-size: var(--ota-font-sm);
  background: rgb(var(--background));
  transition: border-color 0.3s;
}

.ota-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ota-filter-chip {
  border: 1px solid rgba(var(--primary) / 0.2);
  background: rgba(var(--primary) / 0.08);
  color: rgb(var(--foreground));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--ota-font-xs);
  font-weight: var(--ota-font-semibold);
  cursor: pointer;
}

.ota-filter-chip span {
  margin-left: 6px;
}

.ota-results-loading [data-ota-results-container] {
  opacity: 0.6;
  pointer-events: none;
}

/* Results Content */
.ota-results-content {
  min-width: 0;
}

.ota-results-content .ota-trips-list {
  display: grid;
  gap: 12px;
}

.ota-trip-card-items {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: box-shadow 0.3s;
  margin-bottom: 16px;
}

.ota-results-content>div>div:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #667eea;
}

/* Trip Card: Left Section (Logo + Operator) */
.ota-trip-left {
  display: flex;
  gap: 16px;
  min-width: 200px;
  align-items: center;
}

.ota-trip-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ota-trip-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.ota-trip-operator-info {
  flex: 1;
}

.ota-trip-operator-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.ota-trip-operator-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ota-trip-vehicle-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  width: fit-content;
}

.ota-trip-depart-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.ota-trip-depart-info .ota-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Trip Card: Middle Section (Time + Duration) */
.ota-trip-middle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.ota-trip-time {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.ota-trip-duration-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ota-trip-duration-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  transform: translateY(-50%);
  border-top: 2px dotted #999;
}

.ota-trip-duration-text {
  position: relative;
  background: #fff;
  padding: 0 8px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* Trip Card: Right Section (Price + Action) */
.ota-trip-right {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 200px;
}

.ota-trip-price-section {
  text-align: right;
  flex: 1;
}

.ota-trip-price {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}



.ota-trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px !important;
  background: rgb(var(--danger));
  color: rgb(var(--background));
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.ota-trip-badge .ota-icon-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}


.ota-trip-book-btn {
  text-decoration: none !important;
  padding: 12px 24px;
  display: inline-block;
  border: 2px solid rgb(var(--success)) !important;
  background: rgb(var(--success)) !important;
  color: rgb(var(--background)) !important;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}


.ota-results-content a:hover {
  background: #5568d3 !important;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {

  .ota-search-btn {
    border-radius: 8px !important;
    width: 100% !important;
    padding: 15px 20px !important;
  }

  .ota-operator-swap-btn {
    z-index: 1000 !important;
    position: absolute !important;
    right: 15% !important;
    top: 70px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid rgb(var(--border)) !important;
    background: rgb(var(--background)) !important;
    color: rgb(var(--muted)) !important;

  }

  .ota-search-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Results Page */
  .ota-results-layout {
    grid-template-columns: 1fr;
    position: relative;
  }

  .ota-filters-sidebar {
    position: static !important;
  }

  /* Swap button for mobile - centered between fields */
  .ota-results-search-form .ota-operator-swap-wrapper {
    justify-content: center;
  }

  .ota-results-page {

    padding: 0 20px !important;
  }

  .ota-date-item {
    min-width: 90px;
    padding: 10px 12px !important;
  }
}

#ota-results-from-select>select {
  border-radius: 8px 0px 0px 8px !important;
}

@media (max-width: 768px) {

  .ota-results-page-active {
    background-image: url('../images/bg_fade.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }


  /* Generic Search Form */
  .ota-search-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Home Page Search Form */
  .home-ota .hero .ota-search {
    padding: 24px;
  }

  .home-ota .hero .ota-swap-wrapper {
    grid-column: 1;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    margin: -8px 0;
  }

  .home-ota .hero .ota-field-date,
  .home-ota .hero .ota-field-submit {
    grid-column: 1;
  }

  /* Results Page: stack tất cả field 1 cột */
  .ota-results-search-form form {
    grid-template-columns: 1fr;
  }

  .ota-results-search-form .ota-field,
  .ota-results-search-form .ota-operator-swap-wrapper,
  .ota-results-search-form .ota-field-date,
  .ota-results-search-form .ota-field-submit {
    grid-column: 1;
  }

  /* Swap button for mobile - centered between fields */
  .ota-results-search-form .ota-operator-swap-wrapper {
    justify-content: center;
  }

  .ota-date-item {
    min-width: 80px;
    padding: 8px 10px !important;
  }

  .ota-date-item span:first-child {
    font-size: 11px !important;
  }

  .ota-date-item span:nth-child(2) {
    font-size: 13px !important;
  }

  .ota-input-wrapper>select {
    border-radius: 8px !important;
  }

  .ota-input-wrapper>input[type="date"] {
    border-radius: 8px !important;
  }

  /* Filters Toggle Button for Mobile */
  .ota-filters-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgb(var(--success));
    color: rgb(var(--background));
    border: 2px solid rgb(var(--success));
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }

  .ota-filters-toggle-btn:hover {
    opacity: 0.9;
  }

  .ota-filters-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
  }

  .ota-filters-sidebar {
    position: static !important;
    display: none !important;
    margin-bottom: 16px;
  }

  .ota-filters-sidebar.ota-filters-active {
    display: block !important;
  }

  .ota-results-layout.ota-filters-open .ota-filters-toggle-btn svg {
    transform: rotate(180deg);
  }

  /* trip card item */

  .ota-trip-card-items {
    padding: 10px;
    gap: 5px !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center;
  }

  /* Left Section: Logo + Operator Info (Stacked Vertically) */
  .ota-trip-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 40% !important;
    flex: 0 0 auto;
  }

  .ota-trip-logo {
    align-self: flex-start;
  }

  .ota-trip-logo img {
    width: 40px;
    height: 40px;
  }

  .ota-trip-operator-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .ota-trip-operator-name {
    font-size: 14px !important;
    font-weight: 700;
    margin-bottom: 4px !important;
  }

  .ota-trip-operator-meta {
    flex-direction: column !important;
    gap: 4px !important;
  }

  .ota-trip-vehicle-badge {
    padding: 2px 6px !important;
    font-size: 10px !important;
    width: fit-content;
  }

  .ota-trip-depart-info {
    display: none !important;
  }

  /* Middle Section: Time + Duration (Stacked Vertically with Center Align) */
  .ota-trip-middle {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    flex: 1;
    min-width: 0;
  }

  .ota-trip-middle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgb(var(--muted));
    transform: translateX(-50%);
    z-index: 0;
  }

  .ota-trip-time {
    position: relative;
    z-index: 1;
    background: rgb(var(--background));
    font-size: 20px !important;
    font-weight: 700;
  }

  .ota-trip-duration-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
  }

  .ota-trip-duration-line {
    display: none;
  }

  .ota-trip-duration-text {
    position: relative;
    background: rgb(var(--background));
    padding: 0 6px;
    font-size: 11px !important;
    color: rgb(var(--muted));
    z-index: 2;
  }

  /* Right Section: Price + Action (Stacked Vertically, Right Aligned) */
  .ota-trip-right {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 0 0 auto;
  }

  .ota-trip-price-section {
    text-align: right !important;
    width: 100%;
  }

  .ota-trip-price {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 0 !important;
    white-space: nowrap;
  }

  .ota-trip-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
    margin-top: 4px;
    white-space: nowrap;
  }

  .ota-trip-badge .ota-icon-svg {
    width: 11px !important;
    height: 11px !important;
  }

  .ota-trip-depart-info .ota-icon-svg {
    width: 13px !important;
    height: 13px !important;
  }


  .ota-trip-book-btn {
    text-decoration: none !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  /* Also style route-view cards */
  .ota-trip-card-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    max-width: none !important;
    width: auto !important;
    flex: 0 0 auto;
  }

  .ota-trip-card-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .ota-trip-card-vehicle-badge {
    padding: 2px 6px !important;
    font-size: 10px !important;
  }

  .ota-trip-card-depart-info {
    display: none !important;
  }

  .ota-trip-card-middle {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    flex: 1;
    text-align: center !important;
  }

  .ota-trip-card-middle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
    z-index: 0;
  }

  .ota-trip-card-time {
    position: relative;
    z-index: 1;
    background: rgb(var(--background));
    font-size: 20px !important;
    font-weight: 700;
  }

  .ota-trip-card-duration-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }

  .ota-trip-card-duration-label {
    position: relative;
    background: rgb(var(--background));
    padding: 0 6px;
    font-size: 11px !important;
    color: rgb(var(--muted));
    z-index: 2;
  }

  .ota-trip-card-right {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    flex: 0 0 auto;
  }

  .ota-trip-card-price {
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {}

/* ========================================
   Modern Results UI (moved from shortcode inline CSS)
   Source: ota-booking-email/includes/shortcodes.php (former lines ~520-1016)
   Scope: Only affects results markup/classes
   ======================================== */

.ota-results-modern {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

.ota-results-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.ota-results-title {
  /* display: flex; */
  /* flex-direction: column; */
  /* gap: 4px; */
}

.ota-results-route {
  font-size: var(--ota-font-3xl);
  font-weight: var(--ota-font-bold);
  color: rgb(var(--foreground));
}

.ota-results-date {
  color: rgb(var(--muted));
  font-size: var(--ota-font-sm);
}

.ota-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--primary) / 0.08);
  color: rgb(var(--foreground));
  font-size: var(--ota-font-xs);
  border: 1px solid rgba(var(--primary) / 0.18);
}

.ota-vehicle-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ota-vehicle-tab {
  padding: 10px 14px;
  border-radius: var(--ota-radius-md);
  border: 1px solid rgba(var(--border) / 0.9);
  background: rgb(var(--background));
  cursor: pointer;
  font-weight: var(--ota-font-semibold);
  color: rgb(var(--foreground));
  font-size: var(--ota-font-sm);
}

.ota-vehicle-tab.is-active {
  border-color: rgba(var(--primary) / 0.5);
  color: rgb(var(--primary));
  background: rgba(var(--primary) / 0.1);
}

.ota-trip-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ota-trip-card-modern {
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-lg);
  overflow: hidden;
  background: rgb(var(--background));
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 240px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ota-trip-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15), 0 4px 8px rgba(15, 23, 42, 0.1);
  border-color: rgba(var(--primary) / 0.3);
}

.ota-card-media {
  position: relative;
  overflow: hidden;
  background: rgba(var(--surface) / 1);
}

/* Slider inside search card */
.ota-search-card-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--ota-radius-lg) 0 0 var(--ota-radius-lg);
  background: rgba(var(--border) / 0.4);
  height: 100%;
  display: block;
}

.ota-search-card-gallery .ota-hero-gallery-slider-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
  height: 100%;
}

.ota-search-card-gallery .ota-hero-gallery-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: block;
  height: 100%;
}

.ota-search-card-gallery .ota-hero-gallery-slide-item {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.ota-search-card-gallery .ota-hero-img-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ota-card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nav arrows for search card slider */
.ota-search-card-gallery .ota-hero-gallery-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--background) / 0.95);
  border: 1px solid rgba(var(--border) / 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.ota-search-card-gallery .ota-hero-gallery-slider-nav--prev {
  left: 10px;
}

.ota-search-card-gallery .ota-hero-gallery-slider-nav--next {
  right: 10px;
}

.ota-search-card-gallery .ota-hero-gallery-slider-nav svg {
  width: 18px;
  height: 18px;
  color: rgb(var(--foreground));
  stroke: currentColor;
}

.ota-search-card-gallery .ota-hero-gallery-slider-nav:hover {
  background: rgb(var(--background));
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  transform: translateY(-50%) scale(1.05);
}

.ota-search-card-gallery .ota-hero-gallery-slider-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.ota-search-card-gallery .ota-hero-gallery-slider-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dots position inside card slider */
.ota-search-card-gallery .ota-hero-gallery-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}

.ota-search-card-gallery .ota-hero-gallery-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(var(--background) / 0.55);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.ota-search-card-gallery .ota-hero-gallery-slider-dot.active {
  background: rgb(var(--background));
  width: 18px;
}

.ota-card-tagline {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.65);
  color: rgb(var(--background));
  padding: 6px 10px;
  border-radius: var(--ota-radius-md);
  font-size: var(--ota-font-xs);
}

.ota-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ota-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ota-operator {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ota-operator-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--ota-radius-md);
  border: 1px solid rgba(var(--border) / 0.9);
}

.ota-operator-name {
  font-weight: var(--ota-font-bold);
  color: rgb(var(--foreground));
}

.ota-operator-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ota-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--ota-radius-md);
  font-size: var(--ota-font-xs);
  border: 1px solid transparent;
}

.ota-badge-primary {
  background: rgba(var(--primary) / 0.12);
  color: rgb(var(--primary));
  border-color: rgba(var(--primary) / 0.25);
}

.ota-badge-ghost {
  background: rgba(var(--surface) / 1);
  color: rgb(var(--muted));
  border-color: rgba(var(--border) / 0.9);
}

.ota-times {
  text-align: right;
  min-width: 140px;
}

.ota-time-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: var(--ota-font-lg);
  font-weight: var(--ota-font-bold);
  color: rgb(var(--foreground));
}

.ota-time-sep {
  color: rgb(var(--muted));
  font-weight: var(--ota-font-semibold);
}

.ota-duration {
  font-size: var(--ota-font-sm);
  color: rgb(var(--muted));
  margin-top: 2px;
}

.ota-route-label {
  font-size: var(--ota-font-sm);
  color: rgb(var(--muted));
  margin-top: 2px;
}

.ota-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ota-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ota-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ota-price-label {
  color: rgb(var(--muted));
  font-size: var(--ota-font-xs);
}

.ota-price-value {
  font-size: var(--ota-font-2xl);
  font-weight: var(--ota-font-extrabold);
  color: rgb(var(--foreground));
}

.ota-price-note {
  color: rgb(var(--primary));
  font-size: var(--ota-font-xs);
  font-weight: var(--ota-font-semibold);
}

.ota-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ota-primary-btn,
.ota-secondary-btn {
  border-radius: var(--ota-radius-md);
  padding: 10px 14px;
  font-weight: var(--ota-font-bold);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ota-primary-btn {
  background: rgb(var(--primary));
  color: rgb(var(--background));
  border-color: rgba(var(--primary) / 0.9);
}

.ota-primary-btn:hover {
  background: rgb(var(--secondary));
}

.ota-cta-shake {
  animation: ota-cta-shake 0.8s ease-in-out 1.8s 2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@keyframes ota-cta-shake {
  0%,
  100% {
    transform: translateX(0);
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    border-color: rgba(var(--border) / 0.9);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
    background: rgba(var(--primary) / 0.12);
    border-color: rgba(var(--primary) / 0.35);
    color: rgb(var(--primary));
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
    background: rgba(var(--primary) / 0.08);
    border-color: rgba(var(--primary) / 0.25);
    color: rgb(var(--foreground));
  }
}

.ota-secondary-btn {
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  border-color: rgba(var(--border) / 0.9);
}

.ota-secondary-btn:hover {
  border-color: rgba(var(--primary) / 0.4);
}

/* Time modal */
.ota-time-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.ota-time-modal[hidden] {
  display: none;
}

.ota-time-modal:not([hidden]) {
  display: flex;
}

.ota-time-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ota-time-modal-dialog {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 16px;
  background: rgb(var(--background));
  border-radius: var(--ota-radius-lg);
  padding: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.ota-time-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ota-close-btn {
  border: none;
  background: rgba(var(--surface) / 1);
  border-radius: var(--ota-radius-md);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: var(--ota-font-bold);
  color: rgb(var(--foreground));
}

.ota-time-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.ota-time-row-item {
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-md);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.ota-time-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #111;
}

.ota-time-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ota-price-pill {
  display: inline-flex;
  padding: 4px 8px;
  background: rgba(var(--primary) / 0.12);
  color: rgb(var(--primary));
  border-radius: var(--ota-radius-md);
  font-weight: var(--ota-font-bold);
  border: 1px solid rgba(var(--primary) / 0.25);
}

.ota-operator-route {
  color: rgb(var(--muted));
  font-size: var(--ota-font-sm);
}

.ota-empty-message {
  padding: 24px;
  text-align: center;
  color: rgb(var(--muted));
  background: rgb(var(--background));
  border: 1px solid rgba(var(--border) / 0.9);
  border-radius: var(--ota-radius-lg);
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .ota-trip-card-modern {
    grid-template-columns: 1fr;
  }

  .ota-card-media {
    height: 220px;
  }

  .ota-card-body {
    padding: 14px;
  }
}

@media (max-width: 720px) {
  .ota-results-header-modern {
    flex-direction: column;
    align-items: flex-start;
  }

  .ota-times {
    text-align: left;
  }

  .ota-card-head {
    flex-direction: column;
  }

  .ota-card-actions {
    width: 100%;
  }

  .ota-card-actions a,
  .ota-card-actions button {
    flex: 1;
    text-align: center;
  }

  .ota-time-row-item {
    grid-template-columns: 1fr;
  }
}