/**
 * Main Stylesheet - boardima.com
 * Facebook-inspired mobile-first design
 */

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

:root {
    /* Facebook-inspired color scheme */
    --primary-color: #1877f2;
    --primary-dark: #166fe5;
    --primary-light: #42a5f5;
    --secondary-color: #42a5f5;
    --text-dark: #050505;
    --text-secondary: #65676b;
    --text-light: #8a8d91;
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-hover: #f2f2f2;
    --border-color: #dadde1;
    --success-color: #42b72a;
    --warning-color: #f39c12;
    --error-color: #e41e3f;
    --shadow: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-large: 12px;
}

/* Dark Theme */
body.dark-theme {
    --primary-color: #1877f2;
    --primary-dark: #166fe5;
    --primary-light: #42a5f5;
    --secondary-color: #42a5f5;
    --text-dark: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-light: #8a8d91;
    --bg-primary: #18191a;
    --bg-secondary: #242526;
    --bg-hover: #3a3b3c;
    --border-color: #3a3b3c;
    --success-color: #42b72a;
    --warning-color: #f39c12;
    --error-color: #e41e3f;
    --shadow: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.4);
}

/* Dark Theme Button Overrides */
body.dark-theme .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: #4e4f50;
}

body.dark-theme .btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

body.dark-theme .btn-ghost {
    background: var(--bg-hover);
    border-color: #4e4f50;
    color: var(--text-dark);
}

body.dark-theme .btn-ghost:hover {
    background: #4e4f50;
    border-color: var(--primary-color);
}

body.dark-theme .theme-toggle-btn {
    background: var(--bg-secondary);
    border-color: #4e4f50;
    color: var(--text-dark);
}

body.dark-theme .theme-toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-theme .language-switcher select {
    background: var(--bg-secondary);
    border-color: #4e4f50;
    color: var(--text-dark);
}

body.dark-theme .language-switcher select:focus {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

/* Dark Theme - Input Fields and Forms */
body.dark-theme .nav-search-input,
body.dark-theme .mobile-nav-search-input,
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme input[type="number"],
body.dark-theme input[type="date"],
body.dark-theme input[type="tel"],
body.dark-theme select,
body.dark-theme textarea {
    background: var(--bg-secondary);
    border-color: #4e4f50;
    color: var(--text-dark);
}

body.dark-theme .nav-search-input:focus,
body.dark-theme .mobile-nav-search-input:focus,
body.dark-theme input:focus,
body.dark-theme input[type="date"]:focus,
body.dark-theme input[type="tel"]:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

body.dark-theme .nav-search-suggestions,
body.dark-theme .mobile-nav-search-suggestions {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .nav-search-suggestions .suggestion-item,
body.dark-theme .mobile-nav-search-suggestion-item {
    color: var(--text-dark);
}

body.dark-theme .nav-search-suggestions .suggestion-item:hover,
body.dark-theme .mobile-nav-search-suggestion-item:hover {
    background: var(--bg-hover);
}

/* Dark Theme - Cards and Containers */
body.dark-theme .property-card,
body.dark-theme .card,
body.dark-theme .listing-card {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .search-form,
body.dark-theme .form-container,
body.dark-theme .pricing-card {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

/* Dark Theme - User Dropdown */
body.dark-theme .user-dropdown {
    background: var(--bg-secondary);
    border-color: #4e4f50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark-theme .user-dropdown a {
    color: var(--text-dark);
}

body.dark-theme .user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

body.dark-theme .dropdown-divider {
    border-color: #4e4f50;
}

/* Dark Theme - Mobile Navigation */
body.dark-theme .mobile-side-nav {
    background: var(--bg-secondary);
}

body.dark-theme .mobile-nav-link {
    color: var(--text-dark);
}

body.dark-theme .mobile-nav-link:hover,
body.dark-theme .mobile-nav-link.active {
    background: var(--bg-hover);
    color: var(--primary-color);
}

body.dark-theme .mobile-nav-divider {
    border-color: #4e4f50;
}

/* Dark Theme - Search Form */
body.dark-theme .search-form {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .search-field input:focus,
body.dark-theme .search-field select:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

body.dark-theme .price-range-inline span {
    color: var(--text-secondary);
}

/* Dark Theme - Search Form Labels */
body.dark-theme .search-field label {
    color: white;
}

/* Dark Theme - Comparison Table */
body.dark-theme .comparison-table {
    background: var(--bg-secondary);
}

body.dark-theme .comparison-table th {
    background: var(--bg-hover);
    color: var(--text-dark);
    border-bottom-color: #4e4f50;
}

body.dark-theme .comparison-table td {
    color: var(--text-dark);
    border-bottom-color: #4e4f50;
}

body.dark-theme .comparison-table tbody tr:nth-child(odd) {
    background: var(--bg-secondary);
}

body.dark-theme .comparison-table tbody tr:nth-child(even) {
    background: var(--bg-hover);
}

body.dark-theme .comparison-table tbody td:first-child {
    background: var(--bg-hover);
    color: var(--text-dark);
}

body.dark-theme .comparison-table-wrapper {
    background: var(--bg-secondary);
}

body.dark-theme .comparison-table thead th:first-child,
body.dark-theme .comparison-table tbody td:first-child {
    box-shadow: 1px 0 0 #4e4f50;
}

/* Dark Theme - Property Selector Modal */
body.dark-theme .modal-content {
    background: var(--bg-secondary);
}

body.dark-theme .modal-header {
    background: var(--bg-secondary);
    border-bottom-color: #4e4f50;
}

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

body.dark-theme .modal-body {
    background: var(--bg-secondary);
}

body.dark-theme .search-box input {
    background: var(--bg-secondary);
    border-color: #4e4f50;
    color: var(--text-dark);
}

body.dark-theme .search-box input:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

body.dark-theme .search-box i {
    color: var(--text-secondary);
}

body.dark-theme .property-selector-item {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .property-selector-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

body.dark-theme .property-selector-info h4 {
    color: var(--text-dark);
}

body.dark-theme .property-selector-info p {
    color: var(--text-secondary);
}

body.dark-theme .property-selector-image .no-image {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

body.dark-theme .property-selector-info .badge {
    background: rgba(24, 119, 242, 0.2);
    color: var(--primary-light);
}

/* Dark Theme - Recommendation Cards */
body.dark-theme .recommendation-card {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .recommendation-content h4 a {
    color: var(--text-dark);
}

body.dark-theme .recommendation-content h4 a:hover {
    color: var(--primary-color);
}

body.dark-theme .recommendation-location {
    color: var(--text-secondary);
}

body.dark-theme .recommendation-meta {
    border-top-color: #4e4f50;
    color: var(--text-secondary);
}

body.dark-theme .recommendation-meta i {
    color: var(--text-light);
}

body.dark-theme .favorite-btn-small {
    background: rgba(255, 255, 255, 0.9);
}

body.dark-theme .favorite-btn-small:hover {
    background: white;
}

body.dark-theme .favorite-btn-small.active {
    background: var(--error-color);
}

body.dark-theme .favorite-btn-small.active i {
    color: white;
}

body.dark-theme .recommendation-image .no-image {
    color: var(--text-secondary);
}

/* Dark Theme - Property Cards Modern (My Favorites) */
body.dark-theme .property-card-modern {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .property-card-modern:hover {
    border-color: var(--primary-color);
}

body.dark-theme .property-card-modern.selected {
    border-color: var(--primary-color);
}

body.dark-theme .property-content h3 a {
    color: var(--text-dark);
}

body.dark-theme .property-content h3 a:hover {
    color: var(--primary-color);
}

body.dark-theme .property-location {
    color: var(--text-secondary);
}

body.dark-theme .property-price {
    color: var(--primary-color);
}

body.dark-theme .property-meta {
    border-top-color: #4e4f50;
    border-bottom-color: #4e4f50;
}

body.dark-theme .property-meta .meta-item {
    color: var(--text-secondary);
}

body.dark-theme .property-meta .meta-item span {
    color: var(--text-dark);
}

body.dark-theme .property-footer {
    border-top-color: #4e4f50;
}

body.dark-theme .saved-date {
    color: var(--text-secondary);
}

body.dark-theme .favorite-btn-modern {
    background: rgba(36, 37, 38, 0.95);
    border: 1px solid #4e4f50;
}

body.dark-theme .favorite-btn-modern:hover {
    background: rgba(58, 59, 60, 0.95);
}

body.dark-theme .favorite-btn-modern i {
    color: var(--text-secondary);
}

body.dark-theme .favorite-btn-modern.active i {
    color: var(--error-color);
}

body.dark-theme .property-type-badge {
    background: rgba(24, 119, 242, 0.95);
}

body.dark-theme .checkmark {
    background: rgba(36, 37, 38, 0.95);
    border-color: #4e4f50;
}

body.dark-theme .comparison-checkbox-label:hover .checkmark {
    border-color: var(--primary-color);
}

body.dark-theme .comparison-checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #1877f2;
    border-color: #1877f2;
}

body.dark-theme .no-image-placeholder {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

body.dark-theme .page-header-content h1 {
    color: var(--text-dark);
}

body.dark-theme .page-header-content p {
    color: var(--text-secondary);
}

body.dark-theme .empty-state-modern {
    background: var(--bg-secondary);
    border-color: #4e4f50;
}

body.dark-theme .empty-state-modern h2 {
    color: var(--text-dark);
}

body.dark-theme .empty-state-modern p {
    color: var(--text-secondary);
}

body.dark-theme .benefit-item span {
    color: var(--text-secondary);
}

/* Dark Theme - Navigation Links */
body.dark-theme .nav-link {
    color: var(--text-dark);
}

body.dark-theme .nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
}

body.dark-theme .nav-link.btn-post {
    background: var(--primary-color);
    color: white;
}

body.dark-theme .nav-link.btn-post:hover {
    background: var(--primary-dark);
    color: white;
}

body.dark-theme .user-btn {
    color: var(--text-dark);
    border-color: #4e4f50;
}

body.dark-theme .user-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dark Theme - Favorite Button */
body.dark-theme .favorite-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

body.dark-theme .favorite-btn:hover {
    background: white;
}

body.dark-theme .favorite-btn.active {
    background: rgba(255, 255, 255, 0.9);
}

body.dark-theme .favorite-btn.active i {
    color: var(--error-color);
}

body.dark-theme .favorite-btn:hover i {
    color: var(--error-color);
}

body.dark-theme .property-card:hover .favorite-btn {
    background: white;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header - Facebook Style */
.main-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    min-height: 56px;
    position: relative;
    gap: 12px;
}

.logo {
    flex: 0 0 auto;
    min-width: 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    margin: 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Language selector styling */
.language-switcher {
    position: relative;
    flex-shrink: 0;
}

.language-switcher select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 36px 10px 14px;
    min-width: 120px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 14px rgba(24,119,242,0.18);
    transform: translateY(-1px);
}

.language-switcher::after {
    content: '';
    position: absolute;
    pointer-events: none;
    right: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2365676b' 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;
}

/* Theme Switcher */
.theme-switcher {
    position: relative;
    flex-shrink: 0;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(20deg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    transition: background 0.2s;
    flex-shrink: 0;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
}

.mobile-menu-btn .hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Side Navigation */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Ensure mobile overlay doesn't interfere when inactive */
.mobile-nav-overlay:not(.active) {
    pointer-events: none;
    display: none;
}

.mobile-side-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-side-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-logo h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

/* Nav Search Bar */
.nav-search-form {
    display: flex;
    align-items: center;
    margin: 0 12px;
    flex: 0 1 300px;
}

.nav-search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: 100%;
    padding: 8px 12px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.nav-search-input::placeholder {
    color: var(--text-light);
}

.nav-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-dark);
}

.nav-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-hover);
}

.nav-search-suggestion-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.nav-search-suggestion-item:last-child {
    border-bottom: none;
}

.nav-search-suggestion-item:hover {
    background: var(--bg-hover);
}

.nav-search-suggestion-item i {
    color: var(--text-light);
    flex: 0 0 auto;
}

.nav-search-suggestion-item .suggestion-text {
    flex: 1;
}

.nav-search-suggestion-item .suggestion-type {
    color: var(--text-light);
    font-size: 0.75rem;
    flex: 0 0 auto;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background 0.2s;
}

/* Dialogs */
body.dialog-open {
    overflow: hidden;
}

.app-dialog-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 12000;
}

.app-dialog-overlay.is-visible {
    pointer-events: auto;
}

.app-dialog-overlay.is-active {
    opacity: 1;
}

.app-dialog {
    width: min(520px, 100%);
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 24px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-dialog-overlay.is-active .app-dialog {
    transform: translateY(0);
    opacity: 1;
}

.app-dialog__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--primary-color);
    background: rgba(24, 119, 242, 0.12);
    font-size: 20px;
}

.app-dialog--danger .app-dialog__icon {
    color: var(--error-color);
    background: rgba(228, 30, 63, 0.12);
}

.app-dialog--warning .app-dialog__icon {
    color: var(--warning-color);
    background: rgba(243, 156, 18, 0.12);
}

.app-dialog--success .app-dialog__icon {
    color: var(--success-color);
    background: rgba(66, 183, 42, 0.12);
}

.app-dialog__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.app-dialog__message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}

.app-dialog__input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.app-dialog__input textarea {
    width: 100%;
    min-height: 96px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 12px;
    resize: vertical;
    font: inherit;
    color: var(--text-dark);
}

.app-dialog__input textarea:focus {
    outline: 2px solid rgba(24, 119, 242, 0.18);
    border-color: var(--primary-color);
}

.app-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-dialog__actions .btn {
    min-width: 120px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-ghost:hover {
    background: var(--bg-hover);
}

.app-dialog__actions .btn.btn-primary {
    box-shadow: 0 6px 14px rgba(24, 119, 242, 0.2);
}

@media (max-width: 640px) {
    .app-dialog {
        padding: 18px;
    }

    .app-dialog__title {
        font-size: 1.1rem;
    }
}
.mobile-nav-close:hover {
    background: var(--bg-hover);
}

.mobile-nav-content {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    margin: 0;
    position: relative;
}

.mobile-user-info::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--bg-secondary);
}

.mobile-user-avatar {
    font-size: 2.75rem;
    color: white;
    flex: 0 0 auto;
}

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-weight: 700;
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-email {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav-links {
    padding: 8px 0;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: var(--radius);
    position: relative;
    border: none;
    background: transparent;
}

.mobile-nav-link:hover {
    background: var(--bg-hover);
    padding-left: 20px;
}

.mobile-nav-link.active {
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 16px;
}

.mobile-nav-link.active i {
    color: var(--primary-color);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    flex: 0 0 auto;
}

.mobile-nav-link-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin: 8px 8px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.mobile-nav-link-primary i {
    color: white;
}

.mobile-nav-link-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1558c7 100%);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    padding-left: 20px;
}

.mobile-nav-link-danger {
    color: var(--error-color);
    margin-top: auto;
}

.mobile-nav-link-danger i {
    color: var(--error-color);
}

.mobile-nav-link-danger:hover {
    background: rgba(228, 30, 63, 0.1);
}

.mobile-nav-divider {
    height: 8px;
    background: var(--bg-primary);
    margin: 0;
    border: none;
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide mobile menu button on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-side-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background 0.2s;
    font-size: 0.9375rem;
}

.nav-link:hover {
    background: var(--bg-hover);
}

.nav-link.btn-post {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link.btn-post:hover {
    background: var(--primary-dark);
    color: white;
}

.user-menu {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
}

.user-btn:hover {
    background: var(--bg-hover);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-radius: var(--radius);
    min-width: 200px;
    display: none;
    margin-top: 8px;
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: var(--bg-hover);
}

.user-dropdown a:last-child {
    border-bottom: none;
}


/* Mobile Bottom Navigation - Facebook Style */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 100%;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
    min-width: 60px;
    position: relative;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item.post-btn {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -12px;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.mobile-bottom-nav .nav-item.post-btn i {
    font-size: 1.75rem;
    margin: 0;
}

.mobile-bottom-nav .nav-item.post-btn span {
    display: none;
}

/* Buttons - Facebook Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.btn-primary,
.desktop-nav .btn-primary,
a.btn-primary {
    background: var(--primary-color);
    color: white;
    border-radius: 999px !important;
}

.btn-primary:hover,
.desktop-nav .btn-primary:hover,
a.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c91e37;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-content p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    line-height: 1.5;
}

.search-form {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-fields {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr 0.85fr auto;
    gap: 0.875rem;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.search-field label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8125rem;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #1f2937;
    font-weight: 500;
}

.search-field input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 38px;
    background-color: #f9fafb;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 75, 173, 0.1);
}

.price-range-inline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.price-range-inline input {
    padding: 11px 10px !important;
    font-size: 0.875rem !important;
}

.price-range-inline span {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(13, 75, 173, 0.25);
    min-height: 44px;
}

.btn-search:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(13, 75, 173, 0.35);
    transform: translateY(-1px);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-search i {
    font-size: 0.9375rem;
}

/* Property Cards - Facebook Style */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.property-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-hover);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--warning-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
    z-index: 10;
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.favorite-btn.active i,
.favorite-btn:hover i {
    color: var(--error-color);
}

.property-card:hover .favorite-btn {
    background: white;
}

/* Adjust position if featured badge exists */
.property-card:has(.featured-badge) .favorite-btn {
    top: 60px;
}

.property-content {
    padding: 1rem;
}

.property-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
}

.property-content h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.property-content h3 a:hover {
    color: var(--primary-color);
}

.property-location {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.property-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

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

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.view-all:hover {
    text-decoration: underline;
}

.featured-section,
.latest-section,
.recommended-section,
.nearby-section {
    padding: 1.5rem 0;
    background: var(--bg-primary);
    margin-top: 1rem;
    border-radius: var(--radius-large);
    padding: 1.5rem;
}

.featured-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.recommended-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-left: 4px solid var(--primary-color);
}

.nearby-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Location Message Styles */
.location-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin: 2rem 0;
}

.location-message p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.location-message i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Section Header with Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header .section-title {
    margin: 0;
}

/* Property Distance */
.property-distance {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin: 0.25rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-distance i {
    font-size: 0.8rem;
}

/* Location Button */
.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary i {
    margin-right: 0.5rem;
}

/* Forms - Facebook Style */
.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 432px;
    border: 1px solid var(--border-color);
}

.auth-box h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    font-family: inherit;
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.alert-error {
    background: #fee;
    color: var(--error-color);
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: var(--success-color);
    border: 1px solid #cfc;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

/* Property Form */
.property-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Search Page */
.search-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.search-sidebar {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 80px;
    border: 1px solid var(--border-color);
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
}

.search-sidebar h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.quick-filters-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.quick-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    background: rgba(13, 75, 173, 0.08);
    box-shadow: var(--shadow-hover);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
    text-align: left;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    width: 100%;
    max-width: 100%;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.price-range input {
    flex: 1;
    max-width: 100%;
}

.filter-group input[type="range"] {
    width: 100%;
    max-width: 100%;
}

.checkbox-label {
    width: 100%;
    justify-content: flex-start;
}

.search-results {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-header h1 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.results-count {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

/* Mobile Search Bar and Filter Button */
.mobile-search-bar {
    display: none;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-direction: column;
}

.mobile-nav-search-form {
    width: 100%;
}

.mobile-nav-search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mobile-nav-search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.mobile-nav-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.mobile-nav-search-input::placeholder {
    color: var(--text-light);
}

.mobile-nav-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    min-width: 40px;
    min-height: 40px;
}

.mobile-nav-search-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-dark);
}

.mobile-nav-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-hover);
    margin-top: 4px;
}

.mobile-nav-search-suggestion-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.mobile-nav-search-suggestion-item:last-child {
    border-bottom: none;
}

.mobile-nav-search-suggestion-item:hover {
    background: var(--bg-hover);
}

.mobile-nav-search-suggestion-item i {
    color: var(--text-light);
    flex: 0 0 auto;
}

.mobile-filter-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    transition: background 0.2s;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-filter-btn:hover {
    background: var(--primary-hover);
}

.mobile-filter-btn i {
    font-size: 1.125rem;
}

/* Filter Modal */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

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

.filter-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    -webkit-overflow-scrolling: touch;
}

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

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.filter-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.filter-modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-dark);
}

.filter-modal-body {
    padding: 1.5rem;
    padding-bottom: 2rem;
}

/* Ensure filter form in modal works properly */
.filter-modal-body .filter-form {
    gap: 1.25rem;
}

.filter-modal-body .quick-filters {
    margin-bottom: 1.25rem;
}

/* Property Detail */
.property-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.property-images {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.main-image {
    border-radius: var(--radius-large);
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.image-thumbnails .thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.image-thumbnails .thumbnail:hover {
    border-color: var(--primary-color);
}

.property-info h1 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.property-type {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.property-price h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.property-details,
.property-financial,
.property-description,
.property-address,
.property-contact {
    margin-bottom: 1.5rem;
}

.property-details h3,
.property-financial h3,
.property-description h3,
.property-address h3,
.property-contact h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 700;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.property-financial {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.property-description {
    margin-top: 2rem;
}

.financial-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.financial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    font-size: 0.9375rem;
}

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

.financial-item strong {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 1rem;
}

.financial-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.utilities-notes {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(13, 75, 173, 0.05);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-color, #1877f2);
}

.utilities-notes p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.utilities-notes i {
    color: var(--primary-color, #1877f2);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-details {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
}

.contact-reveal-section {
    margin: 1rem 0;
    text-align: center;
}

.contact-reveal-section .btn {
    width: 100%;
    max-width: 300px;
}

.radius-info {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radius-info i {
    color: var(--primary-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.reveal-tooltip {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reveal-tooltip i {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.empty-state a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:hover {
    text-decoration: underline;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-state .primary-a {
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: var(--success-color);
    color: white;
}

.status-badge.inactive {
    background: var(--text-light);
    color: white;
}

.status-badge.sold,
.status-badge.rented {
    background: var(--warning-color);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s;
    gap: 0.5rem;
}

.page-link:hover:not(.disabled):not(.active) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-hover);
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    color: var(--text-dark);
    padding: 2rem 0 1rem;
    margin-top: 9rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    color: var(--text-dark);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Page Container */
.page-container {
    padding: 1rem 0;
    min-height: 60vh;
}

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

/* Profile Page Styles */
.profile-page {
    background: var(--bg-primary);
    padding: 1rem 0 4rem;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-large);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
    box-shadow: var(--shadow);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-header-info {
    flex: 1;
}

.profile-header-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.profile-email {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-content {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.card-header {
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.card-header h2 i {
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.profile-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.profile-form .form-group label i {
    color: var(--primary-color);
    width: 20px;
}

.input-disabled {
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.status-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
}

.status-badge-large.active {
    background: #d4edda;
    color: var(--success-color);
}

.status-badge-large.inactive {
    background: #f8d7da;
    color: var(--error-color);
}

.status-badge-large.verified {
    background: #d4edda;
    color: var(--success-color);
}

.status-badge-large.unverified {
    background: #fff3cd;
    color: #856404;
}

.status-badge-large i {
    font-size: 0.75rem;
}

.data-management-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.data-export,
.account-deletion {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.data-export h3,
.account-deletion h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.data-export p,
.account-deletion p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.account-deletion {
    border-left: 4px solid var(--error-color);
}

.account-deletion p strong {
    color: var(--error-color);
}

/* Current Images */
.current-images {
    margin-bottom: 1.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.main-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.error-page p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* CTA Section */
.cta-section {
    background: var(--bg-secondary);
    color: var(--text-dark);
    padding: 3rem 0;
    text-align: center;
    margin-top: 2rem;
    border-radius: var(--radius-large);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Content Pages (Terms, Privacy, Help, Contact) */
.content-page {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-page .last-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.content-page section {
    margin-bottom: 2.5rem;
}

.content-page section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.content-page section:first-child h2 {
    border-top: none;
    padding-top: 0;
}

.content-page section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.content-page section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.content-page section ul,
.content-page section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page section li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.content-page section a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-page section a:hover {
    text-decoration: underline;
}

.content-page section strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-large);
}

.contact-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-large);
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

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

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

.contact-form .required {
    color: var(--error-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Help Center */
.help-content {
    margin-top: 2rem;
}

.help-categories {
    margin-bottom: 3rem;
}

.help-categories h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-large);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.faq-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-section:last-child {
    border-bottom: none;
}

.faq-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-top: 1rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.help-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive for content pages */
@media (max-width: 768px) {
    .content-page {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .content-page h1 {
        font-size: 2rem;
    }
    
    .content-page section h2 {
        font-size: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

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

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.modal-body textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-body small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Admin Pages */
.admin-page {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    padding: 2rem;
    margin: 2rem 0;
}

.admin-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-filters {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.report-header {
    margin-bottom: 1rem;
}

.report-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.report-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-open {
    background: #fff3cd;
    color: #856404;
}

.status-in_review {
    background: #cfe2ff;
    color: #084298;
}

.status-resolved {
    background: #d1e7dd;
    color: #0f5132;
}

.status-dismissed {
    background: #f8d7da;
    color: #842029;
}

.report-reason {
    font-weight: 600;
    color: var(--text-dark);
}

.report-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.report-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.report-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.report-content h3 a:hover {
    text-decoration: underline;
}

.report-description {
    margin: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.report-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.report-info p {
    margin: 0.25rem 0;
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.report-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

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

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    font-weight: 600;
    color: var(--text-dark);
}

.detail-item p {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #36a420;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c41230;
}

.property-actions-section {
    margin: 1.5rem 0;
    text-align: center;
}

/* Responsive for admin pages */
@media (max-width: 768px) {
    .admin-page {
        padding: 1rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-actions,
    .action-buttons {
        flex-direction: column;
    }
    
    .report-actions .btn,
    .action-buttons .btn {
        width: 100%;
    }
}

/* Leaflet Map Styling - Critical Fix */
#map {
    width: 100% !important;
    height: 400px !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border-color) !important;
    background-color: #e5e3df !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure map is visible when it has leaflet-container class */
#map.leaflet-container {
    width: 100% !important;
    height: 400px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #e5e3df !important;
    display: block !important;
    visibility: visible !important;
}

/* Leaflet panes - must be absolutely positioned */
.leaflet-pane {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.leaflet-tile-pane {
    z-index: 2;
}

.leaflet-overlay-pane {
    z-index: 4;
}

.leaflet-shadow-pane {
    z-index: 5;
}

.leaflet-marker-pane {
    z-index: 6;
    pointer-events: none;
}

.leaflet-marker-pane img {
    pointer-events: auto;
}

.leaflet-tooltip-pane {
    z-index: 650;
}

.leaflet-popup-pane {
    z-index: 700;
}

/* Leaflet controls - MUST BE VISIBLE */
.leaflet-control {
    position: absolute !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    background-color: #fff;
    display: block !important;
    visibility: visible !important;
}

.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 999;
    pointer-events: none;
}

.leaflet-top {
    top: 10px;
    left: 10px;
    right: 10px;
}

.leaflet-bottom {
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.leaflet-right {
    right: 10px;
}

.leaflet-left {
    left: 10px;
}

.leaflet-control-zoom {
    display: block !important;
    visibility: visible !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    display: block !important;
    width: 26px;
    height: 26px;
    text-indent: 1px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    line-height: 26px;
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    pointer-events: auto !important;
    visibility: visible !important;
}

.leaflet-control-zoom-in {
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 4px 4px;
}

/* Marker icon */
.leaflet-marker-icon {
    background-color: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 40px !important;
    margin-left: -16px !important;
    margin-top: -40px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Marker shadow */
.leaflet-marker-shadow {
    opacity: 0.5 !important;
}

/* Tile layer */
.leaflet-tile {
    filter: inherit;
    visibility: inherit;
    display: block !important;
}

.leaflet-tile-loaded {
    visibility: visible !important;
}

/* Ensure leaflet container fills the parent */
.leaflet-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Upload Progress Overlay */
.upload-progress-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.upload-progress-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-large);
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.upload-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.upload-spinner i {
    font-size: 48px;
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upload-progress-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

