/* ----------------------------------- */
/* #DAILY TOURS - ITINERARY STYLE
/* ----------------------------------- */

.daily-tours {
    background: linear-gradient(180deg, #FFFCFB 0%, #F4E4D7 100%);
    padding-block: 80px;
    width: 100%;
    overflow: hidden;
}

.daily-tours .section-subtitle {
    text-align: center;
    color: #4A90E2;
}

.daily-tours .section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-inline: auto;
}

/* Tour Header Info Grid */
.tour-header {
    margin-bottom: 60px;
}

.tour-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.tour-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #FFFCFB;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.tour-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tour-info-item ion-icon {
    font-size: 40px;
    /* Increased from 32px */
    color: #093FB4;
    flex-shrink: 0;
}

.tour-info-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 1rem;
    /* Increased from 0.85rem */
    color: #7F8C8D;
    font-weight: 600;
    /* Slightly bolder */
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-value {
    font-size: 1.3rem;
    /* Increased from 1rem */
    color: #2C3E50;
    font-weight: 700;
    /* Bolder for prominence */
}

/* Itinerary Container */
.itinerary-container {
    max-width: 900px;
    margin: 0 auto 50px;
    position: relative;
}

.itinerary-container::before {
    content: '';
    position: absolute;
    left: 17px;
    /* Centered relative to the 70px nodes (35px center) -> 35 - 20 (half wave width) = 15px. refined to 17px for visual weight */
    top: 60px;
    bottom: 60px;
    width: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='80' viewBox='0 0 40 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,0 Q35,20 20,40 Q5,60 20,80' fill='none' stroke='%234A90E2' stroke-width='3' stroke-linecap='round' stroke-dasharray='6,8'/%3E%3C/svg%3E");
    background-position: center top;
    background-repeat: repeat-y;
    z-index: 0;
    opacity: 0.6;
}

/* Itinerary Step */
.itinerary-step {
    position: relative;
    display: grid;
    grid-template-columns: 65px 75px 1fr;
    gap: 25px;
    margin-bottom: 60px;
    /* Increased spacing between steps */
    opacity: 0;
    animation: fadeInStep 0.6s ease-out forwards;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.itinerary-step:nth-child(1) {
    animation-delay: 0.1s;
}

.itinerary-step:nth-child(2) {
    animation-delay: 0.2s;
}

.itinerary-step:nth-child(3) {
    animation-delay: 0.3s;
}

.itinerary-step:nth-child(4) {
    animation-delay: 0.4s;
}

.itinerary-step:nth-child(5) {
    animation-delay: 0.5s;
}

.itinerary-step:nth-child(6) {
    animation-delay: 0.6s;
}

/* Step Number */
.step-number {
    width: 65px;
    /* Reduced size */
    height: 65px;
    background: linear-gradient(135deg, #4A90E2 0%, #6BA3E8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    /* Reduced */
    font-weight: 700;
    color: #FFFCFB;
    border: 4px solid #FFFCFB;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2), 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.itinerary-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.5);
}

/* Step Icon */
.step-icon {
    width: 75px;
    /* Reduced */
    height: 75px;
    background: #FFFCFB;
    border: 3px solid #4A90E2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    align-self: start;
}

.itinerary-step:hover .step-icon {
    transform: translateY(-5px);
    border-color: #6BA3E8;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.step-icon ion-icon {
    font-size: 36px;
    color: #4A90E2;
    transition: all 0.3s ease;
}

.itinerary-step:hover .step-icon ion-icon {
    color: #6BA3E8;
    transform: scale(1.1);
}

/* Step Content */
.step-content {
    background: #ffffff;
    padding: 40px 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 5;
}

.itinerary-step:hover .step-content {
    transform: translateY(-5px) scale(1.02);
    background: #ffffff;
    /* Explicit White on Hover */
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
    border-color: #4A90E2;
}

.step-title {
    font-size: 2.2rem;
    color: #1A2530;
    /* Darker, higher contrast */
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Heebo', sans-serif;
    letter-spacing: -0.5px;
}

.step-description {
    color: #3B4858;
    /* Darker, high-contrast color */
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.8rem;
    /* Large, prominent size */
    font-weight: 400;
}

.step-duration {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    color: #FFFCFB;
    border-radius: 50px;
    font-size: 1.4rem;
    /* Larger for readability */
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.step-duration ion-icon {
    font-size: 16px;
}

/* Tour Footer & Special Offer */
.tour-footer {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: transparent;
    gap: 40px;
}

.special-offer {
    background: linear-gradient(135deg, #FFFCFB 0%, #F4E4D7 100%);
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 40px;
    border-radius: 24px;
    border: 2px dashed #D4A574;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.special-offer::before {
    content: 'OFFER';
    position: absolute;
    top: 15px;
    /* Adjusted position */
    right: -35px;
    /* Adjusted position */
    background: #E67E22;
    color: #fff;
    font-size: 1rem;
    /* Increased size */
    font-weight: 700;
    padding: 7px 50px;
    /* Increased padding */
    transform: rotate(45deg);
}

.bonus-badge {
    background: var(--gradient-gold);
    color: #fff;
    padding: 20px;
    /* Increased padding */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 140px;
    /* Increased min-width */
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

.bonus-badge ion-icon {
    font-size: 48px;
    /* Significantly increased icon size */
    margin-bottom: 8px;
}

.bonus-badge span {
    font-size: 1rem;
    /* Increased text size */
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.note-title {
    font-size: 1.7rem;
    color: #2C3E50;
    font-weight: 700;
    margin-bottom: 8px;
}

.note-description {
    font-size: 1.7rem;
}

.special-offer p {
    color: #222;
    /* Darker for better visibility */
    font-size: 1.5rem;
    /* Increased from 1.1rem */
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    /* Added weight */
}

.tour-footer .btn {
    flex-shrink: 0;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .daily-tours {
        padding-block: 60px;
    }

    .tour-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .itinerary-container::before {
        left: 20px;
    }

    .itinerary-step {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }

    .step-icon {
        display: none;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .step-content {
        padding: 20px;
    }

    .step-title {
        font-size: 2.2rem;
    }

    .tour-footer {
        flex-direction: column;
        text-align: center;
    }

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

    .special-offer {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .bonus-badge {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .daily-tours {
        padding-block: 40px;
    }

    .daily-tours .section-title {
        margin-bottom: 28px;
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .tour-header {
        margin-bottom: 36px;
    }

    .tour-info-item {
        padding: 14px 18px;
        gap: 12px;
    }

    .tour-info-item ion-icon {
        font-size: 28px;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .info-value {
        font-size: 1.15rem;
    }

    .itinerary-container {
        margin-bottom: 36px;
    }

    .itinerary-container::before {
        left: 15px;
    }

    .itinerary-step {
        grid-template-columns: 50px 1fr;
        gap: 12px;
        margin-bottom: 36px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .step-content {
        padding: 16px;
    }

    .step-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .step-duration {
        padding: 8px 16px;
        font-size: 1.2rem;
    }

    .special-offer {
        padding: 20px 16px;
        gap: 20px;
    }

    .bonus-badge {
        min-width: 120px;
        padding: 16px;
    }

    .bonus-badge ion-icon {
        font-size: 36px;
    }

    .note-title {
        font-size: 1.5rem;
    }

    .note-description,
    .special-offer p {
        font-size: 1.4rem;
    }

    .tour-footer {
        margin-top: 40px;
        gap: 28px;
    }

    .tour-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Horizontal Layout for Desktop (Snake Circuit 2-Col) */
@media (min-width: 992px) {
    .itinerary-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns */
        gap: 60px 80px;
        /* Wider gap between columns */
        padding-top: 40px;
        padding-bottom: 40px;
        max-width: 900px;
        /* Reduce max-width for 2-col look */
        position: relative;
    }

    /* Remove the old single line */
    .itinerary-container::before {
        display: none;
    }

    /* Grid Positioning for Snake Flow (2 columns) */
    /* Row 1: 1 -> 2 */
    .itinerary-step:nth-child(1) {
        grid-area: 1 / 1;
    }

    .itinerary-step:nth-child(2) {
        grid-area: 1 / 2;
    }

    /* Row 2: 4 <- 3 */
    /* Flow: 2 -> 3 (Down) -> 4 (Left) */
    .itinerary-step:nth-child(3) {
        grid-area: 2 / 2;
    }

    .itinerary-step:nth-child(4) {
        grid-area: 2 / 1;
    }

    /* Row 3: 5 -> 6 */
    /* Flow: 4 -> 5 (Down) -> 6 (Right) */
    .itinerary-step:nth-child(5) {
        grid-area: 3 / 1;
    }

    .itinerary-step:nth-child(6) {
        grid-area: 3 / 2;
    }

    /* Layout adjustments for items */
    .itinerary-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 20px;
        position: relative;
    }

    .step-number {
        order: 1;
        margin: 0;
        box-shadow: 0 0 0 8px #FFFCFB, 0 6px 20px rgba(74, 144, 226, 0.3);
        /* Bigger white ring to mask lines */
        z-index: 2;
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }

    .step-icon {
        order: 2;
        display: none;
    }

    .step-content {
        order: 3;
        width: 100%;
        margin-top: 20px;
        /* Removed background/shadow overrides to keep card look */
    }

    .step-title {
        font-size: 1.5rem;
        /* Larger Title */
        margin-bottom: 12px;
    }

    .step-description {
        font-size: 1.7rem;
        /* Increased size significantly */
        line-height: 1.8;
    }

    /* CONNECTING LINES */

    /* Horizontal Right (1->2, 5->6) */
    .itinerary-step:nth-child(1)::after,
    .itinerary-step:nth-child(5)::after {
        content: '';
        position: absolute;
        top: 40px;
        left: 50%;
        width: calc(100% + 80px);
        /* Span the gap (80px) + centers */
        height: 40px;
        background-image: url("data:image/svg+xml,%3Csvg width='80' height='40' viewBox='0 0 80 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q20,5 40,20 Q60,35 80,20' fill='none' stroke='%234A90E2' stroke-width='3' stroke-linecap='round' stroke-dasharray='6,8'/%3E%3C/svg%3E");
        background-repeat: repeat-x;
        background-position: left center;
        z-index: 1;
        transform: translateY(-50%);
    }

    /* Horizontal Left (3->4) */
    .itinerary-step:nth-child(3)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: 50%;
        width: calc(100% + 80px);
        height: 40px;
        background-image: url("data:image/svg+xml,%3Csvg width='80' height='40' viewBox='0 0 80 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q20,5 40,20 Q60,35 80,20' fill='none' stroke='%234A90E2' stroke-width='3' stroke-linecap='round' stroke-dasharray='6,8'/%3E%3C/svg%3E");
        background-repeat: repeat-x;
        background-position: left center;
        z-index: 1;
        transform: translateY(-50%) rotate(180deg);
    }

    /* Vertical Down (2->3, 4->5) */
    .itinerary-step:nth-child(2)::before,
    .itinerary-step:nth-child(4)::before {
        content: '';
        position: absolute;
        top: 80px;
        /* Below number */
        left: calc(50% - 20px);
        width: 40px;
        height: calc(100% + 60px);
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='80' viewBox='0 0 40 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,0 Q35,20 20,40 Q5,60 20,80' fill='none' stroke='%234A90E2' stroke-width='3' stroke-linecap='round' stroke-dasharray='6,8'/%3E%3C/svg%3E");
        background-repeat: repeat-y;
        background-position: center top;
        z-index: 1;
    }
}