/* ========================================
   Offer Cards - Fleet Style Design
   Modern cruise offers cards inspired by fleet-section.css
   ======================================== */

/* Section des offres */
.offers-fleet-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.offers-fleet-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,119,182,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* ========================================
   Carte Offre - Structure principale
   ======================================== */

.offer-fleet-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    cursor: pointer;
}

.offer-fleet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255,107,53,0.15);
    border-color: rgba(255,107,53,0.3);
}

/* Animation d'entrée */
@keyframes offerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-fleet-card {
    animation: offerFadeInUp 0.6s ease-out backwards;
}

.offer-fleet-card:nth-child(1) { animation-delay: 0.1s; }
.offer-fleet-card:nth-child(2) { animation-delay: 0.2s; }
.offer-fleet-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   Company Logo Header (top)
   ======================================== */

.offer-company-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.offer-company-header img {
    width: auto;
    max-width: 100%;
}

/* ========================================
   Itinerary Map Image (inside body)
   ======================================== */

.offer-itinerary-image {
    text-align: center;
    margin-bottom: 12px;
}

.offer-itinerary-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ========================================
   Ship Image (Fleet Style)
   ======================================== */

.offer-fleet-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
}

.offer-fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offer-fleet-card:hover .offer-fleet-image img {
    transform: scale(1.08);
}

/* Overlay gradient sur l'image */
.offer-fleet-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.offer-fleet-card:hover .offer-fleet-image::after {
    opacity: 1;
}

/* ========================================
   Ship Name Overlay
   ======================================== */

.offer-ship-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.offer-ship-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ========================================
   Badges sur l'image
   ======================================== */

/* Badge prix principal */
.offer-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    text-align: center;
    z-index: 2;
}

.offer-price-badge .price-prefix {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: lowercase;
}

.offer-price-badge .price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.offer-price-badge .price-suffix {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Badge réduction */
.offer-discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(220,53,69,0.35);
    z-index: 2;
}

.offer-discount-badge .original-price {
    display: block;
    font-size: 0.7rem;
    text-decoration: line-through;
    opacity: 0.85;
}

/* Badge durée overlay */
.offer-duration-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.offer-duration-badge i {
    margin-right: 5px;
    color: #ffd700;
}

/* ========================================
   Corps de la carte
   ======================================== */

.offer-fleet-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Titre de l'offre */
.offer-fleet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-fleet-title small {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.85em;
}

/* ========================================
   Départ et escales
   ======================================== */

.offer-departure-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fff8f5;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid #ff6b35;
}

.offer-departure-info i {
    color: #ff6b35;
    font-size: 1rem;
    margin-top: 2px;
}

.offer-departure-info .departure-text {
    flex: 1;
}

.offer-departure-info .departure-port {
    font-weight: 600;
    color: #2c3e50;
}

.offer-departure-info .departure-time {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

/* ========================================
   Tags destinations / escales
   ======================================== */

.offer-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.offer-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.offer-tag-destination {
    background: #1a1a2e;
    color: white;
}

.offer-tag-countries {
    background: #fff8f5;
    color: #ff6b35;
    border: 1px solid rgba(255,107,53,0.2);
}

.offer-tag-stops {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid rgba(230,81,0,0.2);
}

/* Liste des escales */
.offer-stops-list {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 12px;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    line-height: 1.5;
}

.offer-stops-list .stop-separator {
    color: #ff6b35;
    margin: 0 4px;
}

/* ========================================
   Paiement en 4x
   ======================================== */

.offer-payment-4x {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.1);
}

.offer-payment-4x img {
    height: 28px;
    width: auto;
}

.offer-payment-4x .payment-amount {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
}

.offer-payment-4x .payment-text {
    font-size: 0.75rem;
    color: #333333;
}

/* ========================================
   Package / avantages inclus
   ======================================== */

.offer-package-info {
    padding: 12px;
    background: linear-gradient(135deg, #fff8f5 0%, #ffede6 100%);
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #ff6b35;
}

.offer-package-info .package-content {
    color: #1a1a1a !important;
    line-height: 2 !important;
    font-weight: 600 !important;
}

.offer-package-info .package-content i {
    color: #ff6b35 !important;
    margin-right: 6px !important;
}

.offer-package-info .package-content span {
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.offer-package-info .package-highlight {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    font-weight: 600;
    color: #1a1a1a;
}

.offer-package-info .package-highlight i {
    color: #ff6b35;
}

/* ========================================
   Bouton CTA
   ======================================== */

.offer-fleet-cta {
    margin-top: auto;
}

.offer-cta-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.offer-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.offer-cta-btn:hover::before {
    left: 100%;
}

.offer-cta-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.offer-cta-btn i {
    transition: transform 0.3s ease;
}

.offer-cta-btn:hover i {
    transform: translateX(3px);
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1200px) {
    .offer-fleet-image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .offer-fleet-image {
        height: 180px;
    }

    .offer-price-badge .price-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .offers-fleet-section {
        padding: 40px 0;
    }

    .offer-fleet-card {
        margin-bottom: 20px;
    }

    .offer-fleet-image {
        height: 160px;
    }

    .offer-price-badge {
        padding: 10px 14px;
    }

    .offer-price-badge .price-value {
        font-size: 1.2rem;
    }

    .offer-ship-overlay h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .offer-fleet-body {
        padding: 15px;
    }

    .offer-fleet-title {
        font-size: 0.95rem;
    }

    .offer-tags-container {
        gap: 4px;
    }

    .offer-tag {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .offer-cta-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Utilitaires
   ======================================== */

.offer-fleet-card .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
