/* Design Tokens - Light Theme (Base) */
:root {
    --bg-cream: #F5F5F5;
    --card: #FFFFFF;
    --text: #1A1D1F;
    --muted: #8A9099;
    --accent: #9ACD32;
    --accent-600: #7FB020;
    --accent-700: #6A981B;
    --chip: #E8F3D6;
    --warning: #FFCC66;
    --success: #36C090;
    --white: #FFFFFF;
    --shadow: 0 10px 24px rgba(14, 20, 17, 0.14);
    --shadow-soft: 0 6px 14px rgba(14, 20, 17, 0.10);
    --border: rgba(0, 0, 0, 0.08);
    --elev-translucent: rgba(255, 255, 255, 0.08);
    --overlay-strong: rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

/* Dark Theme Palette - Modern Polish */
.theme-dark {
    --bg-cream: #0E1113;
    --card: #15191C;
    --card-2: #181D21;
    --text: #E7ECF1;
    --muted: #A9B2BC;
    --accent: #98D96F;
    --accent-600: #7EC555;
    --accent-700: #69AD46;
    --chip: #1A1F22;
    --warning: #FFD27D;
    --success: #44D6A4;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 6px 14px rgba(0, 0, 0, 0.35);
    --border: rgba(255, 255, 255, 0.06);
    --elev-translucent: rgba(255, 255, 255, 0.04);
    --overlay-strong: rgba(0, 0, 0, 0.55);
}

/* System Theme - Respects OS Dark Mode */
@media (prefers-color-scheme: dark) {
    :root.system-theme {
        --bg-cream: #0E1113;
        --card: #15191C;
        --card-2: #181D21;
        --text: #E7ECF1;
        --muted: #A9B2BC;
        --accent: #98D96F;
        --accent-600: #7EC555;
        --accent-700: #69AD46;
        --chip: #1A1F22;
        --warning: #FFD27D;
        --success: #44D6A4;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        --shadow-soft: 0 6px 14px rgba(0, 0, 0, 0.35);
        --border: rgba(255, 255, 255, 0.06);
        --elev-translucent: rgba(255, 255, 255, 0.04);
        --overlay-strong: rgba(0, 0, 0, 0.55);
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Smooth theme transitions */
    transition: background-color 0.22s ease, 
                color 0.22s ease, 
                border-color 0.22s ease, 
                box-shadow 0.22s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-cream);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* App Container - Fixed Width */
.app {
    width: 375px;
    margin: 0 auto;
    background: var(--bg-cream);
    position: relative;
    min-height: 100vh;
}

/* Typography */
.display-1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

h1, .h1 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

h2, .h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

body, .body {
    font-size: 14px;
    font-weight: 400;
}

.caption {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

/* App Header - Modern Polish */
.appbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 12px 16px;
}

.appbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.appbar-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--chip);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.icon-btn:active {
    transform: scale(0.95);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
main {
    position: relative;
    background: var(--bg-cream);
    min-height: calc(100vh - 56px);
}

section[data-route] {
    padding: 16px;
    padding-bottom: 72px;
    min-height: calc(100vh - 56px);
    background: var(--bg-cream);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 140ms cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

section[data-route][hidden] {
    display: none !important;
}

section[data-route].slide-out {
    opacity: 0;
    transform: translateY(-6px);
}

section[data-route].slide-in {
    animation: slideIn 140ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

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

/* Tab Bar - Modern Polish */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    background: var(--card);
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
    border-top: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn.active,
.tab-btn[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

/* Active tab indicator bar */
.tab-btn.active::before,
.tab-btn[aria-current="page"]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
    animation: tabIndicatorSlide 0.3s ease;
}

@keyframes tabIndicatorSlide {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 32px;
        opacity: 1;
    }
}

.tab-btn span {
    font-size: 11px;
    font-weight: 500;
}

.tab-btn:active {
    transform: scale(0.95);
}

/* Home Screen - Modern Polish */
.welcome-section {
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.welcome-subtitle {
    color: var(--muted);
    font-size: 14px;
}

/* Search Card - Modern Polish */
.search-card {
    background: var(--card);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.search-input-group {
    margin-bottom: 16px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0 12px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    background: var(--card);
    color: var(--text);
}

.theme-dark .search-input {
    background: #1A1F22;
    color: #E7ECF1;
}

.search-input:focus {
    outline: none;
    border-color: #BFEA8E;
    box-shadow: 0 0 0 3px rgba(152, 217, 111, 0.22);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: var(--bg-cream);
}

/* Date Inputs */
.date-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.date-input-group {
    flex: 1;
}

.date-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--card);
    color: var(--text);
    -webkit-appearance: none;
    position: relative;
}

/* Custom date input styling for mobile */
.date-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.date-input::-webkit-datetime-edit {
    padding: 0;
}

.date-input::-webkit-datetime-edit-fields-wrapper {
    background: transparent;
}

.date-input::-webkit-datetime-edit-text {
    color: var(--muted);
    padding: 0 2px;
}

.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field,
.date-input::-webkit-datetime-edit-year-field {
    color: var(--text);
}

/* Modern styling for native date picker popup */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(154, 205, 50, 0.1);
    border-radius: var(--radius-md);
}

/* Style the native calendar popup (limited support) */
::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
}

.theme-dark ::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

/* Ensure date picker stays within viewport on mobile */
@supports (-webkit-touch-callout: none) {
    .date-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.date-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(154, 205, 50, 0.1);
}

/* Modern Date Input Styles */
.modern-date-input {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}

.modern-date-input:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(154, 205, 50, 0.1);
}

.modern-date-input:active {
    transform: scale(0.98);
}

.date-icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.modern-date-input:hover .date-icon {
    color: var(--accent);
}

.date-display {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.date-day,
.date-month,
.date-year {
    font-weight: 500;
    color: var(--text);
}

.date-separator {
    color: var(--muted);
    margin: 0 2px;
}

.hidden-date-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Date input animation */
.date-updated {
    animation: dateUpdate 0.3s ease;
}

@keyframes dateUpdate {
    0% {
        background: var(--accent);
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        background: var(--card);
        transform: scale(1);
    }
}

/* Fix native date picker positioning */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
}

/* Modern Native Date Picker Styles */
input[type="date"]::-webkit-datetime-edit {
    display: none;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    display: none;
}

/* Style the date picker dropdown */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Modern date picker popup styling (webkit browsers) */
input[type="date"]::-webkit-date-and-time-value {
    text-align: center;
}

/* Custom Date Picker Modal */
.date-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-modal[hidden] {
    display: none !important;
}

.date-picker-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.date-picker-content {
    position: relative;
    width: 343px;
    max-width: calc(100vw - 32px);
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.date-picker-title {
    flex: 1;
    text-align: center;
}

.date-picker-month-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.date-picker-prev,
.date-picker-next {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--chip);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.date-picker-prev:hover,
.date-picker-next:hover {
    background: var(--accent);
    color: #0B0F0C;
    transform: scale(1.1);
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px 16px 8px;
}

.weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 16px 16px;
}

.date-day {
    aspect-ratio: 1;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-day:hover:not(.disabled) {
    background: var(--chip);
}

.date-day.selected {
    background: var(--accent);
    color: #0B0F0C;
    font-weight: 600;
}

.date-day.today {
    position: relative;
    font-weight: 600;
}

.date-day.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.date-day.disabled {
    color: var(--muted);
    opacity: 0.3;
    cursor: not-allowed;
}

.date-day.other-month {
    color: var(--muted);
    opacity: 0.5;
}

.date-picker-actions {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.date-picker-cancel,
.date-picker-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-picker-cancel {
    background: var(--chip);
    color: var(--text);
}

.date-picker-confirm {
    background: var(--accent);
    color: #0B0F0C;
}

.date-picker-cancel:hover,
.date-picker-confirm:hover {
    transform: scale(1.02);
}

/* Dark mode date picker */
.theme-dark .date-picker-content {
    background: var(--card);
}

.theme-dark .date-picker-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.theme-dark .date-day {
    color: var(--text);
}

.theme-dark .date-day:hover:not(.disabled) {
    background: var(--chip);
}

.theme-dark .date-picker-cancel {
    background: var(--chip);
    color: var(--text);
}

.theme-dark .date-picker-header,
.theme-dark .date-picker-actions {
    border-color: var(--border);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Dark Mode Modern Date Input */
.theme-dark .modern-date-input {
    background: var(--card);
    border-color: var(--border);
}

.theme-dark .modern-date-input:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(152, 217, 111, 0.1);
}

.theme-dark .date-icon {
    color: var(--muted);
}

.theme-dark .modern-date-input:hover .date-icon {
    color: var(--accent);
}

.theme-dark .date-display {
    color: var(--text);
}

.theme-dark .date-day,
.theme-dark .date-month,
.theme-dark .date-year {
    color: var(--text);
}

.theme-dark .date-separator {
    color: var(--muted);
}

/* Guests Section */
.guests-section {
    margin-bottom: 20px;
}

.guests-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guest-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.guest-type span {
    font-size: 14px;
    color: var(--text);
}

.stepper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-cream);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid var(--border);
}

.theme-dark .stepper {
    background: #1A1F22;
    border: 1px solid var(--border);
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--card);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-dark .stepper-btn {
    color: #E7ECF1;
}

.stepper-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.stepper-btn:active {
    transform: scale(0.9);
}

.stepper-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: #0B0F0C;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn:hover {
    background: var(--accent-600);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Quick Filters */
.quick-filters {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-dark .chip {
    background: #1A1F22;
    border: 1px solid var(--border);
}

.chip:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.chip.active {
    background: var(--accent);
    color: var(--white);
    border-color: transparent;
}

.theme-dark .chip.active {
    background: #203018;
    border-color: #6BAF47;
    color: #CFEFC2;
}

.chip:active {
    transform: scale(0.95);
}

/* Featured Section - Modern Polish */
.featured-section {
    margin-bottom: 20px;
}

.carousel {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 12px;
}

.featured-card {
    flex: 0 0 240px;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
    position: relative;
}

.featured-card:active {
    transform: scale(0.98);
}

.featured-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    position: relative;
}

/* Media overlay for better text legibility */
.featured-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--overlay-strong));
    pointer-events: none;
}

.featured-content {
    padding: 12px;
}

.featured-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.featured-location {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.rating-star {
    color: var(--warning);
}

.price {
    text-align: right;
}

.price-label {
    font-size: 10px;
    color: var(--muted);
}

.price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

/* Search Screen */
.search-header, .page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--muted);
}

.advanced-search {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.filter-section {
    margin-top: 24px;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.price-range {
    margin-bottom: 8px;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: var(--chip);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.theme-dark .range-slider {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--card);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(152, 217, 111, 0.4);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--card);
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(152, 217, 111, 0.4);
}

/* Track styling for Firefox */
.range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--chip);
    border-radius: 3px;
}

.theme-dark .range-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.star-buttons {
    display: flex;
    gap: 8px;
}

.star-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-cream);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-btn.active {
    background: var(--accent);
    color: var(--white);
}

.star-btn:hover {
    border-color: var(--accent);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Results Screen */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 0;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.back-btn:active {
    transform: scale(0.9);
}

.results-title {
    font-size: 18px;
    font-weight: 600;
}

.results-count {
    font-size: 12px;
    color: var(--muted);
}

.filter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:active {
    transform: scale(0.9);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.result-card:active {
    transform: scale(0.98);
}

.result-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.result-content {
    padding: 12px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.result-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.result-location {
    font-size: 12px;
    color: var(--muted);
}

.result-price {
    text-align: right;
}

.result-amenities {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.amenity-tag {
    padding: 4px 8px;
    background: var(--chip);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--chip);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.select-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--card);
    color: var(--text);
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    background: var(--bg-cream);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    flex: 1;
    padding: 12px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Hotel Details Screen */
.hotel-header {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.save-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.save-btn.saved {
    background: var(--accent);
    color: var(--white);
}

.save-btn:active {
    transform: scale(0.9);
}

.hotel-gallery {
    margin: -16px -16px 20px -16px;
}

.gallery-main {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
}

.gallery-thumbs img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.more-photos {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.hotel-info {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
}

.hotel-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hotel-location {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.hotel-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    color: var(--warning);
}

.stat-value {
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

.hotel-description {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.hotel-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
}

.amenity-icon {
    font-size: 20px;
}

.amenity-item span:last-child {
    font-size: 12px;
    text-align: center;
}

.room-types {
    margin-top: 24px;
}

.room-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.room-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.room-details {
    flex: 1;
}

.room-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.room-info {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.room-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-night {
    font-size: 12px;
    color: var(--muted);
}

.booking-footer {
    position: fixed;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 343px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price {
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 12px;
    color: var(--muted);
}

.total-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.book-now-btn {
    padding: 12px 32px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-now-btn:active {
    transform: scale(0.95);
}

/* Booking Screen */
.booking-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.booking-summary {
    margin-bottom: 24px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.summary-hotel {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-room {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.summary-dates {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.date-item {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 11px;
    color: var(--muted);
}

.date-value {
    font-size: 14px;
    font-weight: 500;
}

.summary-guests {
    font-size: 14px;
    color: var(--text);
}

.booking-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--card);
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(154, 205, 50, 0.1);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.price-breakdown {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.confirm-booking-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-booking-btn:active {
    transform: scale(0.98);
}

/* Saved Screen */
.saved-header {
    margin-bottom: 24px;
}

.saved-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.saved-card:active {
    transform: scale(0.98);
}

.saved-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.saved-content {
    flex: 1;
}

.saved-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.saved-location {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.saved-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--muted);
}

/* Profile Screen */
.profile-header {
    margin-bottom: 24px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar-btn {
    padding: 8px 20px;
    background: var(--bg-cream);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-avatar-btn:hover {
    background: var(--chip);
}

.profile-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.preference-label {
    display: flex;
    flex-direction: column;
}

.preference-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.preference-desc {
    font-size: 12px;
    color: var(--muted);
}

.preference-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--card);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.save-profile-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s ease;
}

.save-profile-btn:active {
    transform: scale(0.98);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.text-btn:hover {
    color: var(--accent);
}

.text-btn.danger {
    color: #FF5252;
}

.text-btn.danger:hover {
    color: #FF1744;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow);
    z-index: 300;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-message {
    display: block;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading State */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Media Overlays for Dark Mode */
.theme-dark .featured-img,
.theme-dark .result-image,
.theme-dark .gallery-main,
.theme-dark .room-img,
.theme-dark .saved-image {
    position: relative;
}

.theme-dark .featured-img::after,
.theme-dark .result-image::after,
.theme-dark .gallery-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--overlay-strong));
    pointer-events: none;
}

/* Appearance Selector */
.appearance-selector {
    display: flex;
    background: var(--chip);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.appearance-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-md) - 4px);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.appearance-btn.active {
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.appearance-btn:hover:not(.active) {
    background: rgba(var(--text), 0.05);
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(140, 199, 255, 0.35);
}

.theme-dark *:focus-visible {
    box-shadow: 0 0 0 4px rgba(152, 217, 111, 0.35);
}

/* Dark Mode Card Enhancements - Modern Polish */
.theme-dark .search-card,
.theme-dark .featured-card,
.theme-dark .result-card,
.theme-dark .summary-card,
.theme-dark .saved-card,
.theme-dark .room-card,
.theme-dark .modal-content,
.theme-dark .booking-form,
.theme-dark .profile-form,
.theme-dark .advanced-search {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Dark Mode Text Contrast Fixes */
.theme-dark .price-value {
    color: var(--accent);
    font-weight: 600;
}

.theme-dark .price-night,
.theme-dark .price-label {
    color: var(--muted);
}

.theme-dark .featured-title,
.theme-dark .result-name,
.theme-dark .hotel-name,
.theme-dark .room-name,
.theme-dark .saved-name {
    color: var(--text);
    font-weight: 600;
}

.theme-dark .featured-location,
.theme-dark .result-location,
.theme-dark .hotel-location,
.theme-dark .saved-location {
    color: var(--muted);
}

/* Dark Mode Result Card Specific Fixes */
.theme-dark .result-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-dark .result-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.theme-dark .result-content {
    background: var(--card);
}

.theme-dark .result-amenities .amenity-tag {
    background: var(--chip);
    color: var(--text);
    border: 1px solid var(--border);
}

.theme-dark .section-title,
.theme-dark .section-subtitle,
.theme-dark .filter-title,
.theme-dark .page-title,
.theme-dark .page-subtitle,
.theme-dark .welcome-title,
.theme-dark .welcome-subtitle,
.theme-dark .results-title,
.theme-dark .results-count {
    color: var(--text);
}

.theme-dark .guest-type span {
    color: var(--text);
}

.theme-dark .stepper-value {
    color: var(--text);
    font-weight: 600;
}

.theme-dark .checkbox-label {
    color: var(--text);
}

.theme-dark .amenity-item span:last-child {
    color: var(--text);
}

.theme-dark .star-btn {
    background: var(--chip);
    color: var(--text);
    border: 1px solid var(--border);
}

.theme-dark .star-btn.active {
    background: var(--accent);
    color: #0B0F0C;
    border-color: var(--accent);
}

.theme-dark .edit-avatar-btn {
    background: var(--chip);
    color: var(--text);
}

.theme-dark .text-btn {
    color: var(--text);
}

.theme-dark .text-btn:hover {
    color: var(--accent);
}

/* Dark Mode Form Labels and Inputs */
.theme-dark .input-label,
.theme-dark .form-label,
.theme-dark .preference-title,
.theme-dark .preference-desc {
    color: var(--text);
}

.theme-dark .form-input::placeholder,
.theme-dark .search-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* Dark Mode Date Input Fix */
.theme-dark .date-input {
    color-scheme: dark;
    background: var(--card);
    color: var(--text);
}

.theme-dark .date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
}

.theme-dark .date-input::-webkit-datetime-edit-month-field,
.theme-dark .date-input::-webkit-datetime-edit-day-field,
.theme-dark .date-input::-webkit-datetime-edit-year-field {
    color: var(--text);
}

.theme-dark .date-input::-webkit-datetime-edit-text {
    color: var(--muted);
}

/* Dark Mode Empty State */
.theme-dark .empty-state h3 {
    color: var(--text);
}

.theme-dark .empty-state p {
    color: var(--muted);
}

.theme-dark .empty-state svg {
    color: var(--muted);
    opacity: 0.5;
}

/* Dark Mode Tab Bar Shadow */
.theme-dark .tabbar {
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.35);
}

/* Dark Mode Tab Indicator */
.theme-dark .tab-btn.active::before,
.theme-dark .tab-btn[aria-current="page"]::before {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(152, 217, 111, 0.4);
}

/* Dark Mode Button Adjustments - Modern Polish */
.theme-dark .book-now-btn,
.theme-dark .confirm-booking-btn,
.theme-dark .save-profile-btn,
.theme-dark .btn-primary,
.theme-dark .search-btn,
.theme-dark .primary-btn {
    background: linear-gradient(180deg, #A4E374, #8ED35B);
    color: #0B0F0C;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 18px rgba(152, 217, 111, 0.25);
}

.theme-dark .book-now-btn:active,
.theme-dark .confirm-booking-btn:active,
.theme-dark .save-profile-btn:active,
.theme-dark .btn-primary:active,
.theme-dark .search-btn:active,
.theme-dark .primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(152, 217, 111, 0.2);
}

.theme-dark .btn-secondary {
    background: var(--chip);
    color: var(--text);
}

/* Toast in Dark Mode */
.theme-dark .toast {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

/* Modal Backdrop in Dark Mode */
.theme-dark .modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

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

/* Additional Dark Mode Fixes for All Components */
.theme-dark .booking-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.theme-dark .filter-btn,
.theme-dark .back-btn,
.theme-dark .save-btn {
    color: var(--text);
}

.theme-dark .filter-btn:hover,
.theme-dark .back-btn:hover {
    background: var(--chip);
}

.theme-dark .save-btn.saved {
    color: var(--accent);
}

.theme-dark .modal-content {
    background: var(--card);
    border: 1px solid var(--border);
}

.theme-dark .modal-header {
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.theme-dark .modal-header h3 {
    color: var(--text);
}

.theme-dark .modal-footer {
    border-top: 1px solid var(--border);
    background: var(--card);
}

.theme-dark .select-input {
    background: var(--chip);
    color: var(--text);
    border: 1px solid var(--border);
}

.theme-dark .select-input option {
    background: var(--card);
    color: var(--text);
}

.theme-dark .btn-primary {
    background: var(--accent);
    color: #0B0F0C;
}

.theme-dark .rating {
    color: var(--text);
}

.theme-dark .rating-star {
    color: #FFD700;
}

.theme-dark .caption {
    color: var(--muted);
}

.theme-dark .amenity-tag {
    background: var(--chip);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Dark Mode Gallery Fixes */
.theme-dark .gallery-thumbs img {
    border: 2px solid var(--border);
}

.theme-dark .gallery-thumbs img:hover {
    border-color: var(--accent);
}

.theme-dark .more-photos {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text);
    border: 2px solid var(--border);
}

/* Dark Mode Hotel Info Fixes */
.theme-dark .hotel-description {
    color: var(--text);
}

.theme-dark .hotel-description p {
    color: var(--muted);
}

.theme-dark .amenity-icon {
    background: var(--chip);
    padding: 6px;
    border-radius: 6px;
}

.theme-dark .amenities-list {
    gap: 12px;
}

/* Dark Mode Room Cards */
.theme-dark .room-card {
    background: var(--card-2);
    border: 1px solid var(--border);
}

.theme-dark .room-details {
    color: var(--text);
}

.theme-dark .room-info {
    color: var(--muted);
}

/* Dark Mode Price Display */
.theme-dark .price-breakdown {
    background: var(--card-2);
    border: 1px solid var(--border);
}

.theme-dark .price-item {
    color: var(--text);
}

.theme-dark .price-total {
    border-top: 1px solid var(--border);
    color: var(--text);
}

.theme-dark .total-price .total-label {
    color: var(--muted);
}

.theme-dark .total-price .total-value {
    color: var(--accent);
}

/* Dark Mode Results Header */
.theme-dark .results-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.theme-dark .results-title {
    color: var(--text);
}

.theme-dark .results-count {
    color: var(--muted);
    background: var(--chip);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    display: inline-block;
}

/* Dark Mode Hotel Stats */
.theme-dark .hotel-stats {
    background: var(--card-2);
    padding: 12px;
    border-radius: var(--radius-md);
    margin: 12px 0;
}

.theme-dark .stat {
    color: var(--text);
}

.theme-dark .stat-label {
    color: var(--muted);
}

/* Dark Mode Autocomplete */
.theme-dark .autocomplete-dropdown {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.theme-dark .autocomplete-item {
    color: var(--text);
}

.theme-dark .autocomplete-item:hover {
    background: var(--chip);
}

/* Dark Mode Filter Modal */
.theme-dark .filter-group {
    color: var(--text);
}

.theme-dark .filter-group h4 {
    color: var(--text);
}

/* Dark Mode Preference Items */
.theme-dark .preference-item {
    border-bottom: 1px solid var(--border);
}

.theme-dark .preference-title {
    color: var(--text);
}

.theme-dark .preference-desc {
    color: var(--muted);
}

.theme-dark .preference-select {
    background: var(--chip);
    color: var(--text);
    border: 1px solid var(--border);
}
