/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --dm-bg-page:        #0f1117;
    --dm-bg-card:        #1a1d27;
    --dm-bg-elevated:    #222536;
    --dm-bg-input:       #1e2130;
    --dm-border:         #2e3348;
    --dm-text-primary:   #e8eaf0;
    --dm-text-secondary: #9ba3b8;
    --dm-text-muted:     #636880;
    --dm-success-bg:     #0d2e1a;
    --dm-success-text:   #4ade80;
    --dm-error-bg:       #2e0d0d;
    --dm-error-text:     #f87171;
    --dm-warning-bg:     #2e1e0d;
    --dm-warning-text:   #fbbf24;
    --dm-info-bg:        #0d1a2e;
    --dm-info-text:      #60a5fa;
    --text-dark: #e5e7eb;
    --text-gray: #cbd5e1;
    --text-light: #94a3b8;
    --bg-white: #1f2937;
    --bg-light: #111827;
    --bg-gray: #0f0f0f;
    --border: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.55);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.2s, color 0.2s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.field-error{
        color: #d61e1e;
    }

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-md); }

header, .page-card, .auth-card, .sidebar-card, .contact-card, .contact-aside-card, .property-card, .admin-card, .search-card, .type-card {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.desktop-nav a:hover {
    color: var(--primary);
    background: var(--bg-gray);
}

.desktop-nav a.active {
    color: var(--primary);
    background: #eff6ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    display: none;
    overflow: hidden;
    z-index: 1001;
}

.lang-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-option {
    display: block;
    padding: 10px 16px;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.lang-option:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.lang-option.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
}

.user-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    overflow: hidden;
    z-index: 1001;
}

.user-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.user-menu-item:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Buttons */
.btn-outline {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Small modifier */
.btn-sm { padding: 6px 10px; font-size: 13px; }

/* Loading state for buttons */
.btn-loading { opacity: 0.9; cursor: wait; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1; white-space: nowrap; }
.btn-loading .btn-spinner { display: inline-flex; align-items: center; }
.btn-loading .btn-label { display: inline-block; line-height: 1; font-size: inherit; }
.btn-spinner i { font-size: 0.85em; line-height: 1; }

/* Utility helpers */
.mt-12 { margin-top: 12px; }
.btn-block { width: 100%; display: inline-block; text-align: center; }
.btn-block.btn-loading { display: inline-flex; align-items: center; justify-content: center; }

/* Small utility helpers used across pages */
.hidden { display: none !important; }
.flex-1 { flex: 1 1 auto; }

/* Map and form helpers */
.map-controls { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.map-info { font-size: 14px; color: var(--text-gray); margin: 0; }

.map-wrapper { transition: height 0.25s ease; overflow: hidden; height: 0; margin-bottom: 12px; }
.map-wrapper.open { height: 320px; }
.map-wrapper.collapsed { height: 0; }

.latlng-group { margin-top: 8px; margin-bottom: 12px; display: none; }
.latlng-group.show { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Layout utilities */
.grid { display: grid; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flex-row { display: flex; gap: 12px; }
.text-center { text-align: center; }

.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 720px) {
    .grid-2 { grid-template-columns: 1fr; }
    .flex-row { flex-wrap: wrap; }
}
.mb-16 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.p-40 { padding: 40px; }

/* Link and colour utilities */
.link-primary { color: var(--primary); text-decoration: none; font-weight: 600; }
.text-primary { color: var(--primary); }
.text-danger { color: #dc2626; }

/* Card helpers */
.app-card { display:flex; gap:12px; align-items:center; border:1px solid var(--border); padding:12px; border-radius:8px; }
.app-card-img { width:120px; height:80px; overflow:hidden; border-radius:6px; background:#f3f4f6; }
.app-card-img img { width:100%; height:100%; object-fit:cover; display:block; }


/* Profile avatar styles */
.profile-avatar { display:flex; flex-direction:column; gap:12px; align-items:flex-start; min-width:220px; }
.avatar-wrap { width:140px; height:140px; position:relative; overflow:hidden; }
.avatar-wrap img { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.avatar-initial { width:140px; height:140px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:40px; font-weight:700; }
.avatar-preview { position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; border-radius:50%; z-index:2; }
.avatar-controls { display:flex; flex-direction:column; gap:8px; }
.avatar-buttons { display:flex; gap:8px; margin-top:6px; }
.btn-danger { background: #e74d4d; color: #fff; border: none; padding: 8px 12px; border-radius: 8px; cursor:pointer; }
.btn-danger:hover { opacity:0.95; }
.muted.small { color:var(--text-gray); font-size:13px; }

/* Notification styles */
.notification-list { list-style:none; padding:0; margin:0; }
.notification-item { padding:12px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.notification-item.unread { background: #fff7ed; border-left: 4px solid #f59e0b; }
.notification-item .meta { font-size:12px; color:var(--text-light); margin-top:6px; }
.notification-item strong.title { display:block; font-weight:600; font-size:14px; }
.notification-actions { display:flex; gap:8px; align-items:center; }
.notification-body { color: var(--text-gray); }

.notifications-page { padding: 40px 0; background: var(--bg-gray); }
.notifications-container { max-width: 900px; }
.notifications-card { background: var(--bg-white); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.notifications-empty { color: var(--text-gray); }

/* notification badge (header) */
.notif-badge { position:absolute; top:4px; right:4px; background:linear-gradient(135deg,#ef4444,#c0262c); color:#fff; padding:4px 8px; border-radius:999px; font-size:12px; min-width:20px; text-align:center; font-weight:700; box-shadow:var(--shadow-sm); display:inline-block; transition: transform 0.18s ease; }
.notif-badge.hidden { display:none; }
.notif-badge.pulse { animation: pulse 0.9s ease; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* small boxed button for mark-as-read */
.btn-mark { padding:6px 10px; border-radius:8px; border:1px solid var(--border); background:#fff; cursor:pointer; font-size:13px; }
.btn-mark.checked { background:#f1f5f9; color:var(--text-gray); cursor:default; }


/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu-item {
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-item:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

/* App utility classes (prefix with app- to avoid collisions) */
.app-hidden { display: none !important; }
.app-text-center { text-align: center; }
.app-flex { display: flex; }
.app-gap-12 { gap: 12px; }
.app-mt-10 { margin-top: 10px; }
.app-mt-12 { margin-top: 12px; }
.app-btn-block { width: 100%; display: inline-block; text-align: center; }

/* Small chevron & avatar helper classes */
.app-chevron-sm { font-size: 10px; margin-left: 6px; }
.app-avatar-sm { width:26px; height:26px; border-radius:50%; object-fit:cover; margin-right:8px; vertical-align:middle; display:inline-block; }
.app-logo-img { height:36px; object-fit:contain; margin-right:8px; display:inline-block; }

/* Notification link helper */
.app-notif-link { display:inline-block; margin-right:12px; }
.app-notif-btn { position:relative; padding:8px 10px; display:inline-block; }

/* Email verify banner helper (mobile-first, becomes row on wider viewports) */
.app-email-banner { background:#fff3cd; border:1px solid #ffe69c; color:#664d03; padding:10px 12px; border-radius:8px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.app-email-banner-content { display:flex; align-items:center; gap:10px; }
.app-email-banner-actions { display:flex; gap:8px; align-items:center; }
.app-email-action-btn { padding:6px 10px; }

/* Skeleton loaders */
.app-skeleton { background: linear-gradient(90deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 6px; }
.app-skeleton-title { height:18px; width:40%; margin-bottom:8px; }
.app-skeleton-rect { height:12px; width:100%; margin-bottom:6px; }
.app-skeleton-avatar { width:64px; height:64px; border-radius:50%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Responsive helpers (mobile-first) */
@media (min-width: 640px) {
  .app-email-banner { flex-direction: row; }
}

/* ===== App components: badges, lists, cards, helpers ===== */
.app-badge { padding: 4px 8px; border-radius: 6px; margin-left: 8px; font-size: 12px; color: #fff; display: inline-block; }
.app-badge--danger { background: #dc2626; }
.app-badge--warning { background: #f97316; }

.app-details-list { list-style: none; padding: 0; }
.app-ml-5 { margin-left: 5px; }

.app-avatar-md { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.app-btn-full { width: 100%; text-align: center; }
.app-mb-12 { margin-bottom: 12px; }

.page-card { max-width: 900px; margin: 0 auto 18px; }
.search-inline { display: flex; gap: 8px; }
.search-inline .filter-select { max-width: 160px; }
.flex-1 { flex: 1; }
.mx-6 { margin: 0 6px; }

.app-card { display:flex; gap:12px; align-items:center; border:1px solid var(--border); padding:12px; border-radius:8px; }
.app-card-img { width:120px; height:80px; overflow:hidden; border-radius:6px; background:#f3f4f6; }
.app-text-muted { color: var(--text-gray); font-size:13px; }
.app-icon-danger { color: #ef4444; }
.nowrap { white-space: nowrap; }

.feedback-card { max-width: 900px; margin: 0 auto; }

.error-page { text-align: center; padding: 4rem 0; }
.error-icon { color: #3498db; margin-bottom: 2rem; }
.error-icon--alert { color: #e74c3c; }
.error-title { color: var(--primary); margin-bottom: 1rem; }
.error-title--dark { color: var(--text-dark); }
.error-message { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2rem; }
.error-message--muted { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 1.5rem; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-cta { display: inline-block; }
.error-card { background: var(--bg-white); border: 1px solid var(--border); padding: 48px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg); }

/* Admin/table and form helpers */
.table-th { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.table-td { padding: 8px; border-bottom: 1px solid var(--border); }
.upload-table { width: 100%; border-collapse: collapse; }
.table-input-120 { width: 120px; }
.table-input-140 { width: 140px; }
.label-min-width-120 { min-width: 120px; }
.label-min-width-140 { min-width: 140px; margin-left: 16px; }
.summary-link { cursor: pointer; color: var(--primary); }
.pre-raw { background: var(--bg-white); padding: 12px; border: 1px solid var(--border); border-radius: 6px; margin-top: 8px; white-space: pre-wrap; }
.filter-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.form-select, .form-input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; }
.property-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.min-w-220 { min-width: 220px; }
.input-320 { width: 320px; }

/* Search results list */
.search-results { list-style: none; padding: 0; margin: 0; }
.search-result-item { padding: 6px 8px; cursor: pointer; border-bottom: 1px solid var(--border); }
.search-result-item:hover { background: var(--bg-gray); }


.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Search Card */
.search-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.search-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.tab.active {
    background: #eff6ff;
    color: var(--primary);
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: var(--text-light);
    font-size: 12px;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 15px;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 80px 0;
}

/* Page Card (used across forms and admin pages) */
.page-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 1100px;
    margin: 24px auto;
    box-shadow: var(--shadow-md);
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--text-gray);
    margin-bottom: 12px;
}

/* Form grid for professional two-column layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Make inputs span full width */
.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 14px 16px;
}

textarea.form-input {
    min-height: 180px;
    resize: vertical;
}

/* Small helper text under inputs */
.form-help {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .page-card {
        padding: 20px;
        margin: 12px;
    }
}

/* Admin list styles for contact/feedback */
.admin-list { overflow-x: auto; }
.admin-list table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.admin-list th {
    text-align: left;
    padding: 10px 8px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.admin-list td {
    padding: 12px 8px;
    vertical-align: top;
    border-bottom: 1px solid var(--bg-gray);
    color: var(--text-dark);
}
.admin-list tr:nth-child(even) td {
    background: var(--bg-light);
}


.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
}
.section-cta { margin-top: 12px; }

/* Property Types */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.type-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.type-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 32px;
}

.type-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.type-count {
    font-size: 14px;
    color: var(--text-gray);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-gray);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    flex-direction: row;
    gap: 6px;
    z-index: 2;
    flex-wrap: wrap;
}
.property-badges--right { left: auto; right: 12px; }
.property-badge {
    padding: 6px 12px;
    background: var(--bg-white);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.property-badge--rent { background: #16a34a; color: #fff; }
.property-badge--sale { background: #f59e0b; color: #fff; }

.property-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

.property-favorite:hover {
    transform: scale(1.1);
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.property-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.property-features {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-gray);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 36px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    padding: 14px 32px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    padding: 14px 32px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .search-card {
        padding: 24px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .search-card {
        padding: 20px;
    }
}

/* Improve header responsiveness on small screens */
@media (max-width: 768px) {
    .header-wrapper {
        height: auto;
        padding: 8px 0;
        align-items: center;
        gap: 8px;
    }

    .logo span {
        display: none; /* hide text to save space on very small screens */
    }

    .logo-icon { width: 36px; height: 36px; }

    .header-actions { gap: 6px; }
    .header-auth-links { display: none; }

    .lang-btn span, .user-btn span { display: none; }

    .mobile-menu { padding: 12px 0; }
}

/* Profile responsiveness (mobile-first improvements) */
.profile-container { padding: 40px 0; }
.profile-card { max-width: 900px; margin:0 auto; background:var(--bg-white); padding:24px; border-radius:8px; border:1px solid var(--border); }
.profile-grid { display:grid; grid-template-columns: 220px minmax(0, 1fr); gap:24px; align-items:start; }
.profile-avatar { width: 220px; }
.profile-grid .flex-1 { min-width: 0; }
.avatar-controls { width: 100%; }
.avatar-controls input[type="file"] { max-width: 100%; }
.profile-card { overflow: hidden; }
.avatar-wrap { width:140px; height:140px; }
.avatar-initial { width:140px; height:140px; font-size:40px; display:flex; align-items:center; justify-content:center; background:var(--bg-gray); border-radius:50%; }
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-avatar { width: 100%; display:flex; flex-direction:column; align-items:center; }
    .avatar-wrap { width:100px; height:100px; }
    .avatar-initial { width:100px; height:100px; font-size:28px; }
    .profile-card { padding:16px; margin:8px; }
}

/* Floating contact CTA (mobile only) */
.floating-contact { position: fixed; right: 16px; bottom: 16px; background: linear-gradient(135deg,var(--primary),var(--primary-light)); color: #fff; padding: 12px 14px; border-radius: 999px; box-shadow: var(--shadow-lg); display: none; z-index: 2000; text-decoration: none; font-weight:600; }
.floating-contact i { margin-right:8px; }
@media (max-width: 768px) { .floating-contact { display: inline-flex; align-items:center; } }

/* Form helper styles */
.required { color: #dc2626; margin-left: 6px; font-weight: 700; }
.too-large-badge { position: absolute; top: 6px; right: 6px; background: rgba(220,37,37,0.9); color: white; padding: 4px 8px; border-radius: 6px; font-size: 12px; z-index: 8; }
.too-large-badge { pointer-events: none; }
.img-delete-label { position: relative; z-index: 12; }
.form-actions--stack { flex-direction: column; }
.form-actions--stack .btn-block { width: 100%; }

/* Utilities to replace inline styles so CSP can remove unsafe-inline */
.hidden { display: none !important; }
.btn-block { display: block; width: 100%; }
.text-center { text-align: center; }
.icon-large { font-size: 42px; color: var(--primary); }
.auth-section { padding: 60px 0; background-color: var(--bg-gray); min-height: calc(100vh - 144px); display: flex; align-items: center; justify-content: center; }
.auth-card { max-width: 560px; margin: 0 auto; background: var(--bg-white); padding: 32px; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center; }
.auth-card h2 { margin: 8px 0 6px; color: var(--text-dark); }
.auth-card p { color: var(--text-gray); margin: 0 0 14px; }
.auth-footer { text-align:center; margin-top:18px; font-size:14px; }
.auth-footer a { color: var(--primary); font-weight: 500; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.auth-header p { color: var(--text-gray); }
.auth-link-row { text-align: right; margin-top: 8px; }
.auth-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 14px; }
.auth-link:hover { text-decoration: underline; }
.auth-card > i { font-size: 48px; margin-bottom: 24px; }
.auth-card > i.icon-large { font-size: 42px; }
.auth-card--status { text-align: center; }
.auth-hint { font-size: 13px; color: var(--text-gray); margin-top: 8px; }
.message-box { background-color: var(--bg-gray); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius-sm); text-align: left; color: var(--text-dark); }
.password-rules { margin-top: 8px; font-size: 13px; color: var(--text-gray); }
.password-rules { text-align: left; }
.password-rules ul { list-style: none; padding-left: 0; margin: 6px 0 0; }
.password-rules .rule { color: #dc2626; transition: color 0.2s ease; }
.password-rules .rule.valid { color: #16a34a; }
.admin-profile-card { max-width: 720px; text-align: left; }
.upload-status { display: none; margin-top: 12px; }
.upload-status.is-active { display: block; }
.upload-status-text { font-size: 13px; color: var(--text-gray); margin-bottom: 6px; }
.upload-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.upload-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width 0.2s ease; }

@media (max-width: 480px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Admin user details */
.auth-header--divider { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.user-info { list-style: none; padding: 0; margin-bottom: 24px; }
.user-info li { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 0; }
.user-info .label { color: var(--text-gray); font-weight: 500; }
.user-info .value { color: var(--text-dark); font-weight: 500; }
.user-info .stack { flex-direction: column; }
.user-info .note { margin-top: 4px; font-style: italic; }

.property-badge--big { position:absolute; top:12px; left:12px; background:#dc2626; color:#fff; padding:6px 8px; border-radius:6px; font-weight:700; z-index:5; }
.property-badge--warn { position:absolute; top:12px; left:12px; background:#f97316; color:#fff; padding:6px 8px; border-radius:6px; font-weight:700; z-index:5; }
.property-map-wrap { margin-top: 12px; }
.details-list { list-style: none; padding: 0; }
.landlord-avatar { width:56px; height:56px; border-radius:50%; object-fit:cover; display:block; }

/* Admin card helpers */
.admin-column { display:grid; grid-template-columns: 1fr 320px; gap:24px; }
.admin-aside-box { border:1px solid var(--border); padding:12px; border-radius:6px; background:var(--bg-white); }

/* Global Modal Styles (moved here so showConfirm works across all pages) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.modal.is-open { display: block; }
.modal-content {
    max-width: 500px;
    margin: 10% auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.modal-header { margin-bottom: 12px; }
.modal-header h3 { font-size: 20px; font-weight: 600; color: var(--text-dark); }
.modal-body p { color: var(--text-gray); margin-bottom: 12px; }
.modal-footer { display:flex; justify-content:flex-end; gap:12px; }

/* Property details map center button */
.property-map-wrap { position: relative; }
#center-property-btn { position: absolute; right: 16px; bottom: 16px; z-index: 1100; }
#property-map { border-radius: 8px; border: 1px solid var(--border); height: 320px; }
#property-map .leaflet-container { border-radius: 8px; }

/* Additional utilities */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.nowrap { white-space: nowrap; }
.small-muted { font-size: 12px; color: var(--text-gray); }

/* Section variants */
.section-compact { padding: 20px 0; background: var(--bg-light); }
.section-white { background: var(--bg-white); }

/* Alerts (reused across pages) */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background-color: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-danger { background-color: #fef2f2; color: #dc2626; border: 1px solid #fecaca; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-danger ul { list-style: none; padding-left: 0; margin: 0; }

/* Property form (add/edit) */
.property-form-page { padding: 60px 0; background-color: var(--bg-gray); }
.property-form-page .page-card { max-width: 960px; margin: 0 auto; }
.property-form-page .page-header { text-align: center; margin-bottom: 24px; }
.property-form-page .page-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.form-section-title { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-top: 24px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-textarea { min-height: 150px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-input.invalid, .form-textarea.invalid, .form-select.invalid { border-color: #dc2626; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dark); cursor: pointer; }
.checkbox-input { width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.map-search { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.map-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.map-search button { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--primary); background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.map-search button:hover { opacity: 0.95; }
.map-wrapper #map { width: 100%; height: 220px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-gray); }
.map-error { padding: 20px; text-align: center; color: var(--text-gray); }
.map-error-small { padding: 16px; text-align: center; color: var(--text-gray); }
.map-help { font-size: 14px; color: var(--text-gray); margin: 0; }
.latlng-group.show { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { font-size: 13px; color: var(--text-gray); margin-top: 6px; }
.btn-lg { padding-top: 16px; padding-bottom: 16px; font-size: 16px; }
.btn-block { width: 100%; display: inline-block; text-align: center; }

/* Image previews */
#image-preview-container,
#current-images-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-top: 12px; }
.img-preview { position: relative; width: 100%; padding-top: 75%; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-white); }
.img-preview img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.img-preview-label { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.img-delete-label { position: absolute; bottom: 4px; left: 4px; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.8); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #dc2626; font-weight: 500; cursor: pointer; }
.img-preview--invalid { opacity: 0.9; }
.img-primary-radio { position: absolute; top: 6px; right: 6px; }
.image-status-badge { position: absolute; top: 8px; left: 8px; background: #dc2626; color: #fff; padding: 4px 6px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.add-image-btn { width: 100%; padding: 12px; border: 2px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg-light); color: var(--text-gray); font-weight: 600; cursor: pointer; transition: var(--transition); }
.add-image-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Buttons loading state */
.btn-outline.btn-loading { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-spinner { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.btn-label { color: inherit; }

/* Homepage cards helper */
.home-cta { margin-top: 16px; text-align: center; }

/* Properties list page */
.properties-page { padding: 60px 0; background-color: var(--bg-light); }
.properties-page .page-header { text-align: center; margin-bottom: 48px; }
.properties-page .page-header h1 { font-size: 36px; font-weight: 700; color: var(--text-dark); }

/* About page */
.about-page { padding: 60px 0; background-color: var(--bg-gray); }
.about-page .page-card { max-width: 880px; margin: 0 auto; background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.about-page .page-header { text-align: center; margin-bottom: 24px; }
.about-page .page-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.about-page .page-header p { color: var(--text-gray); }
.about-page .content { font-size: 15px; color: var(--text-dark); line-height: 1.6; }

/* Property details page */
.property-details-page { padding: 40px 0 60px; background-color: var(--bg-light); }
.property-details-page .details-grid { display: grid; grid-template-columns: 2.5fr 1.5fr; gap: 32px; align-items: flex-start; }
.property-details-page .property-content { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; }
.property-details-page .gallery-container { width: 100%; }
.property-details-page .gallery-main-image { width: 100%; height: 450px; background-color: var(--bg-gray); position: relative; }
.property-details-page .gallery-main-image img { width: 100%; height: 100%; object-fit: cover; }
.property-details-page .gallery-thumbnails { display: flex; gap: 8px; padding: 12px; background: var(--bg-white); overflow-x: auto; }
.property-details-page .thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; opacity: 0.7; transition: var(--transition); }
.property-details-page .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.property-details-page .thumb:hover,
.property-details-page .thumb.active { border-color: var(--primary); opacity: 1; }
.property-details-page .property-info { padding: 32px; }
.property-details-page .property-info .property-badge { position: static; display: inline-block; font-size: 13px; margin-bottom: 12px; }
.property-details-page .property-info h1 { font-size: 28px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: 8px; }
.property-details-page .property-info .property-location { font-size: 16px; margin-bottom: 24px; }
.property-details-page .property-info .property-price { font-size: 32px; margin-bottom: 24px; }
.property-details-page .section-title { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-top: 24px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.property-details-page .details-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 15px; list-style: none; padding: 0; }
.property-details-page .details-list li { display: flex; align-items: center; gap: 10px; color: var(--text-dark); }
.property-details-page .details-list li i { color: var(--primary); width: 18px; text-align: center; }
.property-details-page .property-description { color: var(--text-gray); line-height: 1.7; font-size: 15px; }
.property-details-page .sidebar-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: 24px; position: sticky; top: 100px; }
.property-details-page .landlord-info { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.property-details-page .landlord-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; }
.property-details-page .landlord-name h4 { font-size: 18px; font-weight: 600; color: var(--text-dark); }
.property-details-page .landlord-name p { font-size: 14px; color: var(--text-gray); }

.gallery-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); border: none; color: #fff; padding: 8px 10px; border-radius: 6px; z-index: 6; cursor: pointer; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-zoom { cursor: zoom-in; }
.image-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.image-modal__image { max-width: 95%; max-height: 85%; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); }
.image-modal__control { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #fff; font-size: 32px; z-index: 10001; cursor: pointer; }
.image-modal__control--prev { left: 20px; }
.image-modal__control--next { right: 20px; }

@media (max-width: 900px) {
  .property-details-page .details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .property-details-page .gallery-main-image { height: 300px; }
  .property-details-page .property-info { padding: 24px; }
  .property-details-page .details-list { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 2fr 360px; gap: 28px; align-items: start; }
.contact-layout--admin { grid-template-columns: 1fr; }
.contact-sidebar { background: var(--bg-gray); padding: 16px; border-radius: 8px; }
.contact-sidebar h4 { margin-top: 0; }
.contact-row-title { margin-top: 0; }
.contact-form { margin-top: 12px; }
.contact-admin-list { margin-top: 12px; }
.contact-empty { color: var(--text-gray); margin-top: 12px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Contact page refresh */
.contact-page { background: var(--bg-light); padding: 40px 0 60px; }
.contact-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 24px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.contact-hero-text h1 { margin: 0 0 8px 0; font-size: 32px; }
.contact-hero-text p { margin: 0 0 14px 0; color: var(--text-gray); }
.contact-hero-panel { display: grid; gap: 12px; }
.contact-info-card { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); }
.contact-info-card i { color: var(--primary); font-size: 18px; }
.contact-info-label { font-size: 12px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-pill { display: inline-flex; gap: 8px; align-items: center; background: #eef2ff; color: #1e3a8a; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.contact-grid--single { grid-template-columns: 1fr; }
.contact-card { background: var(--bg-white); padding: 24px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-card-title { margin-top: 0; }
.contact-card-subtitle { color: var(--text-gray); margin-top: 6px; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside-card { background: var(--bg-white); padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-dark); }
.contact-info-list li { display: flex; gap: 10px; align-items: center; }
.contact-info-list i { color: var(--primary); }

@media (max-width: 960px) {
  .contact-hero { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Admin property details */
.admin-section { padding: 40px 0; background: var(--bg-gray); }
.admin-card { background: var(--bg-white); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); max-width: 1000px; margin: 0 auto; }
.admin-meta { color: var(--text-gray); }
.admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.admin-aside-box { border: 1px solid var(--border); padding: 12px; border-radius: 6px; background: var(--bg-white); }
.admin-status-select { width: 100%; padding: 10px; margin-top: 8px; }
.admin-remove-reason { margin-top: 12px; }

@media (max-width: 900px) {
    .admin-card { padding: 16px; margin: 8px; }
    .admin-grid { grid-template-columns: 1fr; }
    .tabs { flex-wrap: wrap; gap: 8px; }
}

/* Admin settings: upload + pinned layout */
.upload-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.upload-card h4 { margin-top: 0; }

.pinned-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pinned-card { display: flex; gap: 12px; align-items: center; background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.pinned-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; }
.pinned-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinned-placeholder { color: var(--text-gray); }
.pinned-body { flex: 1; }
.pinned-title { font-weight: 600; margin-bottom: 4px; }
.pinned-meta { font-size: 12px; color: var(--text-gray); }

@media (max-width: 900px) {
  .upload-settings-grid { grid-template-columns: 1fr; }
}
.admin-gallery { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-gallery img { max-width: 200px; border-radius: 6px; }
.admin-approvals { min-height: calc(100vh - 144px); }
.admin-approvals .property-row { display: flex; gap: 16px; align-items: center; }
.admin-approvals .action-buttons { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.prop-thumb { width: 100px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.inline-form { display: inline-block; }
.page-empty { text-align: center; color: var(--text-gray); padding: 24px; }

/* Admin settings */
.admin-settings { padding: 60px 0; background-color: var(--bg-gray); }
.admin-settings .admin-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-width: 800px; margin: 0 auto; }
.admin-settings .tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-settings .tab { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-dark); }
.admin-settings .tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.admin-section-pane { border-top: 1px dashed var(--border); padding-top: 16px; margin-top: 16px; display: none; }
.admin-section-pane.is-visible { display: block; }
.admin-subsection { border-top: 1px dashed var(--border); padding-top: 16px; margin-top: 16px; }
.inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-row .form-input { flex: 1 1 240px; }
.logo-preview { max-width: 200px; margin-top: 8px; }
.input-360 { max-width: 360px; }
.table-td--muted { color: var(--text-gray); }
.override-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.override-table th, .override-table td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }
.override-input-120 { width: 120px; }
.override-input-140 { width: 140px; }

/* Admin dashboard */
:root {
  --admin-accent: #7c3aed;
  --accent-2: #2563eb;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --danger: #ef4444;
}
.admin-global-nav { position: fixed; left: 0; top: 72px; bottom: 0; width: 232px; background: var(--bg-white); border-right: 1px solid var(--border); padding: 18px 12px; z-index: 50; overflow-y: auto; }
.admin-global-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 18px; padding: 0 8px; }
.admin-global-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-gray); text-decoration: none; font-weight: 700; }
.admin-global-nav a:hover, .admin-global-nav a.active { background: var(--bg-gray); color: var(--text-dark); }
.admin-topbar { position: sticky; top: 72px; z-index: 45; margin-left: 232px; height: 58px; background: var(--bg-white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.admin-topbar-user { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.admin-mobile-menu { display: none; }
.admin-global-nav + .admin-topbar + main .container { padding-left: 256px; max-width: 1480px; }
.admin-section, .admin-settings { background: #f9fafb; }
[data-theme="dark"] .admin-section, [data-theme="dark"] .admin-settings { background: var(--bg-light); }
.admin-card { border-radius: 8px !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-sm) !important; }
.admin-table tbody tr:nth-child(even), .admin-list tbody tr:nth-child(even) { background: var(--bg-light); }
.admin-table th, .admin-list th { white-space: nowrap; }
.admin-approvals .property-row { background: var(--bg-white); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 12px; align-items: stretch; }
.admin-approvals .property-row .action-buttons { align-items: center; }
.admin-approvals .property-row .btn-primary, .admin-approvals .property-row .btn-outline { padding: 8px 10px; }
.admin-dashboard .admin-shell { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 28px 0; }
.admin-dashboard .admin-sidebar { background: linear-gradient(180deg, rgba(124,58,237,0.06), transparent); border-radius: 12px; padding: 16px; border: 1px solid rgba(124,58,237,0.08); height: calc(100vh - 120px); position: sticky; top: 64px; }
.admin-dashboard .admin-sidebar h4 { margin: 0 0 8px 0; color: var(--admin-accent); }
.admin-dashboard .admin-sidebar a { display: block; padding: 8px 10px; color: var(--muted); border-radius: 8px; margin-bottom: 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.admin-dashboard .admin-sidebar a.active { background: rgba(124,58,237,0.12); color: var(--admin-accent); box-shadow: 0 1px 0 rgba(0,0,0,0.04) inset; }
.admin-dashboard .stats-row { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-dashboard .stat-card { flex: 1; min-width: 180px; background: linear-gradient(90deg,#7c3aed,#2563eb); border-radius: 12px; padding: 18px; color: #fff; }
.admin-dashboard .stat-card h3 { margin: 0; font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600; }
.admin-dashboard .stat-card .big { font-size: 26px; font-weight: 700; color: #fff; margin-top: 6px; }
.admin-dashboard .charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.admin-dashboard canvas { background: #fff; border-radius: 8px; border:1px solid rgba(15,23,42,0.04); padding: 8px; height: 220px !important; }
.admin-dashboard .admin-card { background: var(--card-bg); border-radius: 12px; padding: 18px; box-shadow: 0 6px 18px rgba(15,23,42,0.03); border: 1px solid rgba(15,23,42,0.04); }
.admin-dashboard .admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-dashboard .admin-table th, .admin-dashboard .admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(15,23,42,0.04); vertical-align: middle; }
.admin-dashboard .admin-table th { background-color: rgba(15,23,42,0.02); font-weight: 700; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.admin-dashboard .status-badge { padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.admin-dashboard .status-verified { background: #ecfdf5; color: #059669; }
.admin-dashboard .action-group { display: flex; gap: 6px; align-items: center; }
.admin-dashboard .action-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.admin-dashboard .action-btn i { font-size: 14px; }
.admin-dashboard .action-btn:hover { background: rgba(15,23,42,0.04); color: #111827; }
.admin-dashboard .action-btn.btn-delete:hover { background: rgba(239,68,68,0.12); color: var(--danger); }
.admin-dashboard .action-btn.btn-suspend:hover { background: rgba(220,38,38,0.08); color:#dc2626; }
.admin-dashboard .table-empty { text-align: center; color: var(--text-gray); padding: 20px; }
.admin-dashboard .admin-card-title { margin-bottom: 12px; }
.admin-dashboard .admin-card-subtitle { margin-bottom: 8px; }

@media (max-width: 880px) {
  .admin-global-nav { width: 64px; }
  .admin-global-nav span, .admin-global-brand span { display: none; }
  .admin-topbar { margin-left: 64px; }
  .admin-global-nav + .admin-topbar + main .container { padding-left: 80px; }
  .admin-mobile-menu { display: inline-flex; }
  .admin-dashboard .admin-shell { grid-template-columns: 1fr; }
  .admin-dashboard .charts { grid-template-columns: 1fr; }
  .admin-dashboard .admin-sidebar { position: static; height: auto; display: flex; gap: 8px; overflow: auto; padding: 12px; white-space: nowrap; }
  .admin-dashboard .admin-sidebar a { display: inline-block; margin-right: 8px; }
  .admin-dashboard canvas { height: 180px !important; }
  .admin-dashboard .action-btn { width: 30px; height: 30px; font-size: 12px; }
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

/* My properties page */
.my-properties-page { padding: 60px 0; background-color: var(--bg-gray); min-height: calc(100vh - 144px); }
.my-properties-page .page-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.my-properties-page .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.data-table th { background-color: var(--bg-light); color: var(--text-gray); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.data-table td { color: var(--text-dark); font-size: 14px; }
.data-table img { width: 100px; height: 65px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-compact { padding: 6px 12px; font-size: 13px; }
.btn-disabled { opacity: 0.6; cursor: not-allowed; }
.btn-delete { background-color: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-delete:hover { background-color: #fee2e2; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-weight: 600; font-size: 12px; }
.status-pending { background-color: #fffbeb; color: #d97706; }
.status-active { background-color: #f0fdf4; color: #16a34a; }
.status-rented { background-color: #eff6ff; color: #2563eb; }
.status-inactive { background-color: #fef2f2; color: #e35959; }
.status-removed { background-color: #fef2f2; color: #f50000; }
.empty-row { text-align: center; color: var(--text-gray); padding: 24px; }
.modal-warning { color: #dc2626; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.text-dark { color: var(--text-dark); }

/* Notifications (moved from JS inline styles) */
.notification { position: fixed; top: 90px; right: 20px; padding: 16px 20px; border-radius: var(--radius-md); color: #fff; z-index: 10000; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); transform: translateX(400px); transition: transform 0.3s ease; min-width: 300px; max-width: 400px; }
.notification.show { transform: translateX(0); }
.notification-success { background: linear-gradient(135deg, #10b981, #059669); }
.notification-error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.notification-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.notification-info { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.notification i { font-size: 20px; }
.notification span { flex: 1; font-weight: 500; }
.notification-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; opacity: 0.8; transition: opacity 0.2s; }
.notification-close:hover { opacity: 1; }
@media (max-width: 768px) {
  .notification { top: 80px; right: 16px; left: 16px; min-width: auto; }
}

/* Favorites */
.property-favorite.is-favorited i { color: #ef4444; }

.property-card { position: relative; display: block; text-decoration: none; }
.property-badge--new { background: #dc2626; color: #fff; }
.district-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-gray); font-size: 12px; margin: 6px 0; }
.property-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-gray); font-size: 14px; line-height: 1.45; margin: 8px 0; }
.amenity-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.amenity-chips span { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-gray); background: var(--bg-white); }
.district-filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 18px; }
.district-chip { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text-dark); background: var(--bg-white); }
.district-chip span { color: var(--text-gray); font-size: 12px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid > div { border: 1px solid var(--border); border-radius: 8px; padding: 18px; background: var(--bg-white); }
.how-grid i { font-size: 22px; color: var(--primary); }
.detail-info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.detail-info-strip div { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--bg-white); }
.detail-info-strip strong, .detail-info-strip span { display: block; }
.detail-info-strip span { color: var(--text-gray); font-size: 13px; margin-top: 4px; }
.js-collapsible-description.is-collapsed { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.amenities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sidebar-card { position: sticky; top: 88px; }
.owner-contact-options { display: grid; gap: 10px; margin: 10px 0; }
.radio-label { display: flex; gap: 8px; align-items: center; }
.owner-account-preview { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--bg-light); }
.char-counter { text-align: right; }
.img-preview[draggable="true"] { cursor: grab; }
.submit-status { display: none; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-light); color: var(--text-dark); }
.submit-status.is-active { display: flex; }
.submit-status.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.submit-spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 999px; animation: submit-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes submit-spin { to { transform: rotate(360deg); } }
.add-property-prompt { display: none; align-items: center; justify-content: center; }
.add-property-prompt.is-visible { display: flex; }
.add-property-prompt__content { max-width: 420px; position: relative; }
.add-property-prompt__content p { font-size: 18px; line-height: 1.6; }
.add-property-prompt__content a { font-weight: 800; color: var(--primary); }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--text-gray); font-size: 28px; cursor: pointer; }

.page-banner { background: var(--bg-gray); border-bottom: 1px solid var(--border); padding: 44px 0; margin-bottom: 28px; }
.page-banner h1 { font-size: 36px; margin-bottom: 8px; }
.page-banner p { color: var(--text-gray); font-size: 18px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 24px; align-items: start; }
.modern-form { display: grid; gap: 16px; }
.modern-form label { display: grid; gap: 7px; font-weight: 700; color: var(--text-dark); }
.modern-form input:focus, .modern-form textarea:focus, .modern-form select:focus { outline: 3px solid rgba(37,99,235,.18); border-color: var(--primary); }
.contact-card, .info-card, .feedback-modern-card, .faq-section { background: var(--bg-white); border: 1px solid var(--border); border-radius: 8px; padding: 24px; box-shadow: var(--shadow-sm); }
.contact-info-stack { display: grid; gap: 14px; }
.info-card i { color: var(--primary); font-size: 22px; margin-bottom: 8px; }
.info-card h3 { margin-bottom: 4px; }
.info-card span, .info-card p { color: var(--text-gray); }
.faq-section { margin-top: 24px; }
.faq-item { border-top: 1px solid var(--border); padding: 14px 0; }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.faq-item p { color: var(--text-gray); margin-top: 8px; }
.feedback-shell { max-width: 760px; margin: 0 auto; }
.feedback-modern-card { max-width: 640px; margin: 0 auto; }
.rating-field { display: grid; gap: 8px; font-weight: 800; }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.star-rating input { position: absolute; opacity: 0; }
.star-rating label { color: var(--border); font-size: 30px; cursor: pointer; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #f59e0b; }
.feedback-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.feedback-highlights div { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: var(--bg-white); display: grid; gap: 8px; }
.feedback-highlights i { color: var(--secondary); }

@media (max-width: 820px) {
  .contact-layout, .feedback-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; }
  .detail-info-strip { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .properties-page .page-card { display: none; }
  .sidebar-card { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 24px rgba(15,23,42,.12); }
  body { padding-bottom: 74px; }
  .mobile-add-property-fab { position: fixed; right: 16px; bottom: 58px; z-index: 60; border-radius: 999px; box-shadow: var(--shadow-lg); }
  .mobile-bottom-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--bg-white); border-top: 1px solid var(--border); justify-content: space-around; padding: 8px 4px; }
  .mobile-bottom-tabs a { color: var(--text-gray); text-decoration: none; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
}

@media (min-width: 769px) {
  .mobile-add-property-fab, .mobile-bottom-tabs { display: none; }
}

/* Lazy images */
.img-lazy { opacity: 0; transition: opacity 0.3s ease; background-color: #f3f4f6; }
.img-lazy.img-lazy--loaded { opacity: 1; }

.image-selected-message { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-light); color: var(--text-dark); font-weight: 600; }
.image-simple-preview-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.image-simple-preview-container img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
}
/* === COMPLETE DARK MODE COVERAGE === */
[data-theme="dark"] body { background: var(--dm-bg-page); color: var(--dm-text-primary); }
[data-theme="dark"] a { color: #60a5fa; }
[data-theme="dark"] a:hover { color: #93c5fd; }
[data-theme="dark"] hr { border-color: var(--dm-border); }
[data-theme="dark"] ::placeholder { color: var(--dm-text-muted); opacity: 1; }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--dm-bg-input);
  border-color: var(--dm-border);
  color: var(--dm-text-primary);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: #4f6ef7;
  box-shadow: 0 0 0 3px rgba(79,110,247,0.2);
}
[data-theme="dark"] label { color: var(--dm-text-secondary); }
[data-theme="dark"] .form-text,
[data-theme="dark"] small { color: var(--dm-text-muted); }
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-outline-secondary {
  border-color: var(--dm-border);
  color: var(--dm-text-secondary);
}
[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .btn-outline-secondary:hover { background: var(--dm-bg-elevated); }
[data-theme="dark"] .btn-light {
  background: var(--dm-bg-elevated);
  color: var(--dm-text-primary);
  border-color: var(--dm-border);
}
[data-theme="dark"] .navbar,
[data-theme="dark"] header,
[data-theme="dark"] .site-header {
  background: var(--dm-bg-card) !important;
  border-bottom: 1px solid var(--dm-border);
}
[data-theme="dark"] .navbar a,
[data-theme="dark"] .nav-link,
[data-theme="dark"] header a { color: var(--dm-text-primary) !important; }
[data-theme="dark"] .dropdown-menu {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
}
[data-theme="dark"] .dropdown-item { color: var(--dm-text-primary); }
[data-theme="dark"] .dropdown-item:hover { background: var(--dm-bg-card); }
[data-theme="dark"] footer,
[data-theme="dark"] .site-footer {
  background: var(--dm-bg-card) !important;
  border-top: 1px solid var(--dm-border);
  color: var(--dm-text-secondary);
}
[data-theme="dark"] footer a { color: var(--dm-text-muted); }
[data-theme="dark"] footer a:hover { color: var(--dm-text-primary); }
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .page-card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .property-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .upload-card,
[data-theme="dark"] .pinned-card,
[data-theme="dark"] .feedback-modern-card,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .how-grid > div,
[data-theme="dark"] .detail-info-strip div,
[data-theme="dark"] .owner-account-preview,
[data-theme="dark"] .image-selected-message {
  background: var(--dm-bg-card);
  border-color: var(--dm-border);
  color: var(--dm-text-primary);
}
[data-theme="dark"] .card-header,
[data-theme="dark"] .panel-header {
  background: var(--dm-bg-elevated);
  border-bottom-color: var(--dm-border);
}
[data-theme="dark"] table { color: var(--dm-text-primary); }
[data-theme="dark"] th {
  background: var(--dm-bg-elevated);
  color: var(--dm-text-secondary);
  border-color: var(--dm-border);
}
[data-theme="dark"] td { border-color: var(--dm-border); }
[data-theme="dark"] tbody tr:nth-child(even) { background: var(--dm-bg-elevated); }
[data-theme="dark"] tbody tr:hover { background: #252838; }
[data-theme="dark"] .alert-success,
[data-theme="dark"] .flash-success { background: var(--dm-success-bg); color: var(--dm-success-text); border-color: #166534; }
[data-theme="dark"] .alert-danger,
[data-theme="dark"] .alert-error,
[data-theme="dark"] .flash-error { background: var(--dm-error-bg); color: var(--dm-error-text); border-color: #991b1b; }
[data-theme="dark"] .alert-warning,
[data-theme="dark"] .flash-warning { background: var(--dm-warning-bg); color: var(--dm-warning-text); border-color: #92400e; }
[data-theme="dark"] .alert-info,
[data-theme="dark"] .flash-info { background: var(--dm-info-bg); color: var(--dm-info-text); border-color: #1e40af; }
[data-theme="dark"] .modal-content { background: var(--dm-bg-card); border-color: var(--dm-border); }
[data-theme="dark"] .modal-header { border-bottom-color: var(--dm-border); }
[data-theme="dark"] .modal-footer { border-top-color: var(--dm-border); }
[data-theme="dark"] .modal-title { color: var(--dm-text-primary); }
[data-theme="dark"] .badge-secondary,
[data-theme="dark"] .status-pending { background: #2e2a0d; color: #fbbf24; }
[data-theme="dark"] .status-active,
[data-theme="dark"] .status-verified { background: #0d2e1a; color: #4ade80; }
[data-theme="dark"] .status-removed,
[data-theme="dark"] .status-rejected,
[data-theme="dark"] .status-suspended,
[data-theme="dark"] .status-inactive { background: #2e0d0d; color: #f87171; }
[data-theme="dark"] .status-rented { background: #0d1a2e; color: #60a5fa; }
[data-theme="dark"] .admin-sidebar {
  background: #111827;
  border-right: 1px solid var(--dm-border);
}
[data-theme="dark"] .admin-sidebar a { color: var(--dm-text-secondary); }
[data-theme="dark"] .admin-sidebar a:hover,
[data-theme="dark"] .admin-sidebar a.active {
  background: var(--dm-bg-elevated);
  color: var(--dm-text-primary);
}
[data-theme="dark"] .admin-topbar {
  background: var(--dm-bg-card);
  border-bottom: 1px solid var(--dm-border);
}
[data-theme="dark"] .admin-content { background: var(--dm-bg-page); }
[data-theme="dark"] .admin-metric-card {
  background: var(--dm-bg-card);
  border-color: var(--dm-border);
}
[data-theme="dark"] .accordion-item { background: var(--dm-bg-card); border-color: var(--dm-border); }
[data-theme="dark"] .accordion-button {
  background: var(--dm-bg-elevated);
  color: var(--dm-text-primary);
}
[data-theme="dark"] .accordion-button:not(.collapsed) { background: var(--dm-bg-card); }
[data-theme="dark"] .accordion-body { background: var(--dm-bg-card); color: var(--dm-text-secondary); }
[data-theme="dark"] .page-banner,
[data-theme="dark"] .map-wrapper,
[data-theme="dark"] .map-search,
[data-theme="dark"] .mobile-bottom-tabs,
[data-theme="dark"] .admin-table-wrapper,
[data-theme="dark"] .lang-group-header {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  color: var(--dm-text-primary);
}

/* === ADMIN LAYOUT BASE === */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.25s ease;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
}
.admin-sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--dm-border, #e5e7eb);
}
.admin-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.sidebar-logo { width: 32px; height: 32px; object-fit: contain; }
.admin-sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.admin-sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
  color: var(--text-gray);
}
.admin-sidebar-nav a i { font-size: 18px; flex-shrink: 0; }
.admin-sidebar-nav a.active { font-weight: 500; background: var(--bg-gray); color: var(--text-dark); }
.admin-sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--dm-border, #e5e7eb);
  display: flex; flex-direction: column; gap: 2px;
}
.admin-sidebar-footer a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; font-size: 14px;
  color: var(--text-gray);
}
.admin-main {
  margin-left: 240px;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  height: 60px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #e5e7eb;
}
.admin-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 20px; padding: 4px;
}
.admin-page-title {
  flex: 1; font-size: 18px; font-weight: 500; margin: 0;
}
.admin-topbar-right {
  display: flex; align-items: center; gap: 12px;
}
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  background: #e0e7ff; color: #3730a3;
}
.admin-content {
  flex: 1; padding: 24px;
}
.admin-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 99;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.admin-metric-card {
  padding: 20px; border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  background: #fff;
}
.admin-metric-card .metric-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.admin-metric-card .metric-value {
  font-size: 28px; font-weight: 500; line-height: 1;
}
.admin-metric-card .metric-label {
  font-size: 13px; margin-top: 4px;
}
.admin-table-wrapper { overflow-x: auto; border-radius: 12px; border: 0.5px solid #e5e7eb; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th {
  padding: 12px 16px; text-align: left;
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; border-bottom: 1px solid #e5e7eb;
}
.admin-table td { padding: 14px 16px; border-bottom: 0.5px solid #f3f4f6; font-size: 14px; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f9fafb; color: var(--dm-text-secondary); }
.lang-tabs {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.lang-tab {
  padding: 8px 20px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; cursor: pointer; font-size: 14px; display: flex;
  align-items: center; gap: 8px; transition: all 0.15s;
}
.lang-tab.active { background: #4f6ef7; color: #fff; border-color: #4f6ef7; }
.lang-missing-badge {
  background: #fef3c7; color: #92400e; font-size: 11px;
  padding: 2px 6px; border-radius: 4px;
}
.lang-tab.active .lang-missing-badge { background: rgba(255,255,255,0.2); color: #fff; }
.lang-search-wrap { display: flex; align-items: center; gap: 12px; }
.lang-search { flex: 1; max-width: 400px; }
.lang-count { font-size: 13px; color: #6b7280; }
.lang-group-header {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 12px 16px 6px !important;
  background: #f9fafb; color: #6b7280;
}
.lang-key {
  font-family: monospace; font-size: 12px;
  background: #f3f4f6; padding: 2px 6px; border-radius: 4px;
}
.lang-input { width: 100%; }
.lang-save-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px; font-size: 16px;
  color: #6b7280; transition: all 0.15s;
}
.lang-save-btn:hover { background: #f3f4f6; color: #111; }
[data-theme="dark"] .lang-tab { background: var(--dm-bg-card); border-color: var(--dm-border); color: var(--dm-text-primary); }
[data-theme="dark"] .lang-group-header { background: var(--dm-bg-elevated); color: var(--dm-text-muted); }
[data-theme="dark"] .lang-key { background: var(--dm-bg-elevated); color: var(--dm-text-secondary); }
[data-theme="dark"] .lang-save-btn:hover { background: var(--dm-bg-elevated); color: var(--dm-text-primary); }

@media (max-width: 1023px) {
  .admin-sidebar { width: 72px; }
  .admin-sidebar .sidebar-brand,
  .admin-sidebar-nav a span,
  .admin-sidebar-footer a span { display: none; }
  .admin-sidebar-nav a,
  .admin-sidebar-footer a { justify-content: center; padding: 12px; }
  .admin-sidebar-header { padding: 16px 8px; justify-content: center; }
  .sidebar-logo { margin: 0; }
  .admin-main { margin-left: 72px; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 240px;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar .sidebar-brand,
  .admin-sidebar-nav a span,
  .admin-sidebar-footer a span { display: inline; }
  .admin-sidebar-nav a,
  .admin-sidebar-footer a { justify-content: flex-start; padding: 10px 12px; }
  .admin-overlay.open { display: block; }
  .admin-hamburger { display: flex; align-items: center; }
  .admin-main { margin-left: 0; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 16px; }
  .admin-user-info span { display: none; }
}