/* Yorida Travel Search - clean UI compatible with Venture theme */
:root{
  /* Match the blue style used across Yorida search pages */
  --yorida-brand:#102a56;
  --yorida-brand-dark:#0b2144;
  --yorida-wa:#25D366;
  --yorida-border:#cfd9e6;
  --yorida-muted:#5d6673;
  --yorida-focus:#97b1cf;
}

.yorida-ts { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; }
.yorida-ts .ts-header { text-align: center; margin-bottom: 18px; }
.yorida-ts .ts-header-compact{ margin-bottom: 14px; }
.yorida-ts .ts-title { font-size: 34px; font-weight: 800; margin: 0; line-height: 1.2; color: var(--yorida-brand); }
.yorida-ts .ts-title-compact{ font-size: 28px; }
.yorida-ts .ts-subtitle { margin-top: 8px; color: var(--yorida-muted); font-weight: 600; }
.yorida-ts .ts-card { background: #fff; border: 1px solid var(--yorida-border); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(16,42,86,.06); }
.yorida-ts .ts-card-tight{ margin-top: 14px; }
.yorida-ts .ts-form { margin: 0; }
.yorida-ts .ts-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.yorida-ts .ts-grid-hotels { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 992px) { .yorida-ts .ts-grid, .yorida-ts .ts-grid-hotels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .yorida-ts .ts-grid, .yorida-ts .ts-grid-hotels { grid-template-columns: 1fr; } .yorida-ts .ts-title { font-size: 26px; } }
.yorida-ts .ts-label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--yorida-muted); }
.yorida-ts .ts-input { width: 100%; height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--yorida-border); background: #fff; outline: none; }
.yorida-ts .ts-input:focus { border-color: var(--yorida-focus); box-shadow: 0 0 0 3px rgba(151,177,207,.25); }
.yorida-ts .ts-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 14px; flex-wrap:wrap; }
.yorida-ts .ts-hint{ font-size: 13px; opacity: .75; font-weight: 600; }
.yorida-ts .ts-btn { height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: #111; color: #fff; font-weight: 800; cursor: pointer; text-decoration:none; }
.yorida-ts .ts-btn:hover { opacity: .92; }
.yorida-ts .ts-btn-primary{ background: var(--yorida-brand); color:#fff; }
.yorida-ts .ts-btn-primary:hover{ background: var(--yorida-brand-dark); opacity:1; }
.yorida-ts .ts-btn-wa{ background: var(--yorida-wa); color:#fff; }
.yorida-ts .ts-btn-wa:hover{ opacity:.92; }
.yorida-ts .ts-note { margin-top: 10px; font-size: 13px; opacity: .75; }
.yorida-ts .ts-alert{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:800;
  line-height:1.45;
}
.yorida-ts .ts-alert::before{
  content: "ℹ️";
  flex:0 0 auto;
  font-size:18px;
  line-height:1;
  margin-top:2px;
}
.yorida-ts .ts-alert-danger{
  background: rgba(220, 53, 69, .08);
  border-color: rgba(220, 53, 69, .25);
}
.yorida-ts .ts-alert-danger::before{ content:"⚠️"; }
.yorida-ts .ts-alert-info{
  background: rgba(13, 110, 253, .07);
  border-color: rgba(13, 110, 253, .22);
}

.yorida-ts .ts-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.yorida-ts .ts-table th, .yorida-ts .ts-table td { padding: 12px 10px; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; font-size: 14px; }
.yorida-ts .ts-table thead th{ background: rgba(16,42,86,.06); border-bottom: 1px solid rgba(16,42,86,.18); }
.yorida-ts .ts-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .82; }
.yorida-ts .ts-table tr:hover td{ background: rgba(16,42,86,.04); }
.yorida-ts .ts-strong{ font-weight: 800; }
.yorida-ts .ts-muted{ opacity:.7; font-size: 12px; margin-top:2px; }
.yorida-ts .ts-empty{ margin-top: 14px; text-align:center; opacity:.75; font-weight:600; }
/* --- Autocomplete dropdown (airports/cities) --- */
.yorida-ts .ts-combo{ position:relative; }
.yorida-ts .ts-input-group{ position:relative; display:flex; align-items:center; gap:10px; }
/* Fix: inputs inside flex groups must not be 100% width (otherwise they overflow on mobile) */
.yorida-ts .ts-input-group .ts-input{ width:auto; min-width:0; }
.yorida-ts .ts-input-prefix{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:44px; border-radius:12px;
  border:1px solid var(--yorida-border);
  background: rgba(16,42,86,.06);
  flex:0 0 auto;
}
.yorida-ts .ts-icon{ width:20px; height:20px; fill:#111; opacity:.92; }
.yorida-ts .ts-input-combo{ flex:1 1 auto; }
.yorida-ts .ts-suggest{
  position:absolute; top: calc(100% + 6px); left:0; right:0;
  background:#fff;
  border:1px solid var(--yorida-border);
  border-radius:14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  max-height: 280px;
  overflow:auto;
  z-index: 9999;
  display:none;
}
.yorida-ts .ts-suggest.open{ display:block; }
.yorida-ts .ts-suggest-item{
  width:100%;
  padding:10px 12px;
  background:transparent;
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:start;
}
.yorida-ts .ts-suggest-item:hover{ background: rgba(16,42,86,.05); }
.yorida-ts .ts-suggest-left{ display:flex; align-items:flex-start; gap:10px; min-width:0; }
.yorida-ts .ts-suggest-flag{ font-size:18px; line-height:1; flex:0 0 auto; margin-top:2px; }
.yorida-ts .ts-suggest-text{ min-width:0; }
.yorida-ts .ts-suggest-title{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.yorida-ts .ts-suggest-sub{ font-size:12px; opacity:.72; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.yorida-ts .ts-suggest-code{
  font-weight:900;
  background: rgba(16,42,86,.06);
  color:#111;
  padding:4px 10px;
  border-radius:999px;
  flex:0 0 auto;
}
.yorida-ts .ts-suggest-empty{ padding:10px 12px; opacity:.7; font-weight:700; }

/* --- Popular chips --- */
.yorida-ts .ts-quick{ margin-top:10px; }
.yorida-ts .ts-quick-title{ font-size:12px; font-weight:900; opacity:.75; margin-bottom:6px; }
.yorida-ts .ts-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.yorida-ts .ts-chip{
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  border-radius:999px;
  padding:7px 10px;
  font-weight:800;
  cursor:pointer;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.yorida-ts .ts-chip:hover{ background: rgba(16,42,86,.05); }
@media (max-width: 520px){
  /* Better mobile UX: wrap chips (no horizontal overflow) */
  .yorida-ts .ts-chips{ flex-wrap:wrap; }
  .yorida-ts .ts-chip{ white-space:nowrap; padding:6px 9px; font-size:13px; }
}

/* --- Table mobile UX (cards) --- */
.yorida-ts .ts-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.yorida-ts .ts-btn-wa{ display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
@media (max-width: 820px){
  .yorida-ts .ts-table{ margin-top: 10px; }
  .yorida-ts .ts-table thead{ display:none; }
  .yorida-ts .ts-table, .yorida-ts .ts-table tbody{ display:block; width:100%; }
  .yorida-ts .ts-table tr{ display:block; border:1px solid rgba(0,0,0,.08); border-radius:16px; margin: 12px 0; padding: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.05); }
  .yorida-ts .ts-table td{ display:flex; width:100%; border:0; padding: 8px 0; align-items:flex-start; justify-content:space-between; gap:14px; }
  .yorida-ts .ts-table td::before{ content: attr(data-label); font-weight:900; opacity:.72; flex:0 0 auto; max-width:45%; }
  .yorida-ts .ts-table td:last-child{ padding-top: 12px; }
  .yorida-ts .ts-table td:last-child::before{ content:''; }
  .yorida-ts .ts-table td:last-child a{ width:100%; }
  .yorida-ts .ts-table tr:hover td{ background:transparent; }
  /* RTL alignment */
  .yorida-ts[dir="rtl"] .ts-table td{ flex-direction:row-reverse; }
  .yorida-ts[dir="rtl"] .ts-table td::before{ text-align:right; }
}

/* --- Enhanced search shell / dropdowns / trip selector --- */
.yorida-ts .ts-card-search-shell{
  border-radius:22px;
  padding:20px;
  box-shadow:0 18px 40px rgba(16,42,86,.10);
}
.yorida-ts .ts-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.yorida-ts .ts-trip-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.yorida-ts .ts-toggle-pill{
  height:38px;
  border-radius:999px;
  border:1px solid var(--yorida-border);
  background:#fff;
  color:var(--yorida-brand);
  padding:0 14px;
  font-weight:800;
  cursor:pointer;
  transition:all .2s ease;
}
.yorida-ts .ts-toggle-pill.is-active{
  background:rgba(16,42,86,.08);
  border-color:var(--yorida-focus);
  box-shadow:0 0 0 3px rgba(151,177,207,.16) inset;
}
.yorida-ts .ts-checks{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.yorida-ts .ts-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--yorida-muted);
  cursor:pointer;
}
.yorida-ts .ts-check input{ width:18px; height:18px; }
.yorida-ts .ts-grid-flights-enhanced{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yorida-ts .ts-grid-hotels-enhanced{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yorida-ts .ts-span-2{ grid-column: span 2; }
.yorida-ts .ts-select-wrap{ position:relative; }
.yorida-ts .ts-select{
  appearance:none;
  -webkit-appearance:none;
  padding-inline-end:40px;
  font-weight:700;
  color:#111;
  cursor:pointer;
}
.yorida-ts .ts-select-wrap::after{
  content:'▾';
  position:absolute;
  top:50%;
  inset-inline-end:14px;
  transform:translateY(-50%);
  color:var(--yorida-brand);
  font-size:15px;
  pointer-events:none;
}
.yorida-ts .ts-btn-search{
  min-width:140px;
  font-size:16px;
}
.yorida-ts .ts-field-return.is-hidden{
  display:none;
}
@media (max-width: 1100px){
  .yorida-ts .ts-grid-flights-enhanced,
  .yorida-ts .ts-grid-hotels-enhanced{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yorida-ts .ts-span-2{ grid-column: span 2; }
}
@media (max-width: 620px){
  .yorida-ts .ts-card-search-shell{ padding:16px; border-radius:18px; }
  .yorida-ts .ts-grid-flights-enhanced,
  .yorida-ts .ts-grid-hotels-enhanced{ grid-template-columns: 1fr; }
  .yorida-ts .ts-span-2{ grid-column: span 1; }
  .yorida-ts .ts-toolbar{ align-items:stretch; }
  .yorida-ts .ts-trip-toggle,
  .yorida-ts .ts-checks{ width:100%; }
  .yorida-ts .ts-toggle-pill{ flex:1 1 auto; justify-content:center; }
  .yorida-ts .ts-actions{ justify-content:stretch; }
  .yorida-ts .ts-btn-search{ width:100%; }
}
