/* ===== ITINERARY SECTION STYLES ===== */

.itinerary-section {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.itinerary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(92, 168, 13, 0.02) 0%, rgba(0, 87, 168, 0.02) 100%);
    z-index: 1;
}

.itinerary-section .container {
    position: relative;
    z-index: 2;
}

/* ===== TIMELINE STYLES ===== */

.itinerary-timeline {
    position: relative;
    padding: 2rem 0;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    border-radius: 1px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Icon */
.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(92, 168, 13, 0.3);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-icon i {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(92, 168, 13, 0.4);
}

/* Timeline Content */
.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(92, 168, 13, 0.1);
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--bg-white);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(92, 168, 13, 0.2);
}

/* Timeline Title */
.timeline-title {
    color: var(--color-black);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 2px;
}

/* Timeline Description */
.timeline-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* ===== SECTION TITLES ===== */

.itinerary-section .section-title {
    color: var(--color-black);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.itinerary-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 2px;
}

.itinerary-section .section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

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

/* Extra Large screens (1400px and up) */
@media (min-width: 1400px) {
    .itinerary-section .section-title {
        font-size: 2rem;
    }
    
    .itinerary-section .section-subtitle {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 2.5rem;
    }
    
    .timeline-title {
        font-size: 1.6rem;
    }
    
    .timeline-description {
        font-size: 1.1rem;
    }
}

/* Large screens (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .itinerary-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
    }
    
    .timeline-icon i {
        font-size: 1.3rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
    
    .timeline-title {
        font-size: 1.5rem;
    }
    
    .timeline-description {
        font-size: 1.05rem;
    }
}

/* Large screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .itinerary-timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon i {
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-description {
        font-size: 1rem;
    }
}

/* Tablet screens */
@media (max-width: 991px) {
    .itinerary-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 2.5rem;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon i {
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
    
    .itinerary-section .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .itinerary-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 2.5rem;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon i {
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
    
    .itinerary-section .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile screens (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .itinerary-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .timeline-icon {
        width: 30px;
        height: 30px;
    }
    
    .timeline-icon i {
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content::before {
        left: -10px;
        top: 15px;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid var(--bg-white);
    }
    
    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .itinerary-section .section-title {
        font-size: 1.8rem;
    }
    
    .itinerary-section .section-subtitle {
        font-size: 1rem;
    }
}

/* Small mobile screens (480px to 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .itinerary-timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 45px;
        margin-bottom: 1.5rem;
    }
    
    .timeline-icon {
        width: 25px;
        height: 25px;
    }
    
    .timeline-icon i {
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 0.875rem;
    }
    
    .timeline-content::before {
        left: -8px;
        top: 12px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid var(--bg-white);
    }
    
    .timeline-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .itinerary-section .section-title {
        font-size: 1.6rem;
    }
    
    .itinerary-section .section-subtitle {
        font-size: 0.9rem;
    }
}

/* Extra small mobile screens (320px to 479px) */
@media (max-width: 479px) {
    .itinerary-timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 40px;
        margin-bottom: 1.25rem;
    }
    
    .timeline-icon {
        width: 20px;
        height: 20px;
    }
    
    .timeline-icon i {
        font-size: 0.6rem;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .timeline-content::before {
        left: -6px;
        top: 10px;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid var(--bg-white);
    }
    
    .timeline-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .timeline-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .itinerary-section .section-title {
        font-size: 1.4rem;
    }
    
    .itinerary-section .section-subtitle {
        font-size: 0.85rem;
    }
}

/* ===== TOUCH AND MOBILE ENHANCEMENTS ===== */

/* Touch-friendly hover states for mobile */
@media (hover: none) and (pointer: coarse) {
    .timeline-item:hover .timeline-icon {
        transform: none;
    }
    
    .timeline-item:hover .timeline-content {
        transform: none;
    }
    
    .timeline-item:active .timeline-icon {
        transform: scale(1.05);
    }
    
    .timeline-item:active .timeline-content {
        transform: translateY(-2px);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .itinerary-section {
        padding: 2rem 0;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .timeline-icon {
        box-shadow: 0 2px 8px rgba(92, 168, 13, 0.25);
    }
    
    .timeline-content {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */

.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInRight 0.6s ease forwards;
}

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

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    .timeline-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .timeline-item:hover .timeline-icon,
    .timeline-item:hover .timeline-content {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .itinerary-timeline::before {
        background: #000;
    }
    
    .timeline-icon {
        background: #000 !important;
        box-shadow: none;
    }
    
    .timeline-content {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .timeline-content::before {
        border-right-color: #fff;
    }
}
