/* ═══════════════════════════════════════════════════════════════════
   DESTINATIONS SECTION - "Coastline Map" & Nautical Chart Theme
   Arillas Rent A Boat - Light, Organic, Navigational Feel
   ═══════════════════════════════════════════════════════════════════ */

#destinations {
    padding: 120px 24px;
    /* Fresh Cyan/Turquoise Shallow Water Gradient */
    background: linear-gradient(180deg, hsl(180, 40%, 98%) 0%, hsl(190, 50%, 94%) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle Chart Grid Pattern */
#destinations::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(24, 150, 160, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 150, 160, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ── Section Title ────────────────────────────────────────────────── */
.cruise_title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.cruise_title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--ocean-deep);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* ── Route Container ──────────────────────────────────────────────── */
.timeline-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Central/Winding Route Line */
/* Segment Path (Breaks between routes) */
.route-segment::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 140px;
    /* Start right under the boot */
    bottom: 0;
    width: 2px;
    border-left: 3px dashed var(--ocean-primary);
    transform: translateX(-50%);
    opacity: 0.2;
    z-index: 1;
}

/* Specific start for VIP section - under the notice */
.route-segment.vip::before {
    top: 300px;
    /* Start after the captain note */
}

/* Add a subtle wave at the end of each segment to emphasize the break */
.route-segment::after {
    content: '~~~';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    font-size: 2rem;
    color: var(--ocean-primary);
    opacity: 0.2;
    letter-spacing: 0.2em;
}

.route-segment.vip::after {
    display: none;
    /* No break after the final VIP section */
}

/* Remove dot from start destinations for cleaner feel */
.timeline-item.start .timeline-dot {
    display: none;
}

/* Remove the line from the VIP section if it's more of a 'list' feel */
/* Or keep it for consistency. I'll keep it but let the spacer do the break. */

.route-segment {
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
    scroll-margin-top: 100px;
}



/* ── Route Header ──────────────────────────────────────────────────── */
.route-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.route-label {
    display: inline-block;
    font-size: 1.4rem;
    /* Slightly bigger as requested */
    color: var(--ocean-deep);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
    box-shadow: none;
}

.route-boat {
    display: block;
    height: 60px;
    filter: drop-shadow(0 10px 20px rgba(24, 150, 160, 0.2));
    animation: boatSway 5s ease-in-out infinite;
}

@keyframes boatSway {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-8px);
    }
}

/* ── Stops / Destinations ─────────────────────────────────────────── */
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Zig-Zag Layout */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
}

/* Map Dot Marker */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 32px;
    width: 22px;
    height: 22px;
    background: white;
    border: 5px solid var(--ocean-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 6px rgba(24, 150, 160, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--ocean-primary);
    box-shadow: 0 0 0 8px rgba(24, 150, 160, 0.2);
    transform: translateX(-50%) scale(1.15);
}

/* Connector Line */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 43px;
    height: 2px;
    background: var(--ocean-primary);
    opacity: 0.3;
    width: 60px;
}

.timeline-item:nth-child(odd)::before {
    right: calc(50% - 60px);
    width: 60px;
}

.timeline-item:nth-child(even)::before {
    left: calc(50% - 60px);
    width: 60px;
}

/* ── White Cards (Islands) ────────────────────────────────────────── */
.timeline-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 12px 32px rgba(25, 90, 100, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.3s ease;
    margin: 0 40px;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(25, 90, 100, 0.1);
}

/* ── Content Typography ───────────────────────────────────────────── */
.card-badge,
.card-step {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-step {
    background: var(--ocean-light);
}

.timeline-item.start .card-badge {
    background: var(--ocean-primary);
}

.timeline-item.end .card-badge {
    background: var(--coral);
}

.timeline-item.vip-opt .card-badge {
    background: var(--sand);
    color: var(--text-dark);
}

.timeline-card h3 {
    font-size: 1.5rem;
    color: var(--ocean-deep);
    margin: 0 0 10px 0;
    font-weight: 800;
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

/* ── VIP Section ──────────────────────────────────────────────────── */
.route-segment.vip {
    margin-top: 100px;
    text-align: center;
    /* Center align everything */
}

.vip_title {
    font-size: clamp(3rem, 6vw, 5rem);
    /* Huge as requested */
    font-weight: 900;
    color: var(--sand);
    margin-bottom: 32px;
    text-shadow: 0 4px 12px rgba(24, 150, 160, 0.2);
    line-height: 1.1;
    display: block;
    width: 100%;
}

.vip_title span {
    display: block;
    font-size: 0.5em;
    letter-spacing: 0.2em;
    color: var(--ocean-deep);
    margin-bottom: 0px;
    text-transform: uppercase;
}

.vip-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
    position: relative;
    padding: 0 20px;
}

.captain-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.note-icon {
    font-size: 1.2rem;
    color: var(--ocean-primary);
    opacity: 0.6;
}

.captain-note p {
    color: var(--ocean-deep);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    margin: 0;
}

.captain-note p strong {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ocean-primary);
    display: block;
    margin-bottom: 5px;
}

.captain-note p span {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.captain-note a {
    color: var(--ocean-deep);
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px solid var(--ocean-primary);
}

/* ── Floating Map Navigation ──────────────────────────────────────── */
.map-navigation {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 8px;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
}

.map-navigation.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.map-nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.map-nav-link:hover {
    background: rgba(24, 150, 160, 0.1);
    color: var(--ocean-deep);
}

.map-nav-link.active {
    background: var(--ocean-deep);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Mobile Responsive ────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
    .timeline-wrapper::before {
        left: 24px;
        transform: none;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 64px !important;
        margin-bottom: 48px;
        width: 100%;
    }

    .timeline-dot {
        left: 24px;
        top: 32px;
        transform: translate(-50%, 0);
    }

    .timeline-item:hover .timeline-dot {
        transform: translate(-50%, 0) scale(1.15);
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .route-marker {
        align-items: flex-start;
        padding-left: 12px;
        margin-bottom: 40px;
    }

    .route-boat {
        margin: 0 0 0 12px;
    }

    .map-navigation {
        bottom: 20px;
        width: 90%;
        justify-content: space-between;
        max-width: 400px;
    }

    .map-nav-link {
        padding: 10px 12px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
    }
}