:root {
    --red: #EF233C;
    --red-dark: #D90429;
    --navy: #2B2D42;
    --navy-light: #8D99AE;
    --yellow: #FFD166;
    --yellow-bright: #FFE066;
    --white: #FFFFFF;
    --bg: #FAFAFA;
    --text: #1A1A1A;
    --text-light: #6C757D;
    --radius-pill: 50px;
    --radius-card: 20px;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --font: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.main-header { background: var(--white); padding: 12px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 50px; width: auto; }
.logo-text { font-size: 28px; font-weight: 800; color: var(--red); letter-spacing: -1px; }

.nav-pills { display: flex; gap: 12px; }
.nav-pills a {
    background: linear-gradient(135deg, var(--navy), var(--red-dark));
    color: var(--white);
    padding: 10px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.25);
}
.nav-pills a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 35, 60, 0.4); }
.nav-pills a.active { background: linear-gradient(135deg, var(--red), var(--red-dark)); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--transition); }

/* Mobile Drawer */
.mobile-drawer { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--white); z-index: 1002; transition: right 0.4s var(--transition); box-shadow: -10px 0 40px rgba(0,0,0,0.15); padding-top: 20px; }
.mobile-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #eee; font-weight: 700; font-size: 20px; color: var(--red); }
.drawer-header button { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); }
.mobile-drawer nav { display: flex; flex-direction: column; padding: 24px; gap: 8px; }
.mobile-drawer a { padding: 14px 20px; border-radius: var(--radius-pill); font-weight: 600; text-align: center; background: var(--bg); color: var(--navy); transition: var(--transition); }
.mobile-drawer a:hover, .mobile-drawer a.active { background: var(--red); color: var(--white); }
.drawer-admin { margin-top: 16px; background: var(--navy) !important; color: var(--white) !important; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

/* =============================================
   HERO SECTION — Style Loolah Modern
   ============================================= */
.hero-loolah {
    background: linear-gradient(135deg, var(--navy) 0%, #1a1c2e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Grille Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Contenu Texte */
.hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Boutons Hero */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-hero.primary {
    background: #fff;
    color: var(--navy);
}
.btn-hero.primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 35, 60, 0.4);
}

.btn-hero.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-hero.secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Image Hero avec effet 3D léger */
/* =============================================
   HERO SLIDER AUTOMATIQUE
   ============================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Indicateurs (dots) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-slider {
        height: 300px;
        order: -1;
    }
    .slider-dots {
        bottom: 12px;
    }
}

.hero-visual img {
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-visual img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Responsive Mobile */
@media (max-width: 900px) {
    .hero-loolah { padding: 48px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero-text p { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-visual img { 
        max-width: 85%; 
        transform: none; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.2); 
    }
}
/* ========== SECTION TITLE ========== */
.section-title { text-align: center; margin: 48px 0 32px; }
.section-title .badge-red { display: inline-block; background: var(--red); color: var(--white); padding: 10px 40px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; letter-spacing: 0.5px; margin-bottom: 24px; }
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--navy); }

/* ========== CARDS GRID ========== */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding: 0 0 64px; }
.card{
    box-shadow: 5px 5px 5px orangered !important;
}
.card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }

.card-image-wrap { position: relative; height: 220px; overflow: hidden; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-image-wrap img { transform: scale(1.08); }

.card-badge { position: absolute; top: 16px; left: 16px; background: var(--red); color: var(--white); padding: 6px 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.card-badge.location { background: var(--navy); }

.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card-meta { display: flex; gap: 16px; color: var(--text-light); font-size: 13px; margin-bottom: 12px; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-price { font-size: 22px; font-weight: 700; color: var(--red); }
.card-price small { font-size: 14px; font-weight: 400; color: var(--text-light); }

.card-status { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.card-status.dispo { background: #E8F5E9; color: #2E7D32; }
.card-status.occupe { background: #FFEBEE; color: #C62828; }

/* ========== SERVICES ========== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding: 0 0 64px; }
.service-card { background: var(--white); border-radius: var(--radius-card); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; }
.service-card:hover { border-color: var(--red); transform: translateY(-6px); }
.service-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(239,35,60,0.3); }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ========== CONTACT ========== */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 0 0 64px; }
.contact-form-wrapper { background: var(--white); border-radius: var(--radius-card); padding: 36px; box-shadow: var(--shadow); }
.contact-form-wrapper h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form label span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 18px; border: 2px solid #E0E0E0; border-radius: var(--radius-pill); font-size: 15px; font-family: var(--font); transition: var(--transition); background: var(--bg); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(239,35,60,0.1); background: var(--white); }
.contact-form textarea { border-radius: 20px; resize: vertical; min-height: 120px; }
.btn-submit { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--white); padding: 16px 32px; border: none; border-radius: var(--radius-pill); font-weight: 600; font-size: 16px; cursor: pointer; transition: var(--transition); width: 100%; letter-spacing: 0.5px; box-shadow: 0 6px 20px rgba(239,35,60,0.3); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239,35,60,0.4); }

.contact-info h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.info-card { background: var(--white); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.info-item { margin-bottom: 14px; font-size: 15px; color: var(--text); }
.info-item strong { display: block; color: var(--navy); margin-bottom: 2px; }
.info-item a { color: var(--red); font-weight: 600; }
.map-placeholder { background: linear-gradient(135deg, #E0E0E0, #F5F5F5); height: 200px; border-radius: var(--radius-card); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; }

/* ========== PAGE HEADER ========== */
.page-header { text-align: center; padding: 40px 0 20px; }
.page-header h1 { font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.page-header p { color: var(--text-light); font-size: 16px; }

/* ========== SEARCH BAR ========== */
.search-container { background: var(--white); padding: 24px; border-radius: var(--radius-card); box-shadow: var(--shadow); margin-bottom: 32px; }
.search-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.search-group { flex: 1; min-width: 180px; }
.search-group label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.search-group input, .search-group select { width: 100%; padding: 12px 16px; border: 2px solid #E0E0E0; border-radius: var(--radius-pill); font-size: 14px; font-family: var(--font); transition: var(--transition); }
.search-group input:focus, .search-group select:focus { outline: none; border-color: var(--red); }
.search-btn { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--white); padding: 12px 28px; border: none; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 14px; box-shadow: 0 4px 15px rgba(239,35,60,0.3); }
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,35,60,0.4); }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 60px; }
.pagination a { padding: 10px 18px; border-radius: var(--radius-pill); background: var(--white); border: 2px solid #E0E0E0; font-weight: 600; font-size: 14px; transition: var(--transition); }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination a.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ========== ALERT ========== */
.alert { padding: 14px 20px; border-radius: var(--radius-pill); margin-bottom: 20px; font-weight: 500; font-size: 14px; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* ========== FOOTER ========== */
.main-footer { background: var(--navy); color: var(--navy-light); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-grid h3, .footer-grid h4 { color: var(--white); margin-bottom: 16px; }
.footer-grid h3 { font-size: 24px; color: var(--red); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--navy-light); transition: var(--transition); }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state p { font-size: 16px; margin-bottom: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-pills { display: none; }
    .hamburger { display: flex; }
    .hero { height: 420px; }
    .contact-layout { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; }
    .search-group { width: 100%; }
    .search-btn { width: 100%; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero { height: 360px; }
    .hero h1 { font-size: 1.5rem; }
    .listings-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .card-image-wrap { height: 180px; }
    .page-header h1 { font-size: 24px; }
    .main-footer {text-align: center;}
    .main-footer img {margin: 0 auto !important;}
}

/* =============================================
   PAGE ANNONCES — Style inspiré de l'image
   ============================================= */
.listings-page {
    background: #F5F7FB;
    min-height: 100vh;
    padding: 32px 0 64px;
}

/* Header */
.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.listings-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-tag {
    background: var(--red);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.clear-filters {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.clear-filters:hover { color: var(--red); }

/* Layout sidebar + grid */
.listings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* ========== SIDEBAR ========== */
.filters-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.sidebar-header svg { color: var(--red); }

.filters-form { display: flex; flex-direction: column; gap: 20px; }

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrap svg {
    position: absolute;
    left: 14px;
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid #E8EAF0;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
    background: #FAFBFD;
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239,35,60,0.08);
}

.filters-sidebar select,
.filters-sidebar input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E8EAF0;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
    background: #FAFBFD;
    -webkit-appearance: none;
    appearance: none;
}
.filters-sidebar select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.filters-sidebar select:focus,
.filters-sidebar input[type="number"]:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239,35,60,0.08);
}

.btn-apply-filters {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(239,35,60,0.3);
    margin-top: 4px;
}
.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239,35,60,0.4);
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.listing-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}
.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.14);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.listing-card:hover .card-image img {
    transform: scale(1.06);
}

/*.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
} */
.badge-sale {
    background: #2563EB;
    color: #fff;
}
.badge-rental {
    background: #F59E0B;
    color: #fff;
}

.card-info {
    padding: 20px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 14px;
}
.card-subtitle svg { flex-shrink: 0; }

.card-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}
.spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}
.spec svg { flex-shrink: 0; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.card-price {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
}
.card-price small {
    font-size: 10px;
    font-weight: 400;
    color: #94A3B8;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 2px solid #2563EB;
    border-radius: 50px;
    color: #2563EB;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-details:hover {
    background: #2563EB;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 20px; }
.btn-reset-search {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.btn-reset-search:hover { background: var(--red-dark); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 40px 0 0; }
.pagination a {
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination a.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: static;
        order: -1;
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 600px) {
    .listings-page { padding: 20px 0 48px; }
    .listings-header h1 { font-size: 20px; }
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .card-image { height: 180px; }
    .filters-sidebar { padding: 18px; }
    .card-price { font-size: 17px; }
}

/* =============================================
  /* =============================================
   PAGE DÉTAILS — Lecture fluide & Compacte
   ============================================= */
.detail-page { background: var(--bg); padding: 24px 0 64px; min-height: 80vh; }

/* Breadcrumbs */
.detail-breadcrumbs { font-size: 13px; color: var(--text-light); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-breadcrumbs a { color: var(--navy); font-weight: 500; }
.detail-breadcrumbs a:hover { color: var(--primary); }
.detail-breadcrumbs span { opacity: 0.4; }

/* Header Compact */
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.detail-title h1 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.25; }
.detail-address { color: var(--text-light); font-size: 14px; display: flex; align-items: center; gap: 5px; }
.detail-price-box { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.detail-price { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; color: var(--primary); line-height: 1; }
.detail-price small { font-size: 13px; font-weight: 400; color: var(--text-light); }
.detail-badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-sale { background: #2563EB; color: #fff; }
.badge-rental { background: #F59E0B; color: #fff; }
.badge-occupied { background: #EF4444; color: #fff; }

/* Gallery Compacte */
.detail-gallery { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 28px; border: 1px solid var(--border); }
.gallery-main { width: 100%; height: 360px; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 6px; padding: 10px; background: #F8FAFC; overflow-x: auto; }
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.5; transition: 0.2s; border: 2px solid transparent; flex-shrink: 0; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--primary); }

/* Layout */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

/* Contenu Principal (Optimisé lecture) */
.detail-main { max-width: 820px; } /* Largeur idéale pour la lecture */
.detail-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 28px; }
.spec-item { background: #fff; padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.spec-icon { font-size: 20px; flex-shrink: 0; }
.spec-item div strong { display: block; font-size: 15px; color: var(--navy); font-weight: 600; line-height: 1.2; }
.spec-item div span { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; }

.detail-section { margin-bottom: 32px; }
.detail-section h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.detail-content { font-size: 15px; line-height: 1.65; color: #475569; }
.detail-content p { margin-bottom: 0.8em; }
.detail-map { border-radius: 12px; overflow: hidden; }
.map-placeholder { height: 200px; background: #E2E8F0; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; border-radius: 12px; font-weight: 500; }

/* Sidebar Compacte */
.detail-sidebar { position: sticky; top: 90px; }
.contact-card { 
    background: #fff; 
    padding: 24px; 
    border-radius: 24px; /* Plus arrondi comme l'image */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
    border: 1px solid #f0f0f0; 
    text-align: center; 
}
.contact-card h3 { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--navy); 
    margin-bottom: 8px; 
}
.contact-price { 
    font-size: 24px; 
    font-weight: 800; 
    color: var(--primary); 
    margin-bottom: 24px; 
    line-height: 1.2;
}
/* Style commun des boutons */
.btn-action { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    width: 100%; 
    padding: 14px 20px; 
    border-radius: 50px; /* Forme pilule */
    font-weight: 600; 
    font-size: 15px; 
    transition: 0.2s; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
}
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
/* Appeler (Bleu) */
.btn-call { background: #0084FF; color: #fff; }
.btn-call:hover { background: #0073e6; }
/* WhatsApp (Vert) */
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebd56; }

/* Email (Blanc avec bordure) */
.btn-email { 
    background: #fff; 
    color: #0084FF; 
    border: 2px solid #0084FF; 
}
.btn-email:hover { background: #f0f8ff; }

.contact-price small { font-size: 14px; font-weight: 500; color: var(--text-light); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-contact { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 13px; transition: 0.2s; text-decoration: none; }
.btn-contact.primary { background: var(--primary); color: #fff; }
.btn-contact.primary:hover { background: var(--primary-hover); }
.btn-contact.secondary { background: #F1F5F9; color: var(--navy); }
.btn-contact.secondary:hover { background: #E2E8F0; }
.btn-contact.outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-contact.outline:hover { background: var(--navy); color: #fff; }
.contact-note { 
    font-size: 12px; 
    color: #999; 
    margin-top: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 4px;
}
/* Responsive */
@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; gap: 24px; }
    .detail-sidebar { position: static; order: -1; margin-bottom: 8px; }
    .gallery-main { height: 240px; }
    .detail-header { flex-direction: column; }
    .detail-price-box { text-align: left; width: 100%; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--border); }
    .detail-main { max-width: 100%; }
}

/* =============================================
   FEATURED OFFER SLIDER (Style Image)
   ============================================= */
.featured-offer-section {
    padding: 40px 0 80px;
    position: relative;
}

/* Bandeau rouge arrondi */
.offer-banner {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 14px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    max-width: 280px;
    margin: 0 auto -12px;
    position: relative;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(239, 35, 60, 0.25);
}

/* Conteneur Slider */
.offer-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.offer-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}
.offer-slide.active {
    opacity: 1;
    z-index: 2;
}
.offer-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay sombre à gauche pour lisibilité */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 40%, transparent 70%);
}

/* Texte sur l'image */
.slide-info {
    position: absolute;
    left: 48px;
    bottom: 48px;
    color: #fff;
    max-width: 550px;
    z-index: 3;
}
.slide-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slide-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    max-width: 480px;
}

/* Boutons Flèches (Cercles blancs) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.carousel-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }

/* Indicateurs (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.dot:hover { background: rgba(255,255,255,0.7); }
.dot.active {
    background: #fff;
    transform: scale(1.3);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .offer-carousel { height: 380px; border-radius: 20px; }
    .slide-info { left: 24px; bottom: 24px; max-width: 85%; }
    .slide-info h2 { font-size: 1.8rem; }
    .carousel-btn { width: 42px; height: 42px; font-size: 22px; }
    .carousel-btn.prev { left: 12px; }
    .carousel-btn.next { right: 12px; }
}
@media (max-width: 600px) {
    .offer-carousel { height: 320px; }
    .slide-info { left: 20px; bottom: 20px; }
    .slide-info h2 { font-size: 1.5rem; }
    .slide-info p { font-size: 0.95rem; }
    
}

/* Référence annonce (style discret & pro) */
.card-ref {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* =============================================
   COMPTEUR DE VUES & PARTAGE SOCIAL
   ============================================= */

/* Compteur de vues dans les specs */
.spec-item .spec-icon { font-size: 20px; }
.spec-item div strong { font-size: 15px; color: var(--navy); }
.spec-item div span { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; }

/* Section partage */
.share-section {
    background: #F8FAFC;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 24px 0 32px;
    border: 1px solid var(--border);
}
.share-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.share-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.more { background: #64748B; }

/* Responsive partage */
@media (max-width: 600px) {
    .share-buttons { justify-content: center; }
    .share-btn { width: 38px; height: 38px; }
}