* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header a {
    text-decoration: none;
}

.header-icon {
    font-size: 1.75rem;
}

.auth-trigger-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.auth-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: block;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.user-menu-item:first-child {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.user-menu-item:last-child {
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.user-menu-item:hover {
    background-color: #f8fafc;
}

.user-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 380px;
    background: var(--sidebar-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
}


.sidebar-section {
    margin-bottom: 1.25rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-primary);
}

input[type="date"] {
    padding: 0.75rem 0.625rem;
    font-size: 0.8125rem;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L0.35 3.175l0.7-0.7L6 7.425l4.95-4.95 0.7 0.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.flatpickr-input[readonly] {
    cursor: pointer;
    background: white;
}

.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid #e2e8f0 !important;
    font-family: inherit !important;
}

.flatpickr-months .flatpickr-month {
    border-radius: 12px 12px 0 0;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.flatpickr-day.range-start {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    border-radius: 12px 6px 6px 12px !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.flatpickr-day.range-end {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    border-radius: 6px 12px 12px 6px !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.flatpickr-day.range-start.range-end {
    border-radius: 12px !important;
}

.flatpickr-day.in-range {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%) !important;
    border-color: #c7d2fe !important;
    color: #4338ca !important;
    border-radius: 6px !important;
    font-weight: 500;
}

.flatpickr-day.in-range-preview {
    background: linear-gradient(180deg, #f5f7ff 0%, #eef2ff 100%) !important;
    border-color: #ddd6fe !important;
    color: #6366f1 !important;
    border-radius: 6px !important;
}

.flatpickr-day:hover {
    background: #f5f7ff !important;
    border-color: #c7d2fe !important;
    transform: translateY(-1px);
    transition: all 0.15s ease;
}

.flatpickr-day.range-start:hover,
.flatpickr-day.range-end:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
    border: 1px solid #e2e8f0 !important;
    font-family: inherit !important;
    overflow: hidden;
}

.flatpickr-months .flatpickr-month {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-current-month {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    padding: 0 10px !important;
    margin-top: 6px !important;
}

.flatpickr-weekdays {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 8px 0 !important;
}

.flatpickr-weekday {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flatpickr-day {
    border-radius: 8px !important;
    transition: all 0.15s ease;
    font-weight: 500;
}

.flatpickr-day.today {
    border-color: #6366f1 !important;
    background: #fefce8 !important;
    color: #854d0e !important;
    border-radius: 6px !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #94a3b8 !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #cbd5e1 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: #e0e7ff !important;
    color: #6366f1 !important;
}

input:hover, select:hover {
    border-color: #cbd5e1;
}

input:focus, select:focus {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: none;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-xl);
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

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

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

.autocomplete-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.autocomplete-item-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.autocomplete-item-country {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    overflow: visible;
}

/* Filters */
.filters-toggle {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filters-toggle:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filters-toggle.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: transparent;
}

.filters-toggle-icon {
    transition: transform 0.3s;
}

.filters-toggle.active .filters-toggle-icon {
    transform: rotate(180deg);
}

.filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filters-panel.show {
    max-height: 3000px;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.price-input {
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.checkbox-label:hover {
    background-color: #f8fafc;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: auto;
    margin-right: 0.625rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.star-rating-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.star-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.star-btn:hover {
    border-color: #cbd5e1;
    background: #eff6ff;
}

.star-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: transparent;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #475569 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Content Area */
.content {
    flex: 1;
    min-width: 0;
}

/* Hotel Cards */
.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.hotel-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
}

.hotel-card:hover::before {
    opacity: 1;
}

.hotel-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.hotel-images-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.hotel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    transition: transform var(--transition-normal);
}

.hotel-image.active {
    z-index: 1;
}

.hotel-card:hover .hotel-image.active {
    transform: scale(1.02);
}

.hotel-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hotel-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.hotel-card:hover .hotel-name {
    color: var(--primary-color);
}

.hotel-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hotel-address {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hotel-distance {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.hotel-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-stars {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.badge-rating {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.hotel-features {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.hotel-meal {
    font-size: 0.8125rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hotel-conditions {
    font-size: 0.8125rem;
    color: #10b981;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hotel-price-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.hotel-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.hotel-price-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.pagination-btn {
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-primary);
}

.pagination-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #eff6ff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: var(--primary-color);
}

.pagination-info {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Loading & Messages */
.loading {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.spinner {
    border: 4px solid #f1f5f9;
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.airplane-loader {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: 60px;
}

.airplane-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    top: 28px;
    overflow: hidden;
}

.airplane-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: airplaneProgress 2.5s ease-in-out infinite;
}

.airplane-icon {
    position: absolute;
    top: -18px;
    font-size: 28px;
    animation: airplaneFly 2.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    z-index: 2;
}

.airplane-clouds {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 60px;
    pointer-events: none;
}

.cloud {
    position: absolute;
    font-size: 18px;
    opacity: 0;
    animation: cloudDrift 3s linear infinite;
}

.cloud-1 { top: 2px; animation-delay: 0s; }
.cloud-2 { top: 14px; animation-delay: 1s; }
.cloud-3 { top: 6px; animation-delay: 2s; }

@keyframes airplaneFly {
    0% { left: -5%; }
    100% { left: 92%; }
}

@keyframes airplaneProgress {
    0% { width: 0%; left: 0; }
    50% { width: 60%; }
    100% { width: 100%; left: 0; }
}

@keyframes cloudDrift {
    0% { right: -20px; opacity: 0; }
    10% { opacity: 0.4; }
    80% { opacity: 0.3; }
    100% { right: 110%; opacity: 0; }
}

.error {
    background: white;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 1.5rem;
    }

    .results {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .header h1 {
        font-size: 1.25rem;
    }

    .header-icon {
        font-size: 1.4rem;
    }

    .auth-trigger-btn {
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 8px;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .results {
        grid-template-columns: 1fr;
    }

    .hotel-card {
        border-radius: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Hide elements initially */
.hidden {
    display: none !important;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tax and Cancellation Info */
.tax-info {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.tax-info.tax-included {
    background: #ecfdf5;
    color: #065f46;
}

.tax-info.tax-excluded {
    background: #fef3c7;
    color: #92400e;
}

.cancellation-info {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.cancellation-info.cancellation-free {
    background: #ecfdf5;
    color: #065f46;
}

.cancellation-info.cancellation-penalty {
    background: #fef3c7;
    color: #92400e;
}

.cancellation-info.cancellation-nonrefund {
    background: #fef2f2;
    color: #991b1b;
}

/* Policy section styles */
.policy-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.policy-group-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.policy-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-item {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.policy-label {
    font-weight: 500;
    color: #64748b;
}

.policy-value {
    color: #1e293b;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* AI Filter Button & Modal */
/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748b;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:hover {
    border-color: #cbd5e1;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #cbd5e1;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: #f0f4ff;
}

.custom-select-option.selected {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}

.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ai-filter-btn-container {
    margin-top: 8px;
    margin-bottom: 0;
}

.ai-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    font-family: inherit;
    text-align: center;
    width: 100%;
}

.ai-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.ai-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ai-filter-modal.active {
    display: flex;
}

.ai-filter-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

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

.ai-filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    background: white;
}

.ai-filter-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-filter-modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-filter-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.ai-filter-modal-body {
    padding: 0 24px 20px;
}

.ai-filter-modal-hint {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.55;
    padding: 0;
    background: none;
    border-left: none;
}

.ai-filter-modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    min-height: 56px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f8fafc;
}

.ai-filter-modal-input:focus {
    outline: none;
    border-color: #e2e8f0;
    background: white;
    box-shadow: none;
}

.ai-filter-modal-input::placeholder {
    color: #94a3b8;
}

.ai-filter-status {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0f9ff;
    border-radius: 10px;
    font-size: 13px;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-filter-status .ai-filter-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #bfdbfe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.ai-filter-results {
    margin-top: 16px;
}

.ai-filter-results .ai-filter-result-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    white-space: pre-wrap;
}

.ai-filter-results .ai-filter-result-text strong {
    color: #7c3aed;
}

.ai-filter-modal-footer {
    padding: 16px 24px;
    background: white;
}

.ai-filter-modal-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ai-filter-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.ai-filter-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
