:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #64748b;
    --accent-color: #667eea;
    --accent-hover: #764ba2;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --transition: transform 0.3s ease, opacity 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 2rem;
}

.p-2 {
    padding: 2rem;
}

.rounded {
    border-radius: var(--border-radius);
}

.rounded-sm {
    border-radius: var(--border-radius-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.transition {
    transition: var(--transition);
}

.itinerary-section {
    padding: 0;
}

.trip-info-section {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;

    h2,
    h3,
    .trip-description,
    .trip-overview {
        max-width: 900px;
        margin-left: 0;
        margin-right: 0;
    }
}

.daily-itinerary-section {
    margin-bottom: 4rem;

    h3 {
        text-align: left;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

.additional-info-section {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 2fr 1fr;
}

.additional-info-section.car-rental {
    grid-template-columns:1fr;
}

h2,
.itinerary-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3,
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 4rem;
}

h4,
.day-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;

    &:last-child {
        margin-bottom: 0;
    }
}

.trip-info-section {
    h3 {
        font-size: 1.25rem;
        color: var(--text-muted);
        font-weight: 400;
        margin: 0 0 1.5rem 0;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
}

.trip-description,
.trip-overview {
    font-size: 1.1rem;
    max-width: inherit;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Accommodation Section */
.accommodation-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Trip Overview */
.trip-overview {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(102, 126, 234, 0.1);
    
    p {
        color: var(--text-secondary);
        line-height: 1.7;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(102, 126, 234, 0.1);
    
    h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 1rem 0;
        display: flex;
        align-items: center;

        i {
            margin-right: 0.5rem;
            color: var(--accent-color);
        }
    }
    
    p {
        color: var(--text-secondary);
        line-height: 1.7;
        font-size: 1rem;
        margin: 0 0 1.5rem 0;
    }
}

.itinerary-header {
    text-align: center;
    margin-bottom: 4rem;
    
    .itinerary-title {
        font-size: 3rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 1rem;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .itinerary-subtitle {
        font-size: 1.25rem;
        color: var(--text-muted);
        font-weight: 400;
        margin: 0;
    }
}

.itinerary-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;

    .accommodation-images{
        margin-top: 1rem;
    }

    &::before {
        content: "";
        position: absolute;
        left: 2rem;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }

    &.collapsed {
        .itinerary-day:not(:first-child) {
            opacity: 0 !important;
            transform: translateY(20px) !important;
            pointer-events: none !important;
            max-height: 0 !important;
            overflow: hidden !important;
            margin-bottom: 0 !important;
        }

        &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(
                to bottom,
                transparent 0%,
                rgba(255, 255, 255, 0.8) 50%,
                rgb(255, 255, 255) 100%
            );
            pointer-events: none;
            z-index: 1;
        }
    }
}

.itinerary-day {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    will-change: transform, opacity;
    transform: translateZ(0);

    &:last-child {
        margin-bottom: 0;
    }

    &:nth-child(1) {
        animation-delay: 0.1s;
    }

    &:nth-child(2) {
        animation-delay: 0.2s;
    }

    &:nth-child(3) {
        animation-delay: 0.3s;
    }

    &:nth-child(4) {
        animation-delay: 0.4s;
    }

    &:nth-child(5) {
        animation-delay: 0.5s;
    }

    &:nth-child(6) {
        animation-delay: 0.6s;
    }
}

.day-marker {
    position: relative;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    margin-right: 2rem;
    z-index: 2;
}

.day-number {
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: var(--transition);
    will-change: transform;
    transform: translateZ(0);

    &:hover {
        transform: scale(1.05);
    }
}

.day-line {
    position: absolute;
    left: 2rem;
    top: 4rem;
    width: 3px;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.day-content {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
    will-change: transform;
    transform: translateZ(0);

    &:hover {
        transform: translateY(-2px);
    }
}

.day-header {
    margin-bottom: 1.5rem;
    
    .day-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
    }
    
    .day-location {
        display: flex;
        align-items: center;
        color: var(--accent-color);
        font-weight: 600;
        font-size: 0.95rem;
        
        i {
            margin-right: 0.5rem;
            font-size: 1rem;
        }
    }
    
    /* New styles for our updated template */
    .day-number {
        display: inline-block;
        background: var(--primary-gradient);
        color: white;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        margin-bottom: 1rem;
    }
    
    h4 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
    }
    
    .location {
        display: flex;
        align-items: center;
        color: var(--accent-color);
        font-weight: 600;
        font-size: 0.95rem;
        margin: 0;
        
        i {
            margin-right: 0.5rem;
            font-size: 1rem;
        }
    }
}

.location {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;

    i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
}

.day-description {
    margin-bottom: 1.5rem;

    p {
        margin: 0;
    }
}

.day-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    background: var(--secondary-gradient);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    will-change: transform, background-color;
    transform: translateZ(0);

    i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    span {
        font-weight: 500;
        font-size: 0.9rem;
    }
}

.highlights {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;

    li {
        display: flex;
        align-items: center;
        background: var(--secondary-gradient);
        padding: 0.5rem 0.75rem;
        border-radius: var(--border-radius-sm);
        border: 1px solid var(--border-color);
        transition: var(--transition);
        will-change: transform, background-color;
        transform: translateZ(0);

        &:hover {
            background: var(--primary-gradient);
            color: white;
            transform: translateY(-1px); /* Reduced movement for better performance */
        }

        i {
            margin-right: 0.5rem;
            font-size: 0.9rem;
        }

        span {
            font-weight: 500;
            font-size: 0.85rem;
        }
    }
}

.accommodation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.accommodation-details {
    margin-bottom: 1.5rem;
    
    h6 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 0.75rem 0;
    }
    
    p {
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .address,
    .distance,
    .parking {
        display: flex;
        align-items: center;
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;

        i {
            margin-right: 0.5rem;
            color: var(--accent-color);
            width: 1rem;
        }
    }
    
    .amenities {
        margin-top: 1rem;
        
        h6 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 0.75rem 0;
        }
        
        .amenities-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            
            li {
                background: var(--secondary-gradient);
                color: var(--text-secondary);
                padding: 0.3rem 0.6rem;
                border-radius: 0.4rem;
                font-size: 0.8rem;
                font-weight: 500;
                border: 1px solid var(--border-color);
            }
        }
    }
    
    .accommodation-images {
        margin-top: 1rem;
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        
        .accommodation-image {
            width: 120px;
            height: 80px;
            object-fit: cover;
            border-radius: var(--border-radius-sm);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            
            &:hover {
                transform: scale(1.05);
            }
        }
    }
}

.amenities {
    margin-top: 1rem;
}

.accommodation-amenities {
    margin-top: 2rem;
}

.accommodation-amenities h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    li {
        background: var(--secondary-gradient);
        color: var(--text-secondary);
        padding: 0.3rem 0.6rem;
        border-radius: 0.4rem;
        font-size: 0.8rem;
        font-weight: 500;
        border: 1px solid var(--border-color);
    }
}

/* Accommodation Amenities */
.accommodation-amenities {
    h5 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 1rem 0;
    }
    
    .amenities-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        
        .amenity-tag {
            background: var(--secondary-gradient);
            color: var(--text-secondary);
            padding: 0.4rem 0.8rem;
            border-radius: var(--border-radius-sm);
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid var(--border-color);
        }
    }
}

.accommodation-amenities .amenities-list {
    margin-top: 0.5rem;
}

/* Accommodation Images */
.accommodation-images {
    margin-bottom: 1.5rem;
    
    .image-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        
        .gallery-image-container {
            position: relative;
            border-radius: 0.75rem;
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            
            &:hover {
                transform: scale(1.02);
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
                
                .click-indicator {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            .accommodation-image {
                width: 100%;
                height: 150px;
                object-fit: cover;
                display: block;
            }
            
            .click-indicator {
                position: absolute;
                bottom: 0.75rem;
                right: 0.75rem;
                background: rgba(255, 255, 255, 0.9);
                border-radius: 50%;
                width: 2rem;
                height: 2rem;
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transform: translateY(5px);
                transition: var(--transition);
                backdrop-filter: blur(4px);
                
                svg {
                    width: 1rem;
                    height: 1rem;
                    color: var(--text-secondary);
                }
            }
        }
    }
}

.accommodation-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    will-change: transform;
    transform: translateZ(0);
    image-rendering: optimizeSpeed; /* Prevent unnecessary image processing */
    backface-visibility: hidden; /* Prevent flickering */

    &:hover {
        transform: scale(1.02);
    }
}

.btn-show-more {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    will-change: transform;
    transform: translateZ(0);

    &:hover {
        transform: translateY(-1px); /* Reduced movement for better performance */
    }

    &:active {
        transform: translateY(0);
    }

    i {
        transition: var(--transition);
    }

    &.expanded i {
        transform: rotate(180deg);
    }
}

.itinerary-more,
.itinerary-show-more {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.itinerary-show-more {
    margin-top: 2rem;
}

/* Destination Images */
.destination-images {
    margin-bottom: 1.5rem;
    
    h5 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 1rem 0;
    }
    
    .image-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        
        .gallery-image-container {
            position: relative;
            border-radius: 0.75rem;
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            
            &:hover {
                transform: scale(1.02);
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
                
                .click-indicator {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            .destination-image {
                width: 100%;
                height: 150px;
                object-fit: cover;
                display: block;
            }
            
            .click-indicator {
                position: absolute;
                bottom: 0.75rem;
                right: 0.75rem;
                background: rgba(255, 255, 255, 0.9);
                border-radius: 50%;
                width: 2rem;
                height: 2rem;
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transform: translateY(5px);
                transition: var(--transition);
                backdrop-filter: blur(4px);
                
                svg {
                    width: 1rem;
                    height: 1rem;
                    color: var(--text-secondary);
                }
            }
        }
    }
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Mobile Image Slider */
.mobile-image-slider {
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    width: 100%;
    max-width: 100%;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    width: 100%;
}

.slider-image {
    min-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.slider-image:hover {
    transform: scale(1.02);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
}

.slider-dot {
    width: 10px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: var(--accent-hover);
}

.gallery-image-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    will-change: transform;
    transform: translateZ(0);

    &:hover {
        transform: scale(1.01); /* Reduced scale for better performance */

        .click-indicator {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.destination-image,
.accommodation-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    image-rendering: optimizeSpeed; /* Prevent unnecessary image processing */
    backface-visibility: hidden; /* Prevent flickering */
}

.click-indicator {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);

    svg {
        width: 1rem;
        height: 1rem;
        color: var(--text-secondary);
    }
}

.accommodation-header {
    margin-bottom: 1.5rem;
}

.accommodation-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;

    i {
        margin-right: 0.5rem;
        color: var(--accent-color);
    }
}

.hotel-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding-left: 1.75rem;
}

.white-text {
    color: white !important;
}

.accommodation-content {
    .accommodation-description {
        margin-bottom: 1.5rem;

        p {
            margin: 0;
        }
    }
}

/* Accommodation Details */
.accommodation-details {
    margin-bottom: 1.5rem;
    
    .detail-item {
        display: flex;
        align-items: center;
        margin-bottom: 0.75rem;
        
        i {
            margin-right: 0.5rem;
            color: var(--accent-color);
            width: 1rem;
        }
        
        span {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
    }
}

.additional-info-section {
    .car-rental-info,
    .night-distribution,
    .useful-links {
        background: white;
        border-radius: var(--border-radius);
        padding: 2rem;
        margin-bottom: 2rem;

        h4 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 1rem 0;
        }
    }
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
        margin-bottom: 0.75rem;

        a {
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);

            &:hover {
                color: var(--accent-hover);
            }
        }
    }
}

.night-distribution-table {
    overflow-x: auto;

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;

        th,
        td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }

        th {
            background: var(--primary-gradient);
            color: white;
            font-weight: 600;
        }

        td {
            background: white;
            color: var(--text-secondary);
        }

        tr:nth-child(even) td {
            background: #f7fafc;
        }
    }
}

.useful-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-item {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    will-change: transform;
    transform: translateZ(0);

    &:hover {
        background: var(--secondary-gradient);
        border-color: var(--border-color);
        transform: translateX(2px); /* Reduced movement for better performance */
    }

    i {
        margin-right: 0.5rem;
    }

    span {
        font-weight: 500;
    }
}

.gallery-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    will-change: opacity;
    transform: translateZ(0);

    &.active {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 1;
        pointer-events: auto;
    }
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: white;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
}

.gallery-counter {
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

.gallery-close {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: var(--transition);
    will-change: transform;
    transform: translateZ(0);

    &:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05); /* Reduced scale for better performance */
    }

    svg {
        width: 24px;
        height: 24px;
    }
}

.gallery-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.gallery-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    will-change: transform;
    transform: translateY(-50%) translateZ(0); /* Force GPU acceleration */

    &:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%) scale(1.05); /* Reduced scale for better performance */
    }

    &:disabled {
        opacity: 0.3;
        cursor: not-allowed;

        &:hover {
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
        }
    }

    svg {
        width: 24px;
        height: 24px;
    }

    &.gallery-prev {
        left: 2rem;
    }

    &.gallery-next {
        right: 2rem;
    }
}

.itinerary-not-available {
    text-align: center;
    padding: 3rem 1rem;
    background: #f7fafc;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);

    p {
        color: var(--text-muted);
        font-size: 1.1rem;
        margin: 0;
    }
}

.fallback-notice {
    margin-bottom: 2rem;
}

.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);

    i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    strong {
        font-weight: 600;
    }
}

/* Extra Large Screens */
@media (min-width: 1426px) {
    .itinerary-section .container {
        max-width: 1400px;
        padding: 0 2rem;
    }
    
    .itinerary-timeline {
        max-width: 1000px;
    }
    
    .trip-info-section {
        max-width: 1000px;
        
        h2 {
            font-size: 3.5rem;
        }
        
        h3 {
            font-size: 1.35rem;
        }
        
        .trip-description,
        .trip-overview {
            font-size: 1.15rem;
        }
    }
    
    .daily-itinerary-section {
        h3 {
            font-size: 2.25rem;
        }
    }
    
    .day-content {
        padding: 2.5rem;
    }
    
    .day-header {
        .day-title {
            font-size: 1.65rem;
        }
    }
    
    .day-highlights {
        gap: 1.25rem;
        
        .highlight-item {
            padding: 0.9rem 1.25rem;
            
            span {
                font-size: 0.95rem;
            }
        }
    }
    
    .destination-images .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    
    .accommodation-images .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    
    .info-card {
        padding: 2.5rem;
        
        h3 {
            font-size: 1.35rem;
        }
        
        p {
            font-size: 1.05rem;
        }
    }
    
    .additional-info-section {
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
    }
    .additional-info-section.car-rental {
        grid-template-columns:1fr;
    }
}

/* Large Desktop and Tablet Landscape */
@media (max-width: 1200px) {
    .additional-info-section {
        grid-template-columns: 2fr 1fr;
    }
    .additional-info-section.car-rental {
        grid-template-columns:1fr;
    }
    
    .itinerary-timeline {
        max-width: 800px;
    }
    
    .day-content {
        padding: 1.75rem;
    }
    
    .trip-info-section h2 {
        font-size: 2.5rem;
    }
    
    .daily-itinerary-section h3 {
        font-size: 1.75rem;
    }
}

/* Large Tablets and Small Desktops */
@media (max-width: 992px) {
    .itinerary-section {
        padding: 1.5rem 0;
        
        .container {
            padding: 0 0.75rem;
        }
    }
    
    .itinerary-header {
        margin-bottom: 3rem;
        
        .itinerary-title {
            font-size: 2.5rem;
        }
        
        .itinerary-subtitle {
            font-size: 1.1rem;
        }
    }
    
    .trip-info-section {
        h2 {
            font-size: 2.25rem;
        }
        
        h3 {
            font-size: 1.1rem;
        }
        
        .trip-description,
        .trip-overview {
            font-size: 1rem;
        }
    }
    
    .daily-itinerary-section {
        h3 {
            font-size: 1.5rem;
        }
    }
    
    .day-content {
        padding: 1.5rem;
    }
    
    .day-header {
        .day-title {
            font-size: 1.35rem;
        }
    }
    
    .day-highlights {
        gap: 0.75rem;
        
        .highlight-item {
            padding: 0.6rem 0.9rem;
            
            span {
                font-size: 0.85rem;
            }
        }
    }
    
    .accommodation-header {
        .accommodation-title {
            font-size: 1.15rem;
        }
        
        .hotel-name {
            font-size: 1rem;
        }
    }
    
    .destination-images .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
    
    .accommodation-images .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
    
    .info-card {
        padding: 1.75rem;
        
        h3 {
            font-size: 1.15rem;
        }
        
        p {
            font-size: 0.95rem;
        }
    }
    
    .itinerary-show-more {
        margin-top: 1.75rem;
        
        .btn-show-more {
            padding: 0.9rem 1.75rem;
            font-size: 0.95rem;
        }
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 540px) {
    .itinerary-section {
        padding: 1.5rem 0;
        
        .container {
            padding: 0 0.75rem;
        }
    }
    
    .itinerary-header {
        margin-bottom: 2.5rem;
        
        .itinerary-title {
            font-size: 2.25rem;
        }
        
        .itinerary-subtitle {
            font-size: 1.05rem;
        }
    }
    
    .trip-info-section {
        h2 {
            font-size: 2rem;
        }
        
        h3 {
            font-size: 1.05rem;
        }
        
        .trip-description,
        .trip-overview {
            font-size: 0.95rem;
        }
    }
    
    .daily-itinerary-section {
        h3 {
            font-size: 1.4rem;
        }
    }
    
    .day-content {
        padding: 1.25rem;
    }
    
    .day-header {
        .day-title {
            font-size: 1.2rem;
        }
    }
    
    .day-highlights {
        gap: 0.6rem;
        
        .highlight-item {
            padding: 0.55rem 0.8rem;
            
            span {
                font-size: 0.82rem;
            }
        }
    }
    
    .destination-images .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.6rem;
    }
    
    .accommodation-images .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.6rem;
    }
    
    .info-card {
        padding: 1.5rem;
        
        h3 {
            font-size: 1.1rem;
        }
        
        p {
            font-size: 0.9rem;
        }
    }
    
    .itinerary-show-more {
        margin-top: 1.5rem;
        
        .btn-show-more {
            padding: 0.8rem 1.6rem;
            font-size: 0.9rem;
        }
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }

    .itinerary-section {
        padding: 2rem 0;

        .container {
            padding: 0 0.5rem;
        }
    }

    .itinerary-header {
        margin-bottom: 2rem;
    }

    .itinerary-title {
        font-size: 2rem;
    }

    .itinerary-subtitle {
        font-size: 1rem;
    }

    .itinerary-timeline {
        &::before {
            display: none;
            left: 1.5rem;
        }

        &.collapsed::after {
            height: 80px;
        }
    }

    .day-marker {
        width: 3rem;
        height: 3rem;
        margin-right: 1rem;
        display: none;
    }

    .day-number {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }

    .day-line {
        top: 3rem;
        height: 2rem;
        left: 1.5rem;
    }

    .day-content {
        padding: 1.5rem;
    }

    .day-title {
        font-size: 1.25rem;
    }

    .day-highlights {
        gap: 0.5rem;
    }

    .highlight-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;

        i {
            font-size: 0.9rem;
        }

        span {
            font-size: 0.8rem;
        }
    }

    .itinerary-more,
    .itinerary-show-more {
        margin-top: 2rem;
    }

    .btn-show-more {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .additional-info-section {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .additional-info-section * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .additional-info-section .car-rental-info,
    .additional-info-section .night-distribution,
    .additional-info-section .useful-links {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .additional-info-section .car-rental-info p,
    .additional-info-section .night-distribution p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .night-distribution-table {
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .night-distribution-table table {
        min-width: 100%;
        width: auto;
        table-layout: auto;
    }

    .night-distribution-table th,
    .night-distribution-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .useful-links {
        padding: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .info-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 1.5rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .info-card p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .daily-itinerary-section h3 {
        margin-top: 1rem;
    }

    .hotel-details-main {
        margin-top: 1rem;
    }

    .day-content .accommodation-section h5 {
        padding-left: 0;
    }

    /* Mobile Image Slider */
    .image-gallery {
        display: none;
    }

    .mobile-image-slider {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .slider-container {
        width: 100%;
        max-width: 100%;
    }

    .slider-image {
        height: 180px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .slider-nav.prev {
        left: 8px;
    }

    .slider-nav.next {
        right: 8px;
    }

    /* Ensure no horizontal overflow */
    .day-content {
        overflow-x: hidden;
    }

    .destination-images,
    .accommodation-images {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h3 {
        font-size: 16px !important;
    }

    p {
        font-size: 14px !important;
    }

    .itinerary-timeline {
        &::before {
            left: 1rem;
        }

        &.collapsed::after {
            height: 60px;
        }
    }

    .day-marker {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.75rem;
    }

    .day-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }

    .day-line {
        top: 2.5rem;
        height: 1.5rem;
        left: 1rem;
    }

    .day-content {
        padding: 1rem;
    }

    .day-title {
        font-size: 1.1rem;
    }

    .highlight-item {
        padding: 0.4rem 0.6rem;

        span {
            font-size: 0.75rem;
        }
    }

    .itinerary-show-more {
        margin-top: 1rem;
    }

    .btn-show-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}