/* ============================================
   STYLES PAGE CRUISE/INDEX - LISTE DES CROISIÈRES
   ============================================ */

.cruise-search-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 3rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 200px;
}

.search-hero .container {
    width: 100%;
    transform: translateY(-1rem);
}

.search-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 auto;
    text-align: center;
}

.search-form-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: none;
    margin: -3rem auto 3rem auto;
    max-width: 1400px;
}

.cruise-search-form {
    width: 100%;
}

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

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.search-field label i {
    color: #667eea;
}

.cruise-search-page .form-control {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    height: 42px;
    box-sizing: border-box;
}

.cruise-search-page .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-actions {
    display: flex;
    gap: 0.5rem;
}


.btn-icon-only {
    padding: 0.75rem;
    min-width: auto;
    aspect-ratio: 1;
}

.btn-icon-only i {
    margin: 0;
}

.search-results {
    padding: 2rem 0;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h2 {
    color: #2d3748;
    margin: 0;
}

.cruise-search-page .cruises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.cruise-search-page .cruise-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cruise-search-page .cruise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.cruise-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cruise-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cruise-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    opacity: 0.3;
}

.cruise-search-page .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-featured {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.badge-bestseller {
    background: rgba(251, 191, 36, 0.9);
    color: #78350f;
}

.cruise-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.cruise-card-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.25rem;
    line-height: 1.3;
}

.cruise-card-ship {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.95rem;
}

.cruise-card-ship i {
    color: #667eea;
}

.company-name {
    color: #a0aec0;
    font-size: 0.9rem;
}

.cruise-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.info-item i {
    color: #667eea;
    flex-shrink: 0;
}

.cruise-card-itinerary {
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4a5568;
}

.cruise-card-itinerary strong {
    color: #2d3748;
}

.cruise-card-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cruise-card-departures {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.departure-date {
    font-weight: 700;
    color: #059669;
}

.additional-dates {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 400;
}

.cruise-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f7fafc;
    margin-top: auto;
}

.cruise-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.price-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.price-per {
    font-size: 0.8rem;
    color: #a0aec0;
}

.cruise-search-page .btn-outline {
    padding: 0.5rem 1rem;
    border: 0.5px solid rgba(102, 126, 234, 0.4);
    color: #667eea;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.15);
}

.cruise-search-page .btn-outline:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.cruise-card-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.cruise-card-partners small {
    color: #a0aec0;
}

.partner-badge {
    background: #f0f4ff;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.partner-badge:hover {
    background: #667eea;
    color: white;
}

.partner-more {
    color: #a0aec0;
}

/* New Partner Prices Section */
.cruise-card-partners-new {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.partners-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.partners-header i {
    color: #667eea;
    font-size: 0.9rem;
}

.partners-header small {
    color: #718096;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partners-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.partner-compact-item:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.partner-compact-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-compact-price {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    flex-shrink: 0;
}

.partner-compact-item i {
    color: #a0aec0;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.partner-compact-item:hover i {
    transform: translateX(3px);
    color: #667eea;
}

.partner-compact-grouped {
    background: #f0f4ff;
    border-color: #c7d2fe;
}

.partner-compact-grouped:hover {
    background: #e0e7ff;
    border-color: #667eea;
}

.partner-compact-grouped .partner-compact-name {
    color: #667eea;
}

.partners-more {
    text-align: center;
    font-size: 0.8rem;
    color: #a0aec0;
    padding: 0.4rem;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
}

.no-results i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.no-results p {
    color: #718096;
    margin: 0 0 2rem 0;
}

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

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.pagination .active span,
.pagination .current {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.pagination li.current span {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .previous a,
.pagination .next a {
    font-weight: 600;
}

/* ============================================
   PRICE TREND INDICATORS
   ============================================ */

.price-trend-up,
.price-trend-down,
.price-trend-same {
    font-size: 1.1rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.price-trend-up {
    color: #dc2626;
}

.price-trend-down {
    color: #16a34a;
}

.price-trend-same {
    color: #2563eb;
}

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

@media (max-width: 1200px) {
    .search-row {
        grid-template-columns: 1fr 1fr;
    }

    .search-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .search-hero {
        padding-top: 5rem;
    }

    .cruise-search-page ~ .user-account-bar,
    body:has(.cruise-search-page) .user-account-bar {
        top: 120px;
    }

    .cruise-search-page ~ .user-account-bar.sticky-scrolled,
    body:has(.cruise-search-page) .user-account-bar.sticky-scrolled {
        top: 20px;
    }

    .cruise-search-page ~ .share-bar,
    body:has(.cruise-search-page) .share-bar {
        top: -35px;
    }

    .cruise-search-page ~ .share-bar.sticky-scrolled,
    body:has(.cruise-search-page) .share-bar.sticky-scrolled {
        top: -133px;
    }

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

    .search-hero {
        overflow: visible;
    }

    .search-hero .container {
        transform: none;
    }

    .search-form-card {
        padding: 1rem;
        margin: -2rem 0.5rem 2rem 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
        position: static;
    }

    .search-form-card .form-control,
    .search-form-card select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        font-size: 16px; /* Évite le zoom sur iOS */
    }

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

    .cruise-search-page .cruises-grid {
        grid-template-columns: 1fr;
    }

    .cruise-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cruise-search-page .btn-outline {
        width: 100%;
    }
}

/* ============================================
   DESTINATION AUTOCOMPLETE DROPDOWN
   ============================================ */

.destination-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.destination-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.destination-dropdown-item:last-child {
    border-bottom: none;
}

.destination-dropdown-item:hover,
.destination-dropdown-item.selected {
    background-color: #f0f4ff;
}

.destination-dropdown-item i {
    color: #667eea;
    font-size: 1rem;
}

.destination-dropdown-item span {
    color: #2d3748;
    font-size: 0.95rem;
}

.destination-dropdown-empty {
    padding: 1rem;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}