/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Custom Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.6);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 197, 94, 0.3) transparent;
}

/* Hide scrollbars completely on mobile for cleaner look */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    
    /* For Firefox mobile */
    html {
        scrollbar-width: none;
    }
}

/* Custom scrollbar for specific containers */
.autocomplete-dropdown::-webkit-scrollbar,
.mobile-menu-dropdown::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb,
.mobile-menu-dropdown::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.4);
    border-radius: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover,
.mobile-menu-dropdown::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-size: 1.6rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: #22c55e;
}

.nav-brand i {
    font-size: 1.8rem;
    color: #22c55e;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-weight: 600;
    background: white;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-profile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu-toggle {
    background: #22c55e;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.mobile-menu-toggle:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 200px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 1001;
    backdrop-filter: blur(20px);
}

.mobile-menu-dropdown.hidden {
    display: none;
}

.mobile-menu-dropdown.show {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-item {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.mobile-menu-item:hover {
    background: #f8fafc;
    color: #22c55e;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.mobile-menu-item:hover i {
    color: #22c55e;
}

.mobile-menu-item.logout-btn {
    border-top: 1px solid #e5e7eb;
    color: #dc2626;
}

.mobile-menu-item.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.mobile-menu-item.logout-btn i {
    color: #dc2626;
}

.mobile-user-profile {
    border-top: 1px solid #e5e7eb;
    padding-top: 0;
}

.mobile-user-info {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
}

.mobile-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.mobile-user-info span {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Desktop Menu - Hidden on Mobile */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-menu {
        display: flex !important;
    }
}

/* Animation for mobile dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Style the Google Sign-in button to match our design */
#googleSignInButton iframe,
#welcomeGoogleSignInButton iframe,
#mobileGoogleSignInButton iframe {
    border-radius: 25px !important;
    overflow: hidden;
}

#googleSignInButton,
#welcomeGoogleSignInButton,
#mobileGoogleSignInButton {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#googleSignInButton:hover,
#welcomeGoogleSignInButton:hover,
#mobileGoogleSignInButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Additional styling for welcome section Google button */
#welcomeGoogleSignInButton {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#welcomeGoogleSignInButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile Google Sign-in button styling */
#mobileGoogleSignInButton {
    width: 100%;
    margin: 4px 0;
}

#mobileGoogleSignInButton iframe {
    width: 100% !important;
    max-width: 240px;
    margin: 0 auto;
}

.mobile-google-signin-container {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.mobile-google-signin-container:hover {
    background: #f8fafc;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.35);
}

.btn-secondary {
    background: white;
    color: #16a34a;
    border: 2px solid #22c55e;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: #f0fdf4;
    color: #15803d;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 30px;
}

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

/* Enhanced Touch Targets for Mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mode-card {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .tab-btn {
        min-height: 50px;
    }
    
    .radio-custom {
        width: 24px;
        height: 24px;
    }
    
    .tag {
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Improved Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.city-input:focus,
select:focus,
input[type="date"]:focus,
input[type="number"]:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Better Visual Hierarchy */
@media (max-width: 768px) {
    h1, h2, h3 {
        line-height: 1.3;
    }
    
    p {
        line-height: 1.6;
    }
}

/* Mobile Navigation Enhancements */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-nav .nav-container {
    padding: 10px 15px;
}

/* Smooth Transitions for Responsive Elements */
.form-section,
.attraction-card,
.activity-item,
.day-header {
    transition: all 0.3s ease;
}

/* Enhanced Green Color Scheme Consistency */
.autocomplete-item.highlighted,
.autocomplete-item:hover {
    background-color: rgba(34, 197, 94, 0.1);
}

.planning-header h2 {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Green Accent for Interactive Elements */
.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Improved Loading Animation */
@keyframes loadingPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
    }
}

.loading-spinner i {
    animation: spin 2s linear infinite, loadingPulse 2s ease-in-out infinite;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* Welcome Section */
.welcome-section {
    background: white;
    padding: 100px 0 120px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.welcome-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
}

.welcome-content {
    flex: 1;
    text-align: left;
}

.gradient-heading {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, #22c55e 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.welcome-subheading {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
}

.welcome-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-start-planning {
    background: #22c55e;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-start-planning:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-google-signin {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Initially hidden to prevent flash */
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-google-signin:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-google-signin i {
    color: #ea4335;
    font-size: 18px;
}

.welcome-images {
    flex: 1;
    animation: fadeInUp 1s ease 0.6s both;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 500px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Trip Planning Section */
.trip-planning-section {
    padding: 80px 0;
    background: white;
}

.planning-header {
    text-align: center;
    margin-bottom: 50px;
}

.planning-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.planning-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Form Styles */
.trip-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #22c55e;
}

/* City Input Styles */
.cities-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.city-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.city-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.city-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background-color: #f8fafc;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Duration Options */
.duration-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

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

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #22c55e;
    background: #22c55e;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.date-inputs {
    display: flex;
    gap: 20px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Travel Modes */
.travel-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

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

.mode-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-card i {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 10px;
}

.mode-card span {
    display: block;
    font-weight: 500;
    color: #4a5568;
}

.mode-option input[type="radio"]:checked + .mode-card {
    border-color: #22c55e;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.mode-option input[type="radio"]:checked + .mode-card i,
.mode-option input[type="radio"]:checked + .mode-card span {
    color: white;
}

/* Preferences */
.preferences-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.preference-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #4a5568;
}

.preference-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-label {
    display: inline-block;
    cursor: pointer;
}

.tag-label input[type="checkbox"] {
    display: none;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #4a5568;
}

.tag-label input[type="checkbox"]:checked + .tag {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    color: white;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

/* Loading Section */
.loading-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.loading-spinner i {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: spin 2s linear infinite;
}

.loading-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Itinerary Section */
.itinerary-section {
    padding: 80px 0;
    background: white;
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.itinerary-header h2 {
    font-size: 2.5rem;
    color: #333;
}

.itinerary-actions {
    display: flex;
    gap: 15px;
}

/* Trip Summary */
.trip-summary {
    margin-bottom: 40px;
}

.summary-card {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.summary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.stat span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat strong {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Content Tabs */
.content-tabs {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
    display: flex;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #f8fafc;
}

.tab-btn.active {
    color: #22c55e;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Map Container */
.map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hide desktop menu on mobile */
    .desktop-menu {
        display: none;
    }
    
    /* Show mobile menu on mobile */
    .mobile-menu {
        display: block;
    }
    
    .welcome-section {
        padding: 60px 0 80px 0;
    }
    
    .welcome-section .container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .welcome-content {
        text-align: center;
    }
    
    .gradient-heading {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .welcome-subheading {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .welcome-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-start-planning,
    .btn-google-signin,
    #welcomeGoogleSignInButton {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .image-gallery {
        height: 400px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 15px;
    }
    
    /* Form responsive styles */
    .trip-form {
        padding: 0 15px;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .preferences-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .travel-modes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mode-card {
        padding: 15px;
    }
    
    .interests-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Trip summary responsive */
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat {
        padding: 12px;
    }
    
    /* Tab responsive */
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 15px;
        font-size: 15px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    /* Itinerary responsive */
    .itinerary-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .itinerary-header h2 {
        font-size: 2rem;
    }
    
    .itinerary-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* Map responsive */
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .welcome-section {
        padding: 60px 0 80px 0;
    }
    
    .gradient-heading {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .welcome-subheading {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .welcome-buttons {
        gap: 15px;
    }
    
    .btn-start-planning,
    .btn-google-signin {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .image-gallery {
        height: 350px;
        gap: 15px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
    }
    
    .city-input {
        padding: 12px;
        font-size: 15px;
    }
    
    .travel-modes {
        grid-template-columns: 1fr;
    }
    
    .mode-card {
        padding: 20px;
    }
    
    .mode-card i {
        font-size: 1.5rem;
    }
    
    .interests-tags {
        gap: 6px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline-activities {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .activity-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .attractions-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .attraction-card {
        margin: 0 -5px;
    }
    
    .attraction-content {
        padding: 15px;
    }
    
    .attraction-title {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 0 10px;
    }
    
    /* Enhanced Navigation for Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-brand i {
        font-size: 1.4rem;
    }
    
    .mobile-menu-toggle {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .mobile-menu-toggle i {
        font-size: 16px;
    }
    
    /* Improved Form Controls */
    .form-section {
        border-radius: 12px;
    }
    
    .autocomplete-dropdown {
        font-size: 14px;
    }
    
    .autocomplete-item {
        padding: 15px;
    }
    
    /* Better Timeline for Mobile */
    .timeline-day:before {
        display: none;
    }
    
    .day-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .day-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Enhanced Buttons */
    .btn-start-planning,
    .btn-google-signin {
        border-radius: 25px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    /* Loading Section Mobile */
    .loading-section {
        padding: 60px 0;
    }
    
    .loading-spinner i {
        font-size: 3rem;
    }
    
    .loading-content h3 {
        font-size: 1.5rem;
    }
    
    .loading-content p {
        font-size: 1rem;
    }
}

/* Tablet and Landscape Mobile Styles */
@media (min-width: 481px) and (max-width: 1024px) {
    .welcome-section .container {
        gap: 50px;
    }
    
    .gradient-heading {
        font-size: 3.2rem;
    }
    
    .welcome-subheading {
        font-size: 1.2rem;
    }
    
    .image-gallery {
        height: 450px;
    }
    
    .form-section {
        padding: 25px;
    }
    
    .travel-modes {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .attractions-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .welcome-section .container {
        max-width: 1600px;
    }
    
    .gradient-heading {
        font-size: 4.5rem;
    }
    
    .welcome-subheading {
        font-size: 1.4rem;
    }
    
    .attractions-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline-activities {
        margin-left: 90px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .welcome-buttons,
    .itinerary-actions,
    .tab-buttons {
        display: none !important;
    }
    
    .welcome-section {
        page-break-after: always;
    }
    
    .timeline-day {
        page-break-inside: avoid;
    }
    
    .activity-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}