body {
    overflow-x: hidden;
}

.destination-model {
    width: 100%;
    overflow-x: hidden;

    .wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;

        @media (max-width: 1200px) {
            max-width: 100%;
            padding: 0 40px;
        }

        .section-title {
            text-align: start;
            margin-bottom: 20px;

            h2 {
                font-size: var(--fs-xxl);
                font-weight: var(--fw-bold);
                margin-bottom: 5px;
            }

            span {
                font-size: var(--fs-sm);
                font-weight: var(--fw-normal);
                color: var(--charcoal);
            }
        }
    }

    .form-search {
        position: relative;
        background-image: var(--d-banner);
        background-size: cover;
        background-position: center 52%;
        background-color: var(--pearl);
        height: 500px;

        .card-content {
            position: relative;
            top: 155px;
            display: flex;
            flex-direction: column;
            gap: 30px;

            .card-title {
                display: flex;
                flex-direction: column;
                text-align: center;
                color: var(--pearl);
                max-width: 600px;
                margin: 0 auto;
                padding-bottom: 45px;
                text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

                span {
                    text-align: start;
                    font-size: var(--fs-xl);
                    font-weight: var(--fw-semibold);
                    margin-bottom: 0px;
                    margin-left: 50px;
                }

                h1 {
                    font-size: var(--fs-72);
                    font-weight: var(--fw-bold);
                    margin-bottom: 5px;
                }

                p {
                    font-size: var(--fs-md);
                    font-weight: var(--fw-normal);
                }
            }
        }
    }

    .popular-routes {
        padding-top: 120px;
        margin-bottom: 20px;

        .section-body {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;

            .route-card {
                display: flex;
                flex-direction: column;
                gap: 10px;
                border-radius: var(--radius);
                overflow: hidden;
                text-decoration: none;
                background-color: var(--bg-color);
                transition: transform 0.3s ease, box-shadow 0.3s ease;

                &:hover {
                    transform: translateY(-5px);
                    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

                    .route-image img {
                        transform: scale(1.05);
                    }

                    .route-info {
                        h3 {
                            color: var(--d-theme);
                        }
                    }
                }

                .route-image {
                    width: 100%;
                    height: 150px;
                    overflow: hidden;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 0.3s ease;
                    }
                }

                .route-info {
                    padding: 15px;
                    background-color: var(--bg-color);
                    color: var(--text-color);

                    h3 {
                        font-size: var(--fs-lg);
                        font-weight: var(--fw-semibold);
                        margin-bottom: 10px;
                    }

                    p {
                        font-size: var(--fs-sm);
                        font-weight: var(--fw-normal);
                        margin-bottom: 5px;
                    }
                }
            }
        }
    }

    .explore {
        margin: 40px 0;

        .wrapper {
            padding: 20px;
            background-color: var(--pearl);
            border-radius: 20px;
            overflow: hidden;
        }

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

        .section-body {
            display: flex;
            flex-direction: column;
            gap: 20px;

            .planning-card {
                display: flex;
                gap: 20px;
                justify-content: center;
                flex-wrap: wrap;

                strong {
                    color: var(--marmalade);
                    font-size: var(--fs-sm);
                    font-weight: var(--fw-semibold);
                    display: flex;
                    align-items: center;
                    gap: 5px;
                }
            }

            .explore-card-container {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(2, 1fr);
                grid-column-gap: 5px;
                grid-row-gap: 5px;

                /* Grid Area */
                & {
                    .explore-card:nth-child(1) {
                        grid-area: 1 / 1 / 3 / 2;
                    }

                    .explore-card:nth-child(2) {
                        grid-area: 1 / 2 / 3 / 3;
                    }

                    .explore-card:nth-child(3) {
                        grid-area: 1 / 3 / 2 / 4;
                    }

                    .explore-card:nth-child(4) {
                        grid-area: 1 / 4 / 2 / 5;
                    }

                    .explore-card:nth-child(5) {
                        grid-area: 2 / 3 / 3 / 4;
                    }

                    .explore-card:nth-child(6) {
                        grid-area: 2 / 4 / 3 / 5;
                    }
                }

                .explore-card {
                    display: flex;
                    flex-direction: column;
                    border-radius: var(--radius);
                    overflow: hidden;
                    background-color: var(--bg-color);
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                    height: 100%;

                    &:hover {
                        transform: translateY(-5px);
                        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

                        .explore-image img {
                            transform: scale(1.06);
                        }

                        .explore-info h3 {
                            color: var(--d-theme);
                        }
                    }

                    .explore-image {
                        flex: 1;
                        width: 100%;
                        min-height: 160px;
                        overflow: hidden;
                        position: relative;

                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            position: absolute;
                            inset: 0;
                            transition: transform 0.4s ease;
                        }
                    }

                    .explore-info {
                        padding: 10px 15px;
                        flex-shrink: 0;

                        h3 {
                            font-size: var(--fs-md);
                            font-weight: var(--fw-semibold);
                            margin-bottom: 4px;
                            transition: color 0.2s ease;
                        }

                        p {
                            font-size: var(--fs-xs);
                            font-weight: var(--fw-normal);
                            color: var(--charcoal);
                            margin: 0;
                            display: flex;
                            align-items: center;
                            gap: 4px;
                        }
                    }
                }
            }
        }
    }

    .terminals-section {
        margin: 50px 0;

        .section-eyebrow {
            text-align: center;
            margin-bottom: 30px;

            small {
                display: inline-block;
                font-size: var(--fs-xs);
                font-weight: var(--fw-semibold);
                color: var(--d-theme);
                text-transform: uppercase;
                letter-spacing: 1.5px;
                margin-bottom: 8px;
            }

            h2 {
                font-size: var(--fs-xxl);
                font-weight: var(--fw-bold);
                margin-bottom: 6px;
            }

            p {
                font-size: var(--fs-sm);
                color: var(--charcoal);
            }
        }

        .card-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            align-items: start;
        }

        .map-content {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);

            iframe {
                display: block;
            }
        }

        .terminal-details {
            display: flex;
            flex-direction: column;
            gap: 0;

            h2 {
                font-size: var(--fs-xl);
                font-weight: var(--fw-bold);
                color: var(--text-color);
                padding-bottom: 14px;
                margin-bottom: 20px;
                border-bottom: 2px solid var(--d-theme);
            }

            .detail-row {
                display: flex;
                gap: 12px;
                padding: 14px 0;
                border-bottom: 1px solid rgba(0, 0, 0, 0.07);
                align-items: flex-start;

                &:last-of-type {
                    border-bottom: none;
                }

                .detail-icon {
                    width: 36px;
                    height: 36px;
                    background-color: rgba(233, 111, 47, 0.1);
                    border-radius: 8px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-shrink: 0;
                    color: var(--d-theme);
                    font-size: 15px;
                }

                .detail-text {
                    flex: 1;
                    min-width: 0;

                    strong {
                        display: block;
                        font-size: var(--fs-xs);
                        font-weight: var(--fw-semibold);
                        color: var(--charcoal);
                        text-transform: uppercase;
                        letter-spacing: 0.8px;
                        margin-bottom: 6px;
                    }

                    span,
                    p {
                        font-size: var(--fs-sm);
                        color: var(--text-color);
                        line-height: 1.6;
                        margin: 0;
                    }

                    /* Operator chips */
                    span,
                    a.operator-link {
                        display: inline-flex;
                        align-items: center;
                        font-size: var(--fs-xs);
                        line-height: 1;
                        padding: 4px 10px;
                        border-radius: 20px;
                        margin: 2px 3px 2px 0;
                        white-space: nowrap;
                    }

                    span {
                        background-color: rgba(0, 0, 0, 0.05);
                        color: var(--charcoal);
                    }

                    a.operator-link {
                        background-color: rgba(233, 111, 47, 0.1);
                        color: var(--d-theme);
                        text-decoration: none;
                        font-weight: var(--fw-semibold);
                        transition: background-color 0.2s ease, color 0.2s ease;

                        &:hover {
                            background-color: var(--d-theme);
                            color: #fff;
                        }
                    }
                }

                &:first-of-type {
                    .detail-text {
                        span {
                            display: block;
                            padding: 0;
                            margin: 0;
                            border-radius: 0;
                            background-color: transparent;
                            line-height: 1.6;
                            white-space: normal;
                        }
                    }
                }
            }

            .terminal-cta {
                margin-top: 20px;
                display: inline-flex;
                align-items: center;
                gap: 8px;
                background-color: var(--d-theme);
                color: #fff;
                padding: 12px 24px;
                border-radius: 10px;
                font-size: var(--fs-sm);
                font-weight: var(--fw-semibold);
                text-decoration: none;
                line-height: 1.4;
                white-space: normal;
                transition: background-color 0.2s ease, transform 0.2s ease;
                align-self: flex-start;

                &:hover {
                    background-color: var(--d-theme-dark);
                    transform: translateY(-2px);
                }
            }
        }
    }

    .faqs-section {
        margin: 50px 0 60px;

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

        .section-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 820px;
            margin: 0 auto;

            .faq-item {
                border: 1.5px solid rgba(0, 0, 0, 0.09);
                border-radius: var(--radius);
                padding: 20px 25px;
                transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
                background-color: var(--bg-color);
                cursor: pointer;

                h3 {
                    font-size: var(--fs-md);
                    font-weight: var(--fw-semibold);
                    color: var(--text-color);
                    margin: 0;
                    padding-right: 36px;
                    position: relative;
                    line-height: 1.5;
                    transition: color 0.2s ease;

                    &::after {
                        content: '\002B';
                        position: absolute;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 26px;
                        height: 26px;
                        background-color: rgba(233, 111, 47, 0.1);
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 18px;
                        font-weight: 300;
                        color: var(--d-theme);
                        line-height: 26px;
                        text-align: center;
                        transition: background-color 0.2s ease, transform 0.3s ease;
                    }
                }

                p {
                    font-size: var(--fs-sm);
                    color: var(--charcoal);
                    line-height: 1.75;
                    margin: 0;
                    max-height: 0;
                    overflow: hidden;
                    opacity: 0;
                    transition: max-height 0.35s ease, margin-top 0.25s ease, opacity 0.3s ease;
                }

                &:hover:not(.active) {
                    border-color: rgba(233, 111, 47, 0.4);
                    box-shadow: 0 2px 12px rgba(233, 111, 47, 0.08);
                }

                &.active {
                    border-color: var(--d-theme);
                    background-color: var(--pearl);
                    box-shadow: 0 4px 20px rgba(233, 111, 47, 0.12);

                    h3 {
                        color: var(--d-theme);

                        &::after {
                            content: '\2212';
                            background-color: var(--d-theme);
                            color: #fff;
                        }
                    }

                    p {
                        max-height: 400px;
                        margin-top: 14px;
                        opacity: 1;
                    }
                }
            }

        }
    }

    @media (max-width: 1200px) {
        & {
            .form-search {}

            .popular-routes {
                padding-top: 250px;
            }
        }
    }

    @media (max-width: 992px) {
        & {
            .form-search {}

            .popular-routes {
                padding-top: 420px;

                .section-body {
                    grid-template-columns: repeat(2, 1fr);
                }
            }

            .explore {
                .section-body {
                    .explore-card-container {
                        grid-template-columns: repeat(2, 1fr);
                        grid-template-rows: repeat(3, 1fr);

                        /* Grid Area */
                        & {
                            .explore-card:nth-child(1) {
                                grid-area: 1 / 1 / 3 / 2;
                            }

                            .explore-card:nth-child(2) {
                                grid-area: 1 / 2 / 2 / 3;
                            }

                            .explore-card:nth-child(3) {
                                grid-area: 2 / 2 / 3 / 3;
                            }

                            .explore-card:nth-child(4) {
                                grid-area: 3 / 1 / 4 / 2;
                            }

                            .explore-card:nth-child(5) {
                                grid-area: 3 / 2 / 4 / 3;
                            }

                            .explore-card:nth-child(6) {
                                display: none;
                            }
                        }

                        .explore-card {
                            .explore-image {
                                min-height: 180px;
                            }
                        }
                    }
                }
            }

            .terminals-section {
                .card-content {
                    grid-template-columns: 1fr;

                    .map-content,
                    .terminal-details {
                        width: 100%;
                    }

                    .terminal-details {

                        .terminal-cta {
                            align-self: center;
                        }
                    }

                }
            }
        }
    }

    @media (max-width: 576px) {
        & {
            .wrapper {
                padding: 0 20px;
            }

            .form-search {
                height: auto;
                min-height: 720px;
                padding: 28px 0 34px;
                background-position: center center;

                .card-content {
                    top: auto;
                    left: auto;
                    transform: none;
                    gap: 18px;
                    width: 100%;

                    .card-title {
                        display: flex;
                        flex-direction: column;
                        flex-wrap: nowrap;
                        justify-content: center;
                        gap: 4px;
                        text-align: center;
                        max-width: 100%;
                        margin: 0 auto;
                        padding-bottom: 0;

                        span {
                            font-size: var(--fs-lg);
                            margin-left: 0;
                            text-align: center;
                        }

                        h1 {
                            font-size: var(--fs-xxl);
                            margin-bottom: 0;
                        }

                        p {
                            font-size: var(--fs-sm);
                        }
                    }

                    .card-form {
                        width: 100%;
                    }
                }
            }

            .popular-routes {
                padding-top: 35px;

                .section-body {
                    grid-template-columns: 1fr;
                    gap: 15px;

                    .route-card {

                        .route-image {
                            height: 250px;
                        }

                        .route-info {
                            padding: 10px;

                            h3 {
                                font-size: var(--fs-md);
                            }

                            p {
                                font-size: var(--fs-xs);
                            }
                        }
                    }
                }
            }

            .explore {
                .section-body {
                    .explore-card-container {
                        grid-template-columns: 1fr;
                        grid-template-rows: none;

                        /* Grid Area */
                        & {
                            .explore-card {
                                grid-area: auto;
                                display: flex;
                            }

                            .explore-card:nth-child(1) {
                                grid-area: auto;
                            }

                            .explore-card:nth-child(2) {
                                grid-area: auto;
                            }

                            .explore-card:nth-child(3) {
                                grid-area: auto;
                            }

                            .explore-card:nth-child(4) {
                                grid-area: auto;
                            }

                            .explore-card:nth-child(5) {
                                grid-area: auto;
                            }

                            .explore-card:nth-child(6) {
                                grid-area: auto;
                                display: flex;
                            }
                        }

                        .explore-card {
                            .explore-image {
                                min-height: 200px;
                            }
                        }
                    }
                }
            }

            .terminals-section {
                .card-content {
                    grid-template-columns: 1fr;

                    .map-content,
                    .terminal-details {
                        width: 100%;
                    }

                    .map-content {
                        border-radius: 12px;

                        iframe {
                            height: 360px;
                            max-width: 100%;
                        }
                    }

                    .terminal-details {

                        .terminal-cta {
                            align-self: center;
                            width: 100%;
                            justify-content: center;
                            text-align: center;
                        }
                    }

                }
            }

            .faqs-section {
                .section-body {
                    max-width: 100%;
                    padding: 0 10px;

                    .faq-item {
                        padding: 15px 20px;

                        h3 {
                            font-size: var(--fs-sm);
                        }

                        p {
                            font-size: var(--fs-xs);
                        }
                    }
                }
            }
        }
    }

    @media (max-width: 400px) {
        & {
            .form-search {
                .card-content {
                    .card-title {
                        span {
                            font-size: var(--fs-md);
                        }

                        h1 {
                            font-size: var(--fs-xl);
                        }

                        p {
                            font-size: var(--fs-xs);
                        }
                    }
                }
            }

            .popular-routes {
                .section-body {
                    .route-card {

                        .route-image {
                            height: 200px;
                        }

                        .route-info {
                            padding: 8px;

                            h3 {
                                font-size: var(--fs-sm);
                            }

                            p {
                                font-size: var(--fs-xs);
                            }
                        }
                    }
                }
            }

            .explore {
                .section-body {
                    .explore-card-container {
                        .explore-card {
                            .explore-image {
                                min-height: 150px;
                            }

                            .explore-info {
                                padding: 8px;

                                h3 {
                                    font-size: var(--fs-sm);
                                }

                                p {
                                    font-size: var(--fs-xs);
                                }
                            }
                        }
                    }
                }
            }

            .terminals-section {
                .card-content {
                    .terminal-details {
                        h2 {
                            font-size: var(--fs-lg);
                        }

                        .detail-row {
                            .detail-text {
                                strong {
                                    font-size: var(--fs-xs);
                                }

                                span,
                                p {
                                    font-size: var(--fs-sm);
                                }
                            }
                        }

                        .terminal-cta {
                            padding: 10px 20px;
                            font-size: var(--fs-sm);
                        }
                    }
                }
            }

            .faqs-section {
                .section-body {
                    .faq-item {
                        padding: 12px 20px;

                        h3 {
                            font-size: var(--fs-sm);
                        }

                        p {
                            font-size: var(--fs-xs);
                        }
                    }
                }
            }
        }
    }

}