@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css');



.route-display {
    font-family: 'Roboto', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 ;
    padding: 0px;
    background-color: #ffffff;
    border-radius: 10px;
}
.route-container {
    display: flex;
    gap: 20px;
    position: relative;
}

.route-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow */
}


.day-list {
    flex-grow: 1;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.day-list ul {
    border-radius: 8px 0 0 0;
    background-color: #baecf7;
    display: flex;
    flex-wrap: nowrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    height: 100%;
}

.day-list li {
    flex: 1 1 auto;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.day-list li:last-child {
    border-right: none;
}

.day-list li:hover {
    background-color: #f0f0f0;
}

.day-list li.active {
    background-color: #007bff;
    border-radius: 0px 0px 0px 0px;
    color: white;
}

.day-number {
    font-weight: 700;
    display: block;
    font-size: 16px;
}

.day-date {
    font-size: 14px;
    color: #666;
}

.map-container {
    width: 30%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    transition: width 0.3s ease-in-out;
}

#map {
    height: 100%;
    
}
.toggle-map-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #007bff;
    padding: 0 0px 0 3px;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#toggleMapStyle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: white;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: background-color 0.3s ease;
}

.map-style-toggle:hover {
    background-color: #f4f4f4;
}
#toggleMapStyle i {
    pointer-events: none;
}

.map-container.expanded {
    width: 60%;
    transition: width 0.3s ease-in-out;
}

.expandMap-btn {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px !important; /* Added !important to override any other styles */
    min-width: 30px !important; /* Added to prevent minimum width constraints */
    max-width: 30px !important; /* Added to ensure maximum width */
    height: 36px;
    background: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    border-radius: 0 8px 8px 0;
    padding: 0;
    box-sizing: border-box;
    outline: none; /* Remove outline on focus */
}

/* Handle all button states */
.expandMap-btn:focus,
.expandMap-btn:active,
.expandMap-btn:hover {
    background: white; /* Keep background white */
    outline: none; /* Remove outline */
    border: none; /* Ensure no border appears */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Remove default button styling for WebKit browsers */
.expandMap-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}



.expandMap-btn i {
    font-size: 12px; /* Changed from 16px to 12px - smaller icon */
    color: #555;
    transition: transform 0.3s ease;
}

.expandMap-btn:hover {
    background-color: #f5f5f5;
}

.expanded .expandMap-btn i {
    transform: rotate(180deg);
}



.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
}

.custom-marker {
    width: 35px;
    height: 35px;
    position: relative;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    transform-origin: bottom right;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.8);
}

.custom-marker i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
    margin-left: 0px;
    margin-top: 0px;
}

.sight-number {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 12px;

}

.side-panel {
    position: fixed;
    right: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
}

.side-panel.open {
    right: 0;
}

.close-btn {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 1001;
}

.panel-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.costs-breakdown {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.costs-breakdown h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}


.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.cost-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cost-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cost-item i {
    font-size: 1.5em;
    color: #4a90e2;
    margin-bottom: 8px;
}

.cost-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.cost-value {
    font-weight: bold;
    color: #333;
}

.daily-cost-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    width: max-content;
    z-index: 1000;
}

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

.cost-item:hover .daily-cost-tooltip {
    opacity: 1;
    visibility: visible;
}

.day-details {
    flex: 1; /* Take up remaining space */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: #fff;
    border-radius: 0 0 8px 8px; /* Rounded corners only at the bottom */
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.1);
    
}

.day-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
}

.day-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.day-summary {
    font-size: 14px;
    color: #666;
}

.optimize-route {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    float: right;
}

.itinerary-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.itinerary-item {
    padding: 3px 10px;
    background-color: #ffffff;
} 
.itinerary-item .item-content-big {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.item-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.item-cost, .item-time {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px;
}
.itinerary-item.transportation {
    position: relative;
}

.transportation .item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0px 0px 0px 30px;
    background-color: #e1fafd;
    border-radius: 5px;
    margin: 0 30px;
}
.transport-toggle-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #5c64ff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0 0 0 4px;
}


.transport-toggle-btn:hover {
    background-color: #007bff;
    z-index: 10;
}

.transport-toggle-btn i {
    transition: transform 0.3s;

}

.transport-toggle-btn.active i {
    transform: rotate(180deg);
    padding: 0 0px 0 8px;
}

.transportation .item-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 1000px; /* Adjust as needed */
    opacity: 1;
    overflow: hidden;
}


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

.new-itinerary-section input[type="text"],
.new-itinerary-section input[type="time"],
.new-itinerary-section input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.new-itinerary-section .time-and-type-selectors {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;

}


.new-itinerary-section .time-selectors {
    display: flex;
    flex-wrap: nowrap; /* CHANGE: from wrap to nowrap */
    gap: 10px;
    flex-grow: 1; /* NEW: allow time selectors to grow */
}

.new-itinerary-section .time-selectors > div {
    flex: 1;
    min-width: 0; /* CHANGE: from 150px to 0 */
}

.new-itinerary-section label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
}

.new-itinerary-section .type-selectors {
    margin-left:30px;
    margin-right:-10px;
    display: flex;
    gap: 10px;
}

.new-itinerary-section .type-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-itinerary-section .type-button-label-s {
    margin-bottom: 5px;
    font-size: 14px;
    color: #495057;
}
.new-itinerary-section .type-button-label-r {
    margin-bottom: 5px;
    margin-left: 5px;
    font-size: 14px;
    color: #495057;
}

.new-itinerary-section .type-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 5px;
    border: 2px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transition: all 0.3s ease;
}

.new-itinerary-section .type-button i {
    font-size: 20px;
}

.new-itinerary-section .sight-button i {
    position: absolute;
    top: 7px; /* Adjust this value to move the icon up */
    right: 5px; /* Adjust this value to move the icon right */
}

.new-itinerary-section .restaurant-button i {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
}

.new-itinerary-section .type-button:hover,
.new-itinerary-section .type-button.active {
    background-color: #007bff;
    color: white;
}

.new-itinerary-section .button-container {
    display: flex;
    gap: 0px;
    margin-top: -5px;
}
.new-itinerary-section .button-container button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0px;
    padding: 0 0 0 5px;
    background-color: transparent;
    color: #555;
}

.new-itinerary-section .save-new-itinerary:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #007bff;
}

.new-itinerary-section .delete-new-itinerary:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #dc3545;
}

.new-itinerary-section .button-container button:hover {
    opacity: 0.8;
}

.new-itinerary-section .button-container button::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 25px;
}

.new-itinerary-section .save-new-itinerary::before {
    content: "\f0c7"; /* Font Awesome save icon */
}

.new-itinerary-section .delete-new-itinerary::before {
    content: "\f1f8"; /* Font Awesome trash icon */
}


@media (max-width: 1005px) {
    .new-itinerary-section .time-and-type-selectors {
        flex-direction: column;

    }

    .new-itinerary-section .type-button-label-s {
        margin-bottom: 3px;

    }
    .new-itinerary-section .type-button-label-r {
        margin-bottom: 3px;
        margin-left: 0px;

    }

    .new-itinerary-section .type-selectors {
        margin-left:0px;
        margin-right:0px;
        margin-bottom: 10px;
    }

    .new-itinerary-section .button-container {
        margin-top: -50px;
        gap: 0px;
    }
}






.itinerary-item {
    position: relative;
}

.item-note {
    margin: 5px 0;
    padding: 5px;
    min-height: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.item-note:empty:before {
    content: attr(data-placeholder);
    color: #999;
}
.item-note[contenteditable=true]:empty:before {
    content: attr(data-placeholder);
    color: #888;
    font-style: italic;
}

.editing .item-note {
    border-color: #ccc;
}

.item-time-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-picker {
    position: relative;
    width: 80px;
    height: 40px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #f0f0f0;
}

.editing .time-picker {
    overflow: visible;
}

.time-picker-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.time-picker-scroll::-webkit-scrollbar {
    display: none;
}

.time-option {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.time-separator {
    font-size: 20px;
    color: #666;
}
.itinerary-item.dragging {
    opacity: 0.5;
    cursor: move;
}

.itinerary-item {
    user-select: none;
}

.itinerary-item:hover {
    transform: translateX(5px);
}

.confirm-dialog {
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 200px;
    text-align: center;
    z-index: 1000;
    position: fixed;
    border: 1px solid #ccc;
}

.confirm-dialog p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
}

.confirm-dialog button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s, transform 0.1s;
}

.confirm-dialog button:hover {
    transform: translateY(-1px);
}

.confirm-dialog button:active {
    transform: translateY(1px);
}

.confirm-dialog .confirm-delete {
    background-color: #dc3545;
    color: white;
}

.confirm-dialog .confirm-delete:hover {
    background-color: #c82333;
}

.confirm-dialog .cancel-delete {
    background-color: #6c757d;
    color: white;
}

.confirm-dialog .cancel-delete:hover {
    background-color: #5a6268;
}


.transport-info {
    display: flex;
    align-items: center;
    
}

.transport-icon {
    font-size: 18px;
    margin-right: 10px;
}

.transport-duration {
    font-size: 14px;
    color: #666;
}
.money-icon {
    margin-left: 20px;
    font-size: 18px;

}

.money-amount-text {
    font-size: 14px;
    color: #666;
}

.direction-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-right: 30px;
}

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-type {
    font-size: 12px;
    padding: 0px 10px;
    border-radius: 5px;
    color: white;
    text-transform: capitalize;
}

.hotel-box2 {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* Normal state */
.hotel-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.hotel-image-container {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.hotel-image-container img {
    width: 100%;
    min-height: 180px;
    max-height: 180px;
    object-fit: cover;
}

.hotel-content2 {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 10px 0px 0 20px;
    gap: 10px;
}

/* Expanded state */

.hotel-box2.expanded .hotel-layout {
    flex-direction: column;
}

.hotel-box2.expanded .hotel-image-container {
    width: 100%;
    min-height: auto;
    max-height: auto;
}

.hotel-box2.expanded .hotel-content2 {
    width: 100%;
    padding: 15px;
    align-items: start;
}

.hotel-main-info {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}

.hotel-time-info {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.hotel-price-info {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading-spinner::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.flight-list.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hotel-list-2.loading {
    opacity: 0.6;
    pointer-events: none;
}

.flight-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: 75vh; /* Adjust as needed */
    overflow-y: auto;
}

/* Style the scrollbar */
.flight-list-container::-webkit-scrollbar {
    width: 8px; /* Adjust width as needed */
}

.flight-list-container::-webkit-scrollbar-thumb {
    background-color: #c1c1c1; /* Light grey color for the thumb */
    border-radius: 4px;
}

.flight-list-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.flight-box {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.flight-box.selected {

    border-color: #7ab37c;
    background-color: #f7fff8;
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);

}
.flight-box.selected:hover {
    transform: none;
}

.flight-content {
    display: flex;
    align-items: center;
}

.airline-logo {
    flex: 0 0 80px;
    margin-right: 20px;
}

.airline-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.flight-info {
    flex: 1;
}

.flight-info h3 {
    margin: 0 0 5px;
    color: #333;
    font-size: 1.4em;
}

.aircraft-type {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 10px;
}

.flight-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.departure, .arrival {
    text-align: center;
}

.airport {
    font-weight: bold;
    margin: 0;
}

.time {
    color: #666;
    margin: 5px 0 0;
}

.flight-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.flight-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    margin-top: 20px;
    flex: 1;
    min-width: 100px;
}

.connection-type {
    font-size: 0.75em;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

.flight-line2 {
    width: 100px;
    height: 2px;
    background-color: #ddd;
    position: relative;
}

.flight-line2::before, .flight-line2::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    top: -3px;
}

.flight-line2::before {
    left: -4px;
}

.flight-line2::after {
    right: -4px;
}

.flight-line {
    width: 100px;
    height: 2px;
    background-color: #ddd;
    position: relative;
    margin: 5px 0;
}

.flight-line::before, .flight-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    top: -3px;
}

.flight-line::before {
    left: -4px;
}

.flight-line::after {
    right: -4px;
}

.stops-badge, .direct-badge {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.stops-badge {
    background-color: #ffd700;
    color: #333;
}

.direct-badge {
    background-color: #4CAF50;
    color: white;
}

.flight-line.with-stops {
    position: relative;
}

.stops-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffd700;
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.show-stops-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 10%;
    padding: 8px;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;

}

.show-stops-btn:hover {
    background-color: #e9ecef;
}

.show-stops-btn i {
    font-size: 0.8em;
    color:black;
    transition: transform 0.3s ease;
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #4CAF50;
    margin: 10px 0 0;
}

.select-flight {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;
}
.select-flight::before {
    content: '✓ ';
}
.flight-box.selected .select-flight {
    opacity: 1;
}


.change-flight-btn,
.change-hotel-btn {
    display: none; /* Hide button by default */
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 3px 5px 7px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.3s;
}


.update-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    height:40px;
    width:50px;
    padding: 5px 3px 5px 7px;
    background-color: rgba(255, 255, 255, 0.9); 
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

/* Show button on hover */
.flight-box2:hover .change-flight-btn,
.hotel-box2:hover .change-hotel-btn {
    display: block;
}
.change-flight-btn i ,
.update-btn,
.change-hotel-btn i {
    color: #000000;
}
.change-flight-btn:hover,
.update-:hover,
.change-hotel-btn:hover {
    background-color: #f0f0f0;
}



/* Overlay styles */
.flight-change-overlay,
.hotel-change-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
.flight-change-modal,
.hotel-change-modal {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}
.flight-change-modal{
    width: 55%;
}
.hotel-change-modal{
    width: 90%;
}

.close-modal {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    padding: 0;
    transition: background-color 0.3s ease;
    z-index: 1000; /* Add this to ensure button is above other elements */
}

.close-modal:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1);
}

.close-modal:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.popup-button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

#close-popup {
    background-color: #f0f0f0;
    color: #333;
}

#close-popup:hover {
    background-color: #e0e0e0;
}

#next-button {
    background-color: #4CAF50;
    color: white;
}

#next-button:hover {
    background-color: #45a049;
}

.hotel-box {
    border: 1px solid #ddd;
    padding: 15px;
    padding-bottom: 30px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 1;
}

.hotel-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.04);
    z-index: 10;
}

.hotel-box.highlight {
    background-color: #fdfff6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transform: scale(1.04);
    z-index: 10;
}

.hotel-box.selected {
    border-color: #4CAF50;
    background-color: #F1F8E9;
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
    transform: translateY(-5px);
}

.hotel-box .select-hotel-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;
}

.hotel-box .select-hotel-btn:hover {
    background-color: #0056b3;
}

.hotel-box.selected .select-hotel-btn {
    background-color: #4CAF50;
}

.hotel-box.selected .select-hotel-btn::before {
    content: '✓ ';
}

/* Remove conflicting styles */
.hotel-box.selected::before,
.selected .select-hotel-btn::after {
    content: none;
}

.hotel-image {
    position: relative;
}

.hotel-image img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    object-fit: cover;
}
.hotel-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.hotel-info i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: #007bff; /* Use your preferred color */
}

.hotel-info strong {
    margin-right: 5px;
}


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

.hotel-title h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.hotel-title .small-image {
    margin-left: 10px;
    width: 30px; /* Adjust the width as needed */
    height: auto;
    border-radius: 5px;
    position: relative;
    cursor: pointer; /* Ensure cursor changes to pointer */
}

.hotel-box p {
    margin: 5px 0;
    color: #555;
}

.hotel-box a {
    color: #0073aa;
    text-decoration: none;
}

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

/* General nav-button styles */
.hotel-box .nav-button {
    position: absolute;
    top: 0%; /* Start slightly from the top */
    height: 100%; /* Stretch to almost the bottom */
    width: 30px; /* Adjusted width */
    min-width: 0; /* Ensure no minimum width constraint */
    background-color: rgba(255, 255, 255, 0.1); /* More transparent white */
    color: white;
    border: none;
    cursor: pointer;
    z-index: 2; /* Ensure buttons are above the image */
    transition: background-color 0.3s, width 0.3s; /* Added width transition */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Removed border-radius to make it rectangular */
    text-decoration: none; /* Remove text-decoration */
    user-select: none; /* Prevent text selection */
    box-sizing: border-box; /* Include padding and border in width and height */
    padding: 0; /* Ensure no padding is added */
    margin: 0; /* Ensure no margin is added */
}

.hotel-box .nav-button.left {
    left: 0; /* Positioned at the left edge */
}

.hotel-box .nav-button.right {
    right: 0; /* Positioned at the right edge */
}

.hotel-box .nav-button:active {
    background-color: rgba(255, 255, 255, 0.3); /* Less transparent white when pressed */
}

.hotel-box .nav-button:focus {
    outline: none; /* Remove the blue outline */
}

.hotel-box .nav-button:focus-visible {
    outline: none; /* Remove the blue outline for keyboard focus */
}

.hotel-box .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Less transparent white on hover */
}

.hotel-box .nav-button:visited {
    color: white; /* Ensure visited state doesn't change color */
}
.hotel-box .nav-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1); /* More transparent white /
    pointer-events: none; / Ensure the overlay doesn't block button clicks */
    transition: background-color 0.3s;
}

.hotel-box .nav-button:active::after {
background-color: rgba(255, 255, 255, 0.3);  
}

.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.popup-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.image-popup .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

.image-popup .nav-button.left {
    left: 10px;
}

.image-popup .nav-button.right {
    right: 10px;
}

.hidden-info {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 0px; /* Add this to leave space on both sides */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 200px; /* Adjust as needed */
    overflow-y: auto;
}

.info-trigger {
    position: absolute;
    bottom: 10px; /* Lowered further */
    left: 15px;
    width: 20px; /* Reduced width */
    height: 20px; /* Reduced height */
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px; /* Reduced font size */
    z-index: 11;
}

.info-trigger:hover + .hidden-info,
.info-trigger:focus + .hidden-info,
.hidden-info:hover {
    display: block;
}






.hotel-list-container {
    display: flex;
    height: 100%;
    overflow: hidden;
    position: relative;
}
#hotel-map-container {
    height: 100%;
    width: 100%;
}

.hotel-list {
    flex: 0 0 45%;
    overflow-y: auto;
    padding: 20px;
    height: 75vh;
    transition: transform 0.3s ease-in-out;
}

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

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

.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 0 0 3px;
}

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

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

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

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

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

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

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

    .hotel-list-container.show-map .hotel-map {
        margin-top: 100px;
        max-height: 85vh;
        transform: translateX(-100%);
    }
    .flight-change-modal{
        width: 90%;
    }
}
/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px; /* Made the tooltip wider */
    background-color: #a198add8;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px; /* Added padding for more space */
    position: absolute;
    z-index: 3;
    bottom: 125%; /* Position above the element */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #9d9d9d transparent transparent transparent;
}

/* Show the tooltip text when you hover over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Style for the "Recommend!" text */
.tooltip .tooltiptext .recommend {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}

/* Adjust tooltip position if near the right edge */
.tooltip-right .tooltiptext {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.tooltip-right .tooltiptext::after {
    left: auto;
    right: 10px;
}
.tooltip-left .tooltiptext {
    left: 0;
    right: auto;
    transform: translateX(0);
}

.tooltip-left .tooltiptext::after {
    left: 10px;
    right: auto;
}
.tooltip-top .tooltiptext {
    bottom: 125%; /* Position above the element */
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-top .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #57525ed8 transparent transparent transparent;
}

.reference_source {
  margin-top: 2rem;
  padding: 0 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.reference_source.collapsed {
  padding-bottom: 0;
}

.source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
}

.source-header h3 {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.toggle-icon {
  font-size: 0.8rem;
  color: #718096;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.reference_source:not(.collapsed) .toggle-icon {
  transform: rotate(0deg);
}

.reference_source.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.source-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.reference_source:not(.collapsed) .source-content {
  max-height: 1000px; /* Adjust based on your content height */
}

/* Keep existing .source-category, .source-list, .source-item styles */
.source-category {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

/* Add this to maintain existing styles */
.source-category h4 {
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid #edf2f7;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .hotel-box2 {
        height: auto;
    }

    .hotel-layout {
        flex-direction: column;
    }
    
    .hotel-image-container,
    .hotel-content2 {
        width: 100%;
        align-items: start;
    }
    
    .hotel-image-container {
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
}



.day-list-container {
    position: relative;
    display: flex;
    align-items: stretch;
}
.content-scroll-container {
    height: calc(100vh - 100px);
    overflow-y: auto;
    
}

/* Custom scrollbar styles for better appearance */
.content-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.content-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.content-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.info-button {
    position: relative;
    background-color: #baecf7;
    color: white;
    border-left:  1px  solid rgb(232, 232, 232);
    width: 40px;
    height: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border-radius: 0 8px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-button:hover {
    background-color: #f0f0f0;
}


.info-button.active {
    background-color: #007bff !important;
}

.info-button.active i {
    color: white !important;
}
.trip-info {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px !important;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.info-section {
    position: relative;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.info-section h3 {
    margin-top: 0;
    color: #3498db;
}

.info-list {

    gap: 20px;
    overflow-y: auto;
    padding: 15px;
}

.info-list::-webkit-scrollbar {
    width: 8px;
}

.info-list::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

.info-list::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.info-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}



.info-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.info-detail {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.info-detail i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: #007bff;
}

.info-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #3498db;
    margin-top: 10px;
}

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

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

/* Specific styles for flight boxes */
.flight-box2 .flight-image {
    height: 60px;
    object-fit: contain;
    align-items: center;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
}

.flight-details2 {
    display: colume;
    
}

.flight-route {
    text-align: center;
    flex: 1;
    min-width: 80px;
    margin: 5px;
}
.flight-stops {
    display:flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}



.rest-section {
    margin-bottom: 20px;
}

.info-section .rest-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    white-space: nowrap; /* Prevent line breaks */
}


/* Scrollbar styles */
.trip-day-content::-webkit-scrollbar,
.info-section .rest-list::-webkit-scrollbar {
    height: 8px;
}
.trip-day-content::-webkit-scrollbar-track,
.info-section .rest-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.trip-day-content::-webkit-scrollbar-thumb,
.info-section .rest-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.trip-day-content::-webkit-scrollbar-thumb:hover,
.info-section .rest-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.trip-itinerary-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 15px;
    flex-wrap: nowrap; 
  }
  
  .trip-itinerary-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
  }
  
  .trip-day-card {
    background-color: #ffffff;
    padding: 0px 15px 15px 15px;
    /* margin-bottom: 10px; */
}


  
.trip-day-header {
    color: #3498db;
    border-bottom: 5px solid #ddd;
    font-family: 'RocknRoll';
    font-weight: bold;
    margin-top: 0;
    font-size: 24px;
    width:100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 10px 0;
}

.trip-day-content {
    display: flex;
    overflow-x:auto;
    gap: 5px;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}
.trip-day-content.show {
    max-height: 2000px; /* Adjust this value based on your content height */
}
.direction-button-wrapper {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    z-index: 2;
}

.direction-button-container {
    position: absolute;
    right: -19px; /* Position the button to overlap on the right side */
    top: 50%; /* Center vertically */
    transform: translateY(-50%);

}

.direction-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Smaller size */
    height: 40px; /* Smaller size */
    
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.direction-button:hover {
    transform: scale(1.1);
}

.direction-icon {
    width: 30px; /* Smaller icon */
    height: 30px;
    object-fit: contain;

}



.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 16px;
}

  
.trip-itinerary-item {
    border: 1px solid #ddd;
    padding: 15px 15px 5px 15px;
    margin: 10px 0;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.trip-itinerary-item.highlight {
    border: 1px solid #ddd;
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.trip-itinerary-image {
    width: 250px;  /* Fixed width */
    height: 250px; /* Fixed height */
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.trip-itinerary-image img {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.trip-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.trip-item-time {
    flex: 0 0 auto;
    min-width: 60px;
    font-weight: bold;
}

.trip-item-type {
    flex: 0 0 auto;
    font-size: 0.9em;
    color: #000000;
}

.menu-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
}

.three-dot-menu {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.three-dot-menu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.item-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    display: flex;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 4px;
    padding: 4px;
}

.control-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    color: #555;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
    opacity: 0;
    transform: scale(0);
}

.control-btn i {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 14px; 
}

.three-dot-menu:hover .item-controls {
    visibility: visible;
}

.three-dot-menu:hover img {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Animation for each button */
.three-dot-menu:hover .edit-btn {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    transition-delay: 0s;
}

.three-dot-menu:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    transition-delay: 0.1s;
}

.three-dot-menu:hover .move-btn {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    transition-delay: 0.2s;
}
.three-dot-menu:hover .add-btn {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    transition-delay: 0.3s;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0);
    transform: scale(1.1) !important;
}

.edit-btn:hover {
    color: #007bff;
}

.delete-btn:hover {
    color: #dc3545;
}

.move-btn:hover {
    color: #ffc107;
}

.add-btn:hover {
    color: #8b07ff;
}
.new-buttons-container {
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    display: flex;
    gap: 0px;
}

.save-new-container, .delete-new-container {
    width: 32px;
    height: 32px;
}

.save-new-btn, .delete-new-btn {
    border-radius: 4px;
    border: none;
    background-color: transparent;
    color: #555;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-new-btn i, .delete-new-btn i {
    font-size: 20px;
}

.save-new-btn:hover {
    color: #218838;
    background-color: rgba(0, 0, 0, 0);
    transform: scale(1.1) !important;
}

.delete-new-btn:hover {
    color: #dc3545;
    background-color: rgba(0, 0, 0, 0);
    transform: scale(1.1) !important;
}
.new-stop-name {
    width: 250px !important;
    padding:  0px 0 0 5px !important;
    margin: -5px 0 5px 0 !important;
    font-size: 18px !important;
    color: #3498db !important;
    background-color: #000 !important;
    text-align: left !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    outline: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 600 !important;
}

.new-stop-name:focus {
    border-bottom: 1px solid #3498db !important;
}

.new-stop-name::placeholder {
    color: #666 !important;
    opacity: 0.7 !important;
}

.stop-type-selector {
    width: 30%;
    padding: 5px;
    margin-left: 10px;
    margin-right: -10px;
    border-radius: 4px;
}

.trip-itinerary-item.editing .trip-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.save-container {
    display: none;
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    width: 32px; /* Increased from 24px */
    height: 32px; /* Increased from 24px to match width */
}
.save-btn:hover {
    color: #218838;
    background-color: rgba(0, 0, 0, 0);
    transform: scale(1.1) !important;
}
.save-btn {
    border-radius: 4px;
    border: none;
    background-color: transparent;
    color: #555;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.save-btn i {
    font-size: 20px; /* Increased from 14px */
}
  



.trip-item-name {
    font-weight: bold;
}
  
.trip-item-details {
flex-grow: 1;
}
.trip-item-details h4 {
    color: #3498db;
    margin: 0 0 10px 0;
    width:250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px; 
    text-align: center;
}
  
  


.trip-item-duration, .trip-travel-info {
    font-size: 0.9em;
    color: #000000;
}

.trip-overview {
    background-color: #ffffff;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;

}


.trip-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0);
    color: #3498db;
    font-size: 18px;  /* Reduced font size */
    border-radius: 4px;  /* Reduced border radius */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}


.trip-action-btn i {
    line-height: 1;  /* Ensure the icon is centered vertically */
}

.trip-actions {
    position: absolute;
    top: 25px;  /* Adjusted positioning */
    right: 5px;
    display: flex;
    gap: 5px;  /* Reduced gap between buttons */
}

.trip-action-btn:hover {
    background-color: rgba(255, 255, 255, 0);
    transform: translateY(-2px);
}

.trip-action-btn:active {
    transform: translateY(0);
}

.info-edit-btn:hover {
    color: #2ecc71;
}

.info-download-btn:hover {
    color: #f1c40f;
}

.info-share-btn:hover {
    color: #e74c3c;
}

.trip-title.editing {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 4px;
}

.trip-title.editing:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}
.share-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.share-option-btn i {
    font-size: 28px;
    margin-bottom: 8px;
    color: #495057;
}

.share-option-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}
.share-option-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-option-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#sharePdfBtn {
    background-color: #fdf2f2;
}

#sharePdfBtn:hover {
    background-color: #fad7d7;
}

#sharePdfBtn i {
    color: #e74c3c;
}

#shareLinkBtn {
    background-color: #f2f9ff;
}

#shareLinkBtn:hover {
    background-color: #d7edff;
}

#shareLinkBtn i {
    color: #3498db;
}




  
  .trip-day-summary {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .trip-day-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .trip-day-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
  }
  
  .trip-stat-item {
    display: flex;
    align-items: center;
  }
  
  .trip-stat-icon {
    margin-right: 5px;
  }
  
  .trip-itinerary {
    list-style-type: none;
    padding: 0;
  }
  
  .trip-stop {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
  }
  
  .trip-stop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .trip-stop-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .trip-stop-type {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
  }
  
  .trip-stop-time {
    font-size: 14px;
    color: #777;
  }

  
  .trip-travel {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .trip-travel-info {
    display: flex;
    align-items: center;
  }
  
  .trip-travel-icon {
    margin-right: 10px;
    font-size: 18px;
  }
  
  .trip-travel-duration {
    font-size: 14px;
    color: #555;
  }
  
  .trip-direction-link {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
  }
  .trip-title{
    margin: 0 0 10px 0;
    font-size: 36px ;
    color:#3498db !important;
    text-align: start !important;


}

.trip-meta {
    display: flex;
    justify-content: space-between;
}

.trip-meta-item {
    display: flex;
    align-items: center;
    color: #3498db;
    font-weight: 600;
}

.trip-meta-item i {
    margin-right: 5px;
}

/* Responsive design */

@media (max-width: 768px) {
    .info-section .rest-list {
        overflow-x: auto;
    }
    .route-container {
        flex-direction: column;
    }
    .route-info, .map-container {
        width: 100%;
    }
    
    .day-list li {
        flex-basis: 33.33%;
    }

    
    .map-container {
        margin-top: 140px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .map-container.show {
        transform: translateX(0);
        z-index: 1000;
    }

    
    .info-button {
        position: static;
        transform: none;
    }
    .trip-actions {
        position: absolute;
        top: 15px;
        right: 5px;
        display: flex;
        gap: 5px;
    }

    .toggle-map-button {
        display: block;
    }
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;

    }

}

.route-display .leaflet-routing-container,
.route-display .leaflet-routing-container * {
    display: none !important;
}