/* VIP Transfer Widget CSS - v1.0.2 */
:root {
  --vt-primary: #E53935;
  --vt-primary-dark: #C62828;
  --vt-secondary: #1A1A2E;
  --vt-green: #2E7D32;
  --vt-border: #e0e0e0;
  --vt-bg: #fff;
  --vt-bg-soft: #f8f9fa;
  --vt-text: #1a1a1a;
  --vt-muted: #757575;
  --vt-radius: 12px;
  --vt-shadow: 0 2px 20px rgba(0,0,0,.08);
  --vt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#vt-widget * { box-sizing: border-box; }
#vt-widget { font-family: var(--vt-font); color: var(--vt-text); max-width: 100%; }

/* ===== STEPS ===== */
.vt-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 4px;
}
.vt-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bbb;
  font-size: 14px;
  white-space: nowrap;
}
.vt-step.active { color: var(--vt-text); font-weight: 600; }
.vt-step__num {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.vt-step.active .vt-step__num { border-color: var(--vt-primary); color: var(--vt-primary); }
.vt-step.done .vt-step__num { background: var(--vt-primary); border-color: var(--vt-primary); color: #fff; }
.vt-step-line { flex: 1; height: 1px; background: #e0e0e0; margin: 0 8px; min-width: 20px; }

/* ===== SEARCH BOX ===== */
.vt-search-box {
  background: var(--vt-bg);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  border: 1px solid #f0f0f0;
}
.vt-tabs {
  display: flex;
  border-bottom: 1px solid var(--vt-border);
  padding: 0 16px;
}
.vt-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 20px;
  border: none; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--vt-muted);
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.vt-tab.active { color: var(--vt-text); border-bottom-color: var(--vt-text); }
.vt-tab:hover { color: var(--vt-text); }
.vt-tab svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== FIELDS ROW ===== */
.vt-fields {
  display: flex;
  align-items: stretch;
  padding: 0;
  min-height: 90px;
}

/* Each field column */
.vt-field-col {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--vt-border);
}
.vt-field-col:last-child { border-right: none; }
.vt-field-col--small { flex: 0 0 auto; min-width: 160px; }
.vt-field-col--search { flex: 0 0 auto; padding: 14px 16px; border-right: none; }

.vt-field-icon { flex-shrink: 0; margin-right: 10px; }
.vt-field-icon svg { width: 22px; height: 22px; display: block; }
.vt-field-icon--red svg { stroke: var(--vt-primary); }
.vt-field-icon--blue svg { stroke: #1976D2; }
.vt-field-icon--gray svg { stroke: #E53935; }

.vt-field-inner { flex: 1; min-width: 0; }
.vt-field-label {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--vt-muted); margin-bottom: 4px;
  text-transform: uppercase;
}
.vt-field-input {
  width: 100%; border: none; outline: none;
  font-size: 14px; color: var(--vt-text);
  background: transparent; padding: 0;
  font-family: var(--vt-font);
}
.vt-field-input::placeholder { color: #c0c0c0; }

/* Date input — override browser styling */
input[type="datetime-local"].vt-field-input {
  font-size: 14px;
  color: var(--vt-text);
  cursor: pointer;
  /* hide native calendar icon on some browsers */
  -webkit-appearance: none;
  appearance: none;
}
input[type="datetime-local"].vt-field-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0; top: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  cursor: pointer;
}

/* Swap button — absolute positioned between from/to */
.vt-swap-btn {
  position: absolute;
  right: -18px; top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: var(--vt-bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.vt-swap-btn:hover { background: #f5f5f5; border-color: #999; }
.vt-swap-btn svg { width: 16px; height: 16px; stroke: #555; }

/* Toggle row */
.vt-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.vt-toggle-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--vt-muted); }
.vt-toggle { display: flex; align-items: center; }
.vt-toggle input { display: none; }
.vt-toggle__slider {
  width: 40px; height: 22px; background: #ddd;
  border-radius: 11px; position: relative; cursor: pointer; transition: background .2s;
}
.vt-toggle__slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.vt-toggle input:checked + .vt-toggle__slider { background: var(--vt-primary); }
.vt-toggle input:checked + .vt-toggle__slider::after { left: 21px; }

/* Passenger counter */
.vt-pax-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--vt-muted); margin-bottom: 6px; }
.vt-pax-row { display: flex; align-items: center; gap: 10px; }
.vt-pax-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--vt-border); background: none;
  cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--vt-text); transition: background .15s;
}
.vt-pax-btn:hover { background: #f5f5f5; }
.vt-pax-count { font-size: 16px; font-weight: 700; min-width: 20px; text-align: center; }

/* Search button */
.vt-btn-search {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  background: var(--vt-primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .2s;
  height: 100%;
}
.vt-btn-search:hover { background: var(--vt-primary-dark); }
.vt-btn-search svg { width: 18px; height: 18px; stroke: #fff; flex-shrink: 0; }

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.vt-ac-wrap {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 99999;
}
.vt-autocomplete {
  background: var(--vt-bg);
  border: 1px solid var(--vt-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.vt-autocomplete.open { display: block; }
.vt-ac-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: flex-start; gap: 10px;
}
.vt-ac-item:last-child { border-bottom: none; }
.vt-ac-item:hover, .vt-ac-item.highlighted { background: var(--vt-bg-soft); }
.vt-ac-icon { font-size: 15px; flex-shrink: 0; padding-top: 1px; }
.vt-ac-name { font-weight: 600; color: var(--vt-text); }
.vt-ac-addr { color: var(--vt-muted); font-size: 12px; margin-top: 1px; }
.vt-ac-loading { padding: 12px 16px; color: var(--vt-muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* ===== LAYOUT ===== */
.vt-layout { display: flex; gap: 24px; margin-top: 24px; align-items: flex-start; }
.vt-vehicles-list { flex: 1; min-width: 0; }
.vt-sidebar {
  width: 290px; flex-shrink: 0;
  background: var(--vt-bg);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  border: 1px solid #f0f0f0;
  padding: 20px;
  position: sticky; top: 20px;
}
.vt-sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--vt-border); }
.vt-sidebar__header h3 { margin: 0; font-size: 15px; font-weight: 700; }
.vt-edit-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--vt-primary);
  cursor: pointer; font-size: 13px; font-weight: 600; padding: 0;
}
.vt-edit-btn svg { width: 13px; height: 13px; stroke: var(--vt-primary); }
.vt-detail-row { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.vt-detail-row:last-child { border-bottom: none; }
.vt-detail-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--vt-muted); font-weight: 700; margin-bottom: 2px; }
.vt-detail-value { font-size: 13px; font-weight: 600; color: var(--vt-text); }
.vt-detail-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.vt-detail-meta-row { display: flex; justify-content: space-between; font-size: 13px; }
.vt-detail-meta-row span:first-child { color: var(--vt-muted); }
.vt-detail-meta-row span:last-child { font-weight: 700; }

/* ===== VEHICLE CARD ===== */
.vt-vehicle-card {
  display: flex; gap: 0;
  background: var(--vt-bg);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
  overflow: hidden;
}
.vt-vehicle-img {
  width: 240px; flex-shrink: 0;
  background: #f0f0f0; overflow: hidden;
}
.vt-vehicle-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-vehicle-img .vt-no-img {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #ddd;
}
.vt-vehicle-body { flex: 1; padding: 22px; min-width: 0; }

.vt-vehicle-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.vt-vehicle-name { font-size: 20px; font-weight: 700; }
.vt-vehicle-caps { display: flex; gap: 14px; color: var(--vt-muted); font-size: 13px; }
.vt-vehicle-caps span { display: flex; align-items: center; gap: 5px; }
.vt-vehicle-caps svg { width: 14px; height: 14px; flex-shrink: 0; }
.vt-vehicle-underline { width: 36px; height: 2px; background: var(--vt-primary); margin-bottom: 14px; }

/* Features */
.vt-features { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.vt-feature {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--vt-muted);
  cursor: help; position: relative;
  white-space: nowrap;
}
.vt-feature:hover { color: var(--vt-text); }
.vt-feature svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Pricing */
.vt-roundtrip-note { font-size: 11px; color: var(--vt-primary); font-weight: 700; margin-bottom: 8px; }
.vt-pricing { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vt-price-block {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px; min-width: 90px;
  border: 1.5px solid var(--vt-border);
  border-radius: 8px; cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.vt-price-block:hover { border-color: #aaa; }
.vt-price-block.selected { border-color: var(--vt-primary); background: #fff5f5; }
.vt-price-check { color: var(--vt-green); font-size: 15px; margin-bottom: 1px; display: none; }
.vt-price-block.selected .vt-price-check { display: block; }
.vt-price-main { font-size: 17px; font-weight: 700; color: var(--vt-text); }
.vt-price-orig { font-size: 11px; color: #bbb; text-decoration: line-through; }
.vt-price-discount { font-size: 11px; color: var(--vt-green); font-weight: 700; margin-top: 1px; }

.vt-vehicle-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.vt-btn-reserve {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  background: var(--vt-green); color: #fff;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.vt-btn-reserve:hover { background: #1B5E20; }
.vt-btn-reserve svg { stroke: #fff; width: 16px; height: 16px; flex-shrink: 0; }
.vt-btn-reserve:disabled { opacity: .6; cursor: not-allowed; }

/* ===== PASSENGER FORM ===== */
.vt-form-area { flex: 1; min-width: 0; }
.vt-card-form {
  background: var(--vt-bg); border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow); border: 1px solid #f0f0f0;
  padding: 28px;
}
.vt-card-form__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--vt-border);
  color: var(--vt-primary);
}
.vt-card-form__title svg { stroke: var(--vt-primary); width: 20px; height: 20px; }
.vt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-form-group { position: relative; }
.vt-form-group--full { grid-column: 1 / -1; }
.vt-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--vt-border); border-radius: 8px;
  font-size: 13px; outline: none; transition: border-color .2s;
  font-family: var(--vt-font); background: #fafafa; color: var(--vt-text);
}
.vt-input:focus { border-color: #999; background: #fff; }
.vt-input::placeholder { font-size: 11px; letter-spacing: .04em; color: #bbb; font-weight: 600; }
.vt-textarea { resize: vertical; min-height: 80px; }
.vt-required-dot {
  position: absolute; top: 14px; right: 14px;
  width: 6px; height: 6px;
  background: #1976D2; border-radius: 50%;
}
.vt-form-checks { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.vt-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.vt-check input { cursor: pointer; }

/* Complete booking button */
.vt-btn-complete {
  display: flex; align-items: center; gap: 8px;
  padding: 15px 28px; margin-top: 20px;
  background: var(--vt-primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .2s; width: 100%; justify-content: center;
}
.vt-btn-complete:hover { background: var(--vt-primary-dark); }
.vt-btn-complete:disabled { opacity: .6; cursor: not-allowed; }
.vt-btn-complete svg { stroke: #fff; width: 18px; height: 18px; }

/* ===== LOADING ===== */
.vt-loading { display: flex; align-items: center; gap: 12px; padding: 40px; color: var(--vt-muted); font-size: 15px; }
.vt-spinner {
  width: 24px; height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--vt-primary);
  border-radius: 50%;
  animation: vt-spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes vt-spin { to { transform: rotate(360deg); } }

/* ===== TOOLTIP ===== */
.vt-tooltip {
  position: fixed; z-index: 999999;
  background: #1a1a2e; color: #fff;
  border-radius: 8px; padding: 12px 16px;
  max-width: 240px; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  pointer-events: none; font-size: 13px; line-height: 1.5;
}
.vt-tooltip__title { font-weight: 700; margin-bottom: 4px; }
.vt-tooltip__desc { color: #ccc; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .vt-layout { flex-direction: column; }
  .vt-sidebar { width: 100%; position: static; }
  .vt-vehicle-card { flex-direction: column; }
  .vt-vehicle-img { width: 100%; height: 200px; }
  .vt-vehicle-body { padding: 16px; }
  .vt-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .vt-fields { flex-direction: column; }
  .vt-field-col { border-right: none; border-bottom: 1px solid var(--vt-border); }
  .vt-field-col:last-child { border-bottom: none; }
  .vt-field-col--search { padding: 12px 16px; }
  .vt-btn-search { width: 100%; justify-content: center; }
  .vt-swap-btn { display: none; }
  .vt-features { gap: 10px; }
  .vt-feature span { display: none; } /* sadece ikon göster mobilde */
  .vt-pricing { gap: 6px; }
}
