/* Premium Design System for PadPick Platform */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-darker: #080b11;
    --bg-dark: #0f1524;
    --bg-card: rgba(23, 32, 54, 0.6);
    --bg-card-hover: rgba(30, 41, 69, 0.8);
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --accent: #10b981; /* Emerald */
    --accent-glow: rgba(16, 185, 129, 0.2);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    /* Layout Constants */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo > span:not(.logo-icon):not(.logo-text),
.logo-text span {
    font-weight: 400;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-muted);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Landing Page Hero with Banner */
.landing-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.landing-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.1);
    z-index: 1;
    transform: scale(1.02);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeIn 0.8s ease-out;
}

.landing-hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.landing-hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    color: #e5e7eb;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* About / Intro Section */
.about-section {
    padding: 6rem 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .landing-hero h1 {
        font-size: 2.5rem;
    }
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-text h2 span {
    color: var(--primary);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

.about-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    height: 400px;
}

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

/* Filters Component */
.filters-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    max-width: 1100px;
    margin: -3rem auto 3rem auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
}

/* Auth Pages Container (Login/Signup) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-control {
    width: 100%;
    background: rgba(8, 11, 17, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(8, 11, 17, 0.8);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.auth-link:hover {
    text-decoration: underline;
}

/* Listings Section */
.listings-section {
    padding: 0 6% 6rem 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.2rem;
}

/* Property Card */
.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.property-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.property-card:hover .property-img {
    transform: scale(1.08);
}

.property-price-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.05);
}

.property-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-location {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.property-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.property-details {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.property-detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-detail-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
}

/* Modal Implementation */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #ef4444;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Form layouts within modal */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    min-width: 300px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--accent);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.empty-state svg {
    stroke: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   🏠 DASHBOARD LAYOUT WITH SIDEBAR (PADPICK)
   ========================================================================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: rgba(15, 21, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: var(--transition-smooth);
}

.sidebar-header {
    padding: 2.2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.menu-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    fill: none;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--primary);
}

.menu-item.active svg {
    stroke: var(--primary);
}

/* Sidebar Footer / User Profile summary */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Sidebar toggle button styling */
.sidebar-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.sidebar-toggle-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: var(--transition-smooth);
}

/* Collapsed Sidebar (desktop only) */
@media (min-width: 901px) {
    .sidebar.collapsed {
        width: 80px;
    }
    
    .sidebar.collapsed .sidebar-header {
        padding: 2.2rem 0;
    }
    
    .sidebar.collapsed .sidebar-header-flex {
        flex-direction: column;
        gap: 1.2rem;
        justify-content: center;
    }
    
    .sidebar.collapsed .logo-text {
        display: none;
    }
    
    .sidebar.collapsed .sidebar-menu {
        padding: 1.5rem 0.5rem;
    }
    
    .sidebar.collapsed .menu-item {
        justify-content: center;
        padding: 0.9rem 0;
        border-left-width: 0;
    }
    
    .sidebar.collapsed .menu-item span {
        display: none;
    }
    
    .sidebar.collapsed .menu-item svg {
        margin: 0;
    }
    
    .sidebar.collapsed .sidebar-footer {
        padding: 1.5rem 0.5rem;
        justify-content: center;
    }
    
    .sidebar.collapsed .sidebar-footer .user-profile > div:not(.chat-item-avatar) {
        display: none;
    }
    
    .sidebar.collapsed .sidebar-toggle-btn svg {
        transform: rotate(180deg);
    }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 11, 17, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.top-nav-welcome {
    font-size: 1.1rem;
    font-weight: 700;
}

.top-nav-welcome span {
    color: var(--primary);
}

/* Dynamic Views Visibility */
.dashboard-view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.dashboard-view.active {
    display: block;
}

.dashboard-body {
    padding: 2.5rem 6% 6rem 6%;
    flex: 1;
}

/* Watchlist Bookmark Icon */
.property-bookmark-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(8, 11, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.property-bookmark-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(8, 11, 17, 0.9);
}

.property-bookmark-btn.active {
    color: #ef4444;
    background: white;
    border-color: white;
}

.property-bookmark-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
}

/* Messaging Tab Layout */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 150px);
    min-height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.messages-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.messages-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.chats-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-item:hover, .chat-item.active {
    background: rgba(255, 255, 255, 0.03);
}

.chat-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.chat-item-details {
    flex: 1;
    min-width: 0;
}

.chat-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-window-wrapper {
    display: flex;
    flex: 1;
    min-width: 0;
    background: rgba(8, 11, 17, 0.2);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Chat Main window */
.chat-window {
    display: flex;
    flex-direction: column;
    background: rgba(8, 11, 17, 0.2);
    height: 100%;
    min-height: 0;
}

.chat-window-header {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-window-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.chat-window-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-window-status {
    font-size: 0.8rem;
    color: var(--accent);
}

.chat-messages-list {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background-color: #0b0f19;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 72c-17.6 0-32-14.4-32-32S22.4 8 40 8s32 14.4 32 32-14.4 32-32 32z" fill="%23ffffff" fill-opacity="0.01" /></svg>');
}

.message-bubble {
    max-width: 65%;
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    line-height: 1.45;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-bubble.incoming {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-bubble.outgoing {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.chat-input-area {
    padding: 1.2rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
}

/* Chat Search & Status indicators */
.chat-search-wrapper input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    transition: all 0.3s ease;
}

.chat-search-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Profile View card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    border: 4px solid rgba(255,255,255,0.05);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.profile-info-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.profile-info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.profile-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* Responsive sidebar hides/reveals on mobile */
@media (max-width: 900px) {
    .sidebar-toggle-btn {
        display: none !important;
    }
    .sidebar-header-flex {
        display: block;
        text-align: center;
    }
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.8rem 1rem;
    }
    .menu-item {
        padding: 0.6rem 1rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .menu-item.active {
        border-bottom-color: var(--primary);
    }
    .sidebar-header {
        padding: 1rem;
        text-align: center;
    }
    .sidebar-footer {
        display: none;
    }
    .profile-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2.5rem 1.8rem;
    }
}

/* Advanced Listings & Property Detail Modal Styles */
.property-detail-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.property-media-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    background: #080b11;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.carousel-slides {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-slide img, 
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 11, 17, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.detail-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.detail-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-furnished {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-location {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-meta-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.detail-meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.detail-amenity-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.detail-description {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Card layout enhancements */
.card-badge-furnished {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 2;
}

.card-amenities-preview {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.card-amenity-dot {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.property-card {
    cursor: pointer;
}

/* Landlord calling simulation modal styles */
.calling-avatar-ring {
    width: 90px;
    height: 90px;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: ringPulse 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.calling-icon-glow {
    font-size: 2.5rem;
    animation: phoneShake 0.6s infinite alternate ease-in-out;
}

@keyframes ringPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    70% {
        box-shadow: 0 0 0 24px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

@keyframes phoneShake {
    0% { transform: rotate(-12deg); }
    100% { transform: rotate(12deg); }
}

/* Detail modal action buttons */
.detail-actions-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.detail-actions-footer .btn {
    flex: 1;
    justify-content: center;
    height: 48px;
    font-size: 1rem;
}

/* Avatar Upload Edit Overlay */
.profile-avatar {
    transition: transform 0.2s ease;
}
.profile-avatar:hover .avatar-hover-overlay {
    opacity: 1;
}
.profile-avatar .avatar-hover-overlay {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Star rating hover micro-animations */
.star-item:hover {
    transform: scale(1.2) !important;
}

/* Reviews Testimonials Section styling for Landing page */
.reviews-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.reviews-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.reviews-section h2 span {
    color: var(--primary);
}
.reviews-section p.subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.15);
}
.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.review-feedback {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.review-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
}
.review-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
}
.review-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}
.review-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}
.review-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   📱 MOBILE RESPONSIVENESS AND BOTTOM TAB BAR OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
    /* Fixed bottom navigation bar (simulates native app bottom tabs) */
    .sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 64px !important;
        border-right: none !important;
        border-top: 1px solid var(--border-color) !important;
        background: rgba(15, 21, 36, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 1000 !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
    }

    /* Hide sidebar header and footer profile details on mobile */
    .sidebar-header, 
    .sidebar-footer,
    .sidebar-toggle-btn {
        display: none !important;
    }

    /* Format menu items horizontally across bottom tab bar */
    .sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: visible !important;
    }

    /* Hide the redundant 'Filter' tab from the bottom bar on mobile screens */
    .menu-item[data-view="filter"] {
        display: none !important;
    }

    .menu-item {
        flex-direction: column !important;
        gap: 0.2rem !important;
        padding: 0.4rem 0 !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        border-left: none !important;
        border-bottom: none !important;
        background: transparent !important;
        height: 100% !important;
    }

    .menu-item svg {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }

    .menu-item span {
        font-size: 0.62rem !important;
        font-weight: 600 !important;
        display: block !important;
        letter-spacing: 0px !important;
    }

    .menu-item.active {
        color: var(--primary) !important;
        border-bottom: none !important;
        border-top: none !important;
        background: transparent !important;
    }

    /* Adjust main layout content to fit bottom tab bar */
    .dashboard-container {
        flex-direction: column !important;
    }

    .main-content {
        padding-bottom: 74px !important; /* spacing for fixed bottom navbar */
    }

    .dashboard-view {
        padding: 1rem !important; /* compact padding for mobile screens */
    }

    /* Navbar compact view */
    .navbar {
        padding: 0.9rem 4%;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    /* Hero Section compact */
    .landing-hero {
        padding: 4.5rem 4%;
        height: auto;
        min-height: 380px;
    }
    
    .landing-hero h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .landing-hero p {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    /* Hide filters on mobile */
    .filters-container {
        display: none !important;
    }

    /* Detail Modal padding & input stack overrides */
    .modal-content {
        padding: 1.25rem !important;
        margin: 0.75rem;
        max-height: 90vh;
        border-radius: var(--radius-md) !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .property-media-carousel {
        height: 220px !important;
    }

    /* Detail Modal action buttons stacking on mobile */
    .detail-actions-footer {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .detail-actions-footer .btn {
        width: 100% !important;
        flex: none !important;
    }

    /* Testimonials section */
    .reviews-section {
        padding: 3rem 1rem;
    }
    
    .reviews-section h2 {
        font-size: 1.6rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    .review-card {
        padding: 1.25rem;
    }

    /* Top navbar for Dashboard */
    .top-nav {
        padding: 0.8rem 1rem !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 52px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 90 !important;
    }
    
    .top-nav-welcome {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
    }
    
    .top-nav-welcome span {
        display: inline !important;
    }

    .top-nav .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.78rem !important;
        height: 32px !important;
    }
    
    #add-listing-btn {
        display: none !important;
    }
    
    .top-nav button[onclick="logoutUser()"] {
        background: #ef4444 !important;
        border-color: #ef4444 !important;
        color: white !important;
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
    }
    
    .top-nav button[onclick="logoutUser()"]:hover,
    .top-nav button[onclick="logoutUser()"]:active {
        background: #dc2626 !important;
        border-color: #dc2626 !important;
    }
    
    /* Full height Messages viewport overlay with bottom tab clearance */
    .messages-container {
        grid-template-columns: 1fr !important;
        height: calc(100vh - 165px) !important;
        border-radius: var(--radius-md) !important;
    }
    
    .messages-container.chat-active .messages-sidebar {
        display: none !important;
    }
    
    .messages-container:not(.chat-active) .chat-window {
        display: none !important;
    }
    
    .messages-container.chat-active .chat-window {
        display: flex !important;
        height: 100% !important;
        min-height: 0 !important;
    }
    
    .mobile-back-btn {
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }

    .chat-window-header {
        padding: 0.8rem 1rem !important;
        gap: 0.6rem !important;
    }

    .chat-window-name {
        font-size: 0.95rem !important;
    }

    .chat-window-status {
        font-size: 0.75rem !important;
    }
    
    .chat-input-area {
        padding: 0.75rem 1rem !important;
        gap: 0.6rem !important;
    }
    
    .chat-input-area input {
        height: 40px !important;
        font-size: 0.88rem !important;
    }
    
    .chat-input-area button {
        height: 40px !important;
        padding: 0 1rem !important;
        font-size: 0.88rem !important;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 0.8rem 1rem !important;
    }
}

/* Extra small phone viewports grid adjustments */
@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }
    
    .profile-card {
        padding: 1.5rem 1rem !important;
    }
    
    .profile-review-section h3 {
        font-size: 1.05rem !important;
    }
    
    .star-item {
        font-size: 1.5rem !important;
    }
}
