/* ========================================
   VeriStay USER WEBSITE - ENHANCED THEME
   Consistent with Admin Panel Design System
   ======================================== */

/* ===== 1. TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== 2. LIGHT MODE (Strict Rules) ===== */
:root {
    /* --- Backgrounds --- */
    --bg-body: #F9FAFB;
    /* Off-white */
    --bg-card: #FFFFFF;
    /* Pure white */
    --bg-input: #FFFFFF;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* --- Text Colors --- */
    --text-heading: #111827;
    /* Near-black */
    --text-primary: #1F2937;
    /* Dark Gray - Main Text */
    --text-secondary: #4B5563;
    /* Medium Gray - Readable */
    --text-muted: #6B7280;
    /* Muted but visible */
    --text-inverse: #FFFFFF;

    /* --- Accent Colors --- */
    --primary-color: #4F46E5;
    /* Indigo-600 */
    --primary-glow: rgba(79, 70, 229, 0.3);
    --secondary-color: #10B981;
    /* Emerald-500 */
    --accent-warning: #F59E0B;
    --accent-danger: #EF4444;
    --accent-neon: #8B5CF6;

    /* --- Borders & Effects --- */
    --border-color: #E5E7EB;
    /* Light Gray */
    --header-height: 76px;
    --btn-radius: 9999px;
    --card-radius: 16px;

    /* Shadows - Visible in Light Mode */
    --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-glow: 0 0 15px rgba(79, 70, 229, 0.3);
    --glass-border: 1px solid rgba(229, 231, 235, 0.5);
    --backdrop-blur: blur(8px);
}

/* ===== 3. DARK MODE (DRAFT) =====
   To be implemented: High Contrast & 3-Layer Depth
*/

/* ===== 4. BASE STYLES ===== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* ===== 4.1 CUSTOM UTILITIES ===== */
.max-w-600 { max-width: 600px; }
.max-w-500 { max-width: 500px; }
.cursor-pointer { cursor: pointer; }
.bg-body-custom { background: var(--bg-body); }
.feature-icon-lg { width: 60px; height: 60px; flex-shrink: 0; }
.rotate-n3 { transform: rotate(-3deg); }
.step-icon-xl { width: 80px; height: 80px; }
.newsletter-card { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); box-shadow: var(--shadow-glow); }
.newsletter-circle-1, .newsletter-circle-2 { width: 300px; height: 300px; }
.obj-cover { object-fit: cover; }
.border-custom { border-color: var(--border-color) !important; }
.blog-article { color: var(--text-secondary); line-height: 1.8; }
.min-h-80vh { min-height: 80vh; }

/* ===== 5. TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted) !important;
    /* Force readable muted color */
}

/* Explicit Overrides for Bootstrap text classes to obey theme */
.text-dark {
    color: var(--text-heading) !important;
}

.text-body {
    color: var(--text-primary) !important;
}

.bg-light {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

.bg-white {
    background-color: var(--bg-card) !important;
}

/* ===== 6. NAVIGATION ===== */
.navbar {
    background-color: var(--bg-nav) !important;
    border-bottom: 1px solid transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.98) !important;
}

/* NEW: Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 24, 39, 0.7); /* Dark overlay */
    z-index: 0;
}
.hero-section > .container {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===== 7. CARDS (Strict Visibility) ===== */
.card,
.card-standard,
.hostel-card-standard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    /* Always visible border */
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    /* Minimal shadow base */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    overflow: hidden;
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-standard,
[data-theme="dark"] .hostel-card-standard {
    box-shadow: none;
    /* No dirty shadow in dark mode */
}

.card:hover,
.hostel-card-standard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    /* Glow/Shadow on hover */
    border-color: var(--primary-color);
    /* Active Border on Hover */
}

.card-selected {
    border: 2px solid var(--primary-color) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-body);
    /* Placeholder bg */
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-img-wrapper:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.card-title {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-secondary);
}

/* ===== 8. BUTTONS (Readability) ===== */
.btn {
    border-radius: var(--btn-radius);
    /* Pillow shape default */
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #FFFFFF !important;
    /* Always White */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Strict Secondary Button Rules */
[data-theme="dark"] .btn-outline-primary {
    color: #FFFFFF !important;
    /* White Text */
    border-color: rgba(255, 255, 255, 0.2) !important;
    /* Subtle White Border */
    background: rgba(255, 255, 255, 0.05);
    /* Slight fill */
}

[data-theme="dark"] .btn-outline-primary:hover {
    border-color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
    background-color: #1F2937 !important;
    border-color: #1F2937 !important;
    color: white !important;
}

[data-theme="dark"] .btn-dark {
    background-color: #F1F5F9 !important;
    /* Invert for dark mode */
    border-color: #F1F5F9 !important;
    color: #0F172A !important;
}

/* Ghost Buttons (Filters) */
.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* ===== 9. FORMS (Inputs) ===== */
.form-control,
.form-select {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 0.625rem 1rem;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-input) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    color: var(--text-primary) !important;
    outline: none;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-floating label {
    color: var(--text-muted);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--accent-danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.invalid-feedback {
    color: var(--accent-danger);
    font-size: 0.85rem;
}

/* ===== 10. BADGES & UTILS ===== */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

.badge-standard {
    letter-spacing: 0.3px;
}

/* Layout Utils */
.hard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

@media (min-width: 1600px) {
    .hard-container {
        max-width: 1440px;
    }
}

/* ===== 11. HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    /* Always white text on hero image */
    padding: 8rem 0 6rem;
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section p {
    color: white !important;
    /* Force override theme */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ===== 12. REDESIGNED PROPERTY CARDS ===== */
.hostel-card-standard {
    background: #ffffff;
    border-radius: 24px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hostel-card-standard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.card-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hostel-card-standard:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.photo-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.card-badge-top {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.fav-btn-top-right {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: none !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fav-btn-top-right:hover {
    background: #ffffff !important;
    transform: scale(1.1);
    color: #ef4444;
}

.hostel-card-standard .card-body {
    padding: 1.5rem !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-hostel-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.card-location-line {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.rating-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.rating-score {
    font-weight: 800;
    font-size: 1rem;
    color: #111827;
}

.verified-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #ecfdf5;
    color: #059669;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.highlight-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 8px;
    transition: all 0.2s;
}

.chip:hover {
    background: #e5e7eb;
}

.price-footer-line {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.price-amount-wrap {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-value-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4f46e5;
}

.price-per-period {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

.no-image-placeholder-v2 {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e0e7ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    text-align: center;
    padding: 1rem;
}

/* ===== 13. TOASTS & ALERTS ===== */
#toast-container {
    z-index: 9999;
}

.toast {
    background-color: #1F2937;
    /* Always dark bg */
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}


/* ===== 13. AUTH PAGES (Login/Register) ===== */
.login-container {
    padding: 2rem 0;
    max-width: 450px;
    margin: auto;
    padding-top: 5vh;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    /* More rounded */
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

/* Input Fields inside Login */
.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input {
    padding-left: 3rem;
    /* Space for icon */
}

/* Auth Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    top: 10%;
    right: 10%;
    opacity: 0.5;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.2);
    bottom: 10%;
    left: 10%;
    opacity: 0.5;
}

/* ===== 14. SEARCH & FILTERS ===== */
.search-experience-wrapper {
    position: relative;
    z-index: 100;
}

.sticky-search-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1020;
}

.search-container {
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 9999px !important;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem !important;
}

.search-container:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(79, 70, 229, 0.1) !important;
}

.search-field-group {
    padding: 4px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s;
}

.search-field-group:hover {
    background: #f9fafb;
    border-radius: 9999px;
}

.search-field-group label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.btn-location-detect {
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-location-detect:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    font-weight: 700;
    color: #111827;
}

.dropdown-options-list {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    width: 250px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 1000;
    border: 1px solid #f3f4f6;
}

.dropdown-options-list.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.dropdown-option {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s;
}

.dropdown-option:hover {
    background: #f3f4f6;
    color: #111827;
}

.dropdown-option.selected {
    background: #4f46e5;
    color: white;
}

/* NEW: Chip Toggle Filters */
.btn-check:checked + .chip-toggle {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
}
.chip-toggle {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-color: var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.chip-toggle:hover {
    background-color: var(--bg-input);
    color: var(--text-heading);
}
.filter-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}
.filter-active-chip .btn-close {
    font-size: 0.6rem;
    filter: brightness(0) saturate(100%) invert(31%) sepia(87%) saturate(2222%) hue-rotate(227deg) brightness(97%) contrast(98%);
}

/* Custom Range Slider */
.custom-range-slider::-webkit-slider-thumb {
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.custom-range-slider::-moz-range-thumb {
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* NEW: Custom Dropdown Menu for Where/Guests */
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1050;
    min-width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 16px;
    display: none;
    animation: dropdownFadeIn 0.2s ease forwards;
}

/* Map Price Badge */
.custom-price-marker {
    background: transparent;
    border: none;
}
.price-badge {
    transition: all 0.2s ease;
    white-space: nowrap;
}
.price-badge.bg-dark {
    transform: scale(1.1);
    z-index: 1000 !important;
}


.custom-dropdown-menu.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.suggestion-item {
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-option i {
    font-size: 1.1rem;
}

/* Scrollable Filters */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
}

.quick-filters-scroll {
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.btn-filter-pill {
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 10px 20px;
    white-space: nowrap;
    color: #4b5563;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-filter-pill:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}

.btn-filter-pill.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Enhanced Search Button */
.main-search-btn {
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    transition: all 0.3s ease;
    border: none;
}

.main-search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
    background-color: #4f46e5;
}

/* Floating Filter Button (Mobile) */
.floating-filter-btn {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
    background-color: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floating-filter-btn:hover {
    transform: translateX(-50%) scale(1.05);
    background-color: #000000;
}

/* List/Map Toggle */
.btn-toggle-group {
    padding: 4px;
    background: #f3f4f6;
    border-radius: 9999px;
    display: flex;
    gap: 4px;
}

.btn-toggle-item {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    transition: all 0.2s;
}

.btn-toggle-item.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* ===== 15. COMPARE PAGE STYLES ===== */
.compare-container {
    max-width: 1200px;
    margin: 0 auto;
}

#compare-table-container .table {
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

#compare-table-container th {
    vertical-align: middle;
}

#compare-table-container .table thead th:first-child {
    border-top-left-radius: 16px;
}

#compare-table-container .table thead th:last-child {
    border-top-right-radius: 16px;
}

.compare-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.compare-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Mobile swipe */
@media (max-width: 991px) {
    .compare-container {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }

    .compare-row {
        display: flex;
        flex-wrap: nowrap;
        min-width: min-content;
        padding: 0 1rem;
    }

    .compare-col,
    .compare-card {
        flex: 0 0 85vw;
        max-width: 320px;
        scroll-snap-align: center;
        margin-right: 1rem;
    }

    .compare-section-title {
        position: sticky;
        left: 0;
        background: var(--bg-body);
        z-index: 5;
        padding-left: 1rem;
    }
}

.compare-section-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

/* Amenity Icons in Compare */
.amenity-icon.check {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.amenity-icon.cross {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

/* Scrollbar Hide */
.compare-container::-webkit-scrollbar {
    height: 6px;
}

.compare-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* ===== 16. THEME TOGGLE ===== */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--border-color);
}

/* ===== 17. LOADING SPINNER ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== 18. FOOTER ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 3rem 0;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* ===== 19. RESPONSIVE UTILS ===== */
@media (max-width: 768px) {
    .hard-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }
}


/* Sticky Navbar Class */
.sticky-nav { 
    z-index: 1030; 
}

/* Premium Toast Styles for User Side */
.user-toast-container { 
    position: fixed; 
    top: 24px; 
    right: 24px; 
    z-index: 10000; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.user-toast { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 20px; 
    background: #fff; 
    color: #333; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    transform: translateX(120%); 
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    min-width: 300px; 
    border-left: 5px solid #3B82F6; 
}

.user-toast.show { 
    transform: translateX(0); 
    opacity: 1; 
}

.user-toast-success { 
    border-left-color: #10B981; 
}

.user-toast-error { 
    border-left-color: #EF4444; 
}

.user-toast-warning { 
    border-left-color: #F59E0B; 
}

.user-toast .toast-icon { 
    font-size: 1.2rem; 
}

.user-toast-success .toast-icon { 
    color: #10B981; 
}

.user-toast-error .toast-icon { 
    color: #EF4444; 
}

.user-toast-info .toast-icon { 
    color: #3B82F6; 
}

.toast-content { 
    flex-grow: 1; 
    font-size: 0.9rem; 
    font-weight: 500; 
}

.toast-close { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    opacity: 0.5; 
    cursor: pointer; 
    padding: 0 5px; 
}

.toast-close:hover { 
    opacity: 1; 
}

/* ===== 20. UTILITIES & FIXES ===== */
.page-content-wrapper { min-height: 80vh; }
.modal-body-scroll { max-height: 70vh; overflow-y: auto; }
.modal-spacer { width: 1rem; }
.spinner-lg { width: 3rem; height: 3rem; }

    .compare-section-title {
        position: sticky;
        left: 0;
        background: var(--bg-body);
        z-index: 5;
        padding-left: 1rem;
    }
}

.compare-section-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

/* Amenity Icons in Compare */
.amenity-icon.check {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.amenity-icon.cross {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

/* Scrollbar Hide */
.compare-container::-webkit-scrollbar {
    height: 6px;
}

.compare-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* ===== 16. THEME TOGGLE ===== */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--border-color);
}

/* ===== 17. LOADING SPINNER ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== 18. FOOTER ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 3rem 0;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* ===== 19. RESPONSIVE UTILS ===== */
@media (max-width: 768px) {
    .hard-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }
}


/* Sticky Navbar Class */
.sticky-nav { 
    z-index: 1030; 
}

/* Premium Toast Styles for User Side */
.user-toast-container { 
    position: fixed; 
    top: 24px; 
    right: 24px; 
    z-index: 10000; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.user-toast { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 20px; 
    background: #fff; 
    color: #333; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    transform: translateX(120%); 
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    min-width: 300px; 
    border-left: 5px solid #3B82F6; 
}

.user-toast.show { 
    transform: translateX(0); 
    opacity: 1; 
}

.user-toast-success { 
    border-left-color: #10B981; 
}

.user-toast-error { 
    border-left-color: #EF4444; 
}

.user-toast-warning { 
    border-left-color: #F59E0B; 
}

.user-toast .toast-icon { 
    font-size: 1.2rem; 
}

.user-toast-success .toast-icon { 
    color: #10B981; 
}

.user-toast-error .toast-icon { 
    color: #EF4444; 
}

.user-toast-info .toast-icon { 
    color: #3B82F6; 
}

.toast-content { 
    flex-grow: 1; 
    font-size: 0.9rem; 
    font-weight: 500; 
}

.toast-close { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    opacity: 0.5; 
    cursor: pointer; 
    padding: 0 5px; 
}

.toast-close:hover { 
    opacity: 1; 
}

/* ===== 20. UTILITIES & FIXES ===== */
.page-content-wrapper { min-height: 80vh; }
.modal-body-scroll { max-height: 70vh; overflow-y: auto; }
.modal-spacer { width: 1rem; }
.spinner-lg { width: 3rem; height: 3rem; }

.h-30 { height: 30% !important; }
.h-40 { height: 40% !important; }
.h-50 { height: 50% !important; }
.h-60 { height: 60% !important; }
.h-90 { height: 90% !important; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== PHASE 4: PREMIUM HOSTEL CARDS ===== */
.hostel-card-premium {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.hostel-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    z-index: 10;
}
.hostel-card-premium:hover .transition-transform {
    transform: scale(1.08);
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hover-danger:hover {
    color: #dc3545 !important;
    transform: scale(1.1);
}

/* ===== PHASE 3: FILTER SIDEBAR & CHIPS ===== */
.chip-toggle {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    background-color: white !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.chip-toggle:hover {
    border-color: #d1d5db !important;
    background-color: #f9fafb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-check:checked + .chip-toggle {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* ===== CUSTOM SCROLLBAR FOR DROPDOWNS ===== */
.custom-dropdown-menu {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
}

/* ===== PHASE 1: NAVBAR PREMIUM ===== */
.nav-premium {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease;
}
.nav-premium .nav-link {
    position: relative;
    color: #4b5563;
    transition: color 0.2s ease;
}
.nav-premium .nav-link:hover, .nav-premium .nav-link.active {
    color: var(--primary-color);
}
.nav-premium .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-premium .nav-link:hover::after, .nav-premium .nav-link.active::after {
    width: 80%;
}

/* ===== PHASE 2: SEARCH SUGGESTIONS ===== */
.dropdown-suggestions-premium {
    max-height: 400px;
    overflow-y: auto;
}
.dropdown-suggestions-premium::-webkit-scrollbar {
    width: 6px;
}
.dropdown-suggestions-premium::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}
.suggestion-item {
    padding: 8px 12px;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}
.suggestion-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
    color: var(--primary-color);
}

/* ===== PHASE 3: CUSTOM RANGE SLIDER ===== */
.custom-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}
.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 3px solid white;
    transition: transform 0.1s ease;
}
.custom-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
/* Premium Newsletter Section */
.newsletter-premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.newsletter-premium-content {
    position: relative;
    z-index: 1;
}

.newsletter-premium h2 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.newsletter-premium p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.newsletter-input-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.newsletter-input-group input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding-left: 1rem !important;
    box-shadow: none !important;
}

.newsletter-input-group input::placeholder {
    color: #64748b !important;
}

.newsletter-input-group .btn-subscribe {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.newsletter-input-group .btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: white !important;
}

.newsletter-premium .floating-element-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.newsletter-premium .floating-element-2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* Newsletter V2 Form Group */
.newsletter-form-group {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.newsletter-form-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.newsletter-form-group input {
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 1rem !important;
    flex-grow: 1;
    color: #1f2937 !important;
    outline: none !important;
    min-width: 0;
    box-shadow: none !important;
}

.newsletter-form-group input::placeholder {
    color: #9ca3af !important;
}

.newsletter-form-group .btn {
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
}

.min-h-400 {
    min-height: 400px;
}

@media (min-width: 1200px) {
    .p-xl-6 {
        padding: 4rem !important;
    }
}

/* --- Airbnb-style Search Bar --- */
.search-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.search-container:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.search-field-group {
    border-radius: 9999px;
    transition: background 0.2s ease;
}
.search-field-group:hover {
    background: #f3f4f6;
}
.search-field-group:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 2px #e5e7eb;
    z-index: 5;
}
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1050;
}
.custom-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hover-bg-light:hover {
    background-color: #f9fafb;
}
.hover-bg-gray:hover {
    background-color: #e5e7eb !important;
}
.transition {
    transition: all 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* --- Premium Hostel Cards --- */
.hostel-card-premium {
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.hostel-card-premium:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.12) !important;
}
.hostel-card-premium:hover .card-img-wrapper img {
    transform: scale(1.08) !important;
}
.hostel-card-premium:hover .view-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.hostel-card-premium:hover .compare-toggle-wrapper {
    opacity: 0;
    pointer-events: none;
}
.scale-up { transform: scale(1.15) !important; }

/* ============================================
   PREMIUM FLOATING SMART SEARCH (VeriStay)
   Brand: VeriStay Blue, Navy, White, Light Gray
============================================ */
.search-premium-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-premium-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.search-form {
    min-height: 68px;
}

.search-field {
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-field:hover {
    background: #f8fafc;
}

.search-label {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    color: #64748b;
}

.search-input {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-divider {
    width: 1px;
    height: 42px;
    background: #e2e8f0;
    align-self: center;
}

/* Dropdowns - Clean & Premium */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    min-width: 320px;
}

.search-dropdown.active {
    display: block;
    animation: searchDropdownIn 0.18s ease-out;
}

@keyframes searchDropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.suggestion-row {
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
}

.suggestion-row:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

/* Search Button - VeriStay Blue Gradient */
.search-btn-veristay {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.search-btn-veristay:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

/* Date Picker Styling */
#date-dropdown input[type="date"] {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

/* ===== FULLY RESPONSIVE MOBILE SEARCH ===== */
@media (max-width: 768px) {
    .search-premium-container {
        margin: 0 8px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .search-form {
        flex-direction: column;
        gap: 0;
        padding: 8px 12px;
    }
    
    .search-field {
        padding: 14px 12px !important;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .search-field:last-child {
        border-bottom: none;
    }
    
    .search-divider { 
        display: none; 
    }
    
    .search-input {
        font-size: 1.1rem;
    }
    
    .search-btn-veristay {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        margin-top: 8px;
    }
    
    .search-dropdown {
        left: 8px;
        right: 8px;
        min-width: auto;
        width: calc(100% - 16px);
        max-height: 320px;
        overflow-y: auto;
    }
    
    .search-label {
        font-size: 0.65rem;
    }
}
