/* Layout */
.tfs-wrapper {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 38px;
    align-items: flex-start;
}

.tfs-filter-toggle {
    display: none;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    gap: 6px;
}

.tfs-filter-toggle-icon {
    font-size: 16px;
}

/* Filter column */
.tfs-filter-column {
    position: relative;
}

.tfs-filter-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.tfs-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tfs-filter-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #004E5A;
}

.tfs-clear-all {
    border: none;
    background: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* Fields */
.tfs-field {
    margin-bottom: 14px;
}

.tfs-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #004E5A;
    margin-bottom: 4px;
}

.tfs-input,
.tfs-native-select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #f9fafb;
    box-sizing: border-box;
}

/* Date range */
.tfs-date-range {
    display: flex;
    gap: 8px;
}

.tfs-date-range > div {
    flex: 1 1 0;
}

.tfs-date-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

/* Custom searchable selects */
.tfs-native-select-hidden {
    display: none !important;
}

.tfs-select-wrapper {
    position: relative;
}

.tfs-select-trigger {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.tfs-select-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
}

.tfs-select-arrow {
    font-size: 12px;
    color: #9ca3af;
}

/* Dropdown */
.tfs-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid #e5e7eb;
    padding: 6px 0 6px 0;
    z-index: 30;
    display: none;
}

.tfs-select-wrapper.tfs-open .tfs-select-dropdown {
    display: block;
}

.tfs-select-search {
    width: calc(100% - 20px);
    margin: 0 10px 6px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    background: #f9fafb;
}

.tfs-select-options {
    list-style: none;
    margin: 0;
    padding: 0 4px 4px;
    max-height: 220px;
    overflow-y: auto;
}

.tfs-select-option {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    color: #111827;
}

.tfs-select-option:hover {
    background: #f3f4ff;
}

.tfs-select-option-active {
    background: #e0e7ff;
    font-weight: 600;
}

/* Cost pills (price-range feel) */
.tfs-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tfs-pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
    cursor: pointer;
    color: #374151;
}

.tfs-pill-active {
    border-color: #6DA34D;
    background: linear-gradient(135deg, #6DA34D, #6DA34D);
    color: #ffffff;
}

/* Actions */
.tfs-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.tfs-submit,
.tfs-reset {
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.tfs-submit {
    background-color:#6da34d;
    color: #ffffff;
}

.tfs-reset {
    background: #519CC5;
    color: #fff;
}

/* Results column */
.tfs-results-column {
    min-width: 0;
}

.tfs-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tfs-loading,
.tfs-no-results,
.tfs-error {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

/* Trip cards – jetsmartish */
.tfs-trip-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    background: #f0f9ff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid #dbeafe;
}

.tfs-trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.tfs-image-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    background: #cbd5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #4b5563;
}

.tfs-trip-main {
    min-width: 0;
}

.tfs-trip-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tfs-trip-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
	color:#004E5A;
}

.tfs-trip-title a {
    color: #111827;
    text-decoration: none;
}

.tfs-trip-title a:hover {
    text-decoration: underline;
}

.tfs-trip-flexible {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 999px;
}

.tfs-trip-difficulty {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.tfs-diff-label {
    color: #6b7280;
}

.tfs-stars {
    display: inline-flex;
    gap: 1px;
}

.tfs-star {
    font-size: 14px;
    color: #e5e7eb;
}

.tfs-star-filled {
    color: #fbbf24;
}

/* Meta grid */
.tfs-trip-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 18px;
    font-size: 13px;
}

.tfs-trip-meta-grid strong {
    font-weight: 600;
    color: #111827;
}

/* Pagination */
.tfs-pagination {
    margin-top: 16px;
}

.tfs-pagination-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tfs-page-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.tfs-page-btn-active {
    background: #6da34d;
    color: #ffffff;
    border-color: #6da34d;
}

/* Responsive */
@media (max-width: 960px) {
    .tfs-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfs-filter-toggle {
        display: inline-flex;
    }

    .tfs-filter-column {
        position: relative;
        display: none;
        z-index: 40;
    }

    .tfs-filter-column.tfs-filter-open {
        display: block;
    }
}

@media (max-width: 768px) {
    .tfs-trip-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfs-trip-image {
        order: -1;
    }

    .tfs-trip-difficulty {
        margin-left: 0;
    }
}

.tfs-field.multiselected {
    margin-bottom: 0px;
}
.tfs-field.multiselected select {
    margin-bottom: 10px;
}
.tfs-field select{ margin-bottom: 10px;}
/* =========================
   Featured trips: 3-up cards 
  
   ========================= */
.tfs-results.tfs-results-featured{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

@media (max-width: 1024px){
  .tfs-results.tfs-results-featured{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .tfs-results.tfs-results-featured{
    grid-template-columns: 1fr;
  }
}

.tfs-results.tfs-results-featured .tfs-trip-card{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px;
  padding: 18px;
  margin: 0 !important;
  height: 100%;
}

/* Featured image area */
.tfs-results.tfs-results-featured .tfs-trip-image{
  width: 100%;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
}
.tfs-results.tfs-results-featured .tfs-trip-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title: clamp so it never pushes layout */
.tfs-results.tfs-results-featured .tfs-trip-title{
  margin: 0;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

/* Header: keep difficulty on same row if possible */
.tfs-results.tfs-results-featured .tfs-trip-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.tfs-results.tfs-results-featured .tfs-trip-difficulty{
  margin-left: 0; /* override main layout pushing it */
  white-space: nowrap;
}

/* Meta: clean single column + clamp long values */
.tfs-results.tfs-results-featured .tfs-trip-meta-grid{
  grid-template-columns: 1fr !important;
  gap: 8px;
  min-width: 0;
}
.tfs-results.tfs-results-featured .tfs-trip-meta-grid > div{
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

/* Optional: clamp only value-heavy rows (Specialty/Partner) */
.tfs-results.tfs-results-featured .tfs-trip-meta-grid > div:nth-child(4),
.tfs-results.tfs-results-featured .tfs-trip-meta-grid > div:nth-child(5){
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 640px){
  .tfs-results.tfs-results-featured .tfs-trip-image{
    height: 200px;
  }
}
