/* ============================================================
   COLOCQUÉBEC — Feuille de style principale
   Design: Chaleureux, moderne, accessible, mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
    --primary:      #E8603C;
    --primary-dark: #C94E2B;
    --primary-light:#FFF0EC;
    --accent:       #3B82B4;
    --accent-light: #EBF4FB;
    --success:      #27AE60;
    --warning:      #F59E0B;
    --danger:       #E53E3E;
    --text:         #1A1A2E;
    --text-muted:   #6B7280;
    --border:       #E5E7EB;
    --bg:           #FAFAF8;
    --white:        #FFFFFF;
    --card-shadow:  0 2px 12px rgba(0,0,0,.07);
    --card-hover:   0 8px 30px rgba(0,0,0,.12);
    --radius:       14px;
    --radius-sm:    8px;
    --font-head:    'Sora', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --max-width:    1160px;
    --transition:   .2s ease;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.25; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}
.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -.5px;
    white-space: nowrap;
}
.logo span { color: var(--text); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav .btn-nav-post {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 50px;
}
.nav .btn-nav-post:hover { background: var(--primary-dark); }

/* Hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
    margin-top: auto;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 10px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.55); margin-bottom: 8px; font-size: .88rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: .93rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,96,60,.3); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #2d6d9e; color: var(--white); }
.btn-gray { background: var(--border); color: var(--text-muted); }
.btn-gray:hover { background: #d1d5db; color: var(--text); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { font-size: .82rem; padding: 7px 15px; }
.btn-lg { font-size: 1.05rem; padding: 14px 30px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Formulaires ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
    width: 100%;
    padding: 11px 16px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,96,60,.12);
}
.form-control::placeholder { color: #adb5bd; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; appearance: none; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: 5px; }

/* Checkbox / Radio custom */
.check-group { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-group input[type=checkbox], .check-group input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ── Alertes / Flash ─────────────────────────────────────── */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: #f0fdf4; border-color: var(--success); color: #166534; }
.alert-danger   { background: #fef2f2; border-color: var(--danger);  color: #991b1b; }
.alert-warning  { background: #fffbeb; border-color: var(--warning); color: #92400e; }
.alert-info     { background: var(--accent-light); border-color: var(--accent); color: #1e40af; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--card-hover); }
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); font-weight: 600; }

/* ── Hero (accueil) ──────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #2d2d4e 60%, #3a2640 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 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.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; text-align: center; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p {
    color: rgba(255,255,255,.7);
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 56px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; color: var(--white); }
.hero-stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary); }
.hero-stat .label { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 2px; }

/* ── Barre de recherche ──────────────────────────────────── */
.search-bar {
    background: var(--white);
    border-radius: 60px;
    box-shadow: 0 4px 30px rgba(0,0,0,.15);
    padding: 8px 8px 8px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 0;
    position: relative;
    z-index: 2;
}
.search-bar select, .search-bar input[type=text] {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: transparent;
    flex: 1;
    min-width: 0;
}
.search-bar select { max-width: 180px; cursor: pointer; }
.search-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* ── Grid listings ───────────────────────────────────────── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.listing-card { cursor: pointer; position: relative; }
.listing-card .badge-type {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    background: var(--primary);
    color: var(--white);
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 50px;
}
.listing-card .badge-type.cherche { background: var(--accent); }
.listing-card .listing-img {
    height: 200px;
    background: #e8e8e8;
    position: relative;
    overflow: hidden;
}
.listing-card .listing-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.listing-card:hover .listing-img img { transform: scale(1.04); }
.listing-card .listing-img .no-photo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    font-size: 3rem;
}
.listing-info { padding: 18px 20px 20px; }
.listing-price {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.listing-price small { font-size: .7rem; font-weight: 400; color: var(--text-muted); }
.listing-title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; color: var(--text); line-height: 1.35; }
.listing-location { font-size: .84rem; color: var(--text-muted); margin-bottom: 12px; }
.listing-location svg { vertical-align: middle; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
    font-size: .75rem;
    padding: 3px 9px;
    border-radius: 50px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.tag.green { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.tag.blue  { background: var(--accent-light); color: #1e40af; border-color: #bfdbfe; }
.listing-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.listing-avatar { display: flex; align-items: center; gap: 8px; }
.listing-avatar img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.listing-avatar .ava-initials {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.listing-avatar span { font-size: .82rem; color: var(--text-muted); }
.btn-fav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ccc;
    transition: color var(--transition), transform var(--transition);
    padding: 4px;
}
.btn-fav:hover, .btn-fav.active { color: var(--danger); transform: scale(1.2); }

/* ── Page listing détail ─────────────────────────────────── */
.listing-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
.gallery { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.gallery-main { height: 400px; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; padding: 8px; background: var(--white); }
.gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .7; transition: opacity var(--transition); }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--primary); }
.detail-section { margin-bottom: 32px; }
.detail-section h3 { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.specs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.spec-item { display: flex; gap: 10px; align-items: center; }
.spec-icon { font-size: 1.3rem; flex-shrink: 0; }
.spec-label { font-size: .8rem; color: var(--text-muted); }
.spec-value { font-weight: 600; font-size: .95rem; }
.contact-card { position: sticky; top: 88px; }
.contact-card .card-body { padding: 28px; }
.contact-card .price-big { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary); }

/* ── Filtres sidebar ──────────────────────────────────────── */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filter-panel { position: sticky; top: 88px; }
.filter-panel .card-body { padding: 22px; }
.filter-panel h3 { font-size: 1rem; margin-bottom: 18px; font-weight: 700; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group label { font-size: .85rem; font-weight: 600; margin-bottom: 10px; display: block; }
.price-range-row { display: flex; gap: 10px; align-items: center; }
.price-range-row input { width: calc(50% - 14px); }
.price-range-row span { color: var(--text-muted); font-size: .85rem; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: .9rem; color: var(--text-muted); }
.sort-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px; font-size: .88rem; outline: none; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%); }
.auth-card { width: 100%; max-width: 480px; }
.auth-card .card-body { padding: 40px; }
.auth-title { font-size: 1.8rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: .93rem; }
.auth-divider { text-align: center; margin: 22px 0; color: var(--text-muted); font-size: .85rem; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--white); padding: 0 14px; position: relative; }
.auth-footer { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--text-muted); }

/* ── Profil ───────────────────────────────────────────────── */
.profile-header {
    background: linear-gradient(135deg, var(--text) 0%, #2d3748 100%);
    padding: 50px 0;
    color: var(--white);
}
.profile-info { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; }
.profile-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.2);
}
.profile-avatar-initials {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    border: 4px solid rgba(255,255,255,.2);
}
.profile-meta h1 { color: var(--white); font-size: 1.8rem; }
.profile-meta .member-since { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 4px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge {
    font-size: .75rem;
    padding: 4px 11px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: .3px;
}
.badge-verified { background: rgba(39,174,96,.2); color: #27AE60; }
.badge-active   { background: rgba(59,130,180,.2); color: var(--accent); }

/* ── Admin ────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 68px); }
.admin-sidebar {
    background: var(--text);
    padding: 30px 0;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
}
.admin-sidebar .sidebar-title { color: rgba(255,255,255,.35); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; padding: 0 20px 10px; font-weight: 700; }
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.65);
    padding: 10px 20px;
    font-size: .9rem;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--white);
    background: rgba(255,255,255,.07);
    border-left-color: var(--primary);
}
.admin-content { padding: 36px; background: var(--bg); }
.admin-page-title { font-size: 1.6rem; margin-bottom: 28px; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.stat-card .stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.data-table th { background: #f8f9fa; padding: 12px 16px; text-align: left; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 16px; font-size: .88rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.status-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}
.status-active   { background: #dcfce7; color: #166534; }
.status-pending  { background: #fef9c3; color: #854d0e; }
.status-suspended{ background: #fee2e2; color: #991b1b; }
.status-inactive { background: #f3f4f6; color: #6b7280; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Upload photo ─────────────────────────────────────────── */
.photo-upload-wrap {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
    position: relative;
}
.photo-upload-wrap:hover, .photo-upload-wrap.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}
.photo-upload-wrap input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.photo-upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.photo-upload-wrap p { color: var(--text-muted); font-size: .88rem; }
.photo-preview-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.photo-preview { width: 90px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; border: 2px solid var(--border); }

/* ── Messages ─────────────────────────────────────────────── */
.inbox-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; min-height: 500px; }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; }
.inbox-item { padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.inbox-item:hover, .inbox-item.active { background: var(--primary-light); }
.inbox-item .name { font-weight: 600; font-size: .9rem; }
.inbox-item .preview { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.inbox-item .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.inbox-thread { padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.msg-bubble { max-width: 70%; }
.msg-bubble .bubble-inner { padding: 12px 16px; border-radius: 16px; font-size: .9rem; }
.msg-me .bubble-inner { background: var(--primary); color: var(--white); margin-left: auto; border-radius: 16px 16px 4px 16px; }
.msg-them .bubble-inner { background: var(--bg); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; }
.msg-meta { font-size: .73rem; color: var(--text-muted); margin-top: 5px; }
.msg-me .msg-meta { text-align: right; }

/* ── Page title ───────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--text) 0%, #2d3748 100%);
    padding: 48px 0;
    color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: 2rem; }
.page-hero p { color: rgba(255,255,255,.65); margin-top: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); }

/* ── Notifications ─────────────────────────────────────────── */
.notif-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    background: var(--danger);
    color: var(--white);
    font-size: .65rem;
    font-weight: 700;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Honeypot antibot (caché) ─────────────────────────────── */
.hp-field { display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; }

/* ── Utilitaires ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.mt-0  { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-0  { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.fw-600 { font-weight: 600; }
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .listing-detail-grid { grid-template-columns: 1fr; }
    .contact-card { position: static; }
    .search-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; padding: 16px; gap: 4px; }
    .admin-sidebar a { border-left: none; border-radius: var(--radius-sm); }
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.1); gap: 4px; }
    .nav.open { display: flex; }
    .nav a { padding: 10px 14px; width: 100%; }
    .hamburger { display: flex; }
    .site-header { position: sticky; }
    .hero { padding: 60px 0 70px; }
    .hero h1 { font-size: 2rem; }
    .search-bar { flex-direction: column; border-radius: var(--radius); padding: 14px; gap: 8px; }
    .search-bar select, .search-bar input { max-width: 100%; }
    .search-sep { display: none; }
    .listings-grid { grid-template-columns: 1fr; }
    .auth-card .card-body { padding: 28px 22px; }
    .inbox-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .specs-grid { grid-template-columns: 1fr; }
    .profile-info { flex-direction: column; }
    .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .admin-content { padding: 20px; }
}
