/* Front site — real estate identity (#1a3c5e), aligned with admin spirit */

:root {
    --primary: #1a3c5e;
    --primary-hover: #14324d;
    --primary-soft: rgba(26, 60, 94, 0.08);
    --bg: #f0f4f8;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(26, 60, 94, 0.07);
    --shadow-hover: 0 12px 40px rgba(26, 60, 94, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --rent: #15803d;
    --rent-bg: #dcfce7;
    --sale: #ea580c;
    --sale-bg: #ffedd5;
    --whatsapp: #128c7e;
    --whatsapp-hover: #0d6f64;
    --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, Tahoma, sans-serif;
    line-height: 1.55;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ——— Header ——— */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(26, 60, 94, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--transition), transform var(--transition);
}

.logo:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.logo__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--primary), #2a5580);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(26, 60, 94, 0.25);
}

.logo__text { line-height: 1.2; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.site-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.lang-switch {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-soft);
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        align-items: stretch;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 0.65rem 1rem; }
}

.site-main {
    padding-block: 2rem 3rem;
    flex: 1;
}

/* ——— Footer ——— */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.88);
    margin-top: auto;
}

.site-footer__inner {
    padding: 2.5rem 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: start;
}

.site-footer__brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer__brand i { opacity: 0.9; }

.site-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 280px;
}

.site-footer__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.85rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--transition);
}

.site-footer__links a:hover { color: #fff; }

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ——— Alerts ——— */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ——— Page title ——— */
.page-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.page-lead {
    margin: -0.75rem 0 1.5rem;
    color: var(--muted);
    font-size: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* ——— Filters card ——— */
.filters-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.45s ease both;
}

.filters-card__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.filters-card__head i { font-size: 1.1rem; opacity: 0.9; }

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

.filters-card__field label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.filters-card__field label i {
    color: var(--primary);
    opacity: 0.75;
    width: 1rem;
    text-align: center;
}

.filters-card select,
.filters-card input[type="number"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--bg-soft);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filters-card select:focus,
.filters-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.filters-card__reset {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ——— Property grid cards ——— */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.property-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeUp 0.5s ease both;
}

.property-card:nth-child(2) { animation-delay: 0.05s; }
.property-card:nth-child(3) { animation-delay: 0.1s; }
.property-card:nth-child(4) { animation-delay: 0.15s; }
.property-card:nth-child(5) { animation-delay: 0.2s; }

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

.property-card[data-hidden="1"] { display: none; }

.property-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--border);
    overflow: hidden;
}

.property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card__img {
    transform: scale(1.04);
}

.property-card__badges {
    position: absolute;
    inset-inline-start: 0.75rem;
    inset-block-start: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 2;
}

.property-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.property-badge--type {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.property-badge--rent {
    background: var(--rent-bg);
    color: var(--rent);
    border: 1px solid #bbf7d0;
}

.property-badge--sale {
    background: var(--sale-bg);
    color: var(--sale);
    border: 1px solid #fed7aa;
}

.property-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.property-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    line-height: 1.35;
}

.property-card__meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.property-card__meta i { color: var(--primary); opacity: 0.6; font-size: 0.85rem; }

.property-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
    padding-top: 0.35rem;
}

.property-card__link {
    margin-top: 0.85rem;
    justify-content: center;
    gap: 0.5rem;
}

[dir="rtl"] .property-card__link .fa-chevron-right {
    transform: scaleX(-1);
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 60, 94, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(26, 60, 94, 0.28);
}

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

.btn-ghost:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.btn-block { width: 100%; }

.btn-lg {
    padding: 0.85rem 1.35rem;
    font-size: 1rem;
    border-radius: 12px;
    gap: 0.55rem;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    color: #fff;
}

.btn-call {
    background: #2563eb;
    color: #fff;
}

.btn-call:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

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

/* ——— Property detail ——— */
.property-detail {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeUp 0.45s ease both;
}

.property-gallery {
    background: #0f172a;
}

.property-gallery__main {
    aspect-ratio: 21 / 10;
    max-height: 480px;
    overflow: hidden;
}

.property-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    background: rgba(0, 0, 0, 0.35);
}

.property-gallery__thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: 0.75;
    transition: opacity var(--transition), border-color var(--transition);
}

.property-gallery__thumb:hover,
.property-gallery__thumb.is-active {
    opacity: 1;
    border-color: #fff;
}

.property-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-detail__content {
    padding: 1.75rem 1.5rem 2rem;
}

.property-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.property-detail__badges .property-badge {
    text-transform: none;
    font-size: 0.8rem;
    letter-spacing: 0;
    box-shadow: none;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.property-spec {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.property-spec__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.property-spec__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.property-spec__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.property-info-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.property-info-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 1rem;
}

.property-info-section__title i { opacity: 0.85; }

.property-description {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.property-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.property-detail__actions .btn-lg { min-width: 160px; }

[dir="rtl"] .property-detail__actions .fa-arrow-left-long {
    transform: scaleX(-1);
}

/* ——— Auth pages ——— */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 2rem;
    min-height: calc(100vh - 200px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem 1.75rem;
    animation: fadeUp 0.45s ease both;
}

.auth-card__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card__logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--primary), #2a5580);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 20px rgba(26, 60, 94, 0.25);
}

.auth-card__logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.auth-card .page-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.auth-card__footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.92rem;
}

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

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

/* ——— Forms ——— */
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem;
    max-width: 480px;
    margin-inline: auto;
}

.form-card.form-wide {
    max-width: 720px;
}

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

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.form-section__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 1.15rem;
}

.form-section__title i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.form-section legend.form-section__title {
    width: 100%;
    padding: 0;
    margin: 0 0 1.15rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon > i {
    position: absolute;
    inset-inline-start: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--bg-soft);
    transition: border-color var(--transition), box-shadow var(--transition);
}

[dir="rtl"] .input-with-icon input,
[dir="rtl"] .input-with-icon textarea {
    padding: 0.65rem 2.65rem 0.65rem 1rem;
}

[dir="rtl"] .input-with-icon > i {
    inset-inline-start: auto;
    inset-inline-end: 1rem;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group input:not(.input-with-icon input),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--bg-soft);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group textarea { min-height: 100px; resize: vertical; }

/* Dropzone */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.drop-zone.is-dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.drop-zone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.drop-zone__icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.65;
    margin-bottom: 0.5rem;
}

.drop-zone__text {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.drop-zone__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.drop-zone__files {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: start;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.drop-zone__files li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
}

.form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ——— User dashboard (front) ——— */
.user-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeUp 0.4s ease both;
}

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

.user-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    background: var(--primary-soft);
}

.user-stat-card--pending .user-stat-card__icon {
    color: #b45309;
    background: #fffbeb;
}

.user-stat-card--approved .user-stat-card__icon {
    color: var(--rent);
    background: var(--rent-bg);
}

.user-stat-card--rejected .user-stat-card__icon {
    color: #dc2626;
    background: #fef2f2;
}

.user-stat-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.user-stat-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.2rem;
}

.user-listing-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    align-items: start;
    transition: box-shadow var(--transition), transform var(--transition);
    animation: fadeUp 0.45s ease both;
}

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

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

.user-listing-card__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--border);
}

.user-listing-card__placeholder {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: 140px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.75rem;
}

.user-listing-card__body { min-width: 0; }

.user-listing-card__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.user-listing-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.user-listing-card__meta span { display: block; }
.user-listing-card__meta strong { color: var(--text); font-weight: 600; }

.user-listing-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.user-listing-card__delete-form { display: inline; margin: 0; }

/* Badges (user dashboard status) */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-approved {
    background: var(--rent-bg);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Legacy dashboard-card class names — map to new or keep for backwards compat */
.dashboard-cards { display: flex; flex-direction: column; gap: 0; }

.error-page-actions {
    margin-top: 1.5rem;
}
