
/* Tooltip styling */
.tooltip-text {
    position: absolute;
    top: -50px;
    left: 23px;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-hover-underline :hover{
    text-decoration: underline;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.flight_search_middel .tooltip-text {
    top: 25px;
    left: 50%;
    font-size: 12px;
}

.flight_search_middel.train-include .tooltip-text {
    top: -25px;
}

.box-train-component .timeline:hover .tooltip-text,
.flight_search_middel:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.flight_search_middel:hover h3.title,
.ticket-details .tour_booking_amount_area ul li > span.detail {
    text-decoration: underline;
    color: var(--main-color);
}
/* end */

.flight_search_destination.train{
    min-width: 33% !important;
}

.is-tablet{
    display: none;
}




/* box inner component */
.box-train-component {
    padding: 0 30px;
    display: flex;
    /* flex-wrap: wrap; */
    width: 100%;
    /* gap: 10px; */
}

.box-train-component .timeline {
    border-top: 2px solid #ddd;
    position: relative;
    padding-top: 12px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex: 1 1 calc(100% / 6 - 20px);
    max-width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    cursor: pointer;
}

.box-train-component .timeline::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(2,63,156,1);
    border-radius: 50%;
    top: -5px;
    cursor: pointer;
}

.box-train-component .timeline.first::before {
    left: -5px;
    /* background-color: green; */
}

.box-train-component .timeline.last::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    /* background-color: var(--sita-main-color); */
    background-color: rgba(2,63,156,1);
    border-radius: 50%;
    right: -7px;
    top: -5px;
    cursor: pointer;
}

.box-train-component .event {
    display: flex;
    align-items: center;
    position: absolute;
    top: 10px;
    left: -20px;
}

.box-train-component .location {
    font-weight: 400;
    font-size: 16px;
    min-width: 120px;
}

.box-train-component .time {
    color: #666;
    font-size: 14px;
}

.box-train-component .timeline-last .event {
    top: -34px;
}

/* end */

p.estimation {
    color: #898989;
    font-size: 14px;
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}




/* loading */

.loadingBox {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

#loading-train-process {
    background: #fff;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

/* .loadingBox__icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: .8;
} */

.loading-train h2 {
    font-weight: 400;
    line-height: 5.4em;
    color: var(--main-color);
}

.loadingBox #loading-train-process:before,
.loadingBox #loading-train-process:after {
    content: "";
    display: block;
    left: 0;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    position: absolute;
}

.loadingBox #loading-train-process:before {
    bottom: 47%;
    width: 600px;
    height: 80px;
    background-image: url('../img/bridge.png');
    z-index: 11;
}

.loadingBox #loading-train-process:after {
    bottom: 46%;
    width: 100%;
    height: 442px;
    background-image: url('../img/train-bg-journey.png');
    z-index: 1;
}

.loadingBox #loading-train-process:before,
.loadingBox #loading-train-process:after {
    background-size: cover;
    background-position: center;
}


#loading-train-process .js-marquee-wrapper {
    z-index: 10;
}

.section-gap {
    background-image: url('../img/bridge-dark.png');
    background-repeat: repeat-x;
    background-position: 0 0;
    height: 80px;
    width: 100%;
    overflow: visible;
    /* background-size: 100% 100%; */
    position: absolute;
    top: 52%;
    left: 0;
    z-index: 9;
}

.train-text-process {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 100%;
    text-align: center; */
    z-index: 20;
}

.train-text-process h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 40px;
    color: var(--main-color);
    text-align: center;
}

#loading-train-process .img {
    max-height: 43px;
    height: 100%;
    width: auto;
    object-fit: contain;
}

#loading-train-process {
    overflow: hidden;
    position: relative;
    width: 100%;
}

#loading-train-process img {
    position: absolute;
    left: 0;
    animation: moveLeftToRight 15s linear forwards;
}

@keyframes moveLeftToRight {
    from {
        left: 0;
    }

    to {
        left: 100%;
    }
}

/* end */
.opacity-8 {
    opacity: 0.8;
}

