
.travel-data-widget .travel-tabs {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f5f5f5;
    flex-wrap: wrap;
}

.travel-data-widget .tab-buttons-container {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
}

.travel-data-widget .tab-button {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    flex-grow: 1;
    text-align: center;
}

.travel-data-widget .tab-button:hover {
    background-color: #e0e0e0;
}

.travel-data-widget .tab-button.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
    background-color: #fff;
}

.travel-data-widget .tab-icon {
    margin-right: 5px;
    font-size: 18px;
}

.travel-data-widget .confirm-button {
    padding: 12px 20px;
    border: none;
    background-color: #0068d7;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: auto;
}

.travel-data-widget .confirm-button:hover {
    background-color: #0056b3;
}

.travel-data-widget .tab-content {
    max-height: 91vh;
    overflow-y: hidden;
}

.travel-data-widget .tab-pane {
    display: none;
}

.travel-data-widget .tab-pane.active {
    display: block;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .travel-data-widget .travel-tabs {
        flex-direction: column;
    }

    .travel-data-widget .tab-buttons-container {
        width: 100%;
    }

    .travel-data-widget .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .travel-data-widget .tab-icon {
        font-size: 16px;
    }

    .travel-data-widget .confirm-button {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
    }

    .travel-data-widget .tab-content {
        max-height: 85vh;
        overflow-y: hidden;
    }
}


@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

#confirmation-popup .flight-box,
#confirmation-popup .hotel-box,
#confirmation-popup .restaurant-box {
    width: 100%;
    margin-bottom: 20px;
}
#confirmation-popup .sight-image {
    width: 250px;
    border-radius: 5px;
    height: 250px;
    overflow: hidden;
    margin-bottom: 10px;
}
#confirmation-popup .sight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#confirmation-popup .sight-list-container {
    padding: 0px;
    margin-bottom: 15px;
}
/* #confirmation-popup .sight-box h4 {
    color: #3498db;
    margin: 0 0 10px 0;
    width:250px;
} */


#confirmation-popup .restaurant-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#confirmation-popup .restaurant-column {
    width: 48%;
}

#confirmation-popup img {
    max-width: 100%;
    height: auto;
}

.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px;
text-align: center;
}
.progress-bar {
width: 100%;
background-color: #f0f0f0;
padding: 3px;
border-radius: 3px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
}
.progress {
display: block;
height: 22px;
background-color: #659cef;
border-radius: 3px;
transition: width 500ms ease-in-out;
}






.leaflet-routing-container {
    display:none !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 400px !important;
    max-height: 30vh !important; /* Changed from 200px to allow more flexibility */
    overflow-y: auto !important;
    background-color: white !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
    border-radius: 15px !important;
    padding: 10px !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important; /* Added for smooth transitions */
}

.leaflet-routing-container.active {
    display:none !important;
}

.leaflet-routing-container h2 {
    display:none !important;
    font-size: 1.2em!important;
    margin-bottom: 10px!important;
}

.leaflet-routing-alt {
    max-height: none !important;
}

.leaflet-routing-alt table {
    margin: 0 !important;
}
.leaflet-routing-container.leaflet-routing-collapsed,
.leaflet-routing-collapse-btn {
    display:none !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.leaflet-routing-container.leaflet-routing-collapsed {
    display:none !important;
    background-color: white !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.leaflet-routing-collapse-btn {
    background-image: url('https://triphelper.sengital.ai/wp-content/uploads/2024/08/compass.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    transition: filter 0.3s ease !important;
}

.leaflet-routing-container .leaflet-routing-collapse-btn {
    display:none !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1001 !important;
}

.leaflet-routing-container.leaflet-routing-collapsed .leaflet-routing-collapse-btn {
    display:none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.leaflet-routing-collapse-btn:hover {
    filter: brightness(0.9) !important;
}

.leaflet-routing-collapsed .leaflet-routing-geocoders,
.leaflet-routing-collapsed .leaflet-routing-alternatives-container {
    display: none !important;
}

.leaflet-routing-container .leaflet-routing-collapse-btn::after,
.leaflet-routing-container .leaflet-routing-collapse-btn::before {
    display:none !important;
    content: none !important;
}
.leaflet-routing-container.custom-collapsed {
    display:none !important;
    width: 40px !important;
    height: 40px !important;
    overflow: hidden !important;
}

.restaurant-list-container {
    display: flex;
    height: 91vh;
    overflow: hidden;
    position: relative;
}

.restaurant-list {
    flex: 0 0 45%;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 91vh;
    transition: transform 0.3s ease-in-out;
}

.restaurant-map {
    flex: 0 0 55%;
    position: sticky;
    top: 0;
    right: 0;
    height: 91vh;
    transition: transform 0.3s ease-in-out;
    background-color: #fff;
    z-index: 1000;
}

#restaurant-map-container {
    height: 100%;
    width: 100%;
}


#restaurant-map {
    height: 100%;
    width: 100%;
}

.restaurant-map-toggle-btn {
    display: none;
    position: absolute;
    top: 10px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    background-color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.restaurant-map-toggle-btn i {
    color: #fff;
    font-size: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#show-restaurant-map-btn {
    right: 10px;
}

#hide-restaurant-map-btn {
    left: 10px;
}

@media screen and (max-width: 768px) {
    .restaurant-list-container {
        flex-direction: column;
        height: 85vh;
    }
    
    .restaurant-list {
        flex: 0 0 100%;
        max-height: 85vh;
    }

    .restaurant-map-toggle-btn {
        display: flex;
    }

    .restaurant-map {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        margin-top: 100px;
        max-height: 85vh;
    }

    .restaurant-list-container.show-map .restaurant-list {
        transform: translateX(-100%);
    }

    .restaurant-list-container.show-map .restaurant-map {
        margin-top: 100px;
        max-height: 85vh;
        transform: translateX(-100%);
    }
}

.restaurant-box {
    width: 100%;
    margin-bottom: 20px;
    border: 2px solid transparent;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
    padding-bottom: 40px;
}

.restaurant-box:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.restaurant-box.highlight {
    border-color: #4CAF50;
    background-color: #F1F8E9;
    box-shadow: 0 8px 16px rgba(63, 63, 63, 0.3);
    transform: translateY(-5px);
}

.restaurant-box.highlight-temp {
    border-color: #f2fdff;
    background-color: #f2fdff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.restaurant-box.highlight::before {

    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.select-restaurant-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 8px 12px; /* Increased padding for a taller button */
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}



.restaurant-box.highlight .select-restaurant-btn {
    background-color: #4CAF50;
}

.restaurant-box.highlight .select-restaurant-btn::before {
    content: '✓ ';
}
.highlight .select-restaurant-btn::after {
    content: none;
}



.restaurant-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.restaurant-title {
    display: flex;
    align-items: center;
}

.restaurant-title h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.restaurant-box p {
    
    color: #666;
    font-size: 0.9em;
}

.restaurant-box a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.restaurant-box a:hover {
    text-decoration: underline;
}


.more-link-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.more-link {
    display: inline-block;
    padding: 1px 12px;
    background-color: #2196F3;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.more-link:hover {
    background-color: #1E88E5;
}

@media (min-width: 300px) {
    .restaurant-box {
        width: calc(50% - 10px);
    }
}
@media screen and (min-width: 769px) {
    /* .restaurant-list {
        flex: 0 0 45%;
    }

    .restaurant-map {
        flex: 0 0 55%;
        position: sticky;
        top: 0;
        right: 0;
        transform: none;
        height: 91vh;
    } */

    .restaurant-map-toggle-btn {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .restaurant-list-container {
        flex-direction: column;
        height: 85vh;
    }
    
    .restaurant-list {
        max-height: 85vh;
    }
    
    .restaurant-map-toggle-btn {
        display: block;
    }
    
    .restaurant-map {
        margin-top: 100px;
        max-height: 85vh;
    }

    .restaurant-list-container.show-map .restaurant-list {
        transform: translateX(-100%);
    }

    .restaurant-list-container.show-map .restaurant-map {
        margin-top: 100px;
        max-height: 85vh;
        transform: translateX(-100%);
    }
}

/*@media (min-width: 500px) {
    .restaurant-box {
        width: calc(33.33% - 13.33px);
    }
} */



.sight-list-container {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
}

.trip-info {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 15px;
    max-width: 100%;
    margin-bottom: 20px;
}

.trip-info h2 {
    color: #0a85ff;
    margin-top: 0;
    font-size: 36px;
    text-align: center;
}

.itinerary-scroll-container {
    max-height: calc(100vh - 190px); /* Define a maximum height for scrolling */
    overflow-y: auto;
    
    padding-bottom: 15px;
}

.itinerary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 15px;
    flex-wrap: nowrap; /* Ensure items don't wrap */
}

.day-row {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day-row h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
    width:100%;
}

.sights-container {
    display: flex;
    overflow-x:auto;
    gap: 15px;
}


.sight-box {
    border: 1px solid #ddd;
    padding: 15px 15px 5px 15px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sight-image {
    width: 250px;
    border-radius: 5px;
    height: 250px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.sight-box h4 {
    color: #3498db;
    margin: 0 0 10px 0;
    width:250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px; /* Starting font size */
    text-align: center;
}





.sight-box p {
    margin: 5px 0;
}

/* Scrollbar Styles */

/* .restaurant-list::-webkit-scrollbar, */
.hotel-list::-webkit-scrollbar,
.sights-container::-webkit-scrollbar,
.itinerary-scroll-container::-webkit-scrollbar {
    height: 8px;
}
/* .restaurant-list::-webkit-scrollbar-track, */
.hotel-list::-webkit-scrollbar-track,
.sights-container::-webkit-scrollbar-track,
.itinerary-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
/* .restaurant-list::-webkit-scrollbar-thumb, */
.hotel-list::-webkit-scrollbar-thumb,
.sights-container::-webkit-scrollbar-thumb,
.itinerary-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
/* .restaurant-list::-webkit-scrollbar-thumb:hover, */
.hotel-list::-webkit-scrollbar-thumb:hover,
.sights-container::-webkit-scrollbar-thumb:hover,
.itinerary-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .flight-list-container {

        max-height: 85vh;

    }
    .flight-content {
        flex-direction: column;
    }
    .airline-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .flight-details {
        flex-direction: column;
    }
    .departure, .arrival {
        margin-bottom: 10px;
    }
    .flight-duration {
        margin: 10px 0;
    }
    .flight-line {
        width: 2px;
        height: 50px;
    }
    .flight-line::before, .flight-line::after {
        left: -3px;
    }
    .flight-line::before {
        top: -4px;
    }
    .flight-line::after {
        bottom: -4px;
        top: auto;
    }
    #confirmation-popup{
        left:10px;
        right:10px;
        z-index: 1000;
    }
    .itinerary-scroll-container {
        max-height: calc(100vh - 230px); /* Define a maximum height for scrolling */

    }
}

@media (max-width: 580px) {
    .trip-info h2 {
        font-size: 30px;
    }
    .itinerary-scroll-container {
        max-height: calc(100vh - 270px); /* Define a maximum height for scrolling */

    }
}