/* ============================================
   STYLES PAGE ACTIVITY/CATEGORY_ACTIVITIES
   Liste des activités par catégorie
   ============================================ */

.breadcrumb-container-top {
    padding-top: 0.5rem;
}

.breadcrumb-container-top .breadcrumb {
    margin-bottom: 1rem;
    padding: 0;
}

.activity-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
}

.activity-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem 0;
}

.activity-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.activity-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #667eea;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.activity-hero-title h1 {
    margin: 0;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.activities-total {
    margin: 0.5rem 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.activity-detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.activity-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.activity-detail-title h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #2d3748;
}

/* ============================================
   SUBCATEGORIES SECTION
   ============================================ */

.subcategories-list-section {
    margin-bottom: 3rem;
}

.subcategories-list-section h2 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
}

.subcategories-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.subcategory-list-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcategory-list-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.subcategory-list-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.subcategory-list-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subcategory-list-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.subcategory-list-content {
    flex: 1;
}

.subcategory-list-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #2d3748;
}

.subcategory-list-content p {
    margin: 0;
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
}

.subcategory-list-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
}

.subcategory-list-stats .stat-item strong {
    color: #2d3748;
    font-weight: 600;
}

.subcategory-list-stats .stat-separator {
    color: #a0aec0;
    font-weight: 400;
}

.subcategory-list-meta {
    display: flex;
    justify-content: flex-start;
}

.activities-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   ACTIVITIES LISTING SECTION
   ============================================ */

.activities-listing-section {
    margin-bottom: 3rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 3rem calc(50vw - 50%);
    background: white;
}

.activities-listing-section h2 {
    margin-bottom: 2rem;
    color: #2d3748;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.activity-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.activity-card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-category-badge,
.activity-port-badge,
.activity-providers-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.activity-category-badge {
    background: #f0f4ff;
    color: #667eea;
}

.activity-port-badge {
    background: #f0fdf4;
    color: #059669;
}

.activity-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-providers-badge {
    background: #fff4ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.activity-card-content h3 {
    margin: 0 0 0.75rem 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.activity-card-content p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.activity-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.activity-info i {
    color: #667eea;
}

.activity-card .link-arrow {
    margin-top: auto;
    margin-bottom: 0;
    align-self: flex-start;
}

.activity-card .btn {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: none;
}

.activity-card .btn:hover {
    background: #667eea;
    color: white;
}

.no-activities {
    text-align: center;
    padding: 3rem;
    background: #f7fafc;
    border-radius: 12px;
}

.no-activities p {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

.back-to-category {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

/* ============================================
   FILTERS SECTION
   ============================================ */

.filters-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.filters-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.filters-form {
    width: 100%;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.filter-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.filter-select,
.filter-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.filter-actions .btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    box-shadow: none;
    border-width: 2px;
}

/* ============================================
   AUTOCOMPLETE
   ============================================ */

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-suggestions.active {
    display: block;
}

.autocomplete-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background: #f7fafc;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.pagination-info {
    text-align: center;
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.activity-category-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-number:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

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

@media (max-width: 768px) {
    .filters-section {
        overflow: visible;
    }

    .filter-group {
        position: static;
    }

    .autocomplete-suggestions {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        max-height: 50vh;
        z-index: 9999;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .activity-hero {
        height: 300px;
    }

    .activity-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .activity-hero-title h1 {
        font-size: 2rem;
    }

    .activity-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .activity-detail-title h1 {
        font-size: 1.8rem;
    }

    .subcategories-list-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
}