/**
 * Trip Filters Styles - Aligned with Single Product Design
 * GetYourGuide Inspired - Clean, Minimal, Professional
 * 
 * @package Travel_Product_Page_Pro
 */

/* ========================================
   VARIABLES (Same as frontend.css + Theme fonts)
   ======================================== */

:root {
    --tppp-primary: #0066ff;
    --tppp-primary-dark: #0052cc;
    --tppp-success: #00a650;
    --tppp-danger: #d32f2f;
    --tppp-red: #dc2626;
    --tppp-text: #1a202c;
    --tppp-text-light: #4a5568;
    --tppp-text-muted: #718096;
    --tppp-border: #e2e8f0;
    --tppp-bg-light: #f7fafc;
    --tppp-white: #ffffff;
    --tppp-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tppp-font-secondary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base font for filters page */
.tppp-filters-page,
.tppp-filters-container,
.tppp-filters-sidebar,
.tppp-trip-card {
    font-family: var(--tppp-font-primary);
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.tppp-filters-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tppp-filters-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin: 0;
}

/* ========================================
   SIDEBAR FILTERS
   ======================================== */

.tppp-filters-sidebar {
    background: white;
    border: 1px solid var(--tppp-border);
    border-radius: 16px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Sidebar Header */
.tppp-filters-header-sidebar {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fafafa;
}

.tppp-filters-header-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--tppp-text);
    font-family: var(--tppp-font-primary);
}

/* Mobile Filter Toggle */
.tppp-filter-toggle-mobile {
    display: none;
    background: var(--tppp-red);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
    align-items: center;
    transition: all 0.2s;
}

.tppp-filter-toggle-mobile:hover {
    background: #b91c1c;
}

/* Selected Filters Summary */
.tppp-selected-filters {
    padding: 16px 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom: 1px solid #fecaca;
    flex-shrink: 0;
}

.tppp-selected-filters-title {
    font-size: 12px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tppp-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tppp-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.tppp-selected-tag:hover {
    background: #fef2f2;
    border-color: var(--tppp-red);
}

.tppp-selected-tag button,
.tppp-remove-filter-btn {
    background: none;
    border: none;
    color: var(--tppp-red);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    margin-left: 4px;
    transition: all 0.2s;
    font-weight: 700;
}

.tppp-selected-tag button:hover,
.tppp-remove-filter-btn:hover {
    transform: scale(1.3);
    color: #991b1b;
}

/* Scrollable Filters Area */
.tppp-filters-scrollable {
    overflow-y: auto;
    flex: 1;
    padding: 20px 24px 24px;
}

.tppp-filters-scrollable::-webkit-scrollbar {
    width: 6px;
}

.tppp-filters-scrollable::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.tppp-filters-scrollable::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
    transition: background 0.2s;
}

.tppp-filters-scrollable::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.tppp-filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.tppp-filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Collapsible Filter Title */
.tppp-filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--tppp-text);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
    user-select: none;
    font-family: var(--tppp-font-primary);
}

.tppp-filter-title:hover {
    background: #f9fafb;
}

.tppp-filter-title svg:first-child {
    color: var(--tppp-red);
    flex-shrink: 0;
}

.tppp-filter-title span {
    flex: 1;
}

.tppp-chevron {
    transition: transform 0.3s ease;
    color: #9ca3af;
    flex-shrink: 0;
}

.tppp-filter-title.collapsed .tppp-chevron {
    transform: rotate(-90deg);
}

/* Filter Content (collapsible) */
.tppp-filter-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    max-height: 1000px;
    opacity: 1;
    margin-bottom: 0;
}

.tppp-filter-title.collapsed + .tppp-filter-content {
    max-height: 0;
    opacity: 0;
    margin-bottom: -12px;
}

/* Select dropdowns */
/* ========================================
   MODERN SELECT DROPDOWNS
   ======================================== */

.tppp-filter-select,
.tppp-sort-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--tppp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tppp-text);
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    height: auto;
    min-height: 48px;
}

.tppp-filter-select:hover,
.tppp-sort-select:hover {
    border-color: var(--tppp-primary);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    transform: translateY(-1px);
}

.tppp-filter-select:focus,
.tppp-sort-select:focus {
    outline: none;
    border-color: var(--tppp-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1), 0 4px 12px rgba(0, 102, 255, 0.15);
    transform: translateY(-1px);
}

.tppp-filter-select option,
.tppp-sort-select option {
    padding: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: var(--tppp-text);
    background: white;
    border: none;
}

.tppp-filter-select option:hover,
.tppp-sort-select option:hover {
    background: var(--tppp-bg-light);
    color: var(--tppp-primary);
}

/* Special styling for sort select */
.tppp-sort-select {
    min-width: 200px;
    max-width: 250px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--tppp-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 32px; /* Space for arrow */
}

.tppp-sort-select option {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

/* Checkboxes */
.tppp-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tppp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.tppp-checkbox-label:hover {
    background: #f9fafb;
}

.tppp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--tppp-red);
    flex-shrink: 0;
}

.tppp-checkbox-label span {
    flex: 1;
    font-size: 13px;
    color: var(--tppp-text-light);
    font-weight: 500;
    font-family: var(--tppp-font-primary);
}

.tppp-checkbox-label small {
    font-size: 11px;
    color: var(--tppp-text-muted);
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.tppp-checkbox-label input[type="checkbox"]:checked ~ span {
    color: var(--tppp-text);
    font-weight: 600;
}

/* Hidden Options (for Show More/Less) */
.tppp-hidden-option {
    display: none;
}

/* Show More/Less Button */
.tppp-show-more {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: white;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tppp-red);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tppp-show-more:hover {
    background: #fef2f2;
    border-color: var(--tppp-red);
    border-style: solid;
}

/* Reset button */
.tppp-filter-reset {
    margin: 20px 24px 24px;
    width: calc(100% - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tppp-red);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tppp-filter-reset:hover {
    background: linear-gradient(135deg, var(--tppp-red) 0%, #b91c1c 100%);
    border-color: var(--tppp-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.tppp-filter-reset svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   RESULTS AREA
   ======================================== */

.tppp-filters-results {
    min-height: 600px;
}

.tppp-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.tppp-header-left {
    flex: 1;
}

.tppp-filters-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: var(--tppp-text);
    letter-spacing: -0.8px;
    line-height: 1.2;
    font-family: var(--tppp-font-primary);
}

.tppp-header-subtitle {
    font-size: 16px;
    color: var(--tppp-text-muted);
    margin: 0;
    font-weight: 500;
    font-family: var(--tppp-font-primary);
}

.tppp-filters-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tppp-results-count {
    font-size: 15px;
    color: var(--tppp-text-muted);
    font-weight: 500;
}

.tppp-results-count #tppp-count {
    font-weight: 800;
    color: var(--tppp-primary);
    font-size: 18px;
}

/* Enhanced controls styling */
.tppp-filters-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tppp-results-count {
    font-size: 15px;
    color: var(--tppp-text-muted);
    font-weight: 500;
    font-family: var(--tppp-font-primary);
}

.tppp-results-count #tppp-count {
    font-weight: 800;
    color: var(--tppp-primary);
    font-size: 18px;
}

/* Sort select in header - enhanced */
.tppp-filters-controls .tppp-sort-select {
    min-width: 180px;
    max-width: 220px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--tppp-text-light);
    font-family: var(--tppp-font-primary);
    padding-right: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

/* View Mode Toggle (Grid/List Icons) */
.tppp-view-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.tppp-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.tppp-view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.tppp-view-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tppp-view-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}


/* ========================================
   TRIPS GRID - 3 COLUMNS
   ======================================== */

.tppp-trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tppp-trips-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tppp-trips-grid.view-list .tppp-trip-card {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    height: auto;
}

.tppp-trips-grid.view-list .tppp-trip-image-wrapper {
    flex: 0 0 300px;
    max-width: 300px;
    min-width: 300px;
}

.tppp-trips-grid.view-list .tppp-trip-image {
    aspect-ratio: 4/3;
    height: 100%;
}

.tppp-trips-grid.view-list .tppp-trip-content {
    flex: 1;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tppp-trips-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================
   TRIP CARD - ALIGNED WITH SIMILAR PRODUCTS
   ======================================== */

.tppp-trip-card {
    position: relative;
    background: white;
    border: 1px solid var(--tppp-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.tppp-trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--tppp-red);
}

.tppp-trip-image-wrapper {
    position: relative;
}

.tppp-trip-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.tppp-trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.tppp-trip-card:hover .tppp-trip-image img {
    transform: scale(1.08);
}

/* Labels/Tags on Image */
.tppp-trip-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.tppp-trip-label {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--tppp-font-primary);
}

/* Organizer Avatar - Overlapping */
.tppp-trip-organizer-avatar {
    position: absolute;
    bottom: -25px;
    right: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
    z-index: 3;
    transition: transform 0.3s;
    cursor: pointer;
    display: block;
}

.tppp-trip-card:hover .tppp-trip-organizer-avatar {
    transform: scale(1.1);
}

.tppp-trip-organizer-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.tppp-trip-organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Content */
.tppp-trip-content {
    padding: 20px;
    padding-top: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tppp-trip-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--tppp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    font-family: var(--tppp-font-primary);
}

.tppp-trip-card:hover h3 {
    color: var(--tppp-red);
}

/* Departure City - On Image Bottom Left */
.tppp-trip-city-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tppp-trip-city-overlay svg {
    color: #ef4444;
    flex-shrink: 0;
}

/* Rating - On Image Top Right - Design compact */
.tppp-trip-rating-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    font-size: 10px;
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* ========================================
   CLUB GT BADGE - PREMIUM DESIGN
   ======================================== */
.tppp-trip-card .tppp-club-exclusive-badge {
    position: absolute;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    min-width: fit-content;
    /* Premium gradient - Teal/Cyan theme */
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    z-index: 10 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.tppp-trip-card .tppp-club-exclusive-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #ffffff !important;
    margin: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.tppp-trip-card .tppp-club-exclusive-badge span {
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    font-family: var(--tppp-font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.tppp-trip-card .tppp-club-exclusive-badge:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%) !important;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Rating avec design compact quand badge club existe - empilé verticalement */
.tppp-trip-card.tppp-club-exclusive .tppp-trip-rating-overlay {
    top: calc(12px + 40px) !important;
    right: 12px !important;
    left: auto !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 12px !important;
    transform: none !important;
    z-index: 10;
}

.tppp-trip-rating-overlay svg {
    color: #fbbf24; /* Jaune pour étoile */
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}

.tppp-trip-rating-overlay strong {
    color: #1f2937;
    font-weight: 700;
}

.tppp-rating-count {
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    margin-left: 4px;
}

/* Old city style (deprecated - kept for backward compatibility) */
.tppp-trip-city {
    display: none; /* Hidden as city is now on image */
}

/* Old rating style (deprecated - kept for backward compatibility) */
.tppp-trip-rating-block {
    display: none; /* Hidden as rating is now on image */
}

/* Tags (Transport & Activities) */
/* Transport & Activities - Icon Only (Minimalist) */
.tppp-trip-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.tppp-trip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: help;
}

.tppp-trip-icon:hover {
    background: #e2e8f0;
    color: #475569;
    transform: scale(1.1);
}

.tppp-trip-icon svg {
    opacity: 0.8;
}

.tppp-trip-icon.tppp-icon-transport {
    background: #dbeafe;
    color: #2563eb;
}

.tppp-trip-icon.tppp-icon-transport:hover {
    background: #bfdbfe;
    color: #1d4ed8;
}

.tppp-trip-icon.tppp-icon-activity {
    background: #fce7f3;
    color: #ec4899;
}

.tppp-trip-icon.tppp-icon-activity:hover {
    background: #fbcfe8;
    color: #db2777;
}

.tppp-trip-icon.tppp-icon-accommodation {
    background: #dbeafe;
    color: #1e40af;
}

.tppp-trip-icon.tppp-icon-accommodation:hover {
    background: #bfdbfe;
    color: #1e3a8a;
}

.tppp-trip-tag svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.tppp-trip-tag.tag-transport {
    background: #dbeafe;
    color: #1e40af;
}

.tppp-trip-tag.tag-activity {
    background: #dcfce7;
    color: #166534;
}

.tppp-trip-card:hover .tppp-trip-tag {
    transform: translateY(-2px);
}

/* Meta Information */
.tppp-trip-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--tppp-text-muted);
    margin-bottom: 0;
}

/* Glovo-style info line - Hidden on desktop */
.tppp-trip-info-line {
    display: none;
}

.tppp-trip-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.tppp-trip-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--tppp-text-muted);
    flex-shrink: 0;
}

.tppp-trip-difficulty {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.tppp-trip-difficulty[data-level="easy"] {
    background: #d1fae5;
    color: #065f46;
}

.tppp-trip-difficulty[data-level="moderate"] {
    background: #fed7aa;
    color: #92400e;
}

.tppp-trip-difficulty[data-level="challenging"],
.tppp-trip-difficulty[data-level="difficult"] {
    background: #fecaca;
    color: #991b1b;
}

.tppp-trip-difficulty[data-level="expert"] {
    background: #ddd6fe;
    color: #5b21b6;
}

/* Rating - Separate Prominent Block */
.tppp-trip-rating-block {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 12px;
}

.tppp-rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tppp-rating-stars svg {
    color: #fbbf24;
    flex-shrink: 0;
}

.tppp-rating-stars strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    font-family: var(--tppp-font-primary);
}

.tppp-rating-reviews {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Price - Minimaliste & Élégant */
.tppp-trip-price {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tppp-price-label {
    font-size: 11px;
    color: var(--tppp-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--tppp-font-primary);
}

.tppp-trip-price strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--tppp-text);
    line-height: 1.2;
    font-family: var(--tppp-font-primary);
}

.tppp-trip-price strong .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
}

.tppp-trip-price strong .woocommerce-Price-currencySymbol {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
}

/* Loading state */
.tppp-loading {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.tppp-loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #f3f4f6;
    border-top-color: var(--tppp-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tppp-loading p {
    color: var(--tppp-text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* No results */
.tppp-no-results {
    text-align: center;
    padding: 100px 20px;
    grid-column: 1 / -1;
}

.tppp-no-results svg {
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin: 0 auto 24px;
}

.tppp-no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--tppp-text);
    margin: 0 0 12px 0;
}

.tppp-no-results p {
    color: var(--tppp-text-muted);
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Load more button */
#tppp-load-more-container {
    text-align: center;
    margin-top: 48px;
    grid-column: 1 / -1;
}

.tppp-load-more-btn {
    background: linear-gradient(135deg, var(--tppp-red) 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.tppp-load-more-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.3);
}

.tppp-load-more-btn:active {
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1280px) {
    .tppp-trips-grid:not(.view-list) {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .tppp-trips-grid.view-list .tppp-trip-image-wrapper {
        flex: 0 0 250px;
        max-width: 250px;
    }
}

@media (max-width: 1024px) {
    .tppp-filters-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tppp-filters-sidebar {
        position: static;
        max-height: none;
    }
    
    /* Show mobile filter toggle */
    .tppp-filter-toggle-mobile {
        display: inline-flex;
    }
    
    /* Hide filters by default on mobile */
    .tppp-filters-scrollable {
        display: none;
    }
    
    .tppp-filters-sidebar.filters-open .tppp-filters-scrollable {
        display: block;
        max-height: 600px;
    }
    
    .tppp-filters-sidebar.filters-open .tppp-filter-reset {
        display: flex;
    }
    
    .tppp-filter-reset {
        display: none;
    }
    
    .tppp-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .tppp-filters-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .tppp-trips-grid:not(.view-list) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tppp-trips-grid.view-list .tppp-trip-card {
        flex-direction: column;
    }
    
    .tppp-trips-grid.view-list .tppp-trip-image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .tppp-view-mode-toggle {
        order: -1;
    }
}

/* Old mobile styles moved to Glovo section below */

@media (max-width: 480px) {
    .tppp-filters-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tppp-sort-select {
        width: 100%;
    }
}

/* ========================================
   UPCOMING DEPARTURES SECTION
   ======================================== */

.tppp-upcoming-departures-section {
    margin-bottom: 48px;
}

.tppp-section-title-upcoming {
    font-size: 28px;
    font-weight: 700;
    color: var(--tppp-text);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--tppp-primary);
    font-family: var(--tppp-font-primary);
}

.tppp-other-trips-section {
    margin-top: 48px;
}

.tppp-section-title-other {
    font-size: 24px;
    font-weight: 600;
    color: var(--tppp-text-light);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tppp-border);
    font-family: var(--tppp-font-primary);
}

@media (max-width: 768px) {
    .tppp-section-title-upcoming,
    .tppp-section-title-other {
        font-size: 22px;
    }
}

/* ========================================
   GLOVO-STYLE MOBILE DESIGN
   Modern, minimalist cards for mobile
   Structure Glovo avec thème clair
   ======================================== */

@media screen and (max-width: 768px) {
    
    /* ===== PAGE LAYOUT ===== */
    .tppp-filters-page {
        padding: 16px !important;
    }
    
    /* ===== GRID: 2 cards per row ===== */
    .tppp-trips-grid,
    .tppp-trips-grid:not(.view-list) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .tppp-trips-grid.view-list .tppp-trip-card {
        flex-direction: column !important;
    }
    
    .tppp-trips-grid.view-list .tppp-trip-image-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* ===== CARD REDESIGN: Clean, minimal like Glovo ===== */
    .tppp-trip-card {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        height: auto !important;
    }
    
    .tppp-trip-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }
    
    /* ===== IMAGE: Rounded corners ===== */
    .tppp-trip-image-wrapper {
        position: relative !important;
    }
    
    .tppp-trip-image {
        aspect-ratio: 4/3 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .tppp-trip-image img {
        border-radius: 12px !important;
    }
    
    /* ===== HIDE: Organizer avatar ===== */
    .tppp-trip-organizer-avatar {
        display: none !important;
    }
    
    /* ===== HIDE: City overlay, labels, icons ===== */
    .tppp-trip-city-overlay,
    .tppp-trip-labels,
    .tppp-trip-icons {
        display: none !important;
    }
    
    /* ===== RATING: Compact badge on image ===== */
    .tppp-trip-rating-overlay {
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    }
    
    .tppp-trip-rating-overlay svg {
        width: 12px !important;
        height: 12px !important;
        color: #fbbf24 !important;
    }
    
    .tppp-trip-rating-overlay strong {
        color: #1f2937 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    
    .tppp-trip-rating-overlay .tppp-rating-count {
        display: none !important;
    }
    
    /* ===== CLUB BADGE: Red promo style ===== */
    .tppp-trip-card .tppp-club-exclusive-badge {
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        padding: 5px 10px !important;
        font-size: 8px !important;
        font-weight: 700 !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35) !important;
        text-shadow: none !important;
        letter-spacing: 0.3px !important;
    }
    
    .tppp-trip-card .tppp-club-exclusive-badge svg {
        display: none !important;
    }
    
    .tppp-trip-card .tppp-club-exclusive-badge span {
        font-size: 8px !important;
    }
    
    /* ===== CONTENT: Compact, clean ===== */
    .tppp-trip-content {
        padding: 10px 0 !important;
        padding-top: 10px !important;
        background: transparent !important;
    }
    
    /* ===== TITLE: Clean, 2 lines max ===== */
    .tppp-trip-content h3 {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        margin: 0 0 8px 0 !important;
        min-height: auto !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.35 !important;
    }
    
    /* ===== HIDE DESKTOP META & PRICE ===== */
    .tppp-trip-meta-desktop,
    .tppp-trip-price-desktop {
        display: none !important;
    }
    
    /* ===== GLOVO INFO LINE: 👍 95% (12) • 3 jours • 1200 MAD ===== */
    .tppp-trip-info-line {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0 !important;
        font-size: 12px !important;
        color: #6b7280 !important;
        margin-top: 0 !important;
        line-height: 1.5 !important;
    }
    
    .tppp-trip-info-line > span {
        display: inline-flex !important;
        align-items: center !important;
    }
    
    .tppp-trip-info-line > span:not(:last-child)::after {
        content: "•" !important;
        margin: 0 6px !important;
        color: #d1d5db !important;
    }
    
    .tppp-info-rating {
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        color: #10b981 !important;
        font-weight: 600 !important;
    }
    
    .tppp-info-rating svg {
        flex-shrink: 0 !important;
        width: 12px !important;
        height: 12px !important;
    }
    
    .tppp-info-count {
        color: #6b7280 !important;
        font-weight: 400 !important;
        margin-left: 2px !important;
    }
    
    .tppp-info-duration {
        color: #6b7280 !important;
    }
    
    .tppp-info-price {
        color: #6b7280 !important;
        font-weight: 600 !important;
    }
    
    /* ===== HIDE OLD PRICE BLOCK ===== */
    .tppp-trip-price {
        display: none !important;
    }
    
    /* ===== SIDEBAR ===== */
    .tppp-filters-header-sidebar {
        padding: 16px !important;
    }
    
    .tppp-filters-scrollable {
        padding: 16px !important;
    }
    
    .tppp-selected-filters {
        padding: 12px 16px !important;
    }
    
    .tppp-filter-reset {
        margin: 16px !important;
        width: calc(100% - 32px) !important;
    }
    
    /* ===== PAGE HEADER ===== */
    .tppp-filters-header h2 {
        font-size: 22px !important;
        font-weight: 700 !important;
    }
    
    /* ===== SECTION TITLES ===== */
    .tppp-section-title-upcoming,
    .tppp-section-title-other {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
    }
}
