/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-gold), var(--color-red));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    z-index: 1;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold), #FFD700);
    border: 3px solid var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.timeline-icon {
    color: #2C3E50;
    font-size: 32px !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-gold);
    position: relative;
    width: 45%;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -24px;
    border-left-color: var(--color-gold);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -24px;
    border-right-color: var(--color-gold);
}

.timeline-time {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8em;
    color: var(--color-red);
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-event {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--color-dark-text);
    margin-bottom: 10px;
}

.timeline-location {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: var(--color-dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item:nth-child(odd) .timeline-location {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-location {
    justify-content: flex-start;
}

.location-icon {
    color: #34495E;
    font-size: 20px !important;
    line-height: 1;
    vertical-align: middle;
}

/* Clickable location styles - Permanent 3D shadow for mobile */
.clickable-location {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 5px 8px;
    margin: -5px -8px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    /* Permanent 3D shadow effect */
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.clickable-location:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.map-indicator {
    font-size: 14px !important;
    margin-left: 8px;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
    transform: scale(0.9);
}


@keyframes mapPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
}


/* Mobile Timeline Styles */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-content::before {
        left: -24px !important;
        right: auto !important;
        border-right-color: var(--color-gold) !important;
        border-left-color: transparent !important;
    }

    .timeline-location {
        justify-content: flex-start !important;
    }
    
    .clickable-location {
        padding: 4px 6px;
        margin: -4px -6px;
    }
    
    .map-indicator {
        font-size: 12px !important;
        margin-left: 6px;
    }
}