/* ===== CSS Variables ===== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #2d6a4f;
    --secondary-light: #40916c;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --danger: #e74c3c;
    --danger-light: #fde8e8;
    --warning: #f39c12;
    --warning-light: #fff3cd;
    --info: #3498db;
    --info-light: #d1ecf1;
    --success: #27ae60;
    --success-light: #d4edda;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --header-height: 64px;
    --transition: all 0.3s ease;
    --font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

/* ===== Header / Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-brand {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.site-title-text {
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

.user-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.user-name {
    font-size: 0.9rem;
    color: var(--text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.6rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    z-index: 999;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.dropdown-item-danger:hover {
    color: var(--danger);
}

.dropdown-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

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

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    z-index: 998;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.mobile-nav-menu li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    color: var(--text);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.mobile-action-link {
    display: block;
    padding: 12px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.mobile-action-danger {
    color: var(--danger);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
    gap: 6px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #c0392b;
    color: #ffffff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Homepage Layout (Sidebar + Main) ===== */
.homepage-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1024px) {
    .homepage-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    .announcements-sidebar {
        order: -1;
    }
}

/* ===== Announcements Sidebar ===== */
.announcements-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 16px);
    max-height: calc(100vh - var(--header-height, 64px) - 32px);
    overflow-y: auto;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px 14px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}

.sidebar-title-icon {
    font-size: 1.15rem;
}

.announcement-list {
    padding: 10px;
}

.ann-card {
    position: relative;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid;
    background: #fafafa;
    transition: box-shadow 0.2s;
}

.ann-card:last-child {
    margin-bottom: 0;
}

.ann-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ann-card--info {
    border-left-color: var(--info, #3498db);
    background: #f0f7fc;
}

.ann-card--warning {
    border-left-color: var(--warning, #f39c12);
    background: #fef9ed;
}

.ann-card--success {
    border-left-color: var(--success, #27ae60);
    background: #f0faf4;
}

.ann-card--urgent {
    border-left-color: var(--danger, #e74c3c);
    background: #fdf0f0;
}

.ann-pin {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    line-height: 1;
}

.ann-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    color: #fff;
}

.ann-type-badge--info { background: var(--info, #3498db); }
.ann-type-badge--warning { background: var(--warning, #f39c12); }
.ann-type-badge--success { background: var(--success, #27ae60); }
.ann-type-badge--urgent { background: var(--danger, #e74c3c); }

.ann-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.4;
}

.ann-content {
    font-size: 0.8rem;
    color: var(--text-light, #666);
    line-height: 1.6;
    margin-bottom: 4px;
}

.ann-content p {
    margin: 0 0 4px;
}

.ann-content p:last-child {
    margin-bottom: 0;
}

.ann-date {
    font-size: 0.7rem;
    color: #aaa;
}

.ann-empty {
    padding: 24px 16px;
    text-align: center;
    color: #bbb;
    font-size: 0.85rem;
}

/* Legacy banner (keep for backward compat but hide) */
.announcement-banner {
    display: none;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #8b7cf7 50%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="80" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="20" r="50" fill="rgba(255,255,255,0.04)"/></svg>');
    background-size: 400px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
}

.hero-search-fields {
    display: flex;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search-select {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--card-bg);
    appearance: none;
    cursor: pointer;
    border-right: 1px solid var(--border-light);
}

.hero-search-select:focus {
    outline: none;
    background: var(--bg);
}

.hero-search-btn {
    border-radius: 0;
    padding: 14px 28px;
    white-space: nowrap;
}

/* ===== Listing Filters ===== */
.listing-filters {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 140px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--card-bg);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    min-width: auto;
}

.btn-filter {
    padding: 10px 20px;
}

.btn-filter-reset {
    padding: 10px 16px;
    color: var(--text-light);
    border-color: var(--border);
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.section-more {
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.section-more:hover {
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

/* ===== Listing Grid ===== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== Listing Card ===== */
.listing-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.listing-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: var(--bg);
}

.listing-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.listing-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e6ff 0%, #d4d0ff 100%);
    color: var(--primary-light);
}

.placeholder-text {
    font-size: 0.9rem;
}

.listing-card-body {
    padding: 14px 16px;
}

.listing-card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.listing-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.listing-card-address {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-card-size {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.listing-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.listing-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.6;
}

.badge-area {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.badge-type {
    background: rgba(45, 106, 79, 0.1);
    color: var(--secondary);
}

.badge-contract {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.badge-role {
    background: var(--primary);
    color: #ffffff;
}

.badge-status {
    font-size: 0.8rem;
}

.badge-publish {
    background: var(--success-light);
    color: var(--success);
}

.badge-pending {
    background: var(--warning-light);
    color: #856404;
}

.badge-draft {
    background: var(--bg);
    color: var(--text-muted);
}

/* ===== Load More ===== */
.load-more-wrap {
    text-align: center;
    margin: 20px 0 40px;
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stats-section .stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: var(--radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.stats-tagline {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

.pagination .nav-links {
    display: flex;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ===== Page Header ===== */
.page-header {
    padding: 30px 0 20px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.page-content {
    padding: 20px 0 40px;
}

/* ===== Single Listing ===== */
.single-listing-page {
    padding: 20px 0 60px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 12px 0;
}

.breadcrumb a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text);
}

.single-listing-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.listing-header {
    margin-bottom: 20px;
}

.listing-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.listing-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.listing-gallery {
    margin-bottom: 24px;
}

.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

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

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: linear-gradient(135deg, #e8e6ff 0%, #d4d0ff 100%);
    border-radius: var(--radius);
    color: var(--primary-light);
    font-size: 1rem;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    border: 3px dashed var(--primary-light);
    border-radius: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-price-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.listing-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
}

.listing-size {
    font-size: 1rem;
    color: var(--text-light);
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

.listing-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.price-value {
    color: var(--secondary);
    font-weight: 700;
}

.listing-description {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.description-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.description-content p {
    margin-bottom: 0.8em;
}

.listing-map-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.map-placeholder {
    height: 250px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-notice {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.listing-contact-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    font-size: 0.95rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text);
}

.contact-value {
    color: var(--text-light);
}

.contact-empty {
    color: var(--text-muted);
    font-style: italic;
}

.btn-send-msg {
    margin-top: 12px;
    align-self: flex-start;
}

.contact-login-prompt {
    text-align: center;
    padding: 20px 0;
}

.contact-login-prompt p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* Sidebar */
.listing-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.landlord-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.landlord-avatar {
    margin-bottom: 12px;
}

.landlord-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto;
}

.landlord-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.landlord-since {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.landlord-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.related-listings {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.sidebar-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.related-listing-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.related-listing-item:hover {
    color: var(--primary);
}

.related-thumb {
    flex: 0 0 70px;
    height: 50px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: var(--bg);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e6ff, #d4d0ff);
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

.no-related {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

/* ===== Dashboard ===== */
.dashboard-page {
    padding: 20px 0 60px;
}

.dashboard-welcome {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 30px;
    margin-bottom: 24px;
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-avatar img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
}

.welcome-text h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stats .stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}

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

.dashboard-stats .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tabs */
.dashboard-tabs {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    padding: 0 20px;
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panels {
    padding: 24px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 1.25rem;
}

/* Listing table */
.listing-table-wrap {
    overflow-x: auto;
}

.listing-table {
    width: 100%;
    border-collapse: collapse;
}

.listing-table th,
.listing-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.listing-table th {
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg);
    white-space: nowrap;
}

.listing-table td a {
    color: var(--primary);
}

.listing-table td a:hover {
    text-decoration: underline;
}

.price-cell {
    font-weight: 600;
    color: var(--secondary);
}

.actions-cell {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

/* Messages preview */
.messages-preview {
    min-height: 100px;
    margin-bottom: 16px;
}

/* ===== Auth Pages ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-link {
    color: var(--primary);
    font-weight: 500;
}

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

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer p {
    margin: 0;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.required {
    color: var(--danger);
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-control:read-only {
    background: var(--bg);
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row-between {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 24px 0;
}

.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.form-actions {
    text-align: center;
    padding-top: 16px;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.form-message.success {
    background: var(--success-light);
    color: #155724;
}

.form-message.error {
    background: var(--danger-light);
    color: #721c24;
}

/* Input group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Role select */
.role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-option {
    cursor: pointer;
}

.role-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}

.role-option input:checked + .role-card {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.04);
}

.role-icon {
    font-size: 1.5rem;
}

.role-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.role-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== File Upload ===== */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.02);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.upload-icon::before,
.upload-icon::after {
    content: '';
    position: absolute;
    background: var(--border);
}

.upload-icon::before {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.upload-icon::after {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.file-upload-prompt p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.file-preview {
    text-align: center;
}

.file-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
}

/* ===== Messages Page ===== */
.messages-page {
    padding: 20px 0 60px;
}

.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 500px;
}

.conversations-sidebar {
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    max-height: 600px;
}

.conversations-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.conversations-header h3 {
    font-size: 1rem;
    margin: 0;
}

.conversations-list {
    padding: 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover,
.conversation-item.active {
    background: var(--bg);
}

.conversation-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.conversation-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.message-panel {
    display: flex;
    flex-direction: column;
}

.message-panel-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-panel-header h3 {
    font-size: 1rem;
    margin: 0;
}

.back-to-list {
    display: none;
}

.message-thread {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 440px;
}

.message-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    padding: 40px 0;
}

.message-bubble {
    max-width: 70%;
    margin-bottom: 16px;
    clear: both;
}

.message-bubble.sent {
    margin-left: auto;
}

.message-bubble.received {
    margin-right: auto;
}

.message-bubble-content {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.message-bubble.sent .message-bubble-content {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message-bubble.received .message-bubble-content {
    background: var(--bg);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.message-bubble-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.message-bubble.sent .message-bubble-time {
    text-align: right;
}

.message-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.message-input-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input-wrap textarea {
    flex: 1;
    resize: none;
}

.btn-send {
    flex-shrink: 0;
    align-self: flex-end;
}

/* ===== Submit Listing Page ===== */
.submit-listing-page {
    padding: 20px 0 60px;
}

.submit-listing-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* ===== Notice ===== */
.notice {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.notice-warning {
    background: var(--warning-light);
    color: #856404;
    border: 1px solid #ffc107;
}

/* ===== Footer ===== */
.site-footer {
    background: #2d2d3d;
    color: #cccccc;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaaaaa;
}

.footer-brand {
    margin-top: 16px;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    font-size: 0.9rem;
    color: #aaaaaa;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact .contact-label {
    color: #ffffff;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: #888888;
    margin: 0;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    max-width: 380px;
    min-width: 280px;
}

.toast-success {
    background: var(--success);
    color: #ffffff;
}

.toast-error {
    background: var(--danger);
    color: #ffffff;
}

.toast-info {
    background: var(--info);
    color: #ffffff;
}

.toast-warning {
    background: var(--warning);
    color: #ffffff;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    margin-left: auto;
    padding: 0;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg);
    position: relative;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-radius: 6px;
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 16px;
    background: var(--border);
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}

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

.modal-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.modal-body {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== Archive Page ===== */
.archive-listing-page {
    padding: 0 0 40px;
}

/* ===== Posts (index fallback) ===== */
.posts-list .post-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 16px;
}

.posts-list .post-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.posts-list .post-title a {
    color: var(--text);
    transition: var(--transition);
}

.posts-list .post-title a:hover {
    color: var(--primary);
}

.posts-list .post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.posts-list .post-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Settings form */
.settings-form h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .single-listing-layout {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-grid .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-search-fields {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .hero-search-select {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .hero-search-btn {
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stats-section {
        padding: 40px 0;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .dashboard-stats .stat-card {
        padding: 16px 12px;
    }

    .dashboard-stats .stat-number {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-half {
        flex: none;
        width: 100%;
    }

    /* Messages page responsive */
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .conversations-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        max-height: none;
    }

    .conversations-sidebar.hidden {
        display: none;
    }

    .back-to-list {
        display: inline-flex;
    }

    .message-panel.hidden {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid .footer-col:first-child {
        grid-column: auto;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .submit-listing-form {
        padding: 20px;
    }

    .listing-sidebar {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .listing-table th,
    .listing-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .role-select {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .role-card {
        padding: 14px 10px;
    }
}

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

    .listing-card-title {
        font-size: 0.95rem;
    }

    .listing-card-price {
        font-size: 1rem;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}
