/* ============================================
   STYLES PAGE SHIP/SHOW - NAVIRE
   ============================================ */

/* Breadcrumb */
.ship-breadcrumb {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.ship-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0.25rem 0;
}

body:has(.ship-page) .user-account-bar {
    top: 205px;
}

body:has(.ship-page) .user-account-bar.sticky-scrolled {
    top: 20px;
}

body:has(.ship-page) .share-bar {
    top: 38px;
}

body:has(.ship-page) .share-bar.sticky-scrolled {
    top: -145px;
}

.ship-hero {
    width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
    background: url('/img/bois.png') center center;
    background-size: cover;
}

/* Composition d'images */
.ship-hero-composition {
    position: absolute;
    inset: 0;
}

/* Image principale du bateau - grande et centrée */
.ship-main-image {
    position: absolute;
    width: 500px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
    border: 10px solid rgba(255,255,255,0.95);
    z-index: 10;
    transition: all 0.5s ease;
}

.ship-main-image:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
    z-index: 20;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.4);
}

/* Petites images des destinations en mosaïque */
.destination-tile {
    position: absolute;
    width: 180px;
    height: 130px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
    border: 6px solid rgba(255,255,255,0.9);
    transition: all 0.4s ease;
}

.destination-tile:hover {
    transform: rotate(0deg) scale(1.2) !important;
    z-index: 15 !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

/* Positionnement des petites images autour du bateau */
.destination-tile-1 {
    top: 8%; left: 5%;
    transform: rotate(-12deg);
    z-index: 5;
}
.destination-tile-2 {
    top: 12%; left: 25%;
    transform: rotate(8deg);
    z-index: 4;
}
.destination-tile-3 {
    top: 6%; right: 18%;
    transform: rotate(-5deg);
    z-index: 6;
}
.destination-tile-4 {
    top: 15%; right: 3%;
    transform: rotate(10deg);
    z-index: 3;
}
.destination-tile-5 {
    bottom: 15%; left: 4%;
    transform: rotate(7deg);
    z-index: 5;
}
.destination-tile-6 {
    bottom: 12%; left: 22%;
    transform: rotate(-9deg);
    z-index: 4;
}
.destination-tile-7 {
    bottom: 18%; right: 20%;
    transform: rotate(6deg);
    z-index: 6;
}
.destination-tile-8 {
    bottom: 10%; right: 2%;
    transform: rotate(-11deg);
    z-index: 3;
}

.ship-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
    backdrop-filter: blur(0.5px);
    display: flex;
    align-items: flex-end;
    padding: 3rem 0;
    z-index: 11;
}

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

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

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

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

.ship-header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #2d3748;
}

.ship-header .ship-cruise-line {
    color: #718096;
    margin: 0.5rem 0 0 0;
}

.ship-description {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.ship-description .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.ship-specs-section {
    margin-bottom: 3rem;
}

.ship-specs-section h2 {
    margin-bottom: 2rem;
}

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

.spec-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.spec-card i {
    font-size: 28px;
    color: #667eea;
}

.spec-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

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

/* Upcoming Cruises Section */
.upcoming-cruises-section {
    margin: 4rem 0 3rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    background: white;
}

.upcoming-cruises-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upcoming-cruises-section h2 i {
    color: #667eea;
}

.upcoming-cruises-section .section-intro {
    color: #718096;
    margin-bottom: 2rem;
}

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

.cruise-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.cruise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cruise-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cruise-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cruise-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 600;
}

.cruise-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #edf2f7;
    color: #667eea;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cruise-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
}

.detail-item i {
    color: #667eea;
}

/* Ship Movements Section */
.ship-movements-section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.ship-movements-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ship-movements-section h2 i {
    color: #667eea;
}

.movements-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.movements-intro p {
    font-size: 1.1rem;
    color: #718096;
}

/* Voyage Timeline */
.voyage-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.timeline-stop {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-stop:nth-child(1) { animation-delay: 0.1s; }
.timeline-stop:nth-child(2) { animation-delay: 0.2s; }
.timeline-stop:nth-child(3) { animation-delay: 0.3s; }
.timeline-stop:nth-child(4) { animation-delay: 0.4s; }
.timeline-stop:nth-child(5) { animation-delay: 0.5s; }
.timeline-stop:nth-child(6) { animation-delay: 0.6s; }
.timeline-stop:nth-child(7) { animation-delay: 0.7s; }
.timeline-stop:nth-child(8) { animation-delay: 0.8s; }
.timeline-stop:nth-child(9) { animation-delay: 0.9s; }
.timeline-stop:nth-child(10) { animation-delay: 1.0s; }

.stop-marker {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.marker-dot {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-stop:hover .marker-dot {
    transform: scale(1.1);
}

.marker-line {
    width: 3px;
    flex-grow: 1;
    background: linear-gradient(to bottom, #667eea 0%, #e2e8f0 100%);
    margin-top: 0.5rem;
    min-height: 60px;
}

.stop-content {
    flex-grow: 1;
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stop-content:hover {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.stop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.port-name {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.port-name a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.port-name a:hover {
    color: #667eea;
}

.port-country {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4a5568;
    white-space: nowrap;
}

.stop-details {
    margin-bottom: 1rem;
}

.stop-time {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-block {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
}

.time-block i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.time-block.arrival i {
    color: #48bb78;
}

.time-block.departure i {
    color: #f56565;
}

.time-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.time-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.stop-day {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    padding: 0.75rem;
    background: #edf2f7;
    border-radius: 8px;
    width: fit-content;
}

.stop-day i {
    color: #667eea;
}

.stay-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    padding: 0.75rem;
    background: #edf2f7;
    border-radius: 8px;
    width: fit-content;
}

.stay-duration i {
    color: #667eea;
}

.port-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Map Placeholder */
.voyage-map-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
}

.voyage-map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.voyage-map-placeholder p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .blog-page:has(.ship-hero) {
        overflow-x: hidden;
    }

    body:has(.ship-page) .user-account-bar {
        top: 150px;
    }

    body:has(.ship-page) .user-account-bar.sticky-scrolled {
        top: 15px;
    }

    body:has(.ship-page) .share-bar {
        top: -5px;
    }

    body:has(.ship-page) .share-bar.sticky-scrolled {
        top: -138px;
    }

    .ship-breadcrumb .breadcrumb {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .ship-breadcrumb .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .ship-breadcrumb .breadcrumb-text {
        flex-wrap: nowrap;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .ship-breadcrumb .breadcrumb-text a,
    .ship-breadcrumb .breadcrumb-current {
        white-space: nowrap;
        flex-shrink: 0;
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }

    .ship-hero {
        height: 220px;
        overflow: hidden;
        margin-top: -10px;
    }

    .ship-hero-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .ship-hero-composition {
        overflow: hidden;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ship-main-image {
        position: relative;
        width: 280px;
        height: 200px;
        left: auto;
        top: auto;
        transform: none;
    }

    .destination-tile {
        display: none;
    }

    .blog-page:has(.ship-hero) > .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .blog-page:has(.ship-hero) .breadcrumb {
        margin-bottom: 0.5rem;
        padding: 0.25rem 0;
    }

    .ship-hero {
        margin-bottom: 1rem;
    }

    .ship-hero h1 {
        font-size: 1.5rem;
    }

    .ship-hero-overlay {
        padding: 1rem 0;
    }

    .ship-cruise-line {
        font-size: 1rem;
    }

    .ship-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .ship-description {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .ship-description .lead {
        font-size: 1rem;
    }

    .ship-specs-section {
        margin-bottom: 1.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .ship-specs-section h2,
    .upcoming-cruises-section h2,
    .ship-movements-section h2 {
        display: inline-block;
        position: relative;
        margin-bottom: 1.25rem;
        font-size: 1.3rem;
    }

    .ship-specs-section h2::after,
    .upcoming-cruises-section h2::after,
    .ship-movements-section h2::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--gold, #d4a039), var(--deep-red, #8b2942));
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .spec-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .spec-card i {
        font-size: 22px;
    }

    .upcoming-cruises-section {
        margin: 1.5rem -0.5rem 1.5rem -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .upcoming-cruises-section h2 {
        font-size: 1.3rem;
    }

    .upcoming-cruises-section .section-intro {
        margin-bottom: 1rem;
    }

    .ship-movements-section {
        padding: 1rem;
        margin: 1.5rem -0.5rem;
        border-radius: 0;
    }

    .movements-intro {
        margin-bottom: 1rem;
    }

    .movements-intro p {
        font-size: 0.9rem;
    }

    .voyage-timeline {
        margin-bottom: 1rem;
    }

    .timeline-stop {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .marker-dot {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .marker-line {
        min-height: 20px;
    }

    .stop-content {
        padding: 0.5rem 0.75rem;
    }

    .stop-header {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .port-name {
        font-size: 1rem;
        margin: 0;
    }

    .port-country {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .stop-details {
        margin-bottom: 0.5rem;
    }

    .stop-time {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .time-item {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .stop-description {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .voyage-map-placeholder {
        padding: 1rem;
        margin-top: 1rem;
    }

    .blog-page .back-navigation {
        margin-top: 1.5rem;
        padding-top: 1rem;
        width: 100%;
        text-align: center !important;
    }
}