/* ─── WRAPPER ───────────────────────────────────────────────── */
.stf-wrap {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
}

.stf-inner {
    display: flex;
    gap: 32px;
}

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.stf-sidebar {
    width: 280px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 18px 24px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.stf-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #111827;
}

.stf-filter-group {
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
}

.stf-filter-group:first-of-type {
    border-top: none;
}

.stf-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
}

/* ─── DAYS SLIDER ───────────────────────────────────────────── */
#stf-days-slider {
    margin: 10px 6px 8px;
}

.stf-days-values {
    font-size: 13px;
    color: #4b5563;
}

/* ─── CHECKBOX ROWS ─────────────────────────────────────────── */
.stf-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
    cursor: pointer;
}

.stf-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0ea5e9;
}

/* ─── CLEAR BUTTON ──────────────────────────────────────────── */
.stf-clear-btn {
    margin-top: 12px;
    width: 100%;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.stf-clear-btn:hover {
    background: #e5e7eb;
    text-decoration: none !important;
}

/* ─── RESULTS AREA ──────────────────────────────────────────── */
.stf-results {
    flex: 1;
    min-width: 0;
}

.stf-results-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.stf-results-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.stf-results-count {
    font-size: 13px;
    color: #6b7280;
}

/* ─── GRID ──────────────────────────────────────────────────── */
.stf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

/* ─── TOUR CARD ─────────────────────────────────────────────── */
.stf-tour-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stf-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    border-color: #0ea5e9;
}

/* ─── CARD IMAGE ────────────────────────────────────────────── */
.stf-tour-thumb {
    display: block;
    width: 100%;
    padding-top: 62%;
    background-size: cover;
    background-position: center center;
    text-decoration: none !important;
    outline: none;
}

/* ─── CARD BODY ─────────────────────────────────────────────── */
.stf-tour-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─── BADGES ROW ────────────────────────────────────────────── */
.stf-tour-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Destination badge with location pin */
.stf-destination-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none !important;
}

.stf-destination-badge::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d4ed8'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* Trip type badge */
.stf-triptype-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #f0fdf4;
    color: #15803d;
    text-decoration: none !important;
}

/* ─── CARD TITLE ────────────────────────────────────────────── */
.stf-tour-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.stf-tour-title a {
    color: #111827;
    text-decoration: none !important;
}

.stf-tour-title a:hover {
    color: #0ea5e9;
    text-decoration: none !important;
}

/* ─── CARD EXCERPT ──────────────────────────────────────────── */
.stf-tour-excerpt {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ─── META ROW ──────────────────────────────────────────────── */
.stf-tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.stf-meta-item {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none !important;
}

.stf-days::before {
    content: "⏱ ";
}

.stf-price {
    background: #ecfdf5;
    color: #047857;
    font-weight: 500;
}

.stf-trip-type {
    background: #eef2ff;
    color: #3730a3;
}

/* ─── VIEW DETAILS BUTTON ───────────────────────────────────── */
.stf-btn,
.stf-btn:link,
.stf-btn:visited,
.stf-btn:active {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    border: none;
    cursor: pointer;
}

.stf-btn:hover,
.stf-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
    text-decoration: none !important;
    color: #ffffff !important;
    outline: none;
}

/* ─── LOADING / STATES ──────────────────────────────────────── */
.stf-loading,
.stf-no-results,
.stf-error,
.stf-no-terms {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    padding: 40px 12px;
}

/* ─── LOAD MORE ─────────────────────────────────────────────── */
.stf-load-more-wrap {
    margin-top: 22px;
    text-align: center;
}

.stf-load-more-btn,
.stf-load-more-btn:link,
.stf-load-more-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 28px;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #111827;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.stf-load-more-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #ffffff !important;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .stf-inner {
        flex-direction: column;
    }
    .stf-sidebar {
        position: static;
        width: 100%;
        display: block;
    }
    .stf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stf-grid {
        grid-template-columns: 1fr;
    }
    .stf-tour-badges {
        flex-direction: column;
        align-items: flex-start;
    }
}
