/* ================================================
   SEARCH PAGE — Design moderne & épuré
   Utilise les variables CSS du système global
   ================================================ */

/* --- Layout principal --- */
.search-page {
    min-height: 100vh;
    background: var(--gray-50, #f8fafc);
}

/* ================================================
   HERO SECTION
   ================================================ */
.search-hero {
    position: relative;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 60%, #6D28D9 100%);
    overflow: hidden;
    padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
    .search-hero { padding: 4rem 0 5rem; }
}

/* Shapes décoratifs */
.search-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.search-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.search-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.search-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.search-hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.search-hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   FORMULAIRE DE RECHERCHE
   ================================================ */
.search-form-card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.3);
    padding: 1.5rem;
    margin: 0 0.5rem;
}

@media (min-width: 768px) {
    .search-form-card { padding: 2rem; margin: 0; }
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .search-form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .search-form-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.sf-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sf-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-label i {
    color: #4F46E5;
    width: 14px;
    text-align: center;
}

.sf-input,
.sf-select {
    width: 100%;
    padding: 0.7rem 0.875rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
    line-height: 1.4;
}

.sf-input:focus,
.sf-select:focus {
    outline: none;
    border-color: #4F46E5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.sf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.search-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .search-form-actions { flex-wrap: nowrap; }
}

.btn-search-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 48px;
    white-space: nowrap;
}

.btn-search-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}

.btn-search-primary:active { transform: translateY(0); }

/* Modificateur : bouton en largeur automatique (ex: CTA "no results") */
.btn-inline {
    width: auto;
    display: inline-flex;
}

.btn-search-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    min-height: 48px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-search-outline:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    position: relative;
}

.stat-pill + .stat-pill::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; bottom: 25%;
    width: 1px;
    background: #e2e8f0;
}

.stat-pill-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: #4F46E5;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-pill-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* ================================================
   MAIN CONTENT (filters + results)
   ================================================ */
.search-body {
    padding: 1.5rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .search-body {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        align-items: start;
    }
}

/* ================================================
   PANNEAU FILTRES
   ================================================ */
.filters-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    /* Mobile: masqué, devient un drawer */
    display: none;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.filters-panel.open {
    transform: translateX(0);
    display: block;
}

@media (min-width: 1024px) {
    .filters-panel {
        display: block;
        position: sticky;
        top: 1.5rem;
        transform: none;
        box-shadow: none;
        overflow-y: visible;
    }
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
}

.filters-title i { color: #4F46E5; }

.filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.filters-close:hover { background: #e2e8f0; color: #1e293b; }

@media (min-width: 1024px) { .filters-close { display: none; } }

.filters-body {
    padding: 1rem 1.25rem 1.25rem;
}

.filter-group {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-of-type { border-bottom: none; }

.filter-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    display: none;
}

.filter-radio-mark,
.filter-check-mark {
    width: 18px; height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.filter-check-mark {
    border-radius: 5px;
}

.filter-option input:checked + .filter-radio-mark,
.filter-option input:checked + .filter-check-mark {
    background: #4F46E5;
    border-color: #4F46E5;
}

.filter-option input:checked + .filter-radio-mark::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
}

.filter-option input:checked + .filter-check-mark::after {
    content: '';
    position: absolute;
    top: 1px; left: 5px;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

.filter-option-text {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.4;
}

/* Icône devant le libellé d'une option de filtre (transport, services) */
.filter-option-icon {
    color: #4F46E5;
    margin-right: 4px;
}

/* Icône étoile dans le libellé du filtre note */
.filter-option-star {
    color: #f59e0b;
    font-size: 0.7em;
}

.filter-option-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.125rem 0.5rem;
    border-radius: 99px;
}

/* Price range slider */
.price-range-wrap {
    padding: 0.25rem 0 0.5rem;
}

.price-range-input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #4F46E5 0%, #4F46E5 var(--val, 100%), #e2e8f0 var(--val, 100%), #e2e8f0 100%);
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #4F46E5;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.price-range-display strong {
    color: #4F46E5;
    font-weight: 700;
}

.custom-date-input {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.2s;
    min-height: 40px;
}

.custom-date-input:focus {
    outline: none;
    border-color: #4F46E5;
    background: #fff;
}

/* État initial masqué (basculé en JS via style.display au changement de filtre) */
.custom-date-input.is-hidden {
    display: none;
}

/* Filter actions */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.btn-filter-clear {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-filter-clear:hover { background: #e2e8f0; color: #334155; }

.btn-filter-apply {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #4F46E5;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-filter-apply:hover { background: #4338CA; }

/* ================================================
   ZONE RÉSULTATS
   ================================================ */
.results-area { min-width: 0; }

/* Barre résultats */
.results-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .results-topbar { flex-wrap: nowrap; }
}

.results-meta { flex: 1 1 100%; min-width: 0; }

@media (min-width: 640px) {
    .results-meta { flex: 1 1 0%; }
}

.results-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Icône devant le titre de la zone résultats (recherche / liste) */
.results-heading-icon {
    color: #4F46E5;
    font-size: 1rem;
}

.results-count-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4F46E5;
    background: #eef2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    white-space: nowrap;
}

.results-summary {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.results-summary span { white-space: nowrap; }
.results-summary .sep { color: #cbd5e1; }

/* Bouton filtre mobile */
.btn-mobile-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-mobile-filter:hover { background: #f8fafc; }

@media (min-width: 1024px) { .btn-mobile-filter { display: none; } }

/* Tri */
.sort-select {
    width: auto !important;
    flex-shrink: 0;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s;
    min-height: 38px;
}

.sort-select:focus { outline: none; border-color: #4F46E5; }

/* ================================================
   TRIP CARDS
   ================================================ */
.trips-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.trip-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    animation: fadeInUp 0.5s ease both;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}

/* Stagger animation delays */
.trip-card:nth-child(1) { animation-delay: 0.05s; }
.trip-card:nth-child(2) { animation-delay: 0.1s; }
.trip-card:nth-child(3) { animation-delay: 0.15s; }
.trip-card:nth-child(4) { animation-delay: 0.2s; }
.trip-card:nth-child(5) { animation-delay: 0.25s; }
.trip-card:nth-child(6) { animation-delay: 0.3s; }

.trip-card-inner {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .trip-card-inner { padding: 1.25rem; }
}

/* Route */
.trip-route-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.trip-city {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trip-country {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.trip-route-arrow {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    color: #cbd5e1;
}

.trip-route-arrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4F46E5;
    flex-shrink: 0;
}

.trip-route-arrow .line {
    width: 32px; height: 2px;
    background: linear-gradient(to right, #4F46E5, #7C3AED);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .trip-route-arrow .line { width: 48px; }
}

.trip-route-arrow .plane {
    font-size: 0.875rem;
    color: #7C3AED;
    flex-shrink: 0;
}

.trip-verified-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    white-space: nowrap;
    align-self: flex-start;
}

/* Info row (date / poids / prix) */
.trip-info-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trip-info-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #475569;
}

.trip-info-chip i {
    width: 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
}

.trip-price-highlight {
    font-weight: 700;
    color: #4F46E5;
}

/* GP info */
.trip-gp-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.trip-gp-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    overflow: hidden;
}

.trip-gp-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.trip-gp-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color 0.15s;
}

.trip-gp-name:hover { color: #4F46E5; }

.trip-gp-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #f59e0b;
    margin-top: 1px;
}

.trip-gp-rating span {
    color: #94a3b8;
    font-size: 0.7rem;
}

/* Étoile non remplie (note du transporteur) */
.trip-gp-rating i.fa-light {
    opacity: 0.3;
}

/* Autres tarifs (Maritime) */
.trip-other-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
}

.trip-other-prices i {
    color: #0891b2;
    font-size: 0.7rem;
}

.trip-price-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #0891b2;
}

/* Services tags */
.trip-services-row {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4F46E5;
    background: #eef2ff;
    border-radius: 0.375rem;
    white-space: nowrap;
}

/* Footer de card */
.trip-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .trip-card-footer { flex-wrap: nowrap; }
}

/* Barre de capacité */
.capacity-section { flex: 1; min-width: 120px; }

.capacity-track {
    height: 5px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(to right, #10B981, #059669);
    border-radius: 99px;
    transition: width 0.6s ease;
}

.capacity-fill.low { background: linear-gradient(to right, #f59e0b, #d97706); }
.capacity-fill.critical { background: linear-gradient(to right, #ef4444, #dc2626); }

.capacity-label {
    font-size: 0.7rem;
    color: #64748b;
}

/* Actions */
.trip-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-trip-detail {
    align-items: center;
    gap: 0.375rem;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff !important;
    background: #4F46E5;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    min-height: 38px;
}

.btn-trip-detail:hover { background: #4338CA; transform: translateY(-1px); color: #fff; }

.btn-trip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-trip-icon.whatsapp {
    background: #dcfce7;
    color: #16a34a;
}

.btn-trip-icon.whatsapp:hover { background: #bbf7d0; }

.btn-trip-icon.favorite {
    background: #fef2f2;
    color: #f87171;
}

.btn-trip-icon.favorite:hover,
.btn-trip-icon.favorite.active {
    background: #fee2e2;
    color: #ef4444;
}

/* ================================================
   ÉTAT VIDE
   ================================================ */
.no-results-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 3.5rem 2rem;
    text-align: center;
}

.no-results-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #818cf8;
    margin: 0 auto 1.25rem;
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.no-results-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.page-btn:hover { background: #f8fafc; border-color: #c7d2fe; color: #4F46E5; }

.page-btn.active {
    background: #4F46E5;
    border-color: #4F46E5;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================================================
   OVERLAY FILTRES (MOBILE)
   ================================================ */
.filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

.filters-overlay.active { display: block; }

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
