/* Home transfer search — matches hotel / flight / package widgets */
.ths-wrap {
    --ths-accent: #2563eb;
    --ths-accent-hover: #1d4ed8;
    --ths-highlight: #3b82f6;
    --ths-border: #e2e8f0;
    --ths-radius: 0.875rem;
}

.ths-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--ths-highlight);
}

.ths-heading i { color: #7c3aed; }

.ths-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
    max-width: 44rem;
    line-height: 1.5;
}

.ths-search-card {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border: 1px solid var(--ths-border);
    border-radius: calc(var(--ths-radius) + 0.15rem);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--ths-highlight);
}

@media (min-width: 640px) {
    .ths-search-card { padding: 1.15rem 1.25rem; }
}

.ths-validation {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
}

.ths-validation.is-visible { display: flex; }

.ths-trip-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.ths-trip-pill {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.ths-trip-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ths-trip-pill span {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.15s ease;
}

.ths-trip-pill input:checked + span {
    background: var(--ths-accent);
    border-color: var(--ths-accent);
    color: #fff;
}

.ths-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .ths-grid--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ths-grid--secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .ths-grid--primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ths-grid--secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ths-grid--secondary { margin-top: 0.75rem; }

.ths-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.35rem;
}

.ths-req { color: #ef4444; }
.ths-field-icon { color: var(--ths-accent); font-size: 0.8rem; width: 1rem; text-align: center; }

.ths-field input,
.ths-field select,
.ths-field .ths-passenger-btn {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-size: 0.95rem;
    background: #fff;
}

.ths-field input:focus,
.ths-field select:focus,
.ths-field .ths-passenger-btn:focus {
    outline: none;
    border-color: var(--ths-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.ths-field.is-invalid input,
.ths-field.is-invalid select,
.ths-field.is-invalid .ths-passenger-btn {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.ths-field--relative { position: relative; z-index: 5; }
.ths-passenger-btn { text-align: left; cursor: pointer; }

.ths-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    max-height: 14rem;
    overflow-y: auto;
    z-index: 9999;
}

.ths-suggest.hidden { display: none; }

.ths-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    cursor: pointer;
}

.ths-suggest-item:hover,
.ths-suggest-item.is-active { background: #eff6ff; }

.ths-suggest-name { display: block; font-weight: 600; color: #0f172a; font-size: 0.9rem; }
.ths-suggest-meta { display: block; font-size: 0.75rem; color: #64748b; margin-top: 0.1rem; }
.ths-suggest-empty { padding: 0.85rem 1rem; text-align: center; color: #64748b; font-size: 0.85rem; }

.ths-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.ths-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
}

.ths-summary-pill.hidden { display: none; }

.ths-submit-row { margin-top: 0.85rem; }

.ths-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ths-accent) 0%, #1e40af 100%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ths-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.ths-popular { margin-top: 1rem; }

.ths-popular-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.ths-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.ths-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ths-chip:hover { border-color: var(--ths-accent); color: var(--ths-accent-hover); background: #eff6ff; }
.ths-chip.is-active { background: var(--ths-accent); border-color: var(--ths-accent); color: #fff; }
