:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--neutral-900);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.guest-header {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    cursor: pointer;
    flex-shrink: 0;
}

.logo i {
    font-size: 1.8rem;
}

/* Airbnb-style Search Bar */
.search-bar-container {
    flex: 1;
    max-width: 800px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.search-bar:hover {
    box-shadow: var(--shadow-lg);
}

.search-group {
    flex: 1;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.search-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.search-group input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--neutral-800);
    cursor: pointer;
}

.search-group input:focus {
    outline: none;
}

.search-group input::placeholder {
    color: var(--neutral-400);
}

.search-divider {
    width: 1px;
    height: 30px;
    background: var(--neutral-200);
}

.search-button {
    width: 48px;
    height: 48px;
    margin: 0.25rem;
    background: var(--primary-600);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--primary-700);
    transform: scale(1.05);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.search-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-tabs {
    display: flex;
    border-bottom: 1px solid var(--neutral-200);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    background: white;
}

.dropdown-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    border-radius: 40px;
    transition: var(--transition);
}

.dropdown-tab i {
    margin-right: 0.5rem;
}

.dropdown-tab:hover {
    background: var(--neutral-100);
}

.dropdown-tab.active {
    background: var(--neutral-100);
    color: var(--primary-600);
}

.dropdown-content {
    display: none;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.dropdown-content.active {
    display: block;
}

/* Location Tab */
.location-search input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.popular-locations h4 {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin-bottom: 1rem;
}

.location-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-suggestion {
    padding: 0.5rem 1rem;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.location-suggestion:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

/* Calendar */
.date-picker-container {
    min-height: 400px;
}

.month-calendar {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-month {
    flex: 1;
    min-width: 280px;
}

.calendar-month h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background: var(--neutral-100);
}

.calendar-day.selected-start {
    background: var(--primary-600);
    color: white;
    border-radius: 50% 0 0 50%;
}

.calendar-day.selected-end {
    background: var(--primary-600);
    color: white;
    border-radius: 0 50% 50% 0;
}

.calendar-day.in-range {
    background: var(--primary-100);
    border-radius: 0;
}

.calendar-day.disabled {
    color: var(--neutral-300);
    cursor: not-allowed;
}

/* Guests Tab */
.guests-config {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guest-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: 12px;
}

.guest-counter span:first-child {
    font-weight: 500;
    color: var(--neutral-700);
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.counter-btn:hover {
    background: var(--neutral-100);
}

/* Price Tab */
.price-filter-range {
    padding: 1rem;
}

.price-filter-range label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.price-note i {
    margin-right: 0.25rem;
}

/* Date Actions */
.date-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.btn-secondary-sm {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-sm:hover {
    background: var(--neutral-50);
}

.btn-primary-sm {
    padding: 0.5rem 1rem;
    background: var(--primary-600);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-sm:hover {
    background: var(--primary-700);
}

/* Header Auth */
.header-auth {
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--neutral-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-600);
}

.btn-primary {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-btn:hover {
    border-color: var(--primary-400);
    box-shadow: var(--shadow-md);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-initial {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-600);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.user-fullname {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--neutral-200);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--neutral-700);
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    border: none;
    background: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--neutral-50);
    color: var(--primary-600);
}

.dropdown-item i {
    width: 20px;
}

/* Split Main Container - 50/50 */
.split-main {
    display: flex;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    overflow: hidden;
}

/* Left Panel - 50% */
.left-panel {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--neutral-200);
}

/* Results Header */
.results-header {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

.results-header h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-600);
}

.results-header h2 span {
    color: var(--neutral-900);
    font-weight: 700;
}

.results-controls {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    color: var(--neutral-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--neutral-300);
    background: var(--neutral-50);
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    font-size: 0.9rem;
    color: var(--neutral-700);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Active Filters Bar */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.filter-chip-active {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--neutral-100);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--neutral-700);
}

.filter-chip-active i {
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--neutral-500);
}

.filter-chip-active i:hover {
    color: var(--error);
}

/* Property Grid - 3 Columns */
.property-grid {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.property-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Property Gallery - Enhanced with horizontal scroll on mobile */
.property-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-main {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    touch-action: manipulation; /* Prevent browser touch actions */
    pointer-events: auto; /* Ensure clicks work */
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

/* On mobile, increase touch target */
@media (max-width: 768px) {
    .gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
        touch-action: manipulation;
    }
}

/* Swipe indicator for mobile */
.drawer-swipe-indicator {
    display: none;
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0.5rem auto 0.25rem;
    transition: all 0.3s;
}

.drawer-swipe-indicator.active {
    background: #3b82f6;
    width: 60px;
}

@media (max-width: 768px) {
    .drawer-swipe-indicator {
        display: block;
    }
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

.gallery-nav.hidden {
    display: none;
}

/* Image Counter Badge */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 5;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

/* Gallery Thumbnails - Horizontal Scroll */
.gallery-thumbs-wrapper {
    position: relative;
    margin-top: 8px;
    padding: 0 4px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.gallery-thumb.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll Indicators */
.gallery-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.gallery-scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gallery-scroll-dot.active {
    background: #3b82f6;
    width: 16px;
    border-radius: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .gallery-main {
        padding-top: 75%; /* 4:3 aspect ratio for mobile */
    }
    
    .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .gallery-nav.prev {
        left: 8px;
    }
    
    .gallery-nav.next {
        right: 8px;
    }
    
    .gallery-thumb {
        width: 64px;
        height: 48px;
        border-radius: 6px;
    }
    
    .gallery-thumbs {
        gap: 6px;
        padding: 4px 0 8px 0;
    }
    
    .gallery-counter {
        font-size: 0.65rem;
        padding: 3px 10px;
        bottom: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .gallery-main {
        padding-top: 80%; /* Taller on very small screens */
    }
    
    .gallery-thumb {
        width: 56px;
        height: 42px;
    }
}

/* Smooth image transitions */
.gallery-main img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-main img.fade-in {
    opacity: 1;
}

.gallery-main img.fade-out {
    opacity: 0;
}

/* Gallery thumbnails scroll indicators */
.gallery-scroll-dot {
    transition: all 0.3s ease;
}

.gallery-scroll-dot.active {
    background: #3b82f6;
    width: 16px;
    border-radius: 4px;
}

/* Mobile gallery enhancements */
@media (max-width: 768px) {
    .gallery-thumbs {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-thumb {
        scroll-snap-align: start;
    }
    
    /* Show scroll indicators on mobile */
    .gallery-scroll-indicators {
        display: flex !important;
    }
}

/* Property Card - Compact Design */
.property-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--neutral-200);
    position: relative;
    min-height: 250px;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-card.selected {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 2px var(--primary-100);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 1;
}

.card-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.card-favorite:hover {
    transform: scale(1.1);
    color: var(--error);
}

.card-favorite.active {
    color: var(--error);
}

.card-content {
    padding: 0.75rem;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--neutral-500);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-location i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

.card-details {
    display: flex;
    gap: 0.75rem;
    color: var(--neutral-600);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.card-price span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--neutral-500);
}

.view-details-btn {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.view-details-btn:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

/* Right Panel - Map (50%) */
.right-panel {
    width: 50%;
    position: relative;
    background: var(--neutral-100);
}

.property-map {
    width: 100%;
    height: 100%;
}

/* Custom Map Marker */
.custom-marker {
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.custom-marker:hover {
    transform: scale(1.1);
    border-color: var(--primary-400);
}

.custom-marker i {
    color: var(--primary-600);
    font-size: 1rem;
}

.custom-marker.selected {
    border-color: var(--primary-600);
    background: var(--primary-600);
    transform: scale(1.2);
}

.custom-marker.selected i {
    color: white;
}

/* Scrollbar */
.property-grid::-webkit-scrollbar {
    width: 6px;
}

.property-grid::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

.property-grid::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 1200px) {
    .property-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .split-main {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        height: 50%;
    }
    
    .right-panel {
        width: 100%;
        height: 50%;
    }
    
    .property-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .search-bar-container {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .results-header {
        flex-direction: column;
    }
    
    .results-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .results-controls {
        flex-direction: column;
    }
    
    .filter-btn, .sort-select {
        width: 100%;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 1100;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid var(--success);
}

.toast-notification.error {
    border-left: 4px solid var(--error);
}

/* Modal (same as before) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
}

.modal-body {
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: white;
}

/* Loading Skeleton */
.skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.skeleton-card::before {
    content: '';
    display: block;
    padding-top: 75%;
    background: linear-gradient(
        90deg,
        var(--neutral-200) 25%,
        var(--neutral-100) 50%,
        var(--neutral-200) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Drawer Styles */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.drawer.open {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 1200px;
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 2;
    margin-top: 1.5rem;
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-600);
    cursor: pointer;
}

/* Location Badge in Logo */
.location-badge {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--neutral-500);
    margin-left: 0.5rem;
    background: var(--neutral-100);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

/* Location Banner */
.location-banner {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--neutral-50) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-content i {
    font-size: 2rem;
    color: var(--primary-600);
}

.banner-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.banner-content p {
    font-size: 0.8rem;
    color: var(--neutral-600);
}

/* Remove location from search bar - hide location group */
.search-group[data-type="location"] {
    display: none;
}

/* Adjust search bar for 3 groups instead of 4 */
.search-group {
    flex: 1;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

/* Remove location tab from dropdown */
.dropdown-tab[data-tab="location"] {
    display: none;
}

/* Update dropdown tabs for 3 items */
.dropdown-tabs {
    display: flex;
    border-bottom: 1px solid var(--neutral-200);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    background: white;
    justify-content: center;
}

/* Simplified property type buttons in modal */
.button-group .filter-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-badge {
        display: none;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content i {
        font-size: 1.5rem;
    }
    
    .search-group {
        padding: 0.5rem;
    }
    
    .search-group label {
        font-size: 0.6rem;
    }
    
    .search-group input {
        font-size: 0.75rem;
    }
}

/* ============================================
   Drawer Styles - Complete
   ============================================ */

/* Drawer Container */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.drawer.open {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 1400px;
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 2;
    border-radius: 24px 0 0 24px;
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-large {
    width: 90%;
    max-width: 1400px;
}

/* Drawer Header */
.drawer-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: white;
    border-radius: 24px 0 0 0;
}

.drawer-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background: white;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.drawer-favorite {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background: white;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-favorite:hover {
    color: var(--error);
    border-color: var(--error);
}

.drawer-favorite.active {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* Drawer Content */
.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Drawer Two Column Layout */
.drawer-two-column {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: 100%;
}

.drawer-left {
    flex: 1;
    min-width: 0;
}

.drawer-right {
    width: 380px;
    flex-shrink: 0;
}

/* Property Gallery */
.property-gallery {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-main {
    aspect-ratio: 16/9;
    background: var(--neutral-100);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Property Title Section */
.property-title-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.property-title-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.property-location i {
    color: var(--primary-600);
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-50);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-700);
    font-size: 0.85rem;
}

.rating-badge i {
    color: #fbbf24;
}

.review-count {
    color: var(--neutral-500);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.superhost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.superhost-badge i {
    font-size: 0.7rem;
}

/* Host Info Card */
.host-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.host-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.host-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.host-details p {
    font-size: 0.85rem;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.host-details i {
    color: var(--success);
}

.host-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--neutral-200);
}

.host-stat {
    text-align: center;
}

.host-stat .number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.host-stat .label {
    font-size: 0.7rem;
    color: var(--neutral-500);
}

/* Property Highlights */
.property-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.highlight-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.highlight-text p {
    font-size: 0.85rem;
    color: var(--neutral-600);
}

/* Description */
.property-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--neutral-700);
}

.property-description h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

/* Amenities Section */
.amenities-section {
    margin-bottom: 1.5rem;
}

.amenities-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: 8px;
    font-size: 0.9rem;
}

.amenity-item i {
    color: var(--primary-600);
    width: 20px;
}

.no-amenities {
    color: var(--neutral-500);
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

/* Location Section */
.location-section {
    margin-bottom: 1.5rem;
}

.location-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.location-map {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--neutral-200);
}

.location-address {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.location-address i {
    color: var(--primary-600);
    margin-right: 0.5rem;
}

.location-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--neutral-50);
    padding: 0.5rem;
    border-radius: 8px;
}

.location-note i {
    color: var(--primary-600);
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 1.5rem;
}

.reviews-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.reviews-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: 16px;
}

.rating-large {
    text-align: center;
    min-width: 100px;
}

.rating-large .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-600);
    line-height: 1;
}

.rating-large .stars {
    color: #fbbf24;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.rating-large .count {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-bar-item .label {
    width: 100px;
    font-size: 0.85rem;
    color: var(--neutral-600);
}

.rating-bar-item .bar {
    flex: 1;
    height: 6px;
    background: var(--neutral-200);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-item .fill {
    height: 100%;
    background: var(--primary-600);
    border-radius: 3px;
}

.rating-bar-item .percent {
    width: 50px;
    font-size: 0.85rem;
    color: var(--neutral-600);
    text-align: right;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-info .date {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.review-rating {
    margin-left: auto;
    color: #fbbf24;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--neutral-700);
}

/* Booking Card */
.booking-card-sticky {
    position: sticky;
    top: 2rem;
}

.booking-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.booking-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.booking-price .period {
    color: var(--neutral-500);
    font-size: 1rem;
}

.price-note {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-left: 0.5rem;
}

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.date-input {
    padding: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    background: white;
}

.date-input label {
    display: block;
    font-size: 0.7rem;
    color: var(--neutral-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.date-input input {
    width: 100%;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    background: transparent;
}

.date-input input:focus {
    outline: none;
}

.booking-guests {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    background: white;
}

.booking-guests label {
    display: block;
    font-size: 0.7rem;
    color: var(--neutral-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.booking-guests select {
    width: 100%;
    border: none;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.booking-guests select:focus {
    outline: none;
}

.booking-total {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.total-row.total {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--neutral-200);
    color: var(--neutral-900);
}

.booking-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.booking-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-bottom: 0.75rem;
}

.booking-note i {
    color: var(--success);
    margin-right: 0.25rem;
}

.booking-cancellation {
    text-align: center;
    font-size: 0.7rem;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--neutral-200);
}

.booking-cancellation i {
    color: var(--success);
}

/* Drawer Loading State */
.drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--neutral-500);
}

.drawer-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Drawer Marker */
.drawer-marker {
    background: white;
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-600);
}

.drawer-marker i {
    color: var(--primary-600);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .drawer-two-column {
        flex-direction: column;
    }
    
    .drawer-right {
        width: 100%;
    }
    
    .booking-card-sticky {
        position: static;
    }
    
    .property-highlights {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rating-large {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .drawer-panel {
        width: 100%;
        border-radius: 24px 24px 0 0;
    }
    
    .drawer-two-column {
        padding: 1rem;
    }
    
    .property-title-section h1 {
        font-size: 1.4rem;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-header {
        flex-wrap: wrap;
    }
    
    .review-rating {
        margin-left: 0;
    }
}

/* Blocked Dates */
.calendar-day.blocked {
    background: #fef2f2;
    color: #991b1b;
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.blocked i {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
    color: #ef4444;
}

.calendar-day.blocked:hover {
    background: #fee2e2;
    cursor: not-allowed;
}

/* Tooltip for blocked dates */
.calendar-day.blocked:hover::after {
    content: "Not available";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-800);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

/* Selected date range */
.calendar-day.selected-start {
    background: var(--primary-600);
    color: white;
    border-radius: 50% 0 0 50%;
}

.calendar-day.selected-end {
    background: var(--primary-600);
    color: white;
    border-radius: 0 50% 50% 0;
}

.calendar-day.in-range {
    background: var(--primary-100);
    border-radius: 0;
}

/* Date input styles */
.date-input input[type="date"] {
    color-scheme: light;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-400);
    font-size: 0.85rem;
}

.step.active {
    color: var(--primary-600);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.step.active .step-number {
    background: var(--primary-600);
    color: white;
}

.step-label {
    font-weight: 500;
}

/* Date range display fix */
.date-range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--neutral-50);
    border-radius: 8px;
}

.check-in-display, .check-out-display {
    color: var(--neutral-500);
    font-size: 0.85rem;
}

.check-in-display.selected, .check-out-display.selected {
    color: var(--primary-600);
    font-weight: 500;
}

/* Search dropdown scrolling */
.search-dropdown {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Make sure calendar has enough height */
.date-picker-container {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

/* Step indicators sticky */
.step-indicators {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 1rem;
}

/* Date actions sticky */
.date-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid var(--neutral-200);
    margin-top: 1rem;
}

/* Step Actions - Always visible at bottom */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--neutral-200);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Make step indicators clickable */
.step {
    cursor: pointer;
    transition: all 0.2s;
}

.step:hover {
    opacity: 0.8;
}

/* Ensure dropdown content has proper padding */
.dropdown-content {
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Date picker container scrolling */
.date-picker-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 0.5rem;
}

/* Calendar month styling */
.calendar-month {
    margin-bottom: 1.5rem;
}

.calendar-month h4 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover:not(.empty):not(.disabled) {
    background: var(--neutral-100);
}

.calendar-day.selected-start {
    background: var(--primary-600);
    color: white;
    border-radius: 50% 0 0 50%;
}

.calendar-day.selected-end {
    background: var(--primary-600);
    color: white;
    border-radius: 0 50% 50% 0;
}

.calendar-day.in-range {
    background: var(--primary-100);
    border-radius: 0;
}

.calendar-day.disabled {
    color: var(--neutral-300);
    cursor: not-allowed;
}

.calendar-day.blocked {
    background: #fef2f2;
    color: #991b1b;
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.blocked i {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    color: #ef4444;
}

.calendar-day.empty {
    cursor: default;
}

/* Search Bar Sections */
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.search-section {
    flex: 1;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.search-section:hover {
    background: var(--neutral-50);
}

.search-section:first-child {
    border-radius: 40px 0 0 40px;
}

.search-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.search-section-value {
    font-size: 0.9rem;
    color: var(--neutral-800);
}

.search-section-value span {
    color: var(--neutral-500);
}

/* Search Dropdowns */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    display: none;
    z-index: 1002;
    overflow: hidden;
}

.search-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.dropdown-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--primary-600);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
}

.clear-btn:hover {
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drawer Form Styles */
.guest-details-section {
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.guest-details-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.drawer-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.drawer-form-input:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 2px var(--primary-100);
}

.terms-checkbox {
    margin: 1rem 0;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--neutral-600);
    cursor: pointer;
}

.terms-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-checkbox a {
    color: var(--primary-600);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Date inputs in drawer */
.booking-dates input[type="date"] {
    width: 100%;
    padding: 0.5rem;
    border: none;
    font-size: 0.9rem;
    background: transparent;
}

.booking-dates input[type="date"]:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Drawer Date Input */
.drawer-date-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.drawer-date-input:focus {
    outline: none;
    border-color: var(--primary-600);
}

.date-input.full-width {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Blocked dates in drawer calendar */
.flatpickr-day.blocked-date {
    background: #fef2f2;
    color: #991b1b;
    text-decoration: line-through;
    cursor: not-allowed;
}

.flatpickr-day.blocked-date:hover {
    background: #fee2e2;
}

/* Drawer Calendar */
.drawer-calendar-container {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--neutral-200);
}

.drawer-calendar-container .calendar-month {
    margin-bottom: 1.5rem;
}

.drawer-calendar-container .calendar-month h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.drawer-calendar-container .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.drawer-calendar-container .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.drawer-calendar-container .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.drawer-calendar-container .calendar-day:hover:not(.empty):not(.disabled):not(.blocked) {
    background: var(--neutral-100);
}

.drawer-calendar-container .calendar-day.selected-start {
    background: var(--primary-600);
    color: white;
    border-radius: 50% 0 0 50%;
}

.drawer-calendar-container .calendar-day.selected-end {
    background: var(--primary-600);
    color: white;
    border-radius: 0 50% 50% 0;
}

.drawer-calendar-container .calendar-day.in-range {
    background: var(--primary-100);
    border-radius: 0;
}

.drawer-calendar-container .calendar-day.disabled {
    color: var(--neutral-300);
    cursor: not-allowed;
}

.drawer-calendar-container .calendar-day.blocked {
    background: #fef2f2;
    color: #991b1b;
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
}

.drawer-calendar-container .calendar-day.blocked i {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    color: #ef4444;
}

.date-input.full-width {
    width: 100%;
}

/* Compact Date Selection */
.date-selection-compact {
    margin-bottom: 1rem;
}

.date-range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.date-range-display:hover {
    border-color: var(--primary-400);
    background: white;
}

.date-display-item {
    flex: 1;
}

.date-display-item .date-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.date-display-item .date-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-800);
}

.date-display-item .date-value.selected {
    color: var(--primary-600);
}

.date-range-display i {
    color: var(--neutral-400);
    margin: 0 0.5rem;
}

.date-range-display .calendar-icon {
    font-size: 1.1rem;
    color: var(--primary-600);
}

.drawer-calendar-wrapper {
    margin-top: 0.75rem;
    animation: slideDown 0.2s ease;
}

.drawer-calendar-container {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--neutral-200);
    max-height: 400px;
    overflow-y: auto;
}

.drawer-calendar-container .calendar-month {
    margin-bottom: 1.5rem;
}

.drawer-calendar-container .calendar-month h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.drawer-calendar-container .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.drawer-calendar-container .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.drawer-calendar-container .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.drawer-calendar-container .calendar-day:hover:not(.empty):not(.disabled):not(.blocked) {
    background: var(--neutral-100);
}

.drawer-calendar-container .calendar-day.selected-start {
    background: var(--primary-600);
    color: white;
    border-radius: 50% 0 0 50%;
}

.drawer-calendar-container .calendar-day.selected-end {
    background: var(--primary-600);
    color: white;
    border-radius: 0 50% 50% 0;
}

.drawer-calendar-container .calendar-day.in-range {
    background: var(--primary-100);
    border-radius: 0;
}

.drawer-calendar-container .calendar-day.disabled {
    color: var(--neutral-300);
    cursor: not-allowed;
}

.drawer-calendar-container .calendar-day.blocked {
    background: #fef2f2;
    color: #991b1b;
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
}

.drawer-calendar-container .calendar-day.blocked i {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    color: #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guest limit note */
.guest-limit-note {
    display: block;
    font-size: 0.7rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

.booking-guests {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    background: white;
}

.booking-guests label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neutral-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.booking-guests select {
    width: 100%;
    border: none;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.booking-guests select:focus {
    outline: none;
}

/* ============================================
   MOBILE OPTIMIZATIONS - COMPLETE
   ============================================ */

/* Base Mobile Styles */
@media (max-width: 768px) {
    /* Reset body overflow for mobile */
    body {
        overflow: auto;
        height: auto;
    }
    
    /* Header adjustments */
    .guest-header {
        height: auto;
        min-height: 60px;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .location-badge {
        display: none;
    }
    
    /* Mobile Search Bar - Simplified */
    .search-bar-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-bar {
        border-radius: 24px;
        flex-wrap: wrap;
    }
    
    .search-section {
        flex: 1 1 auto;
        padding: 0.5rem 0.75rem;
    }
    
    .search-section-label {
        font-size: 0.65rem;
    }
    
    .search-section-value {
        font-size: 0.8rem;
    }
    
    .search-button {
        width: 40px;
        height: 40px;
        margin: 0.125rem;
    }
    
    /* Dropdown adjustments */
    .search-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 24px 24px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* Header auth */
    .header-auth {
        order: 2;
    }
    
    .header-nav {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .user-menu-btn {
        padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    }
    
    .user-name {
        display: none;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    
    /* Split Main - Stack vertically */
    .split-main {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
        margin-top: 120px;
    }
    
    /* Left Panel - Full width, auto height */
    .left-panel {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--neutral-200);
    }
    
    /* Right Panel (Map) - Fixed height */
    .right-panel {
        width: 100%;
        height: 300px;
        position: sticky;
        bottom: 0;
    }
    
    .property-map {
        height: 300px;
    }
    
    /* Location Banner */
    .location-banner {
        padding: 0.75rem 1rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .banner-content i {
        font-size: 1.5rem;
    }
    
    .banner-content h3 {
        font-size: 0.9rem;
    }
    
    .banner-content p {
        font-size: 0.75rem;
    }
    
    /* Results Header */
    .results-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-header h2 {
        font-size: 0.9rem;
    }
    
    .results-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .sort-select {
        padding: 0.4rem 1.5rem 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Property Grid - Single column */
    .property-grid {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .property-grid-3col {
        grid-template-columns: 1fr;
    }
    
    /* Property Card - Horizontal on mobile */
    .property-card {
        flex-direction: row;
        border-radius: 12px;
        max-height: 180px;
    }
    
    .property-card:hover {
        transform: none;
    }
    
    .card-image {
        width: 140px;
        min-width: 140px;
        aspect-ratio: auto;
        height: auto;
    }
    
    .card-image img {
        height: 100%;
    }
    
    .card-content {
        flex: 1;
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .card-location {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
    
    .card-details {
        font-size: 0.7rem;
        gap: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .card-price {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .view-details-btn {
        padding: 0.4rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .card-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .card-favorite {
        width: 28px;
        height: 28px;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .search-section {
        padding: 0.4rem 0.5rem;
    }
    
    .search-section-label {
        font-size: 0.6rem;
    }
    
    .search-section-value {
        font-size: 0.75rem;
    }
    
    .search-button {
        width: 36px;
        height: 36px;
    }
    
    .split-main {
        margin-top: 100px;
    }
    
    .right-panel {
        height: 250px;
    }
    
    .property-map {
        height: 250px;
    }
    
    .property-card {
        max-height: 160px;
    }
    
    .card-image {
        width: 120px;
        min-width: 120px;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-details {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .results-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-btn, .sort-select {
        width: 100%;
        justify-content: center;
    }
    
    .active-filters-bar {
        gap: 0.3rem;
    }
    
    .filter-chip-active {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .split-main {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        height: 50%;
    }
    
    .right-panel {
        width: 100%;
        height: 50%;
    }
    
    .property-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-bar-container {
        max-width: 100%;
    }
}

/* ============================================
   DRAWER MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Full-width drawer on mobile */
    .drawer-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        top: 10%;
    }
    
    .drawer-header {
        border-radius: 20px 20px 0 0;
        padding: 0.75rem 1rem;
    }
    
    .drawer-header h2 {
        font-size: 1rem;
    }
    
    /* Single column layout */
    .drawer-two-column {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .drawer-left {
        width: 100%;
    }
    
    .drawer-right {
        width: 100%;
        flex-shrink: 1;
    }
    
    /* Gallery */
    .gallery-main {
        aspect-ratio: 16/9;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Property title */
    .property-title-section h1 {
        font-size: 1.3rem;
    }
    
    /* Highlights */
    .property-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .highlight-item {
        gap: 0.5rem;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .highlight-text h4 {
        font-size: 0.85rem;
    }
    
    .highlight-text p {
        font-size: 0.75rem;
    }
    
    /* Amenities */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .amenity-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Reviews */
    .reviews-summary {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .rating-large {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .rating-large .number {
        font-size: 2rem;
    }
    
    /* Booking card */
    .booking-card-sticky {
        position: static;
    }
    
    .booking-card {
        padding: 1rem;
    }
    
    .booking-price .amount {
        font-size: 1.5rem;
    }
    
    /* Date selection compact */
    .date-range-display {
        padding: 0.5rem 0.75rem;
    }
    
    .date-display-item .date-label {
        font-size: 0.65rem;
    }
    
    .date-display-item .date-value {
        font-size: 0.8rem;
    }
    
    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .drawer-form-input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .booking-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Calendar in drawer */
    .drawer-calendar-container {
        max-height: 350px;
        overflow-y: auto;
    }
    
    .calendar-month h4 {
        font-size: 0.8rem;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
}

/* Small mobile drawer */
@media (max-width: 480px) {
    .drawer-panel {
        top: 5%;
    }
    
    .drawer-two-column {
        padding: 0.75rem;
    }
    
    .property-title-section h1 {
        font-size: 1.1rem;
    }
    
    .property-highlights {
        grid-template-columns: 1fr 1fr;
        padding: 0.75rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .host-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .host-avatar {
        margin: 0 auto;
    }
    
    .host-stats {
        justify-content: center;
    }
    
    .review-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .review-rating {
        margin-left: 0;
    }
}

/* ============================================
   MODAL MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .filter-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .button-group {
        gap: 0.4rem;
    }
    
    .filter-option {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .btn-secondary, .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   TOAST NOTIFICATION MOBILE
   ============================================ */

@media (max-width: 768px) {
    .toast-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        transform: translateY(400px);
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

/* ============================================
   SEARCH DROPDOWN MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .dropdown-header {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-header h3 {
        font-size: 0.9rem;
    }
    
    .dropdown-content {
        padding: 0.75rem;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .guest-counter {
        padding: 0.75rem;
    }
    
    .guest-counter span:first-child {
        font-size: 0.85rem;
    }
    
    .counter-controls {
        gap: 0.75rem;
    }
    
    .counter-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-input {
        width: 100%;
    }
    
    .calendar-month {
        min-width: auto;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
}

/* ============================================
   USER DROPDOWN MOBILE
   ============================================ */

@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: 60px;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--neutral-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--neutral-500);
    font-size: 0.9rem;
}

/* ============================================
   SCROLLBAR HIDING ON MOBILE (Optional)
   ============================================ */

@media (max-width: 768px) {
    .property-grid::-webkit-scrollbar {
        width: 4px;
    }
    
    .drawer-content::-webkit-scrollbar {
        width: 4px;
    }
}

/* ============================================
   MAP CONTROLS MOBILE
   ============================================ */

@media (max-width: 768px) {
    .leaflet-control-zoom {
        display: none;
    }
    
    .leaflet-control-attribution {
        font-size: 0.6rem !important;
    }
}

/* ============================================
   LOADING SKELETON MOBILE
   ============================================ */

@media (max-width: 768px) {
    .skeleton-card {
        height: 160px;
        display: flex;
    }
    
    .skeleton-card::before {
        width: 120px;
        min-width: 120px;
        padding-top: 0;
        height: 100%;
    }
}

/* ============================================
   FIX FOR iOS SAFARI BOTTOM BAR
   ============================================ */

@supports (-webkit-touch-callout: none) {
    .split-main {
        height: -webkit-fill-available;
    }
    
    .right-panel {
        height: 300px;
    }
}

/* ============================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .search-section,
    .filter-option,
    .counter-btn,
    .calendar-day,
    .dropdown-item,
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects that don't work on touch */
    .property-card:hover {
        transform: none;
    }
    
    .property-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .card-favorite {
        min-width: 44px;
        min-height: 44px;
    }
    
    .drawer-close,
    .drawer-favorite {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   ENHANCED DRAWER CLOSE MECHANISMS
   ============================================ */

/* Close Button in Drawer */
.drawer-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.drawer-close-btn:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.drawer-close-btn:active {
    transform: scale(0.95);
}

/* Swipe indicator */
.drawer-swipe-indicator {
    display: none;
    width: 40px;
    height: 4px;
    background: var(--neutral-300);
    border-radius: 2px;
    margin: 0.75rem auto 0.5rem;
}

/* Cancel Button at bottom */
.drawer-cancel-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    margin-top: 1rem;
    background: white;
    border: 1.5px solid var(--neutral-200);
    border-radius: 12px;
    color: var(--neutral-700);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.drawer-cancel-btn:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
}

.drawer-cancel-btn:active {
    background: var(--neutral-100);
}

/* Mobile-specific drawer enhancements */
@media (max-width: 768px) {
    .drawer-panel {
        top: 10%;
        border-radius: 20px 20px 0 0;
        /* Add transition for swipe */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .drawer-swipe-indicator {
        display: block;
    }
    
    .drawer-close-btn {
        top: 0.75rem;
        left: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Make drawer header more compact */
    .drawer-header {
        padding: 0.5rem 1rem 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .drawer-header h2 {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }
    
    /* Position close and favorite buttons */
    .drawer-header .drawer-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 10;
    }
    
    .drawer-favorite {
        position: absolute;
        top: 0.75rem;
        right: 3.5rem;
        z-index: 10;
    }
    
    .drawer-cancel-btn {
        display: block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .drawer-panel {
        top: 5%;
    }
    
    .drawer-swipe-indicator {
        margin: 0.5rem auto 0.25rem;
        width: 36px;
        height: 4px;
    }
    
    .drawer-close-btn {
        top: 0.5rem;
        left: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .drawer-cancel-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Desktop - keep cancel button but hide swipe indicator */
@media (min-width: 769px) {
    .drawer-swipe-indicator {
        display: none;
    }
    
    .drawer-cancel-btn {
        display: block;
    }
}

/* ============================================
   DRAWER ANIMATIONS & TRANSITIONS
   ============================================ */

/* Drawer open state */
.drawer.open .drawer-panel {
    transform: translateX(0);
}

/* Close button visible state */
.drawer-close-btn {
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.drawer-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Desktop - keep original close behavior */
@media (min-width: 769px) {
    .drawer-panel {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .drawer.open .drawer-panel {
        transform: translateX(0);
    }
}

/* Mobile - slide up from bottom */
@media (max-width: 768px) {
    .drawer-panel {
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .drawer.open .drawer-panel {
        transform: translateY(0);
    }
    
    /* When closing via swipe, animate to right */
    .drawer-panel.swiping-close {
        transform: translateX(100%) !important;
    }
}

/* Pull indicator animation */
.drawer-swipe-indicator {
    transition: opacity 0.3s, transform 0.3s;
}

.drawer-panel:active .drawer-swipe-indicator {
    transform: scaleX(1.2);
    opacity: 0.8;
}

/* Swipe hint (appears briefly) */
.drawer-swipe-hint {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 20;
}

.drawer.open .drawer-swipe-hint.show {
    opacity: 1;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}