/* --- CSS Variables & Reset --- */
:root {
    --primary: #6b21a8; /* Deep Purple */
    --primary-hover: #581c87;
    --primary-light: #f3e8ff; /* Soft Lavender */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 80px; 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    font-family: var(--font-family); 
    background-color: var(--bg-white); 
    color: var(--text-main); 
    padding-bottom: 80px; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* --- Header & Navigation (Main App) --- */
.header {
    position: sticky; 
    top: 0; 
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 16px 24px;
}

/* --- Logo --- */
.logo { 
    font-weight: 700; 
    font-size: 1.25rem; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-shrink: 0; 
    cursor: pointer; 
}
.logo:hover { opacity: 0.8; }
.logo svg { 
    width: 32px; 
    height: 32px; 
    stroke: currentColor; 
    stroke-width: 1.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    fill: none; 
}

/* --- Desktop Search Bar --- */
.header-center { 
    flex-grow: 1; 
    display: flex; 
    justify-content: center; 
    padding: 0 20px; 
    position: relative; 
} 

.search-bar-lg {
    background: var(--bg-white); 
    border: 1px solid var(--border-color); 
    border-radius: 40px;
    display: flex; 
    align-items: center; 
    width: 100%; 
    max-width: 600px; 
    height: 48px;
    box-shadow: var(--shadow-sm); 
    transition: 0.2s; 
    position: relative; 
    z-index: 101;
}
.search-bar-lg:hover { 
    box-shadow: var(--shadow-md); 
    border-color: #d1d5db; 
}
.search-bar-lg.active { 
    border-color: var(--text-main); 
    box-shadow: var(--shadow-md); 
}

.search-segment {
    flex: 1; 
    height: 100%; 
    padding: 0 16px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    font-size: 0.75rem; 
    color: var(--text-main); 
    cursor: pointer; 
    position: relative;
}
.search-segment:hover { 
    background-color: #f3f4f6; 
    border-radius: 40px; 
}
.segment-label { 
    font-weight: 700; 
    font-size: 0.7rem; 
    margin-bottom: 2px; 
}
.segment-input { 
    font-size: 0.85rem; 
    color: var(--text-light); 
    background: transparent; 
    border: none; 
    outline: none; 
    width: 100%; 
    text-overflow: ellipsis; 
}
.segment-input.has-text { color: var(--text-main); }
.search-segment:not(:last-child)::after { 
    content: ''; 
    position: absolute; 
    right: 0; 
    top: 25%; 
    height: 50%; 
    width: 1px; 
    background: var(--border-color); 
}
.search-btn-lg { 
    width: 40px; 
    height: 40px; 
    background: var(--primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 4px; 
    transition: 0.2s; 
}
.search-btn-lg:hover { background: var(--primary-hover); }
.search-btn-lg svg { fill: white; width: 16px; height: 16px; }

/* --- Mobile Search Bar --- */
.mobile-search-container { 
    display: none; 
    flex: 1; 
    margin: 0 12px; 
}
.search-bar-sm { 
    width: 100%; 
    background: var(--bg-white); 
    border: 1px solid var(--border-color); 
    border-radius: 24px; 
    padding: 10px 16px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    box-shadow: var(--shadow-sm); 
}
.search-bar-sm input { 
    flex: 1; 
    border: none; 
    outline: none; 
    font-size: 0.9rem; 
}

/* --- Header Right --- */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}
.host-btn { 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--text-main); 
    padding: 8px 12px; 
    border-radius: 20px; 
    transition: 0.2s; 
    display: none; 
}
.host-btn:hover { background: #f3f4f6; }
.review-btn {
    font-size: 0.9rem; 
    font-weight: 600; 
    color: #b45309;
    padding: 8px 12px; 
    border-radius: 20px; 
    transition: 0.2s; 
    display: block;
}
.review-btn:hover { background: #fff7ed; }
.globe-btn { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-light); 
}
.globe-btn:hover { background: #f3f4f6; }
.user-menu { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    background: var(--secondary); 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.85rem; 
    font-weight: 600; 
    border: 1px solid var(--border-color); 
}
.user-menu:hover { box-shadow: var(--shadow-sm); }

/* --- Responsive Header --- */
@media (max-width: 768px) {
    .search-bar-lg { display: none; } 
    .host-btn { display: none; } 
    .review-btn { display: block; font-size: 0.8rem; padding: 6px 10px; }
    .globe-btn { display: none; }
    .mobile-search-container { display: block; } 
    .header { padding: 12px 16px; height: 60px; } 
    .header-center { padding: 0; }
    .logo span { display: none; }
}

@media (min-width: 769px) {
    .header { padding: 20px 40px; height: 80px; } 
    .mobile-search-container { display: none; } 
    .host-btn { display: block; } 
    .review-btn { display: block; }
    .globe-btn { display: flex; }
}

/* --- CALENDAR DROPDOWN (SHARED) --- */
.calendar-dropdown, .guest-dropdown, .calendar-modal {
    display: none;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 200;
}

/* Inline Calendar for Search */
.calendar-dropdown {
    position: absolute; 
    top: 50px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 680px; 
    padding: 32px 0;
}

@media (max-width: 768px) {
    .calendar-dropdown {
        width: 95vw;
        max-width: 500px;
        padding: 24px 0;
    }
    .cal-months-container {
        flex-direction: column !important;
        gap: 16px !important;
    }
}

.calendar-dropdown.open, .guest-dropdown.open { 
    display: flex; 
    flex-direction: column; 
}
.cal-nav-btn { 
    position: absolute; 
    top: 32px; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    border: 1px solid transparent; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    color: var(--text-main); 
    z-index: 10; 
}
.cal-nav-btn:hover { 
    background: #f3f4f6; 
    border-color: #d1d5db; 
}
.cal-prev { left: 10px; }
.cal-next { right: 10px; }

.guest-dropdown { 
    position: absolute; 
    top: 50px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 400px; 
    padding: 24px; 
}

@media (max-width: 768px) {
    .guest-dropdown {
        width: 90vw;
        max-width: 350px;
    }
}

.guest-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
}
.guest-info h4 { 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 2px; 
}
.guest-info p { 
    font-size: 0.8rem; 
    color: var(--text-light); 
}
.guest-controls { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.counter-btn { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    color: var(--text-main); 
    transition: 0.1s; 
}
.counter-btn:hover:not(:disabled) { border-color: var(--text-main); }
.counter-btn:disabled { 
    border: none; 
    color: #d1d5db; 
    background: transparent; 
    cursor: default; 
}
.counter-btn svg { width: 12px; height: 12px; stroke-width: 2.5; }
.count-display { 
    width: 20px; 
    text-align: center; 
    font-size: 0.9rem; 
    font-weight: 600; 
}
.guest-footer { 
    border-top: 1px solid var(--border-color); 
    padding-top: 16px; 
    display: flex; 
    justify-content: flex-end; 
}
.close-btn { 
    color: var(--text-main); 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer; 
}
.close-btn:hover { text-decoration: underline; }

/* --- Calendar Grid Styles --- */
.cal-months-container { 
    display: flex; 
    gap: 32px; 
    padding: 0 32px; 
}
.cal-month { flex: 1; }
.cal-month-title { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 16px; 
    text-align: center; 
}
.cal-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
    text-align: center; 
}
.cal-day-name { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: var(--text-light); 
    margin-bottom: 8px; 
}
.cal-cell { 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.9rem; 
    border-radius: 50%; 
    cursor: pointer; 
    color: var(--text-main); 
    transition: 0.1s; 
    margin: 0 auto; 
}
.cal-cell:hover:not(.disabled) { border: 1px solid var(--text-main); }
.cal-cell.selected-start, .cal-cell.selected-end { 
    background: var(--primary); 
    color: white; 
    border: 1px solid var(--primary); 
}
.cal-cell.in-range { 
    background: var(--primary-light); 
    color: var(--primary); 
    border-radius: 0; 
}
.cal-cell.disabled { 
    color: #d1d5db; 
    cursor: default; 
}
.cal-footer { 
    margin-top: 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 32px 32px 32px; 
    border-top: 1px solid var(--border-color); 
}
.clear-dates { 
    font-size: 0.9rem; 
    color: var(--text-main); 
    cursor: pointer; 
    font-weight: 500; 
}

/* --- Categories --- */
.categories-container { 
    position: sticky; 
    top: 80px; 
    z-index: 90; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(5px); 
    padding: 12px 40px; 
    border-bottom: 1px solid transparent; 
    transition: border-color 0.2s; 
}

@media (max-width: 768px) { 
    .categories-container { 
        top: 60px; 
        padding: 10px 16px; 
    } 
}

.categories-container.scrolled { border-bottom-color: var(--border-color); }
.category-list { 
    display: flex; 
    gap: 32px; 
    overflow-x: auto; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    padding-bottom: 4px; 
}
.category-list::-webkit-scrollbar { display: none; }
.category-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 6px; 
    min-width: 64px; 
    cursor: pointer; 
    opacity: 0.6; 
    transition: all 0.2s; 
    color: var(--text-main); 
    padding-bottom: 8px; 
    border-bottom: 2px solid transparent; 
}
.category-item.active { 
    opacity: 1; 
    color: #000; 
    border-bottom-color: #000; 
}
.category-item:hover:not(.active) { 
    border-bottom-color: #ddd; 
    opacity: 1; 
}
.cat-icon { width: 24px; height: 24px; }
.cat-label { 
    font-size: 0.75rem; 
    font-weight: 500; 
    white-space: nowrap; 
}

/* --- Listings --- */
.container { 
    padding: 24px 40px; 
    max-width: 1400px; 
    margin: 0 auto; 
}

@media (max-width: 768px) { 
    .container { padding: 12px 16px; } 
}

.listing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); 
    gap: 40px 24px; 
}

@media (max-width: 768px) {
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.card { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    cursor: pointer; 
}
.card-image-container { 
    position: relative; 
    aspect-ratio: 20 / 19; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    background: var(--bg-gray); 
}
.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}
.card:hover .card-img { transform: scale(1.03); }
.favorite-btn { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    width: 28px; 
    height: 28px; 
    background: rgba(255,255,255,0.9); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    stroke: var(--text-light); 
    stroke-width: 2px; 
    z-index: 2; 
}
.favorite-btn.active { 
    fill: var(--primary); 
    stroke: var(--primary); 
}
.favorite-btn svg { width: 18px; height: 18px; }
.pending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    z-index: 2;
}
.card-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    font-size: 0.95rem; 
}
.card-title { 
    font-weight: 600; 
    color: var(--text-main); 
    margin-bottom: 2px; 
}
.card-rating { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-size: 0.85rem; 
}
.card-meta { 
    color: var(--text-light); 
    font-size: 0.9rem; 
    margin-bottom: 4px; 
}
.card-price { 
    font-size: 0.95rem; 
    color: var(--text-main); 
}
.card-price span { font-weight: 600; }

/* Status Badge for My Listings */
.status-badge { 
    display: inline-block; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
}
.status-pending { 
    background: #fff7ed; 
    color: #b45309; 
    border: 1px solid #ffd8bf; 
}

/* --- Detail View --- */
.detail-view { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--bg-white); 
    z-index: 300; 
    overflow-y: auto; 
    transform: translateY(100%); 
    transition: transform 0.3s ease-in-out; 
}
.detail-view.open { transform: translateY(0); }
.detail-header { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    z-index: 10; 
}
.back-btn, .share-btn { 
    width: 32px; 
    height: 32px; 
    background: var(--bg-white); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: var(--shadow-md); 
    cursor: pointer; 
}
.detail-gallery { 
    width: 100%; 
    height: 400px; 
    background: var(--bg-gray); 
}
.detail-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.detail-content { 
    padding: 24px 40px; 
    max-width: 800px; 
    margin: 0 auto; 
    padding-bottom: 100px; 
}

@media (max-width: 768px) { 
    .detail-content { padding: 24px; } 
}

.detail-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
}
.detail-meta-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 24px; 
    padding-bottom: 16px; 
.detail-location-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    text-decoration: none;
}
.detail-location-link:hover { background: #e9d5ff; }
    border-bottom: 1px solid var(--border-color); 
}
.rating-badge { 
    background: var(--secondary); 
    color: var(--primary); 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}
.host-section { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 24px; 
}
.host-avatar { 
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    object-fit: cover; 
}
.host-info h4 { font-size: 1rem; }
.host-info p { 
    font-size: 0.9rem; 
    color: var(--text-light); 
}
.menu-section { margin-bottom: 24px; }
.menu-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 12px; 
}
.menu-list li { 
    margin-bottom: 8px; 
    color: var(--text-light); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.menu-list li::before { 
    content: "•"; 
    color: var(--primary); 
    font-weight: bold; 
}
.floating-bar { 
    position: sticky; 
    bottom: 0; 
    background: var(--bg-white); 
    border-top: 1px solid var(--border-color); 
    padding: 16px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05); 
}

@media (max-width: 768px) { 
    .floating-bar { padding: 16px 24px; } 
}

.price-display div:first-child { 
    font-size: 1.25rem; 
    font-weight: 700; 
}
.price-display div:last-child { 
    font-size: 0.9rem; 
    color: var(--text-light); 
    text-decoration: underline; 
}
.book-btn { 
    background: var(--primary); 
    color: white; 
    padding: 14px 28px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 1rem; 
    transition: background 0.2s; 
}
.book-btn:hover { background: var(--primary-hover); }

/* --- Toast & Nav --- */
.toast { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%) translateY(100px); 
    background: #1f2937; 
    color: white; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    z-index: 1000; 
    opacity: 0; 
    transition: all 0.3s; 
    box-shadow: var(--shadow-lg); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.toast.show { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
}
.mobile-nav { 
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: var(--bg-white); 
    border-top: 1px solid var(--border-color); 
    height: 60px; 
    z-index: 150; 
    justify-content: space-around; 
    align-items: center; 
}

@media (max-width: 768px) { 
    .mobile-nav { display: flex; } 
}

.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px; 
    color: var(--text-light); 
    font-size: 0.7rem; 
    font-weight: 500; 
}
.nav-item.active { color: var(--text-main); }
.nav-item svg { 
    width: 24px; 
    height: 24px; 
    fill: currentColor; 
}

/* --- AUTH SCREEN STYLES --- */
#auth-view {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--primary-light);
    z-index: 500;
    overflow-y: auto;
}
#auth-view.open { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.auth-card {
    background: white;
    width: 100%; 
    max-width: 400px;
    padding: 40px 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    margin: 20px;
}

.auth-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: var(--primary); 
}
.auth-desc { 
    color: var(--text-light); 
    margin-bottom: 32px; 
    font-size: 0.95rem; 
}

.auth-tabs { 
    display: flex; 
    margin-bottom: 24px; 
    border-bottom: 1px solid var(--border-color); 
}
.auth-tab {
    flex: 1; 
    padding-bottom: 12px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}
.auth-tab.active { 
    color: var(--text-main); 
    border-bottom: 2px solid var(--text-main); 
}

.auth-form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}
.auth-label { 
    display: block; 
    font-weight: 600; 
    font-size: 0.85rem; 
    margin-bottom: 8px; 
    text-align: left; 
    color: var(--text-main); 
}
.auth-input {
    width: 100%; 
    padding: 12px 16px;
    font-size: 1rem; 
    border: 1px solid var(--border-color);
    border-radius: 8px; 
    outline: none; 
    transition: 0.2s;
}
.auth-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 2px var(--primary-light); 
}

.auth-btn {
    width: 100%; 
    padding: 14px;
    background: var(--primary); 
    color: white;
    font-weight: 600; 
    font-size: 1rem;
    border-radius: 8px; 
    margin-top: 16px; 
    transition: background 0.2s;
}
.auth-btn:hover { background: var(--primary-hover); }

/* --- Verification Modals --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-card {
    background: white;
    width: 100%;
    max-width: 640px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
.modal-close {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 8px;
}
.modal-close:hover { background: var(--bg-gray); }

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.email-meta {
    background: var(--bg-gray);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    display: grid;
    gap: 6px;
}
.email-label {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 6px;
}

.email-preview {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    max-height: 360px;
    overflow-y: auto;
}
.email-preview ul {
    list-style: disc;
    margin: 12px 0 12px 20px;
}
.email-cta a {
    color: var(--primary);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}
.btn-secondary:hover { background: #e9d5ff; }

.verification-form-card .helper-text {
    display: block;
    color: var(--text-light);
    margin-top: 8px;
    font-size: 0.85rem;
}

/* --- HOST ONBOARDING FLOW STYLES --- */
#host-onboarding-view {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--primary-light);
    z-index: 400;
    overflow-y: auto;
    padding-bottom: 40px;
}
#host-onboarding-view.open { 
    display: block; 
    animation: fadeIn 0.3s ease; 
}

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

.host-header { 
    max-width: 800px; 
    margin: 20px auto 40px auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 24px; 
}
.progress-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 6px; 
    background: rgba(107, 33, 168, 0.2); 
    z-index: 401; 
}
.progress-fill { 
    height: 100%; 
    background: var(--primary); 
    width: 25%; 
    transition: width 0.3s ease; 
}
.save-exit-btn { 
    font-weight: 600; 
    font-size: 0.9rem; 
    text-decoration: underline; 
    color: var(--text-main); 
    background: rgba(255,255,255,0.5); 
    padding: 8px 16px; 
    border-radius: 20px; 
}
.step-container { 
    display: none; 
    max-width: 650px; 
    margin: 0 auto; 
    background: white; 
    padding: 32px; 
    border-radius: 24px; 
    box-shadow: var(--shadow-xl); 
}

@media (max-width: 768px) {
    .step-container {
        margin: 0 16px;
        padding: 24px;
    }
}

.step-container.active { display: block; }
.step-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
}
.step-desc { 
    color: var(--text-light); 
    margin-bottom: 32px; 
    font-size: 1rem; 
}
.form-group { margin-bottom: 24px; }
.form-label { 
    display: block; 
    font-weight: 600; 
    font-size: 0.9rem; 
    margin-bottom: 8px; 
}
.pricing-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}

.time-slot-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.time-slot-sep {
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 600px) {
    .pricing-row {
        grid-template-columns: 1fr;
    }
    .time-slot-row {
        grid-template-columns: 1fr;
    }
    .time-slot-sep {
        display: none;
    }
}
.input-lg { 
    width: 100%; 
    padding: 16px; 
    font-size: 1rem; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    outline: none; 
}
.input-lg:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 2px var(--primary-light); 
}
.type-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 16px; 
    margin-bottom: 32px; 
}
.type-card { 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 16px; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.2s; 
}
.type-card:hover { border-color: var(--text-main); }
.type-card.selected { 
    border-color: var(--primary); 
    background: var(--primary-light); 
}
.type-icon { 
    width: 40px; 
    height: 40px; 
    margin-bottom: 12px; 
    fill: var(--text-main); 
}
.type-card.selected .type-icon { fill: var(--primary); }
.type-name { 
    font-weight: 600; 
    font-size: 0.9rem; 
}
.date-range-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}
.remove-range-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}
.remove-range-btn:hover {
    background: rgba(255,255,255,0.5);
}
.guest-stepper { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    border: 1px solid var(--border-color); 
    padding: 12px; 
    border-radius: 12px; 
    width: fit-content; 
}
.stepper-btn { 
    width: 32px; 
    height: 32px; 
    background: var(--bg-gray); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
}
.stepper-btn:hover:not(:disabled) { background: #e5e7eb; }
.stepper-btn:disabled { 
    opacity: 0.3; 
    cursor: not-allowed; 
}
.guest-val { 
    font-weight: 600; 
    font-size: 1rem; 
    width: 30px; 
    text-align: center; 
}
.upload-area { 
    border: 2px dashed var(--border-color); 
    border-radius: 16px; 
    height: 250px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    background: #fafafa; 
    transition: 0.2s; 
    position: relative; 
    overflow: hidden; 
}
.upload-area:hover { 
    border-color: var(--primary); 
    background: #f3e8ff; 
}
.upload-preview { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: none; 
    z-index: 10; 
}

/* Calendar for Host */
.calendar-modal { 
    position: relative; 
    transform: none; 
    left: 0; 
    top: 0; 
    margin-top: 20px; 
    width: 100%; 
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block !important; /* Always show in host form */
}
.calendar-modal.open {
    display: block;
}
.calendar-modal .cal-nav-btn {
    top: 40px;
}
.calendar-modal .cal-prev {
    left: 20px;
}
.calendar-modal .cal-next {
    right: 20px;
}
.calendar-modal .cal-months-container {
    padding: 0 50px;
}
.calendar-modal .cal-month-title {
    font-size: 1rem;
    margin-bottom: 20px;
}
.calendar-modal .cal-grid {
    gap: 6px;
}
.calendar-modal .cal-cell {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .calendar-modal {
        max-width: 350px;
        padding: 30px 15px;
    }
    .calendar-modal .cal-months-container {
        padding: 0 40px;
    }
}

/* Navigation Footer */
.step-footer { 
    margin-top: 32px; 
    display: flex; 
    justify-content: space-between; 
}
.btn-prev { 
    color: var(--text-light); 
    font-weight: 600; 
    text-decoration: underline; 
}
.btn-prev:hover { color: var(--text-main); }
.btn-next { 
    background: var(--primary); 
    color: white; 
    padding: 14px 32px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 1rem; 
}
.btn-next:hover { background: var(--primary-hover); }
.review-card { 
    background: #fafafa; 
    padding: 24px; 
    border-radius: 12px; 
    margin-bottom: 24px; 
}
.review-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px; 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 8px; 
}
.review-label { 
    font-weight: 600; 
    color: var(--text-light); 
}
.review-val { 
    font-weight: 600; 
    color: var(--text-main); 
    text-align: right; 
}

/* Profile View */
.profile-view {
    background: var(--bg-white);
}

/* --- ADMIN REVIEW PANEL --- */
.review-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 400;
    overflow-y: auto;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 40px 40px;
}

@media (max-width: 768px) {
    .admin-container {
        padding: 80px 16px 80px 16px;
    }
}

.pending-listing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 24px;
    align-items: start;
    transition: all 0.2s;
}

.pending-listing-card:hover {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .pending-listing-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.listing-preview-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.listing-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.listing-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.listing-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 140px;
}

@media (max-width: 768px) {
    .review-actions {
        flex-direction: row;
        width: 100%;
    }
}

.approve-btn, .reject-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
}

.approve-btn {
    background: #10b981;
    color: white;
}

.approve-btn:hover {
    background: #059669;
}

.reject-btn {
    background: #ef4444;
    color: white;
}

.reject-btn:hover {
    background: #dc2626;
}

.no-pending {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-pending svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.stats-card {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}
