/* ═══════════════════════════════════════════════════════════════
   VibaTrip — Transfer-Suche Styles
   ═══════════════════════════════════════════════════════════════ */

.ts-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  max-width: 920px;
  margin: 24px auto;
}

.ts-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ts-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.ts-field label {
  font-size: 12px;
  font-weight: 600;
  color: #0a1628;
  letter-spacing: 0.3px;
}

.ts-field label .req {
  color: #e8762a;
}

.ts-field input,
.ts-field select {
  padding: 11px 14px;
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #faf8f3;
  color: #0a1628;
  transition: border-color .2s, background .2s;
}
.ts-field input:focus,
.ts-field select:focus {
  outline: none;
  border-color: #D4A017;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212,168,67,.15);
}

.ts-field-row {
  display: flex;
  gap: 8px;
}
.ts-field-row > * { flex: 1; }

.ts-pax-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* Autocomplete-Dropdown */
.ts-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.ts-suggest.open { display: block; }

.ts-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(212,168,67,.1);
  transition: background .15s;
}
.ts-suggest-item:last-child { border-bottom: none; }
.ts-suggest-item:hover,
.ts-suggest-item.active {
  background: rgba(212,168,67,.08);
}

.ts-suggest-ico { font-size: 18px; flex-shrink: 0; }
.ts-suggest-text { flex: 1; min-width: 0; }
.ts-suggest-name {
  font-size: 14px;
  font-weight: 600;
  color: #0a1628;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-suggest-meta {
  font-size: 11.5px;
  color: #8b7a4a;
  margin-top: 1px;
  letter-spacing: 0.4px;
}
.ts-suggest-empty {
  padding: 14px;
  text-align: center;
  color: #888;
  font-size: 13px;
  font-style: italic;
}

/* Return-Toggle */
.ts-return-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #0a1628;
  cursor: pointer;
}
.ts-return-toggle input[type=checkbox] {
  accent-color: #D4A017;
}

/* Submit */
.ts-submit-row {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.ts-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #D4A843, #E8762A);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(212,168,67,.35);
  transition: transform .15s, box-shadow .2s;
}
.ts-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,67,.45);
}

/* ═══════════════════════════════════════════════════════════════
   Ergebnisse
   ═══════════════════════════════════════════════════════════════ */

.ts-results {
  max-width: 920px;
  margin: 28px auto;
}

.ts-loader {
  text-align: center;
  padding: 40px;
  color: #6b5a2e;
}
.ts-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(212,168,67,.2);
  border-top-color: #D4A017;
  border-radius: 50%;
  animation: ts-spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes ts-spin {
  to { transform: rotate(360deg); }
}

.ts-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
}

.ts-empty {
  background: #faf6ed;
  border: 1px solid rgba(212,168,67,.3);
  color: #6b5a2e;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.ts-route-info {
  background: linear-gradient(135deg, #faf6ed, #fff7e0);
  border: 1px solid rgba(212,168,67,.3);
  padding: 16px 22px;
  border-radius: 10px;
  font-size: 15px;
  color: #0a1628;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ts-route-info .ts-arrow {
  color: #D4A017;
  font-weight: 700;
  font-size: 18px;
}
.ts-route-info .ts-route-meta {
  margin-left: auto;
  font-size: 13px;
  color: #8b7a4a;
  font-weight: 500;
}

.ts-quotes-list {
  display: grid;
  gap: 14px;
}

.ts-quote-card {
  background: #fff;
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 12px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ts-quote-card:hover {
  border-color: #D4A017;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,67,.18);
}

.ts-quote-vehicle {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ts-vehicle-icon {
  flex: 0 0 110px !important;
  width: 110px !important;
  height: 75px !important;
  max-width: 110px !important;
  max-height: 75px !important;
  background: linear-gradient(135deg, #f5f0e3, #faf6ed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212,168,67,.2);
  overflow: hidden !important;
  position: relative;
}
.ts-vehicle-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  padding: 8px;
  box-sizing: border-box;
}
.ts-vehicle-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px;
  box-sizing: border-box;
}

.ts-vehicle-info { flex: 1; min-width: 0; }
.ts-vehicle-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #0a1628;
  font-family: 'Playfair Display', serif;
}
.ts-vehicle-meta {
  font-size: 12.5px;
  color: #6b5a2e;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ts-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ts-meta-item svg {
  flex-shrink: 0;
  color: #8b7a4a;
}
.ts-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.ts-badge-private {
  background: rgba(212,168,67,.15);
  color: #8b6508;
  border: 1px solid rgba(212,168,67,.4);
}
.ts-badge-shared {
  background: rgba(34,197,94,.12);
  color: #15803d;
  border: 1px solid rgba(34,197,94,.3);
}
.ts-vehicle-desc {
  font-size: 12.5px;
  color: #555;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-quote-actions {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.ts-quote-price {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0a1628;
  line-height: 1;
  letter-spacing: -0.5px;
}
.ts-quote-price-currency {
  font-size: 16px;
  color: #8b7a4a;
  font-weight: 500;
}
.ts-quote-extras-hint {
  font-size: 11px;
  color: #8b7a4a;
}
.ts-quote-book-btn {
  background: linear-gradient(135deg, #D4A843, #E8762A);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(212,168,67,.3);
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.ts-quote-book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(212,168,67,.4);
}

.ts-disclaimer {
  font-size: 12px;
  color: #8b7a4a;
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .ts-card { padding: 18px; margin: 16px; }
  .ts-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .ts-pax-row { grid-template-columns: 1fr; }

  .ts-quote-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ts-quote-actions {
    text-align: left;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ts-quote-book-btn { padding: 12px 24px; }

  .ts-route-info {
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
  }
  .ts-route-info .ts-route-meta { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Detail-Ansicht (nach Klick auf "Jetzt buchen")
   ═══════════════════════════════════════════════════════════════ */

.ts-detail {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  max-width: 920px;
  margin: 0 auto;
}

.ts-back-btn {
  background: none;
  border: none;
  color: #8b6508;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 0;
  margin-bottom: 18px;
  transition: color .15s;
}
.ts-back-btn:hover { color: #D4A017; }

.ts-detail-header {
  border-bottom: 1px solid rgba(212,168,67,.2);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.ts-detail-vehicle {
  display: flex;
  gap: 18px;
  align-items: center;
}
.ts-vehicle-icon-large {
  flex: 0 0 140px !important;
  width: 140px !important;
  height: 95px !important;
  max-width: 140px !important;
  max-height: 95px !important;
}
.ts-detail-vehicle h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: #0a1628;
  font-weight: 700;
}
.ts-detail-route {
  font-size: 14px;
  color: #6b5a2e;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ts-detail-route .ts-arrow {
  color: #D4A017;
  font-weight: 700;
}
.ts-detail-route-meta {
  margin-left: 6px;
  font-size: 12.5px;
  color: #8b7a4a;
}

.ts-detail-section {
  margin-bottom: 28px;
}
.ts-detail-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin: 0 0 4px;
  color: #0a1628;
  font-weight: 700;
}
.ts-section-hint {
  font-size: 12.5px;
  color: #8b7a4a;
  margin: 0 0 14px;
}

/* Extras-Stepper */
.ts-extras-grid {
  display: grid;
  gap: 10px;
}
.ts-extra-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #faf6ed;
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.ts-extra-row.active {
  border-color: #D4A017;
  background: #fff7e0;
}
.ts-extra-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.ts-extra-info { flex: 1; min-width: 0; }
.ts-extra-label {
  font-size: 14px;
  font-weight: 600;
  color: #0a1628;
}
.ts-extra-desc {
  font-size: 12px;
  color: #6b5a2e;
  margin-top: 2px;
}

.ts-extra-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.ts-step-btn {
  background: none;
  border: none;
  color: #0a1628;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  font-family: inherit;
}
.ts-step-btn:hover { background: rgba(212,168,67,.15); }
.ts-step-value {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #0a1628;
  border-left: 1px solid rgba(212,168,67,.2);
  border-right: 1px solid rgba(212,168,67,.2);
  padding: 6px 0;
}

/* Cross-Selling */
.ts-cross-list {
  display: grid;
  gap: 10px;
}
.ts-cross-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #faf6ed;
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ts-cross-row:hover {
  border-color: rgba(212,168,67,.5);
}
.ts-cross-row:has(input:checked) {
  background: #fff7e0;
  border-color: #D4A017;
}
.ts-cross-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #D4A017;
  flex-shrink: 0;
  cursor: pointer;
}
.ts-cross-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.ts-cross-info { flex: 1; min-width: 0; }
.ts-cross-label {
  font-size: 14px;
  font-weight: 600;
  color: #0a1628;
}
.ts-cross-desc {
  font-size: 12px;
  color: #6b5a2e;
  margin-top: 2px;
  line-height: 1.4;
}
.ts-cross-price {
  font-size: 14px;
  font-weight: 600;
  color: #8b6508;
  flex-shrink: 0;
}

/* Summary */
.ts-detail-summary {
  margin-top: 28px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #faf6ed, #fff7e0);
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 10px;
}
.ts-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
  color: #0a1628;
}
.ts-summary-total {
  border-top: 1px solid rgba(212,168,67,.3);
  margin-top: 8px;
  padding-top: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

/* Final-Buchen-Button */
.ts-final-book-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #D4A843, #E8762A);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(212,168,67,.35);
  transition: transform .15s, box-shadow .2s;
}
.ts-final-book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,67,.45);
}

/* Mobile */
@media (max-width: 720px) {
  .ts-detail { padding: 18px 16px; margin: 16px; }
  .ts-detail-vehicle { flex-direction: column; align-items: flex-start; }
  .ts-vehicle-icon-large { width: 100% !important; height: 140px !important; max-width: 100% !important; }
  .ts-extra-row, .ts-cross-row { flex-wrap: wrap; }
  .ts-detail-route { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ts-detail-route-meta { margin-left: 0; }
}
