/* 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: none;
}

/* 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;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.welcome-title .welcome-icon {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 4px;
}

.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: transparent;
}

.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;
    }
}

/* Исправление ширины полей дат на мобильных */
@media (max-width: 768px) {
    input[type="date"] {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .form-row {
        overflow: visible;
    }
    
    .form-row .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-row .form-group input[type="date"] {
        width: 100%;
        padding: 14px 10px;
    }
}


/* [зад.1531 SEO] Стили серверного переключателя языков (SSR) */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    font-family: inherit;
    transition: all 0.2s ease;
}
.lang-current:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.lang-caret {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.15s ease;
}
.language-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.18);
    z-index: 100000;
}
.lang-dropdown[hidden] { display: none; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    background: transparent;
    color: #1f2937;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
}
.lang-option:hover { background: #f1f5f9; }
.lang-option.active { background: #eef2ff; color: #4338ca; font-weight: 600; }
.lang-option-code { font-size: 11px; font-weight: 700; opacity: 0.55; margin-left: auto; }
.language-switcher.light .lang-current {
    border-color: #ddd;
    background: #fff;
    color: #333;
}
.language-switcher.light .lang-current:hover { background: #f3f4f6; }
