/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: auto;
    overflow-x: hidden; /* Changed from hidden to allow vertical scrolling */
    display: flex;
    flex-direction: column;
}

.container {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    width: 100% !important;
    overflow: hidden !important;
    flex: 1;
}

.left-panel {
    position: relative !important;
    width: 50% !important;
    z-index: 2 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto;
    background: white;
    color: black;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Right Panel Styles */
.right-panel {
    width: 50% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
}
.slideshow-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: block !important;
}
.slide {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: opacity 1s ease-in-out !important;
    z-index: 1 !important;
}
.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}


.logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    margin-bottom: 0.5rem;
    flex-direction: row !important;
}


.logo {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
    object-fit: contain;
}

.title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 0.65rem !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
    line-height: 1.1 !important;
    display: inline-block !important;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Ensure desktop title font size takes precedence - ONLY for desktop */
@media (min-width: 769px) {
    .title,
    .logo-container .title,
    .logo-container h1,
    h1.title {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        font-size: 0.65rem !important;
        font-weight: normal !important;
        line-height: 1.1 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Mobile title font sizes - ensure these are preserved */
@media (max-width: 768px) {
    .logo-container .title,
    .logo-container h1,
    h1.title {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        font-size: 0.9rem !important;
        font-weight: normal !important;
        line-height: 1.6 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    }
}

@media (max-width: 480px) {
    .logo-container .title,
    .logo-container h1,
    h1.title {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        font-size: 0.8rem !important;
        font-weight: normal !important;
        line-height: 1.6 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Search and Form Styles */
.search-container {
    margin-top: 1rem;
    padding: 2rem 0;
}

.search-container label {
    display: block;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: black;
}

.search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

#destination-search {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 0.7rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white !important; 
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #333 !important; 
}

.search-result-item:hover {
    background-color: #f0f0f0 !important;
    color: #000 !important;  /* Darker color on hover */
}

select, input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 0.8 rem;
    appearance: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

/* Counter Styles */
.counter-container {
    display: flex;
    gap: 2rem;
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.counter span {
    margin-bottom: 0.5rem;
}

.counter-controls {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

.counter-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.counter-btn:hover {
    background-color: #e0e0e0;
}

.counter-value {
    width: 30px;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

/* Experience Options */
.experiences-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.experience-option input {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Container for the three travel-related fields */
.travel-fields-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
}

/* Individual field styling within the row */
.travel-field {
    flex: 1;
    min-width: 0; /* Allows fields to shrink if needed */
}

/* Base location field (wider since it has search functionality) */
.travel-field.base-location,
.time-preference-container {
    flex: 1;
    min-width: 0;
}

/* Time preference fields (smaller) */
.travel-field.time-preference {
    flex: 1; /* Equal space for both time fields */
}

/* Labels for travel fields */
.travel-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: black;
}

/* Input and select styling within travel fields */
.travel-field input,
.travel-field select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 0.7rem;
    box-sizing: border-box;
}

/* Search wrapper within travel field */
.travel-field .search-wrapper {
    position: relative;
    width: 100%;
}

/* Search results positioning for travel field */
.travel-field .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 150px; /* Smaller height for compact layout */
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.travel-field .search-results.active {
    display: block;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .travel-fields-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .travel-field.base-location {
        flex: 1;
    }
    
    /* Create a container for time preference fields to keep them horizontal on mobile */
    .time-preference-container {
        display: flex;
        gap: 10px;
    }
    
    .travel-field.time-preference {
        flex: 1;
    }
}

/* Alternative compact layout option */
.travel-fields-compact {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .travel-fields-compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Radio Options */
.radio-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

/* Generate Button */
.generate-btn {
    background-color: #007bff; /* blue */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.generate-btn:hover {
    background-color: #0056b3; /* darker blue */
}

/* Explore Hotels Button */
.explore-hotels-btn {
    background-color: #28a745; /* green */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.explore-hotels-btn:hover {
    background-color: #218838; /* darker green */
}

.explore-hotels-btn.coming-soon {
    background-color: #6c757d; /* gray */
    cursor: not-allowed;
    opacity: 0.7;
}

.explore-hotels-btn.coming-soon:hover {
    background-color: #6c757d; /* gray */
}

/* Flight Recommendations Button */
.flight-recommendations-btn {
    background-color: #fd7e14; /* orange */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.flight-recommendations-btn:hover {
    background-color: #e8690b; /* darker orange */
}

.flight-recommendations-btn.coming-soon {
    background-color: #6c757d; /* gray */
    cursor: not-allowed;
    opacity: 0.7;
}

.flight-recommendations-btn.coming-soon:hover {
    background-color: #6c757d; /* gray */
}

/* Itinerary Display Styles */
.itinerary-container {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('images/itinerary_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff !important;
}

.itinerary-header h2 {
    color: #007bff !important;
    margin: 0;
    font-size: 1.5rem;
}

.back-to-slideshow-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.back-to-slideshow-btn:hover {
    background: #e9ecef;
}

.itinerary-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.itinerary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.booking-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

.chat-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.chat-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

.share-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.share-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
}


.chat-button button {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 50%
}

.chat-button button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.chat-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 2rem;
    width: calc(100% - 4rem);
    height: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #00cc66;
    color: white;
}

.chat-header h3 {
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
}

.message.user .message-content {
    background-color: #00cc66;
    color: white;
    border-bottom-right-radius: 5px;
}

.message.assistant .message-content {
    background-color: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
}

.chat-input button {
    background-color: #00cc66;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
}



/* Right Panel Styles - Slideshow */
.right-panel {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
    
    .left-panel {
        height: auto;
        min-height: 100vh;
    }
    
    .right-panel {
        height: 40vh;
    }
    
    .chat-window {
        width: calc(100% - 2rem);
        left: 1rem;
        height: 50vh;
    }
}

/* FORCE VISIBLE TEXT IN SEARCH DROPDOWNS */
#search-results .search-result-item,
.search-results .search-result-item,
div[id*="results"] .search-result-item {
    color: #000000 !important;
    background-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: normal !important;
    text-decoration: none !important;
    border-bottom: 1px solid #eeeeee !important;
}

#search-results .search-result-item:hover,
.search-results .search-result-item:hover,
div[id*="results"] .search-result-item:hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

/* Specific fix for destination search */
#search-results {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Force text visibility with multiple selectors */
.search-result-item,
[class*="search-result"] {
    color: black !important;
    background: white !important;
}
/* Fix oversized booking modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.booking-modal-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px; /* Reduced from larger size */
    max-height: 80vh; /* Limit height to 80% of viewport */
    width: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.booking-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.booking-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

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

.booking-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    border-left: 3px solid #00cc66;
    padding-left: 10px;
}

.booking-option {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-option-info {
    flex: 1;
}

.booking-option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.booking-option-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.booking-option-price {
    font-weight: 600;
    color: #00cc66;
    font-size: 1.1rem;
}

.booking-btn {
    background-color: #00cc66;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.booking-btn:hover {
    background-color: #00b359;
}


/* Chat Modal Styles */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
    box-sizing: border-box;
}

.chat-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background: #00cc66;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.lokki {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-bubble.user {
    background: #00cc66;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-bubble.lokki {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: white;
    border-radius: 0 0 10px 10px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input:focus {
    border-color: #00cc66;
}

.chat-send-btn {
    background: #00cc66;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background: #00b359;
}

.chat-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-action-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-modal-content,
    .chat-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .chat-modal-content {
        height: 80vh;
    }
}
/* Restaurant and Video Sections */
.restaurant-section, .video-section {
    margin-top: 30px;
}

.restaurant-section h3, .video-section h3 {
    margin-bottom: 15px;
    color: #00cc66;
}

.restaurant-section ul, .video-section ul {
    list-style-type: none;
    padding-left: 0;
}

.restaurant-section li, .video-section li {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    border-left: 3px solid #00cc66;
}

.restaurant-section a, .video-section a {
    color: #00cc66;
    text-decoration: none;
    font-weight: bold;
}

.restaurant-section a:hover, .video-section a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #00cc66, transparent);
    margin: 20px 0;
}
.mobile-itinerary-container { display: none !important; }

.time-preference-container {
    display: flex;
    gap: 10px;
}

.time-preference-container .form-group {
    flex: 1 1 0;
    width: 50%;
    margin: 0;
}

#waves-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2DD4BF, #3B82F6, #9333EA);
    color: white;
    padding: 0 0 5px 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 0 20px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.footer-section h4 {
    color: black;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 40px;
    display: flex;
    align-items: flex-start;
}

.footer-section p {
    color: white;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-section ul li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.75rem;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 5px 0;
}

.social-links a:hover {
    color: #007bff;
    transform: translateX(5px);
}

.social-icon {
    font-style: normal;
    font-size: 1.2rem;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.75rem;
    margin: 0;
}

.footer-bottom a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Footer link styling for form and email */
.footer-section a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.75rem;
}

.footer-section a:hover {
    color: #007bff !important;
}

.footer-section p a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: #007bff !important;
}

/* Blog Section Styles */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-post {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.blog-post:hover {
    background: rgba(255, 255, 255, 0.1);
}

.blog-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #444;
}

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

.blog-content {
    flex: 1;
}

.blog-content h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.blog-content p {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.read-more {
    color: #007bff !important;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3 !important;
}

.blog-title-link {
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.blog-title-link:hover {
    color: #007bff !important;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Add this to ensure all action buttons match Plan My Trip color */
.action-btn,
.share-btn,
.book-btn,
.chat-btn,
.email-btn {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border-radius: 8px !important;
    transition: background 0.2s;
}

.action-btn:hover,
.share-btn:hover,
.book-btn:hover,
.chat-btn:hover,
.email-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
}

/* Hotel Recommendation Modal Styles */
.hotel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.hotel-modal.hidden {
    display: none;
}

.hotel-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hotel-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-section,
.preferences-section,
.hotel-results,
.hotel-loading {
    padding: 2rem;
}

.auth-section h3,
.preferences-section h3,
.hotel-results h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.email-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-input-group input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input-group input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.otp-section {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.otp-section input {
    width: 200px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.otp-section input:focus {
    outline: none;
    border-color: #667eea;
}

.primary-btn,
.secondary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.secondary-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Budget Section */
.budget-section {
    margin-bottom: 2rem;
}

.budget-section label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

/* Budget Range Options */
.budget-range-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.budget-option {
    cursor: pointer;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.budget-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.budget-option input[type="radio"] {
    display: none;
}

.budget-option input[type="radio"]:checked + .budget-option-content {
    color: #667eea;
}

.budget-option input[type="radio"]:checked + .budget-option-content .budget-label {
    color: #667eea;
    font-weight: 700;
}

.budget-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.budget-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.budget-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.budget-range-text {
    font-size: 0.9rem;
    color: #666;
}

/* Custom Budget Section */
.custom-budget-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.custom-budget-section label {
    margin-bottom: 1rem;
}

.custom-budget-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.custom-budget-slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
}

.custom-budget-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fd7e14;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.custom-budget-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fd7e14;
    min-width: 80px;
}

.custom-budget-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* Budget Actions */
.budget-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.budget-actions .secondary-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Location Preferences */
.location-preferences {
    margin-bottom: 2rem;
}

.location-preferences label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.location-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.location-option {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.location-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.location-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.location-option input[type="radio"] {
    display: none;
}

/* Preferences Summary */
.preferences-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.preferences-summary h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.preferences-summary p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Hotel Results */
.hotels-list {
    margin-bottom: 2rem;
}

.hotel-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hotel-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hotel-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

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

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.hotel-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.hotel-rating {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.hotel-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.per-night {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

.hotel-location {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hotel-address {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hotel-amenity {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.book-hotel-btn {
    background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
}

.book-hotel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.3);
}

.no-hotels-found {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-hotels-found h3 {
    margin-bottom: 1rem;
    color: #495057;
}

/* Loading State */
.hotel-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

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

.hotel-loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hotel-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .hotel-modal-header {
        padding: 1.5rem;
    }
    
    .hotel-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-section,
    .preferences-section,
    .hotel-results,
    .hotel-loading {
        padding: 1.5rem;
    }
    
    .email-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .location-options {
        grid-template-columns: 1fr;
    }
    
    .hotel-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .book-hotel-btn {
        width: 100%;
        text-align: center;
    }
}

/* Hotel Amenities */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hotel-amenity {
    background: #f8f9fa;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e1e5e9;
}

/* Hotel Image */
.hotel-image {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hotel-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Hotel Description and Location Details */
.hotel-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
    padding: 0.5rem 0;
}

.hotel-location-details {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.hotel-address,
.hotel-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.hotel-address i,
.hotel-distance i {
    color: #667eea;
    width: 16px;
}

/* Responsive Design */

/* Authentication Section */
.auth-section {
    padding: 2rem;
    text-align: center;
}

.auth-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.auth-section p {
    margin-bottom: 2rem;
    color: #666;
}

.email-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.auth-status {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 500;
}

.auth-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-status.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Email Authentication Modal Styles */
.email-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Safari-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure modal is above all other elements on Safari */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.email-auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.email-auth-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    /* Safari-specific fixes */
    -webkit-transform: scale(0.9);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure content is properly positioned on Safari */
    position: relative;
    z-index: 10001;
}

.email-auth-modal.show .email-auth-content {
    transform: scale(1);
    -webkit-transform: scale(1);
}

/* Safari-specific backdrop fix */
@supports (-webkit-touch-callout: none) {
    .email-auth-modal {
        /* iOS Safari specific fixes */
        -webkit-overflow-scrolling: touch;
        /* Force hardware acceleration */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .email-auth-content {
        /* iOS Safari content positioning fix */
        -webkit-transform: translate3d(0, 0, 0) scale(0.9);
        transform: translate3d(0, 0, 0) scale(0.9);
    }
    
    .email-auth-modal.show .email-auth-content {
        -webkit-transform: translate3d(0, 0, 0) scale(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Additional Safari-specific modal fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .email-auth-modal {
        /* WebKit-specific fixes */
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    .email-auth-content {
        /* WebKit content fixes */
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
}

.email-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.email-auth-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.email-auth-header p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.email-auth-body {
    margin-bottom: 1.5rem;
}

.email-input-group {
    position: relative;
}

.email-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.email-input-group input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.email-input-group input.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.auth-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.email-auth-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.auth-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn.cancel-btn {
    background: #6c757d;
    color: white;
}

.auth-btn.cancel-btn:hover {
    background: #5a6268;
}

.auth-btn.submit-btn {
    background: #007bff;
    color: white;
}

.auth-btn.submit-btn:hover {
    background: #0056b3;
}

.auth-btn.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Mobile Responsive for Email Modal */
@media (max-width: 768px) {
    .email-auth-content {
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
    }
    
    .email-auth-header h3 {
        font-size: 1.3rem;
    }
    
    .email-auth-footer {
        flex-direction: column;
    }
    
    .auth-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
}

/* Affiliate Disclaimer */
.affiliate-disclaimer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0 1.5rem 1rem 1.5rem;
    text-align: center;
}

.affiliate-disclaimer p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}
