/* ── Trip Finder — light cream background (matches main page) ── */
#trip-finder-screen {
    background: var(--cream, #faf8f4) !important;
}

/* ── Container ── */
.tf-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 5.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
    position: relative;
    z-index: 1;
}

.tf-container h2 {
    color: var(--ink, #1a1714);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 0.3rem;
}

.tf-subtitle {
    color: rgba(26, 23, 20, 0.55);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ── Filter card ── */
.tf-filter-card {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(26, 23, 20, 0.04);
}

.tf-filter-label {
    color: var(--ink, #1a1714);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tf-filter-label .tf-filter-num {
    background: rgba(201, 168, 76, 0.2);
    color: #a88832;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Chip toggles ── */
.tf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-chip {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.tf-chip:hover {
    border-color: var(--terracotta, #c2713a);
    color: var(--terracotta, #c2713a);
}

.tf-chip.active {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
    color: #a88832;
    font-weight: 500;
}

.tf-chip-nopref {
    font-style: italic;
    opacity: 0.7;
}

.tf-chip-nopref.active {
    opacity: 1;
}

/* ── Slider row ── */
.tf-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--warm, #e8e0d4);
    outline: none;
}

.tf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c9a84c;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.tf-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c9a84c;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.tf-slider-value {
    color: #a88832;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 60px;
    text-align: right;
}

.tf-manual-input {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    border-radius: 8px;
    padding: 5px 10px;
    width: 80px;
    font-size: 0.9rem;
    text-align: center;
}

.tf-manual-input:focus {
    outline: none;
    border-color: #c9a84c;
}

.tf-nopref-toggle {
    margin-left: 8px;
}

/* ── Checkbox filter ── */
.tf-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #c9a84c;
    cursor: pointer;
}

.tf-checkbox-label {
    color: rgba(26, 23, 20, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
}

/* ── Passport dropdown ── */
.tf-passport-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tf-passport-select {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 100%;
}

.tf-passport-select option {
    background: #ffffff;
    color: var(--ink, #1a1714);
}

/* ── Find Trips button ── */
.tf-find-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #c9a84c 0%, #a88832 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tf-find-btn:hover {
    opacity: 0.9;
}

.tf-find-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Loading ── */
.tf-loading {
    color: rgba(26, 23, 20, 0.55);
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

/* ── Results header ── */
.tf-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-results-count {
    color: rgba(26, 23, 20, 0.55);
    font-size: 0.9rem;
}

.tf-reset-btn {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.tf-reset-btn:hover {
    background: var(--sand, #f0ece4);
}

/* ── Result cards grid ── */
.tf-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 1.5rem;
}

.tf-result-card {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(26, 23, 20, 0.04);
}

.tf-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-card-country {
    color: var(--ink, #1a1714);
    font-weight: 600;
    font-size: 1.05rem;
}

.tf-card-type-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    vertical-align: middle;
    margin-left: 4px;
}

.tf-card-score {
    background: rgba(201, 168, 76, 0.15);
    color: #a88832;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
}

.tf-card-meta {
    color: rgba(26, 23, 20, 0.45);
    font-size: 0.8rem;
}

.tf-card-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.82rem;
    color: rgba(26, 23, 20, 0.6);
}

.tf-card-total {
    color: #a88832;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 4px;
}

.tf-card-season {
    font-size: 0.8rem;
}

.tf-card-season.best { color: #16a34a; }
.tf-card-season.shoulder { color: #b8962e; }
.tf-card-season.worst { color: #dc2626; }
.tf-card-season.unknown { color: rgba(26, 23, 20, 0.4); }

.tf-card-visa {
    font-size: 0.8rem;
}

.tf-card-visa.visa-free { color: #16a34a; }
.tf-card-visa.evisa { color: #b8962e; }
.tf-card-visa.visa-required { color: #dc2626; }

.tf-card-link {
    color: var(--terracotta, #c2713a);
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 4px;
    font-weight: 500;
}

.tf-card-link:hover {
    text-decoration: underline;
}

.tf-card-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tf-activity-tag {
    background: rgba(201, 168, 76, 0.1);
    color: #a88832;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── Show more ── */
.tf-show-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.tf-show-more-btn:hover {
    background: var(--sand, #f0ece4);
}

/* ── Empty state ── */
.tf-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(26, 23, 20, 0.55);
}

.tf-empty h3 {
    color: var(--ink, #1a1714);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ── Results header actions ── */
.tf-results-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Sort bar ── */
.tf-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.tf-sort-label {
    color: rgba(26, 23, 20, 0.45);
    font-size: 0.85rem;
}

.tf-sort-chip {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tf-sort-chip:hover {
    border-color: var(--terracotta, #c2713a);
}

.tf-sort-chip.active {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
    color: #a88832;
}

/* ── View toggle ── */
.tf-view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.tf-view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: rgba(26, 23, 20, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.tf-view-btn.active {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
    color: #a88832;
}

/* ── Share button ── */
.tf-share-btn {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.tf-share-btn:hover {
    background: var(--sand, #f0ece4);
}

/* ── Card bottom row ── */
.tf-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

/* ── Compare checkbox ── */
.tf-compare-check {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(26, 23, 20, 0.45);
    font-size: 0.78rem;
    cursor: pointer;
}

.tf-compare-input {
    width: 14px;
    height: 14px;
    accent-color: #c9a84c;
    cursor: pointer;
}

/* ── Floating compare button ── */
.tf-compare-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c9a84c 0%, #a88832 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s;
}

.tf-compare-btn:hover {
    opacity: 0.9;
}

/* ── Comparison table ── */
.tf-back-results {
    background: #ffffff;
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.tf-back-results:hover {
    background: var(--sand, #f0ece4);
}

.tf-compare-table {
    display: grid;
    gap: 1px;
    background: var(--warm, #e8e0d4);
    border: 1px solid var(--warm, #e8e0d4);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tf-compare-header {
    background: rgba(201, 168, 76, 0.12);
    color: var(--ink, #1a1714);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 14px;
    text-align: center;
}

.tf-compare-label {
    background: var(--sand, #f0ece4);
    color: rgba(26, 23, 20, 0.55);
    font-size: 0.8rem;
    padding: 10px 14px;
    font-weight: 500;
}

.tf-compare-cell {
    background: #ffffff;
    color: var(--ink, #1a1714);
    font-size: 0.85rem;
    padding: 10px 14px;
    text-align: center;
}

/* ── Map container ── */
.tf-map-container {
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--warm, #e8e0d4);
    margin-bottom: 1.5rem;
}

.tf-map-marker {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #c9a84c;
}

.tf-map-popup {
    font-size: 0.85rem;
    line-height: 1.5;
}

.tf-map-popup a {
    color: #a88832;
    font-weight: 600;
}

#tf-map-container .leaflet-popup-content-wrapper {
    border-radius: 10px;
}

/* ── Quick Start launch button ── */
.tf-qs-launch-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(196,113,74,0.06));
    border: 1px dashed rgba(201,168,76,0.4);
}

.tf-qs-launch-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c9a84c, #e0b86a);
    color: #1a1a18;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.tf-qs-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.5);
}

.tf-qs-launch-sub {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(26,23,20,0.5);
}

/* ── Quick Start overlay ── */
#tf-qs-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(250,248,244,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#tf-qs-overlay.visible { opacity: 1; }

.tf-qs-container {
    max-width: 700px;
    width: 100%;
    padding: 2rem clamp(1rem,4vw,2.5rem);
    text-align: center;
    position: relative;
}

.tf-qs-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem,4vw,2.4rem);
    font-weight: 600;
    color: var(--ink, #1a1714);
    margin-bottom: 0.3rem;
}

.tf-qs-subtitle {
    font-size: 0.95rem;
    color: rgba(26,23,20,0.55);
    margin-bottom: 1.5rem;
}

.tf-qs-skip {
    position: absolute;
    top: 0;
    right: clamp(1rem,4vw,2.5rem);
    background: none;
    border: 1px solid var(--warm, #e8e0d4);
    color: rgba(26,23,20,0.5);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.tf-qs-skip:hover { background: var(--sand, #f0ece4); color: var(--ink, #1a1714); }

/* Progress */
.tf-qs-progress-row { margin-bottom: 1.2rem; }
.tf-qs-progress-text { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(26,23,20,0.5); margin-bottom: 0.5rem; }
.tf-qs-progress-track { width: 100%; height: 5px; border-radius: 999px; background: var(--warm, #e8e0d4); overflow: hidden; }
.tf-qs-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #C9A84C, #E8967A); transition: width 0.3s ease; border-radius: 999px; }

/* Swipe card */
.tf-qs-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin-bottom: 0.5rem;
}

.tf-qs-card {
    width: min(92vw, 680px);
    min-height: 280px;
    border-radius: 20px;
    border: 1px solid var(--warm, #e8e0d4);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(26,23,20,0.08), 0 1px 4px rgba(26,23,20,0.04);
    padding: 2rem 2.4rem 1.8rem;
    position: relative;
    user-select: none;
    touch-action: pan-y;
    cursor: grab;
    text-align: left;
}

.tf-qs-card:active { cursor: grabbing; }

.tf-qs-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C4714A;
    background: rgba(196,113,74,0.1);
    border: 1px solid rgba(196,113,74,0.25);
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
}

.tf-qs-title {
    margin-top: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem,3.8vw,2.5rem);
    line-height: 1.12;
    color: var(--ink, #1a1714);
    font-weight: 600;
}

.tf-qs-sub {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(26,23,20,0.55);
    max-width: 52ch;
}

.tf-qs-hint {
    margin-top: 1.6rem;
    font-size: 0.76rem;
    color: rgba(26,23,20,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* YES/NO badge */
.tf-qs-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    border: 1px solid transparent;
}

.tf-qs-badge.show { opacity: 1; transform: scale(1); }
.tf-qs-badge.yes { color: #15652e; background: rgba(34,197,94,0.14); border-color: rgba(21,101,46,0.28); }
.tf-qs-badge.no { color: #8B2020; background: rgba(220,38,38,0.12); border-color: rgba(139,32,32,0.28); }

/* Action buttons */
.tf-qs-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tf-qs-btn-no, .tf-qs-btn-yes {
    font-family: 'DM Sans', 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tf-qs-btn-no {
    border: 1px solid var(--warm, #e8e0d4);
    color: var(--ink, #1a1714);
    background: #ffffff;
}

.tf-qs-btn-no:hover { background: var(--sand, #f0ece4); transform: translateY(-1px); }

.tf-qs-btn-yes {
    border: none;
    color: #1A1A18;
    background: linear-gradient(135deg, #C9A84C, #E0B86A);
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.tf-qs-btn-yes:hover { background: linear-gradient(135deg, #D4B055, #EAC272); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201,168,76,0.5); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .tf-qs-card { padding: 1.5rem; min-height: 240px; }
    .tf-qs-btn-no, .tf-qs-btn-yes { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .tf-results-grid {
        grid-template-columns: 1fr;
    }
    .tf-slider-row {
        flex-wrap: wrap;
    }
    .tf-passport-select {
        min-width: 160px;
    }
    .tf-map-container {
        height: 350px;
    }
    .tf-compare-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tf-sort-bar {
        gap: 6px;
    }
    .tf-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
