/* ===== DEDICATED MOBILE RESPONSIVE CSS ===== */

/* 🎯 MOBILE-FIRST DESIGN - NOT SCALED FROM DESKTOP
   - Designed specifically for mobile devices
   - Optimized touch targets and spacing
   - Mobile-optimized typography and layout
   - Clean mobile user experience
*/

@media (max-width: 768px) {
    
    /* ==========================================
       MOBILE LAYOUT STRUCTURE
       ========================================== */
    
    /* Hide desktop right panel completely */
    .right-panel,
    .slideshow-container {
        display: none !important;
    }
    
    /* Mobile container structure */
    .main-content,
    .container {
        display: block !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Mobile left panel - full screen */
    .left-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        
        /* Keep your background image */
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                    url('images/background2.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        
        /* Mobile layout */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow-y: auto !important;
        position: relative !important;
        z-index: 0 !important;
    }
    .search-container {
        width: 100% !important;
    }
    
    .search-wrapper {
        width: 100% !important;
        display: block; /* Ensures it takes the full line */
    }
    
    #destination-search {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile base location search container - match destination search width */
    .base-location-search-container {
        width: 100% !important;
        position: relative !important;
        margin-bottom: 8px !important;
    }
    
    .base-location-search-container .search-wrapper {
        width: 100% !important;
        display: block !important;
    }
    
    #base-location-search {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* ==========================================
       MOBILE HELP ICON STYLING
       ========================================== */
    
    /* Mobile destination help icon positioning */
    .destination-help-icon {
        position: absolute !important;
        top: 8px !important;
        right: 10px !important;
        font-size: 16px !important;
        cursor: help !important;
        z-index: 12 !important;
        color: #007bff !important;
    }
    
    /* Mobile help icon tooltip positioning */
    .destination-help-icon:hover::after,
    .destination-help-icon:focus::after {
        content: attr(title) !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 280px !important;
        background: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        padding: 10px 12px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        z-index: 1000 !important;
        margin-top: 5px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        pointer-events: none !important;
    }
    
    /* Mobile base location help icon positioning */
    .base-location-help-icon {
        position: absolute !important;
        top: 50% !important;
        right: 14px !important;
        transform: translateY(-50%) !important;
        font-size: 16px !important;
        cursor: help !important;
        z-index: 12 !important;
        color: #007bff !important;
    }
    
    /* Mobile base location help icon tooltip positioning */
    .base-location-help-icon:hover::after,
    .base-location-help-icon:focus::after {
        content: attr(title) !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 280px !important;
        background: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        padding: 10px 12px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        z-index: 1000 !important;
        margin-top: 5px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        pointer-events: none !important;
    }
    
    /* ==========================================
       MOBILE SEARCH RESULTS STYLING
       ========================================== */
    
    /* Mobile search results container */
    #search-results,
    #base-location-results {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        max-height: 200px !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        display: none !important;
        margin-top: 2px !important;
    }
    
    /* Mobile search results when active */
    #search-results.active,
    #base-location-results.active {
        display: block !important;
    }
    
    /* Mobile search result items */
    .search-result-item {
        padding: 12px 15px !important;
        cursor: pointer !important;
        color: #333 !important;
        font-size: 14px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        transition: background-color 0.2s ease !important;
        min-height: 44px !important; /* iOS touch target minimum */
        display: flex !important;
        align-items: center !important;
    }
    
    .search-result-item:last-child {
        border-bottom: none !important;
    }
    
    .search-result-item:hover,
    .search-result-item:active {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
    
    /* Mobile search results scrollbar */
    #search-results::-webkit-scrollbar,
    #base-location-results::-webkit-scrollbar {
        width: 6px !important;
    }
    
    #search-results::-webkit-scrollbar-track,
    #base-location-results::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }
    
    #search-results::-webkit-scrollbar-thumb,
    #base-location-results::-webkit-scrollbar-thumb {
        background: #c1c1c1 !important;
        border-radius: 3px !important;
    }
    
    #search-results::-webkit-scrollbar-thumb:hover,
    #base-location-results::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8 !important;
    }
    
    /* Ensure tooltip doesn't go off-screen on mobile */
    @media (max-width: 320px) {
        .destination-help-icon:hover::after,
        .destination-help-icon:focus::after,
        .base-location-help-icon:hover::after,
        .base-location-help-icon:focus::after {
            width: 250px !important;
            max-width: 250px !important;
            right: -50px !important;
        }
    }
    
    /* ==========================================
       MOBILE HEADER
       ========================================== */
    
    .header {
        width: 100% !important;
        padding: 20px 15px 10px 15px !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(5px) !important;
    }
    
    .logo-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 5px !important;
    }
    
    .logo-container img {
        max-width: 120px !important;
        height: auto !important;
    }
    
    .logo-container .title,
    .logo-container h1,
    h1.title {
        color: white !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .header p {
        color: white !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* ==========================================
       MOBILE FORM CONTAINER
       ========================================== */
    
    .form-container {
        width: calc(100% - 30px) !important;
        max-width: 400px !important;
        height: 50vh !important;
        margin: 20px 15px !important;
        padding: 25px 20px !important;
        
        /* Mobile form styling */
        background: white !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 0px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        
        /* Mobile layout */
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        
        /* Ensure proper positioning context for dropdowns */
        position: relative !important;
        z-index: 1 !important;
        overflow: visible !important;
    }

    
    /* ==========================================
       MOBILE FORM FIELDS
       ========================================== */
    
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    /* Make arrival and checkout time fields display horizontally on mobile */
    .travel-fields-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    /* Create a horizontal row for arrival and checkout time fields */
    .travel-fields-row .form-group {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    /* Make arrival and checkout time fields display side by side */
    .travel-fields-row .form-group:nth-child(2),
    .travel-fields-row .form-group:nth-child(3) {
        display: inline-block !important;
        width: calc(50% - 7.5px) !important;
        margin-right: 15px !important;
    }
    
    .travel-fields-row .form-group:nth-child(3) {
        margin-right: 0 !important;
    }
    
    /* Ensure time preference container displays inline on mobile */
    .time-preference-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .time-preference-container .form-group {
        flex: 1 1 0 !important;
        width: 50% !important;
        margin: 0 !important;
        display: inline-block !important;
    }
    
    /* Ensure the base location field takes full width */
    .travel-fields-row .travel-field.base-location {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .form-group {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 5 !important;
    }
    .search-container label {
        color: black !important;
        text-shadow: none;
    }

    
    /* Mobile labels */
    .form-group label {
        display: block !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: black !important;
        margin-bottom: 4px !important;
        text-align: left !important;
    }
    
    /* Mobile input fields */
    .form-group input[type="text"],
    .form-group input[type="date"],
    .form-group select,
    .form-control {
        width: 100% !important;
        height: 30px !important;
        padding: 12px 16px !important;
        
        /* Mobile input styling */
        font-size: 12px !important; /* Input text size */
        line-height: 1.2 !important;
        color: #333 !important;
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        
        /* Mobile interaction */
        transition: border-color 0.3s ease !important;
        appearance: none !important;
    }
    
    /* Mobile placeholder text styling - smaller size */
    .form-group input[type="text"]::placeholder,
    .form-group input[type="date"]::placeholder,
    .form-control::placeholder {
        font-size: 10px !important;
        color: #999 !important;
    }
    
    
    /* Mobile input focus states */
    .form-group input:focus,
    .form-group select:focus {
        outline: none !important;
        border-color: #007bff !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
    }
    
    /* Mobile destination field (prominent) */
    #destination-search {
        font-size: 12px !important; /* Input text size */
        height: 30px !important;
    }
    
    /* Mobile destination placeholder text styling - smaller size */
    #destination-search::placeholder {
        font-size: 10px !important;
        color: #999 !important;
    }
    
    /* Mobile mic button positioning - ensure it's on the right side */
    .mic-button {
        position: absolute !important;
        right: 8px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
        padding: 6px !important;
    }
    
    .mic-button:hover {
        transform: translateY(-50%) scale(1.1) !important;
    }
    
    .mic-button:active {
        transform: translateY(-50%) scale(0.95) !important;
    }
    
    .mic-icon {
        width: 16px !important;
        height: 16px !important;
        color: #007bff !important;
        transition: color 0.3s ease !important;
    }
    
    .mic-button:hover .mic-icon {
        color: #0056b3 !important;
    }
    
    /* Adjust input padding to accommodate mic button on the right */
    #destination-search {
        padding-right: 40px !important;
        padding-left: 12px !important;
    }
    
    /* ==========================================
       MOBILE COUNTERS
       ========================================== */
    
    .counter {
        display: flex !important;
        
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        background: #f8f9fa !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        margin-bottom: 0 !important;
    }
    .counter-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    .counter-btn {
        width: 12px !important;
        height: 12px !important;
        border: none !important;
        border-radius: 50% !important;
        background: #00cc66 !important;
        color: white !important;
        font-size: 1.2rem !important;
        font-weight: bold !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background-color 0.2s ease !important;
        outline: none !important;
        user-select: none !important; /* Prevent text selection */
        -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight on iOS */
    }
    
    .counter-btn:active {
        background: #0056b3 !important;
        transform: scale(0.97) !important;
    }
    
    .counter-value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        min-width: 10px !important;
        text-align: center !important;
    }
    
    /* Fix counter labels (Adults, Kids) to be black instead of white on mobile */
    .counter span {
        color: #333 !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
    }
    
    
    /* ==========================================
       MOBILE EXPERIENCES
       ========================================== */
    
       .experiences-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;               
        margin-top: 6px !important;
    }
    
    .experience-buttons-row {
        display: flex !important;
        gap: 4px !important;
        margin-bottom: 0 !important;
    }
    
    .experience-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 2px !important;       /* Minimal padding to maximize text space */
        border: 0px solid #e0e0e0 !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        min-width: 0 !important;            /* Allow flex items to shrink */
        flex: 1 !important;                 /* Equal width distribution */
    }
    
    .experience-button:has(input:checked) {
        background: rgba(0, 123, 255, 0.1) !important;
        border-color: #00cc66!important;
    }
    
    .experience-button input[type="checkbox"] {
        display: none !important;  /* Hide checkbox, use button styling instead */
    }
    
    .button-content {
        font-size: 9px !important;
        color: #000000 !important;
        cursor: pointer !important;
        margin: 0 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;    /* Prevent text wrapping for single words */
        text-align: center !important;     /* Center the text */
        width: 100% !important;            /* Take full width of button */
    }
    
    /* Override the general form-group label white color for experience options */
    .form-group .experience-option label {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    /* Even more specific selector to ensure it overrides */
    .experiences-container .experience-option label {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    #arrival-time,
    #checkout-time {
        width: 100% !important;
        font-size: 0.8rem !important;      /* Adjust as needed */
        padding: 8px 12px !important;    /* Smaller padding */
        box-sizing: border-box;
        height: auto !important;
    }
    
    /* Fix dropdown positioning for time selects */
    #arrival-time,
    #checkout-time {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Ensure dropdown options appear below the select */
    #arrival-time option,
    #checkout-time option {
        position: relative !important;
        z-index: 11 !important;
    }
    
    /* Fix for iOS Safari dropdown positioning */
    @supports (-webkit-touch-callout: none) {
        #arrival-time,
        #checkout-time {
            appearance: none !important;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
            background-repeat: no-repeat !important;
            background-position: right 8px center !important;
            background-size: 16px !important;
            padding-right: 30px !important;
        }
        
        /* Safari input zoom prevention */
        input[type="text"],
        input[type="email"],
        input[type="date"],
        select,
        textarea {
            font-size: 16px !important;
        }
        
        /* Safari button tap highlight removal */
        button,
        .action-btn,
        .counter-btn {
            -webkit-tap-highlight-color: transparent !important;
        }
        
        /* Safari modal backdrop fix */
        .email-popup,
        .chat-modal {
            -webkit-backdrop-filter: blur(5px) !important;
            backdrop-filter: blur(5px) !important;
        }
        
        /* Safari email authentication modal fix */
        .email-auth-modal {
            -webkit-backdrop-filter: blur(5px) !important;
            backdrop-filter: blur(5px) !important;
            /* Force hardware acceleration on Safari */
            -webkit-transform: translate3d(0, 0, 0) !important;
            transform: translate3d(0, 0, 0) !important;
            -webkit-backface-visibility: hidden !important;
            backface-visibility: hidden !important;
            /* Ensure proper z-index stacking on Safari */
            -webkit-transform-style: preserve-3d !important;
            transform-style: preserve-3d !important;
        }
        
        .email-auth-modal .email-auth-content {
            /* Safari content positioning fix */
            -webkit-transform: translate3d(0, 0, 0) scale(0.9) !important;
            transform: translate3d(0, 0, 0) scale(0.9) !important;
            -webkit-backface-visibility: hidden !important;
            backface-visibility: hidden !important;
            /* Ensure content is above backdrop */
            position: relative !important;
            z-index: 10001 !important;
        }
        
        .email-auth-modal.show .email-auth-content {
            -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
            transform: translate3d(0, 0, 0) scale(1) !important;
        }
    }

    /* Additional Safari-specific email modal fixes */
    @media screen and (-webkit-min-device-pixel-ratio: 0) {
        .email-auth-modal {
            /* WebKit-specific fixes */
            -webkit-perspective: 1000px !important;
            perspective: 1000px !important;
            /* Ensure modal is above all other elements */
            z-index: 10000 !important;
        }
        
        .email-auth-modal .email-auth-content {
            /* WebKit content fixes */
            -webkit-perspective: 1000px !important;
            perspective: 1000px !important;
            /* Force content to be visible */
            opacity: 1 !important;
            visibility: visible !important;
        }
    }
    
    /* iOS Safari specific email modal fixes */
    @supports (-webkit-touch-callout: none) {
        .email-auth-modal {
            /* iOS Safari specific fixes */
            -webkit-overflow-scrolling: touch !important;
            /* Prevent iOS Safari from hiding modal */
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
        }
        
        .email-auth-modal .email-auth-content {
            /* iOS Safari content positioning fix */
            position: relative !important;
            /* Ensure content is centered on iOS Safari */
            margin: auto !important;
        }
    }


    
    /* ==========================================
       MOBILE PLAN MY TRIP BUTTON
       ========================================== */
    
    #generate-btn {
        width: 100% !important;
        height: 40px !important;
        padding: 0 16px !important;
        margin-top: 8px !important;
        
        /* Mobile button styling */
        font-size: 16px !important;
        font-weight: 600 !important;
        color: white !important;
        background: #007bff !important;
        border: none !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        
        /* Mobile interaction */
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    }
    
    #generate-btn:active {
        transform: translateY(1px) !important;
        box-shadow: 0 2px 8px rgba(34, 255, 0, 0.3) !important;
    }
    
    #generate-btn:disabled {
        background: #6c757d !important;
        box-shadow: none !important;
        cursor: not-allowed !important;
        transform: none !important;
    }
    
    /* ==========================================
       MOBILE ITINERARY CONTAINER
       ========================================== */
    
    .mobile-itinerary-container {
        width: calc(100% - 30px) !important;
        margin: 20px 15px 30px 15px !important;
        background: white !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        overflow: hidden !important;
        display: none !important;
    }
    
    .mobile-itinerary-container.show {
        display: block !important;
        animation: slideUp 0.5s ease-out !important;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile itinerary header */
    .mobile-itinerary-container .itinerary-header {
        background: linear-gradient(135deg, #007bff, #0054b3) !important;
        color: white !important;
        padding: 25px 20px !important;
    }
    
    .mobile-itinerary-container .back-to-slideshow {
        background: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 10px 16px !important;
        color: white !important;
        font-size: 14px !important;
        cursor: pointer !important;
        margin-bottom: 15px !important;
        transition: background-color 0.2s ease !important;
    }
    
    .mobile-itinerary-container .back-to-slideshow:active {
        background: rgba(255, 255, 255, 0.3) !important;
    }
    
    .mobile-itinerary-container .itinerary-header h2 {
        margin: 0 0 15px 0 !important;
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }
    
    .mobile-itinerary-container .trip-details {
        font-size: 14px !important;
        line-height: 1.4 !important;
        opacity: 0.9 !important;
    }
    
    .mobile-itinerary-container .trip-details p {
        margin: 3px 0 !important;
    }
    
    /* Mobile itinerary content */
    .mobile-itinerary-container .itinerary-content {
        padding: 25px 20px !important;
        line-height: 1.7 !important;
        font-size: 15px !important;
        color: #333 !important;
    }
    
    /* Mobile action buttons - stacked */
    .mobile-itinerary-container .itinerary-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 20px !important;
        background: #f8f9fa !important;
        border-top: 1px solid #e9ecef !important;
        margin-top: 20px !important;
    }
    
    .mobile-itinerary-container .action-btn {
        width: 100% !important;
        height: 50px !important;
        padding: 0 20px !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-itinerary-container .action-btn:active {
        transform: translateY(1px) !important;
    }
    
    /* Mobile button colors */
    .mobile-itinerary-container .share-btn {
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        color: white !important;
    }
    
    .mobile-itinerary-container .book-btn {
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        color: white !important;
    }
    
    .mobile-itinerary-container .chat-btn {
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
    }
    
    .mobile-itinerary-container .email-btn {
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        color: white !important;
    }
    
    /* ==========================================
       MOBILE ATTRACTIONS SECTION
       ========================================== */
    
    .mobile-attractions-section {
        margin: 20px 0 !important;
        padding: 20px 15px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .mobile-attractions-section h3 {
        color: #00cc66 !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        margin: 0 0 15px 0 !important;
        text-align: center !important;
    }
    
    .mobile-attractions-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .mobile-attraction-card {
        background: white !important;
        border: 2px solid #00cc66 !important;
        border-radius: 10px !important;
        padding: 15px !important;
        box-shadow: 0 2px 8px rgba(0, 204, 102, 0.1) !important;
        transition: transform 0.2s, box-shadow 0.2s !important;
    }
    
    .mobile-attraction-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 204, 102, 0.2) !important;
    }
    
    .mobile-attraction-card h4 {
        color: #00cc66 !important;
        margin: 0 0 10px 0 !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
    
    .mobile-attraction-card p {
        margin: 5px 0 !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        color: #333 !important;
    }
    
    .mobile-website-link {
        color: #00cc66 !important;
        text-decoration: none !important;
        font-weight: bold !important;
        padding: 8px 12px !important;
        background: rgba(0, 204, 102, 0.1) !important;
        border-radius: 5px !important;
        display: inline-block !important;
        margin-top: 5px !important;
    }
    
    .mobile-website-link:hover {
        background: rgba(0, 204, 102, 0.2) !important;
    }
    
    /* ==========================================
       MOBILE YOUTUBE VIDEOS SECTION
       ========================================== */
    
    .mobile-videos-section {
        margin: 20px 0 !important;
        padding: 20px 15px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .mobile-videos-section h3 {
        color: #00cc66 !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        margin: 0 0 15px 0 !important;
        text-align: center !important;
    }
    
    .mobile-video-container {
        width: 100% !important;
    }
    
    #mobile-youtube-videos {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .mobile-video-item {
        width: 100% !important;
        background: white !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transition: transform 0.2s ease !important;
        cursor: pointer !important;
    }
    
    .mobile-video-item:hover {
        transform: translateY(-2px) !important;
    }
    
    .mobile-video-item:active {
        transform: translateY(0) !important;
    }
    
    .video-thumbnail {
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        overflow: hidden !important;
    }
    
    .video-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.3s ease !important;
    }
    
    .mobile-video-item:hover .video-thumbnail img {
        transform: scale(1.05) !important;
    }
    
    .play-button {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 50% !important;
        width: 60px !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-video-item:hover .play-button {
        background: rgba(0, 204, 102, 0.8) !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }
    
    .mobile-video-item iframe {
        width: 100% !important;
        height: 200px !important;
        border: none !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .mobile-video-item p {
        padding: 12px 15px !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-align: center !important;
        background: #f8f9fa !important;
    }
    
    /* Fallback video placeholder styling */
    .mobile-video-item div[style*="background: linear-gradient"] {
        border-radius: 12px 12px 0 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-video-item div[style*="background: linear-gradient"]:hover {
        transform: scale(1.02) !important;
    }
    
    .mobile-video-item a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        padding: 20px !important;
        text-decoration: none !important;
        color: white !important;
        font-weight: bold !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    
    /* ==========================================
       MOBILE CHAT MODAL
       ========================================== */
    
    .chat-modal {
        position: fixed !important;
    }
    
    .chat-modal-content {
        width: 95% !important;
        max-width: 400px !important;
        height: 80% !important;
        max-height: 500px !important;
    }
    
    .chat-header {
        padding: 15px !important;
    }
    
    .chat-messages {
        padding: 15px !important;
    }
    
    .chat-actions {
        padding: 15px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .chat-action-btn {
        width: 100% !important;
        padding: 12px !important;
    }
    
    .chat-input-container {
        padding: 15px !important;
    }
    
    .chat-input {
        font-size: 16px !important;
    }
    
    .chat-send-btn {
        padding: 12px 20px !important;
    }
    
    /* ==========================================
       MOBILE SAFE AREA SUPPORT
       ========================================== */
    
    html, body {
        height: 100% !important;
        overflow-x: hidden !important;
    }
    
    * {
        box-sizing: border-box !important;
    }
    
    @supports (padding: max(0px)) {
        .left-panel {
            padding-left: max(15px, env(safe-area-inset-left)) !important;
            padding-right: max(15px, env(safe-area-inset-right)) !important;
            padding-top: max(15px, env(safe-area-inset-top)) !important;
            padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
        }
        
        .mobile-itinerary-container {
            margin-left: max(15px, env(safe-area-inset-left)) !important;
            margin-right: max(15px, env(safe-area-inset-right)) !important;
            margin-bottom: max(30px, env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ==========================================
   SMALL MOBILE DEVICES (iPhone SE, etc.)
   ========================================== */

@media (max-width: 375px) {
    .form-container {
        margin: 15px 10px !important;
        padding: 20px 15px !important;
    }
    
    .mobile-itinerary-container {
        margin: 15px 10px 25px 10px !important;
    }
    
    .mobile-itinerary-container .itinerary-header,
    .mobile-itinerary-container .itinerary-content,
    .mobile-itinerary-container .itinerary-actions {
        padding: 20px 15px !important;
    }
}

.hidden {
    display: none !important;
}
.mobile-itinerary-container { display: block !important; }

/* ==========================================
   FORCE EXPERIENCE OPTIONS FONT COLOR - MAXIMUM SPECIFICITY
   ========================================== */

/* Force experience options to be black and readable */
body .form-group .experiences-container .experience-option label,
body .form-group .experience-option label,
body .experiences-container .experience-option label,
body .experience-option label {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-shadow: none !important;
    background: transparent !important;
}

/* Force time fields to display horizontally */
body .travel-fields-row .form-group:nth-child(2),
body .travel-fields-row .form-group:nth-child(3) {
    display: inline-block !important;
    width: calc(50% - 7.5px) !important;
    margin-right: 15px !important;
    float: left !important;
}

body .travel-fields-row .form-group:nth-child(3) {
    margin-right: 0 !important;
    float: right !important;
}

/* Force time preference container to display inline on mobile */
body .time-preference-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
}

body .time-preference-container .form-group {
    flex: 1 1 0 !important;
    width: 50% !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Force base location to take full width */
body .travel-fields-row .travel-field.base-location {
    width: 100% !important;
    margin-bottom: 15px !important;
    clear: both !important;
}

/* Remove all webkit properties */
body .form-group input[type="text"],
body .form-group input[type="date"],
body .form-group select,
body .form-control,
body #arrival-time,
body #checkout-time {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Tablet and medium screen adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .hotel-card {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.5rem !important;
        align-items: flex-start !important;
    }
    
    .hotel-image {
        width: 200px !important;
        height: 150px !important;
        flex-shrink: 0 !important;
    }
    
    .hotel-content {
        flex: 1 !important;
    }
}

@media (max-width: 900px) {
  .time-preference-container {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    flex-direction: row !important;
  }
  .time-preference-container .form-group {
    flex: 1 1 0 !important;
    width: 50% !important;
    margin: 0 !important;
    display: inline-block !important;
  }
  /* Remove previous nth-child rules for time fields */
  .travel-fields-row .form-group:nth-child(2),
  .travel-fields-row .form-group:nth-child(3) {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
  }
}

/* ==========================================
   MOBILE FOOTER STYLING
   ========================================== */

@media (max-width: 768px) {
    .footer {
        background: linear-gradient(135deg, #2DD4BF, #3B82F6, #9333EA) !important;
        color: white !important;
        padding: 30px 0 15px 0 !important;
        margin-top: auto !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 15px !important;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    .footer-section h4 {
        color: black !important;
        margin-bottom: 15px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
    
    .footer-section p {
        color: white !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
        font-size: 0.7rem !important;
    }
    
    .footer-section ul {
        list-style: none !important;
        padding: 0 !important;
    }
    
    .footer-section ul li {
        margin-bottom: 8px !important;
    }
    
    .footer-section ul li a {
        color: #cccccc !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
        font-size: 0.7rem !important;
    }
    
    .footer-section ul li a:hover {
        color: #007bff !important;
    }
    
    .footer-section a {
        color: white !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
        font-size: 0.7rem !important;
    }
    
    .footer-section a:hover {
        color: #007bff !important;
    }
    
    .footer-section p a {
        color: white !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }
    
    .footer-section p a:hover {
        color: #007bff !important;
    }
    
    .social-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .social-links a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: #cccccc !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        font-size: 0.9rem !important;
        padding: 5px 0 !important;
    }
    
    .social-links a:hover {
        color: #007bff !important;
        transform: translateX(5px) !important;
    }
    
    .social-icon {
        font-style: normal !important;
        font-size: 1.2rem !important;
        display: inline-block !important;
        width: 20px !important;
        text-align: center !important;
    }
    
    /* Mobile Blog Section Styles */
    .blog-posts {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .blog-post {
        display: flex !important;
        gap: 10px !important;
        padding: 8px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .blog-image {
        flex-shrink: 0 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 4px !important;
    }
    
    .blog-content h5 {
        font-size: 0.85rem !important;
        margin: 0 0 4px 0 !important;
    }
    
    .blog-content p {
        font-size: 0.75rem !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.2 !important;
    }
    
    .read-more {
        font-size: 0.7rem !important;
    }
    
    .footer-bottom {
        border-top: 1px solid #444 !important;
        margin-top: 30px !important;
        padding-top: 20px !important;
        text-align: center !important;
    }
    
    .footer-bottom p {
        color: #999 !important;
        font-size: 0.7rem !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }
    
    .footer-bottom a {
        color: #007bff !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }
    
    .footer-bottom a:hover {
        color: #0056b3 !important;
    }
}

/* ==========================================
   MOBILE SMOOTH SCROLLING
   ========================================== */

html, body {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Smooth scrolling for all scrollable elements */
.mobile-itinerary-container,
.mobile-itinerary-container * {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Mobile email popup positioning */
@media (max-width: 768px) {
    .email-popup-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        z-index: 10000 !important;
    }
    
    .email-popup {
        background-color: rgba(0, 0, 0, 0.5) !important;
        pointer-events: auto !important;
    }
}

/* ==========================================
   MOBILE GOOGLE MAPS OPTIMIZATION
   ========================================== */

@media (max-width: 768px) {
    /* Mobile map container optimizations */
    #mobile-restaurant-map,
    #mobile-extracted-restaurant-map,
    #mobile-attractions-map {
        touch-action: pan-x pan-y !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
        /* Prevent map from disappearing during touch events */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        /* Prevent scroll interference */
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Mobile attractions map container specific fixes */
    #mobile-attractions-map-container {
        /* Prevent container from affecting map */
        position: relative !important;
        overflow: hidden !important;
        /* Prevent touch events from bubbling up */
        touch-action: pan-x pan-y !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Mobile map container styling */
    .mobile-restaurants div[style*="height: 300px"],
    .mobile-attractions-map div[style*="height: 300px"] {
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 20px !important;
    }
    
    /* iOS Safari specific map fixes */
    @supports (-webkit-touch-callout: none) {
        #mobile-restaurant-map,
        #mobile-extracted-restaurant-map,
        #mobile-attractions-map {
            -webkit-transform: translateZ(0) !important;
            transform: translateZ(0) !important;
            -webkit-backface-visibility: hidden !important;
            backface-visibility: hidden !important;
        }
        
        /* Prevent iOS Safari from zooming on map interaction */
        .mobile-restaurants div[style*="height: 300px"],
        .mobile-attractions-map div[style*="height: 300px"] {
            touch-action: manipulation !important;
        }
    }
    
    /* Android Chrome specific optimizations */
    @supports (-webkit-appearance: none) and (not (-webkit-touch-callout: none)) {
        #mobile-restaurant-map,
        #mobile-extracted-restaurant-map,
        #mobile-attractions-map {
            will-change: transform !important;
        }
    }
    
    /* Ensure map info windows are mobile-friendly */
    .gm-style .gm-style-iw-c {
        padding: 0 !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .gm-style .gm-style-iw-d {
        overflow: hidden !important;
        border-radius: 8px !important;
    }
    
    .gm-style .gm-style-iw-t::after {
        background: linear-gradient(45deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,0) 100%) !important;
    }
    
    /* Ensure attractions map section displays properly */
    .mobile-attractions-map {
        display: block !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }
    
    .mobile-attractions-map h3 {
        color: #00cc66 !important;
        margin: 0 0 15px 0 !important;
        font-size: 1.2rem !important;
    }
}

/* Extra small mobile screens (480px and below) */
@media (max-width: 480px) {
    .logo-container .title,
    .logo-container h1,
    h1.title {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    
    /* Extra small mobile mic button adjustments */
    .mic-button {
        right: 6px !important;
        padding: 5px !important;
    }
    
    .mic-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    #destination-search {
        padding-right: 35px !important;
        padding-left: 10px !important;
    }
}

/* Hotel Modal Mobile Responsiveness */
@media (max-width: 768px) {
    /* Ensure hotel modal is properly positioned on mobile */
    .hotel-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    
    .hotel-modal.hidden {
        display: none !important;
    }
    
    .hotel-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh !important;
        margin: 0 !important;
        border-radius: 20px !important;
        background: white !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    }
    
    .hotel-modal-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        padding: 1.5rem !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .hotel-modal-header h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .close-modal {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.5rem !important;
    }
    
    .auth-section,
    .preferences-section,
    .hotel-results,
    .hotel-loading {
        padding: 1.5rem !important;
        background: white !important;
    }
    
    .auth-section h3,
    .preferences-section h3,
    .hotel-results h3 {
        color: #333 !important;
        margin-bottom: 1rem !important;
        font-size: 1.3rem !important;
        font-weight: 600 !important;
    }
    
    .auth-section p {
        color: #666 !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }
    
    .auth-section h3,
    .preferences-section h3,
    .hotel-results h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .email-input-group {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .email-input-group input[type="email"] {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border: 2px solid #e1e5e9 !important;
        border-radius: 8px !important;
        transition: border-color 0.3s ease !important;
    }
    
    .email-input-group input[type="email"]:focus {
        outline: none !important;
        border-color: #667eea !important;
    }
    
    .otp-section {
        padding: 1.2rem !important;
    }
    
    .otp-section input {
        width: 100% !important;
        max-width: 250px !important;
        padding: 14px 16px !important;
        font-size: 18px !important; /* Prevents zoom on iOS */
    }
    
    .budget-section label {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    .budget-slider-container {
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .budget-value {
        font-size: 1.3rem !important;
        min-width: 70px !important;
    }
    
    /* Mobile Budget Range Options */
    .budget-range-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .budget-option {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .budget-option input[type="radio"] {
        display: none !important;
    }
    
    .budget-option-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1.2rem !important;
        background: white !important;
        border: 2px solid #e1e5e9 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .budget-option-content:hover,
    .budget-option-content:active {
        border-color: #667eea !important;
        background: #f8f9ff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    }
    
    .budget-option input[type="radio"]:checked + .budget-option-content {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border-color: #667eea !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    .budget-label {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    .budget-range-text {
        font-size: 0.9rem !important;
        opacity: 0.8 !important;
    }
    
    /* Mobile Hotel Display Options */
    .hotel-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
    }
    
    .book-hotel-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
        display: block !important;
    }
    
    .book-hotel-btn:hover,
    .book-hotel-btn:active {
        background: linear-gradient(135deg, #218838 0%, #1ea085 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
    }
    
    .secondary-btn {
        width: 100% !important;
        padding: 12px 20px !important;
        background: #6c757d !important;
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3) !important;
    }
    
    .secondary-btn:hover,
    .secondary-btn:active {
        background: #5a6268 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
    }
    
    .primary-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    }
    
    .primary-btn:hover,
    .primary-btn:active {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4) !important;
    }
    
    .location-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .location-preferences label:first-child {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        display: block !important;
    }
    
    .location-option {
        width: 100% !important;
        margin: 0 !important;
        cursor: pointer !important;
        position: relative !important;
    }
    
    .location-option input[type="radio"] {
        display: none !important;
    }
    
    .location-option span {
        display: block !important;
        padding: 1.2rem !important;
        font-size: 0.95rem !important;
        border: 2px solid #e1e5e9 !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        background: white !important;
        font-weight: 500 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        text-align: center !important;
        color: #333 !important;
    }
    
    .location-option:hover span,
    .location-option:active span {
        border-color: #667eea !important;
        background: #f8f9ff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    }
    
    .location-option input[type="radio"]:checked + span {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border-color: #667eea !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    .preferences-summary {
        padding: 1.2rem !important;
        margin-bottom: 1.5rem !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        border: 1px solid #e1e5e9 !important;
    }
    
    .preferences-summary h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .preferences-summary p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    .hotel-card {
        padding: 1.2rem !important;
        margin-bottom: 1.2rem !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e1e5e9 !important;
        background: white !important;
        /* Mobile responsive layout - override desktop grid */
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
        /* Ensure proper spacing */
        align-items: stretch !important;
    }
    
    .hotel-image {
        width: 100% !important;
        height: 200px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        -webkit-border-radius: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        visibility: visible !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
    }
    
    .hotel-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
    /* Ensure hotel header displays properly on mobile */
    .hotel-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hotel-name {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    
    .hotel-price {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: #28a745 !important;
        margin: 0 !important;
    }
    
    .hotel-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hotel-amenities {
        gap: 0.4rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hotel-amenity {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .hotel-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hotel-location-details {
        margin-bottom: 0.8rem !important;
    }
    
    .hotel-address,
    .hotel-distance {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .hotel-actions {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .book-hotel-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
        -webkit-appearance: none !important;
        -webkit-border-radius: 8px !important;
        border-radius: 8px !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* iOS Safari specific fixes */
    @supports (-webkit-touch-callout: none) {
        .hotel-card {
            -webkit-transform: translateZ(0) !important;
            transform: translateZ(0) !important;
        }
        
        .hotel-image img {
            -webkit-backface-visibility: hidden !important;
            backface-visibility: hidden !important;
        }
        
        .book-hotel-btn {
            -webkit-user-select: none !important;
            user-select: none !important;
        }
    }
    
    /* Additional mobile optimizations for hotel cards */
    .hotel-card {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    /* Affiliate Disclaimer Mobile */
    .affiliate-disclaimer {
        margin: 0 1rem 1rem 1rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .affiliate-disclaimer p {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
    
    .primary-btn,
    .secondary-btn {
        padding: 14px 24px !important;
        font-size: 1rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .hotel-loading {
        padding: 2rem 1.5rem !important;
    }
    
    .loading-spinner {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hotel-loading p {
        font-size: 1rem !important;
    }
    
    /* Mobile touch-friendly improvements */
    .close-modal {
        -webkit-tap-highlight-color: transparent !important;
        transition: all 0.2s ease !important;
    }
    
    .close-modal:active {
        transform: scale(0.9) !important;
        background: #e0e0e0 !important;
    }
    
    .primary-btn,
    .secondary-btn,
    .book-hotel-btn {
        -webkit-tap-highlight-color: transparent !important;
        transition: all 0.3s ease !important;
        min-height: 44px !important;
        font-weight: 600 !important;
    }
    
    .primary-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .primary-btn:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    }
    
    .secondary-btn {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 2px solid #e1e5e9 !important;
    }
    
    .secondary-btn:active {
        background: #e9ecef !important;
        border-color: #adb5bd !important;
        transform: scale(0.98) !important;
    }
    
    .book-hotel-btn:active {
        transform: scale(0.98) !important;
    }
    
    /* Prevent body scroll when modal is open */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Touch-friendly focus states */
    *:focus {
        outline: none !important;
    }
    
    .hotel-modal *:focus {
        outline: 2px solid #667eea !important;
        outline-offset: 2px !important;
    }
}

@media (max-width: 480px) {
    .hotel-modal-content {
        width: 98% !important;
        margin: 1vh auto !important;
    }
    
    .hotel-modal-header {
        padding: 1.2rem !important;
    }
    
    .hotel-modal-header h2 {
        font-size: 1.3rem !important;
    }
    
    .auth-section,
    .preferences-section,
    .hotel-results,
    .hotel-loading {
        padding: 1.2rem !important;
    }
    
    .auth-section h3,
    .preferences-section h3,
    .hotel-results h3 {
        font-size: 1.2rem !important;
    }
    
    .email-input-group input[type="email"],
    .otp-section input {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
    
    .budget-value {
        font-size: 1.2rem !important;
        min-width: 60px !important;
    }
    
    .location-option {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .hotel-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .hotel-image {
        width: 100% !important;
        height: 200px !important;
    }
    
    .hotel-name {
        font-size: 1.1rem !important;
    }
    
    .hotel-price {
        font-size: 1.2rem !important;
    }
    
    .hotel-amenity {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .primary-btn,
    .secondary-btn,
    .book-hotel-btn {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hotel-modal-content {
        max-height: 98vh !important;
        margin: 1vh auto !important;
    }
    
    .hotel-modal-header {
        padding: 1rem 1.5rem !important;
    }
    
    .auth-section,
    .preferences-section,
    .hotel-results,
    .hotel-loading {
        padding: 1rem 1.5rem !important;
    }
    
    .email-input-group {
        flex-direction: row !important;
        gap: 1rem !important;
    }
    
    .email-input-group input[type="email"] {
        width: auto !important;
        flex: 1 !important;
    }
    
    .location-options {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
    
    .hotel-details {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    }
}

/* ==========================================
   MOBILE FORM ACTIONS STYLING
   ========================================== */

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
    }
    
    .generate-btn,
    .explore-hotels-btn,
    .flight-recommendations-btn {
        width: 100% !important;
        max-width: none !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        min-height: 48px !important;
    }
    
    .generate-btn {
        order: 1 !important;
    }
    
    .explore-hotels-btn {
        order: 2 !important;
        background-color: #28a745 !important; /* Match desktop green color */
        color: white !important;
        border: none !important;
    }
    
    .explore-hotels-btn:hover,
    .explore-hotels-btn:active {
        background-color: #218838 !important; /* Darker green on hover/active */
    }
    
    .flight-recommendations-btn {
        order: 3 !important;
    }
}

@media (max-width: 480px) {
    .form-actions {
        gap: 10px !important;
        margin-top: 1.2rem !important;
    }
    
    .generate-btn,
    .explore-hotels-btn,
    .flight-recommendations-btn {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }
}