/* Welcome Screen Styles */

/* Modern Date Picker Styling */
input[type="date"] {
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    position: relative;
    z-index: 1001;
}

/* Ensure calendar popup appears above other elements */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 2px;
    opacity: 0.8;
    filter: invert(0.5);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1002;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.3);
    background: rgba(59, 130, 246, 0.1);
}

input[type="date"]:focus::-webkit-calendar-picker-indicator {
    filter: invert(0.2) sepia(1) saturate(5) hue-rotate(200deg);
}

/* Ensure the date picker popup appears above autocomplete */
input[type="date"]:focus {
    z-index: 1002;
}

/* Ensure form groups don't clip date picker */
.form-group {
    position: relative;
    overflow: visible;
}

/* Welcome Container */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 3rem 2rem;
    animation: fadeIn 0.5s ease-in;
}

.welcome-container.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Search Card */
.welcome-search-card {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
    overflow: visible;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Sample Hotels Section */
.sample-hotels-section {
    width: 100%;
    max-width: 1400px;
    animation: fadeIn 0.8s ease-in 0.2s both;
}

.sample-hotels-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.sample-hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Sample Hotel Card */
.sample-hotel-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.sample-hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border-color: #3b82f6;
}

.sample-hotel-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    transition: transform 0.3s ease;
}

.sample-hotel-card:hover .sample-hotel-image {
    transform: scale(1.05);
}

.sample-hotel-info {
    padding: 1.5rem;
}

.sample-hotel-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.sample-hotel-location {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sample-hotel-rating {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Layout transition states */
.main-container.welcome-mode {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-container {
        padding: 2rem 1rem;
    }

    .welcome-search-card {
        padding: 2rem;
        border-radius: 20px;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .sample-hotels-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sample-hotels-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-search-card {
        padding: 1.5rem;
    }

    .sample-hotel-card {
        border-radius: 16px;
    }
}
