/* ==========================================
   TRANSFERISE PREMIUM SEARCH BOX
   Corporate Booking Widget (FINAL)
========================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --tr-primary: #1e40af; /* Corporate Blue */
  --tr-primary-hover: #1d4ed8;
  --tr-bg: #ffffff;
  --tr-border: #e5e7eb;
  --tr-muted: #6b7280;
  --tr-text: #111827;
  --tr-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  --tr-radius: 16px;
  --tr-font: "Inter", sans-serif;
}

/* ==========================================
   MAIN WRAPPER
========================================== */

.tr-search-wrapper {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  font-family: var(--tr-font);
}

/* ==========================================
   TOP ROW (Toggle + Passenger)
========================================== */

.tr-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

/* Trip Toggle */
.tr-trip-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: var(--tr-radius);
  padding: 5px;
  overflow: hidden;
}

.tr-trip-btn {
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--tr-text);
  transition: 0.2s;
}

.tr-trip-btn.active {
  background: var(--tr-primary);
  color: white;
}

.tr-trip-btn:hover {
  background: rgba(30, 64, 175, 0.12);
}

/* Passenger Box */
.tr-passenger-box {
  position: relative;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 12px 18px;
  cursor: pointer;
  min-width: 220px;
  box-shadow: var(--tr-shadow);
}

#tr-passenger-toggle {
  font-weight: 600;
  font-size: 14px;
  color: var(--tr-text);
}

#tr-passenger-summary {
  color: var(--tr-muted);
  font-weight: 500;
  margin-left: 6px;
}

/* Passenger Dropdown */
.tr-passenger-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 260px;
  background: white;
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow);
  border: 1px solid var(--tr-border);
  padding: 14px;
  z-index: 999999;
}

.tr-passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.tr-passenger-row:last-child {
  border-bottom: none;
}

.tr-minus,
.tr-plus {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  background: #f3f4f6;
  transition: 0.2s;
}

.tr-minus:hover,
.tr-plus:hover {
  background: rgba(30, 64, 175, 0.15);
}

#tr-passenger-apply {
  width: 100%;
  margin-top: 14px;
  border: none;
  background: var(--tr-primary);
  color: white;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}

#tr-passenger-apply:hover {
  background: var(--tr-primary-hover);
}

/* ==========================================
   MAIN SEARCH BAR
========================================== */

/* ✅ FIX: overflow hidden kaldırıldı */
.tr-main-row {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow);

  overflow: visible !important; /* 🔥 AUTOCOMPLETE FIX */

  border: 1px solid var(--tr-border);
}

/* Each Field */
.tr-field {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid var(--tr-border);
  position: relative;

  overflow: visible !important; /* 🔥 AUTOCOMPLETE FIX */
}

.tr-field:last-child {
  border-right: none;
}

/* Label */
.tr-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-muted);
  margin-bottom: 6px;
}

/* Inputs */
.tr-field input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--tr-text);
  background: transparent;
}

/* Date + Time */
.tr-field input[type="date"],
.tr-field input[type="time"] {
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================
   SEARCH BUTTON (FULL FIT RIGHT)
========================================== */

.tr-search-btn {
  flex: 0 0 170px;
  background: var(--tr-primary);
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-search-btn:hover {
  background: var(--tr-primary-hover);
}

/* ==========================================
   AUTOCOMPLETE DROPDOWN (FIXED WORKING)
========================================== */

.tr-autocomplete-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  background: white;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.14);

  border: 1px solid var(--tr-border);

  max-height: 260px;
  overflow-y: auto;

  display: none;

  z-index: 9999999; /* 🔥 daha güçlü */
}

/* ACTIVE SHOW */
.tr-autocomplete-results.active {
  display: block !important;
}

.tr-suggest-item {
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.15s;
  border-bottom: 1px solid #f1f5f9;
}

.tr-suggest-item:hover {
  background: rgba(30, 64, 175, 0.08);
}

.tr-suggest-item strong {
  font-size: 14px;
  color: var(--tr-text);
  display: block;
}

.tr-suggest-item small {
  display: block;
  font-size: 12px;
  color: var(--tr-muted);
}

/* Scrollbar */
.tr-autocomplete-results::-webkit-scrollbar {
  width: 6px;
}
.tr-autocomplete-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* ==========================================
   RESPONSIVE (MOBILE PERFECT)
========================================== */

@media (max-width: 980px) {
  .tr-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tr-main-row {
    flex-direction: column;
  }

  .tr-field {
    border-right: none;
    border-bottom: 1px solid var(--tr-border);
  }

  .tr-field:last-child {
    border-bottom: none;
  }

  .tr-search-btn {
    width: 100%;
    flex: unset;
    padding: 18px;
  }
  
}
 /* ==========================================
   TRANSFERISE RESULTS – PREMIUM UI
========================================== */

.tr-results-wrapper {
  max-width: 1320px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "Inter", sans-serif;
}

/* GRID LAYOUT */
.tr-results-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* ==========================================
   LEFT SUMMARY PANEL
========================================== */

.tr-summary-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.06);
  border: 1px solid #edf0f5;
  position: sticky;
  top: 40px;
}

.tr-summary-panel h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111827;
}

.tr-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #6b7280;
}

.tr-summary-row strong {
  color: #111827;
  font-weight: 600;
}

.tr-summary-panel hr {
  border: none;
  height: 1px;
  background: #eef1f6;
  margin: 20px 0;
}

/* MAP */

#tr-map {
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 25px;
  border: 1px solid #e5e7eb;
}

#tr-distance-info {
  margin-top: 14px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 600;
  color: #1e40af;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

/* ==========================================
   VEHICLE LIST PANEL
========================================== */

.tr-vehicles-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* VEHICLE CARD */

.tr-vehicle-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  border: 1px solid #edf0f5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.tr-vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

.tr-vehicle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tr-vehicle-img {
  width: 150px;
  height: 85px;
  object-fit: contain;
}

/* INFO */

.tr-vehicle-info {
  flex: 1;
}

.tr-vehicle-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.tr-vehicle-info p {
  font-size: 13px;
  color: #6b7280;
}

/* PRICE */

.tr-vehicle-price {
  text-align: right;
  min-width: 140px;
}

.tr-vehicle-price strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

/* SELECT BUTTON */

.tr-select-btn {
  margin-top: 12px;
  padding: 11px 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tr-select-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-2px);
}

/* ==========================================
   EXTRAS UNDER VEHICLE
========================================== */

.tr-extras-wrapper {
  margin-top: 25px;
  padding: 22px;
  background: #f9fafb;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.tr-extras-wrapper h4 {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

/* EXTRA ROW */

.tr-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.tr-extra-row span {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

/* INPUT */

.tr-extra-input {
  width: 70px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 14px;
}

.tr-extra-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* TOTAL ROW */

.tr-total-row {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.tr-total-row strong {
  color: #111827;
  font-size: 18px;
}

/* BOOK BUTTON */

.tr-book-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #111827;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tr-book-btn:hover {
  background: linear-gradient(135deg, #eab308, #f59e0b);
  transform: translateY(-2px);
}

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

@media (max-width: 1100px) {

  .tr-results-grid {
    grid-template-columns: 1fr;
  }

  .tr-summary-panel {
    position: relative;
    top: 0;
  }

}

@media (max-width: 768px) {

  .tr-vehicle-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .tr-vehicle-price {
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }

  .tr-select-btn {
    width: 100%;
  }

}

.tr-selected-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

.tr-selected-img {
  width: 70px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.tr-summary-row.total strong {
  font-size: 20px;
  color: #111827;
}

.tr-info-box {
  background: #facc15;
  border-radius: 16px;
  padding: 14px;
  margin-top: 20px;
}

.tr-info-box p {
  font-size: 12px;
  margin: 6px 0 0;
  opacity: 0.8;
}

.tr-include-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.tr-include-box h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.tr-include-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tr-include-box li {
  font-size: 13px;
  margin-bottom: 6px;
  color: #374151;
}
.sum-extra-item {
  font-size: 13px;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 500;
}

/* ==========================================
   STEP PROGRESS BAR
========================================== */

.tr-step-bar {
  max-width: 950px;
  margin: 0 auto 35px auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 14px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.tr-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  position: relative;
}

.tr-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* DONE STEP */
.tr-step.done {
  color: #16a34a;
}

.tr-step.done .dot {
  background: #16a34a;
}

/* ACTIVE STEP */
.tr-step.active {
  color: #facc15;
}

.tr-step.active .dot {
  background: #facc15;
  box-shadow: 0 0 0 6px rgba(250,204,21,0.25);
}

/* MOBILE */
@media (max-width: 700px) {
  .tr-step-bar {
    flex-direction: column;
    gap: 12px;
    border-radius: 20px;
  }
}

.tr-checkout-wrapper {
  max-width: 1250px;
  margin: 50px auto;
  font-family: "Inter", sans-serif;
}

/* STEP BAR */
.tr-step-bar {
  display: flex;
  gap: 15px;
  background: #f3f4f6;
  padding: 12px 18px;
  border-radius: 40px;
  margin-bottom: 40px;
}

.tr-step-bar .step {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  background: #e5e7eb;
  color: #6b7280;
}

.tr-step-bar .step.done {
  background: #dcfce7;
  color: #16a34a;
}

.tr-step-bar .step.active {
  background: #fde68a;
  color: #92400e;
}

/* GRID */
.tr-checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 35px;
}

/* CARDS */
.tr-card {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.tr-card h3 {
  margin-bottom: 20px;
}

/* FORM */
.tr-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.tr-form-row input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
}

.tr-full-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
}

/* FLIGHT BOX */
.tr-flight-box {
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.tr-flight-box.outbound {
  background: #fff7ed;
}

.tr-flight-box.return {
  background: #eff6ff;
}

/* RIGHT SUMMARY */
.tr-summary-card {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: sticky;
  top: 40px;
}

.tr-summary-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.tr-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0;
}

.tr-final-book-btn {
  width: 100%;
  padding: 14px;
  background: #facc15;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.tr-final-book-btn:hover {
  background: #eab308;
}

/* MOBILE */
@media (max-width: 980px) {
  .tr-checkout-grid {
    grid-template-columns: 1fr;
  }

}

/* =================================
WRAPPER
================================= */

.tr-voucher-wrapper{
  max-width:920px;
  margin:40px auto;
  padding:0 20px;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:#1f2937;
}


/* =================================
CARD
================================= */

.tr-voucher-card{
  background:#ffffff;
  border:1px solid #d6dde6;
  border-radius:14px;
  overflow:hidden;

  box-shadow:0 6px 16px rgba(0,0,0,0.05);
}


/* =================================
HEADER
================================= */

.tr-voucher-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;

  padding:24px 26px;

  background:#f7f9fc;
  border-bottom:1px solid #d6dde6;
}


/* LOGO */

.tr-logo h2{
  margin:0;
  font-size:26px;
  font-weight:800;
  letter-spacing:-0.02em;
}

.tr-logo p{
  margin:6px 0 0;
  font-size:13px;
  color:#6b7280;
}


/* BOOKING CODE */

.tr-booking-code{
  text-align:right;
  padding:12px 16px;

  border:1px solid #d6dde6;
  border-radius:10px;

  background:#ffffff;
}

.tr-booking-code strong{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:4px;
  letter-spacing:0.05em;
}

#vo-booking-id{
  font-size:18px;
  font-weight:700;
  letter-spacing:0.04em;
}


/* =================================
BODY
================================= */

.tr-voucher-body{
  padding:26px;
}


/* =================================
GRID
================================= */

.tr-voucher-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}


/* =================================
BLOCK
================================= */

.tr-voucher-block{
  border:1px solid #d6dde6;
  border-radius:10px;
  overflow:hidden;
  background:#ffffff;
}

.tr-voucher-block h3{
  margin:0;
  padding:10px 14px;

  font-size:14px;
  font-weight:700;

  background:#f4f6f9;
  border-bottom:1px solid #d6dde6;
}


/* =================================
ROWS
================================= */

.tr-row{
  display:flex;
  justify-content:space-between;

  padding:9px 14px;

  border-bottom:1px solid #edf1f6;

  font-size:13px;
}

.tr-row:last-child{
  border-bottom:none;
}

.tr-row span{
  color:#6b7280;
  width:45%;
}

.tr-row strong{
  width:55%;
  text-align:right;
  font-weight:600;
}


/* =================================
TOTAL
================================= */

.tr-row.total{
  background:#f9fafb;
  font-weight:700;
}

.tr-row.total strong{
  font-size:16px;
  color:#111827;
}


/* =================================
SUPPORT
================================= */

.tr-contact-box{
  margin-top:22px;
  padding-top:14px;

  border-top:1px solid #d6dde6;

  font-size:13px;
  line-height:1.6;
}

.tr-contact-box a{
  color:#111827;
  text-decoration:none;
}

.tr-contact-box a:hover{
  text-decoration:underline;
}


/* =================================
BUTTONS
================================= */

.tr-voucher-actions{
  margin-top:24px;
  display:flex;
  gap:10px;
}


/* PRINT BUTTON */

.tr-print-btn{
  appearance:none;
  border:none;

  padding:10px 18px;

  font-size:13px;
  font-weight:600;

  border-radius:8px;

  background:#111827;
  color:#ffffff;

  cursor:pointer;

  transition:all .2s ease;
}

.tr-print-btn:hover{
  background:#000000;
}


/* HOME BUTTON */

.tr-home-btn{
  appearance:none;
  border:1px solid #d6dde6;

  padding:10px 18px;

  font-size:13px;
  font-weight:600;

  border-radius:8px;

  background:#ffffff;
  color:#111827;

  cursor:pointer;

  transition:all .2s ease;
}

.tr-home-btn:hover{
  background:#f3f4f6;
}


/* =================================
STATUS BADGE
================================= */

#vo-payment,
#vo-status{
  display:inline-block;

  padding:4px 10px;

  font-size:12px;
  font-weight:600;

  border-radius:6px;

  background:#ecfdf5;
  color:#047857;
}


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

@media (max-width:720px){

  .tr-voucher-header{
    flex-direction:column;
    gap:12px;
  }

  .tr-booking-code{
    text-align:left;
  }

  .tr-voucher-grid{
    grid-template-columns:1fr;
  }

  .tr-row{
    flex-direction:column;
    gap:4px;
  }

  .tr-row strong{
    text-align:left;
  }

  .tr-voucher-actions{
    flex-direction:column;
  }

}


/* =================================
PRINT
================================= */

@media print{

  body{
    background:#fff;
  }

  .tr-voucher-wrapper{
    max-width:100%;
    margin:0;
    padding:0;
  }

  .tr-voucher-actions{
    display:none;
  }

  .tr-voucher-card{
    box-shadow:none;
  }

}