/* ==================== */
/* VARIABLES */
/* ==================== */
:root {
    --or: #f26419;
    --or2: #e55a0f;
    --noir: #1c1c1c;
    --gris1: #555;
    --gris2: #888;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", sans-serif; background: #f4f4f4; color: var(--noir); font-size: 14px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==================== */
/* DESKTOP HEADER */
/* ==================== */
.header-desktop { background: #fff; box-shadow: var(--shadow); position: relative; z-index: 100; display: none; }

.topbar { background: var(--or2); color: rgba(255,255,255,0.92); font-size: 12px; padding: 8px 0; }

.logo-box { background: #fff; border: 2px solid var(--or); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.logo-box .ico { font-size: 22px; }
.logo-box .name { font-size: 15px; font-weight: 800; color: var(--or); line-height: 1; }
.logo-box .sub { font-size: 9px; font-weight: 500; color: var(--gris2); }

.header-main { border-bottom: 1px solid #eee; }

.search-bar { max-width: 700px; }
.search-bar > div { display: flex; background: #fff; border: 2px solid var(--or); border-radius: 8px; overflow: hidden; }
.search-select { border: none; border-right: 1px solid #eee; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--gris1); cursor: pointer; outline: none; min-width: 130px; background: #fafafa; }
.search-input { border: none; outline: none; padding: 12px 16px; font-size: 14px; color: var(--noir); flex: 1; }
.search-input::placeholder { color: var(--gris2); }
.search-btn { background: var(--or); border: none; padding: 12px 24px; cursor: pointer; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.search-btn:hover { background: var(--or2); }

.header-link { color: var(--gris1); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 6px; transition: all 0.2s; }
.header-link:hover { background: var(--or); color: #fff; }

.header-nav { background: var(--or); }
.nav-link-desktop { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.nav-link-desktop:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-link-desktop.active { background: #fff; color: var(--or); }

/* ==================== */
/* MOBILE HEADER */
/* ==================== */
.header-mobile { background: var(--or); position: sticky; top: 0; z-index: 100; display: block; }
.mobile-topbar { background: var(--or2); }

.mobile-search { display: flex; background: #fff; border-radius: 8px; overflow: hidden; }
.mobile-search-select { border: none; padding: 10px 8px; font-size: 12px; background: #f5f5f5; outline: none; border-right: 1px solid #ddd; min-width: 70px; }
.mobile-search-input { border: none; outline: none; padding: 10px 12px; font-size: 14px; flex: 1; min-width: 0; }
.mobile-search-btn { background: var(--or); border: none; padding: 10px 14px; font-size: 16px; cursor: pointer; }

/* Mobile Categories */
.mobile-cats { background: #fff; border-bottom: 1px solid #eee; display: flex; gap: 8px; padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mobile-cats::-webkit-scrollbar { display: none; }
.mobile-cat { min-width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 10px; font-size: 22px; flex-shrink: 0; transition: all 0.2s; }
.mobile-cat:hover, .mobile-cat.active { background: var(--or); }

/* ==================== */
/* MOBILE BOTTOM NAV */
/* ==================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #999;
    font-size: 10px;
    text-decoration: none;
    padding: 4px 8px;
    flex: 1;
    transition: color 0.2s;
}

.nav-item svg { width: 22px; height: 22px; fill: none; stroke: #999; stroke-width: 2; }
.nav-item.active { color: var(--or); }
.nav-item.active svg { stroke: var(--or); }

.nav-item-center {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    padding: 4px 8px;
}

.nav-circle {
    width: 52px;
    height: 52px;
    background: var(--or);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -22px;
    box-shadow: 0 4px 12px rgba(242,100,25,0.4);
}

.nav-circle svg { width: 24px; height: 24px; stroke: #fff; fill: none; }
.nav-item-center span { color: var(--or); font-size: 10px; font-weight: 700; }

/* ==================== */
/* MAIN CONTENT */
/* ==================== */
.main-content { padding-bottom: 80px; }

/* ==================== */
/* LAYOUT */
/* ==================== */
.layout { display: flex; gap: 16px; align-items: flex-start; }

/* SIDEBAR FILTER (Desktop) */
.sidebar { width: 100%; }
.filter-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.filter-card-header { background: var(--or); color: #fff; padding: 14px 18px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }

.filter-group { padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.filter-group h4 { font-size: 11px; font-weight: 700; color: var(--gris1); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 25px; border: 1.5px solid #e8e8e8; background: #fff; cursor: pointer; transition: all 0.2s; font-size: 13px; font-weight: 500; color: var(--gris1); user-select: none; }
.chip:hover { border-color: var(--or); background: #fff5ee; color: var(--or); }
.chip input { display: none; }
.chip.active { background: var(--or); border-color: var(--or); color: #fff; font-weight: 600; }

/* Price Range */
.price-range { display: flex; align-items: center; gap: 10px; }
.price-input { flex: 1; padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: 13px; outline: none; transition: border-color 0.2s; background: #fafafa; }
.price-input:focus { border-color: var(--or); background: #fff; }
.price-input::placeholder { color: var(--gris2); }
.price-dash { color: var(--gris2); font-weight: 600; }

/* Filter Actions */
.filter-actions { padding: 16px 18px; display: flex; gap: 10px; }
.btn-filter-apply { flex: 1; padding: 12px; background: var(--or); border: none; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-filter-apply:hover { background: var(--or2); }
.btn-filter-reset { padding: 12px; color: var(--gris2); font-size: 13px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.btn-filter-reset:hover { color: var(--or); }

/* Mobile Filter Toggle */
.filter-toggle-btn {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 18px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    color: var(--noir);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-toggle-btn:hover { border-color: var(--or); color: var(--or); }

/* Mobile Filter Panel */
.filter-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1001;
    flex-direction: column;
    overflow-y: auto;
}
.filter-panel.open { display: flex; }
.filter-panel-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.filter-panel-backdrop.open { display: block; }
.filter-panel-header {
    padding: 16px 20px;
    background: var(--or);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-panel-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 4px; }
.filter-panel-section { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.filter-panel-section h4 { font-size: 12px; font-weight: 700; color: var(--gris1); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-panel-footer { padding: 16px 20px; display: flex; gap: 10px; margin-top: auto; background: #fff; border-top: 2px solid #f0f0f0; }
.filter-panel-footer .btn-filter-apply { flex: 2; }
.filter-panel-footer .btn-filter-reset { flex: 1; text-align: center; padding: 12px; }

/* MAIN COL */
.main-col { flex: 1; min-width: 0; }

/* RESULTS HEADER */
.results-header { background: #fff; padding: 16px 20px; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-header h2 { font-size: 16px; font-weight: 800; margin: 0; }
.reset-link { color: var(--or); font-size: 13px; font-weight: 600; }

/* ==================== */
/* BANNERS */
/* ==================== */
.banners { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
.banner-main { border-radius: var(--radius); overflow: hidden; height: 180px; position: relative; background: linear-gradient(135deg, #1a3a5c, #2e5fa3); display: flex; align-items: center; padding: 24px 28px; text-decoration: none; }
.banner-deco { position: absolute; right: -20px; top: -20px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.banner-deco2 { position: absolute; right: 40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.btag { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.btitle { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.bsub { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.bbtn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--or); padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.banners-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.banner-sm { border-radius: var(--radius); height: 100px; display: flex; align-items: center; padding: 14px 16px; text-decoration: none; }
.banner-sm1 { background: linear-gradient(135deg, #0a8f4f, #10d876); }
.banner-sm2 { background: linear-gradient(135deg, #c84b0e, #f26419); }
.bs-ico { font-size: 28px; margin-right: 12px; }
.bs-title { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.3; }
.bs-sub { font-size: 11px; color: rgba(255,255,255,0.8); }

/* ==================== */
/* CATEGORIES */
/* ==================== */
.categories-section { background: #fff; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.categories-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 3px solid var(--or); }
.categories-header h2 { font-size: 15px; font-weight: 800; margin: 0; }
.see-all { font-size: 13px; color: var(--or); font-weight: 600; }

.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }

.category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 12px; background: #f8f8f8; text-decoration: none; transition: all 0.25s; border: 2px solid transparent; }
.category-card:hover { background: #fff5ee; border-color: var(--or); transform: translateY(-2px); }

.cat-icon { width: 50px; height: 50px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cat-name { font-size: 12px; font-weight: 700; color: var(--noir); text-align: center; }
.cat-count { font-size: 10px; color: var(--gris2); text-align: center; }

/* ==================== */
/* PROPS GRID */
/* ==================== */
.props-wrap { background: #fff; border-radius: var(--radius); padding: 14px; }
.props-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* CARD */
.pcard { border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; transition: all 0.25s; }
.pcard:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.pcard-img { position: relative; height: 140px; background: #f8f8f8; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: linear-gradient(135deg, #fff5f0, #ffd8c4); }
.pcard-tag { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.tag-vente { background: var(--or); color: #fff; }
.tag-location { background: #1d6fa4; color: #fff; }
.tag-nouveau { background: #0a8f4f; color: #fff; }
.tag-urgent { background: #d92020; color: #fff; }
.pcard-fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.95); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.pcard-body { padding: 12px; }
.pcard-price { font-size: 16px; font-weight: 800; color: var(--or); }
.pcard-price small { font-size: 11px; font-weight: 500; color: var(--gris2); }
.pcard-title { font-size: 13px; font-weight: 600; margin: 6px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-loc { font-size: 11px; color: var(--gris2); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.pcard-feats { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.pfeat { font-size: 11px; color: var(--or) !important; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.pfeat svg { fill: none !important; stroke: var(--or) !important; stroke-width: 2 !important; width: 14px !important; height: 14px !important; }
.pcard-wa { width: 100%; padding: 10px; background: var(--or); border: none; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: background 0.2s; }
.pcard-wa:hover { background: var(--or2); color: #fff; }

/* FLASH */
.flash-strip { background: #fff; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.flash-head { background: var(--noir); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.flash-head h2 { font-size: 14px; font-weight: 800; margin: 0; }
.flash-timer { display: flex; align-items: center; gap: 4px; }
.timer-block { background: var(--or); border-radius: 4px; padding: 3px 7px; font-size: 14px; font-weight: 800; min-width: 32px; text-align: center; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.timer-sep { animation: blink 1s infinite; }
.view-all { font-size: 12px; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 6px; }

/* PROMO */
.promo-bands { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.promo-band { border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pb1 { background: linear-gradient(135deg, #1a3a5c, #265ea6); }
.pb2 { background: linear-gradient(135deg, #7b2fbe, #a855f7); }
.pb3 { background: linear-gradient(135deg, #064e3b, #059669); }
.pb-ico { font-size: 32px; flex-shrink: 0; }
.pb-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.75); text-transform: uppercase; margin-bottom: 3px; }
.pb-title { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.3; }

/* ==================== */
/* HOME PAGE SIDEBAR */
/* ==================== */
.sidebar-box { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sidebar-title { background: var(--or); color: #fff; padding: 14px 18px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sidebar-section { padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.sidebar-section h4 { font-size: 11px; font-weight: 700; color: var(--gris1); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; cursor: pointer; }
.filter-item input[type="checkbox"] { accent-color: var(--or); width: 16px; height: 16px; }
.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input { flex: 1; padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: 13px; outline: none; background: #fafafa; }
.price-inputs input:focus { border-color: var(--or); background: #fff; }
.price-inputs span { color: var(--gris2); font-weight: 600; }
.filter-apply { width: 100%; padding: 12px; background: var(--or); border: none; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.filter-apply:hover { background: var(--or2); }

/* ==================== */
/* PROPERTY DETAIL */
/* ==================== */
.prop-detail { display: flex; flex-direction: column; gap: 20px; }
.prop-detail > div { display: flex; flex-direction: column; gap: 20px; }
.prop-gallery { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prop-gallery-main { min-height: 300px; height: 460px; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.prop-gallery-main video { width: 100%; height: 460px; object-fit: contain; background: #000; display: block; }
.prop-media-section { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.prop-gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.prop-gallery-thumbs img, .prop-thumb { width: 70px; height: 50px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0; }
.prop-thumb { display: flex; align-items: center; justify-content: center; background: #1a1a1a; border: 2px solid transparent; }
.prop-thumb.active, .prop-gallery-thumbs img.active { opacity: 1; border-color: var(--or); }
.prop-info { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.prop-info h1 { font-size: 22px; font-weight: 800; margin: 12px 0; line-height: 1.3; }
.prop-location { color: var(--gris2); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.prop-price { font-size: 28px; font-weight: 800; color: var(--or); margin-bottom: 16px; }
.prop-features { display: flex; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.prop-feature { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gris1); }
.prop-desc h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.prop-desc p { font-size: 14px; line-height: 1.7; color: var(--gris1); }
.prop-contact { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.prop-contact h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.prop-owner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.prop-owner-avatar { width: 48px; height: 48px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.prop-owner-name { font-size: 15px; font-weight: 700; }
.prop-contact-btns { display: flex; gap: 10px; }
.btn-whatsapp { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: #25d366; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.btn-whatsapp:hover { background: #1fb855; color: #fff; }
.btn-call { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: var(--or); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.btn-call:hover { background: var(--or2); color: #fff; }

/* ==================== */
/* AUTH PAGES */
/* ==================== */
.auth-wrap { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 200px); padding: 20px 0; }
.auth-card { background: #fff; border-radius: var(--radius); padding: 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { color: var(--gris2); margin-bottom: 24px; }
.auth-btn { width: 100%; padding: 14px; background: var(--or); border: none; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-top: 8px; }
.auth-btn:hover { background: var(--or2); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gris2); }
.auth-footer a { color: var(--or); font-weight: 600; }

/* ==================== */
/* FORM ELEMENTS */
/* ==================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--noir); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--or);
    background: #fff;
}
.form-group small { display: block; margin-top: 6px; color: var(--gris2); font-size: 12px; }

/* ==================== */
/* HOME CAROUSEL */
/* ==================== */
.carousel-section { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; flex-shrink: 0; text-decoration: none; }
.carousel-img { position: relative; height: 280px; border-radius: 12px; overflow: hidden; }
.carousel-img img { width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.carousel-tag { display: inline-block; padding: 4px 12px; background: var(--or); border-radius: 6px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.carousel-overlay h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.carousel-price { font-size: 20px; font-weight: 800; color: var(--or); }
.carousel-location { font-size: 12px; opacity: 0.85; margin-top: 4px; }

@media (min-width: 768px) {
    .carousel-img { height: 350px; }
    .carousel-overlay h3 { font-size: 20px; }
    .carousel-price { font-size: 24px; }
}

/* ==================== */
/* DASHBOARD LAYOUT */
/* ==================== */
.dash-layout { display: flex; gap: 0; min-height: calc(100vh - 200px); }

/* Sidebar */
.dash-sidebar {
    width: 260px;
    background: #fff;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.dash-user {
    padding: 0 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--or), var(--or2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--noir);
    line-height: 1.2;
}

.dash-user-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--gris2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-user-role.admin {
    color: var(--or);
}

.dash-nav {
    flex: 1;
    padding: 8px 12px;
}

.dash-nav-section {
    margin-bottom: 20px;
}

.dash-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gris2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 12px;
    margin-bottom: 8px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gris1);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.dash-nav-link:hover {
    background: #f8f8f8;
    color: var(--noir);
}

.dash-nav-link.active {
    background: #fff5ee;
    color: var(--or);
}

.dash-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2;
}

.dash-nav-link .badge {
    margin-left: auto;
    background: var(--or);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.dash-nav-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 12px;
}

.dash-nav-link.logout {
    color: #d92020;
}

.dash-nav-link.logout:hover {
    background: #fee2e2;
    color: #d92020;
}

/* Main Content */
.dash-content {
    flex: 1;
    padding: 24px;
    margin-left: 0;
    min-width: 0;
}

.dash-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.dash-page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--noir);
    margin: 0;
}

.dash-page-subtitle {
    font-size: 13px;
    color: var(--gris2);
    margin-top: 4px;
}

/* Stats Cards */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dash-stat-icon.orange { background: linear-gradient(135deg, #fff5ee, #ffd8c4); }
.dash-stat-icon.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.dash-stat-icon.green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.dash-stat-icon.purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }

.dash-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--noir);
    line-height: 1;
}

.dash-stat-label {
    font-size: 12px;
    color: var(--gris2);
    margin-top: 4px;
    font-weight: 500;
}

/* Content Card */
.dash-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.dash-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dash-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-body {
    padding: 20px;
}

.dash-card-body.no-pad {
    padding: 0;
}

/* Property List */
.prop-list {
    display: flex;
    flex-direction: column;
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

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

.prop-item:hover {
    background: #fafafa;
}

.prop-item-img {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prop-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.prop-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-item-info p {
    font-size: 12px;
    color: var(--gris2);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.prop-item-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--or);
    white-space: nowrap;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-available { background: #e8f5e9; color: #166534; }
.status-pending { background: #fff3cd; color: #856404; }
.status-sold { background: #fee2e2; color: #991b1b; }

.prop-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon.edit { background: #e3f2fd; }
.btn-icon.edit:hover { background: #bbdefb; }
.btn-icon.delete { background: #fee2e2; }
.btn-icon.delete:hover { background: #fca5a5; }
.btn-icon.view { background: #f5f5f5; }
.btn-icon.view:hover { background: #e8e8e8; }

/* ==================== */
/* ADMIN DASHBOARD */
/* ==================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.admin-stat-card.orange::before { background: linear-gradient(90deg, var(--or), var(--or2)); }
.admin-stat-card.blue::before { background: linear-gradient(90deg, #1d6fa4, #2e9fd4); }
.admin-stat-card.green::before { background: linear-gradient(90deg, #0a8f4f, #10d876); }
.admin-stat-card.purple::before { background: linear-gradient(90deg, #7b2fbe, #a855f7); }

.admin-stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.admin-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--noir);
    line-height: 1;
}

.admin-stat-label {
    font-size: 12px;
    color: var(--gris2);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gris2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fafafa;
    border-bottom: 2px solid #f0f0f0;
}

.admin-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fafafa;
}

.admin-table .user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--or), var(--or2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-table .user-name {
    font-weight: 600;
    color: var(--noir);
}

.admin-table .user-email {
    font-size: 11px;
    color: var(--gris2);
}

/* ==================== */
/* USER PROFILE */
/* ==================== */
.profile-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--or), var(--or2));
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
}

.profile-email {
    font-size: 13px;
    opacity: 0.85;
}

.profile-body {
    padding: 24px;
}

.profile-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field-label {
    font-size: 12px;
    color: var(--gris2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-field-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--noir);
}

/* ==================== */
/* DASHBOARD FORMS */
/* ==================== */
.dash-form-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.dash-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
.dash-form-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
.dash-form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

@media (min-width: 576px) {
    .dash-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .dash-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .dash-form-card { padding: 24px; }
}

/* ==================== */
/* FOOTER (DESKTOP) */
/* ==================== */
.footer { background: #111; color: rgba(255,255,255,0.7); display: none; }
.footer-top { display: flex; gap: 40px; padding: 48px 0 32px; }
.footer-brand { flex: 0 0 300px; }
.footer-brand .f-logo-box { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .f-logo-box .fn { font-size: 18px; font-weight: 800; color: #fff; display: block; line-height: 1.2; }
.footer-brand .f-logo-box .fn-sub { font-size: 11px; font-weight: 600; color: var(--or); display: block; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,0.5); }
.footer-socials { display: flex; gap: 10px; }
.fsoc { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all 0.2s; }
.fsoc:hover { background: var(--or); color: #fff; transform: translateY(-2px); }

.footer-links { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; transition: all 0.2s; display: inline-block; }
.footer-col ul li a:hover { color: var(--or); transform: translateX(4px); }

.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px !important; }
.fc-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.footer-contact .fc-label { display: block; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.footer-contact a { color: rgba(255,255,255,0.6) !important; font-size: 13px; }
.footer-contact a:hover { color: var(--or) !important; }
.footer-contact span { font-size: 13px; color: rgba(255,255,255,0.5); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom strong { color: var(--or); }

/* FLOAT WA */
.float-wa { position: fixed; bottom: 90px; right: 16px; z-index: 200; width: 50px; height: 50px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
.float-wa svg { width: 26px; height: 26px; fill: #fff; }

/* FLASH TOAST */
.flash-toast { position: fixed; top: 20px; right: 16px; z-index: 1001; padding: 14px 18px; border-radius: 10px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); animation: slideIn 0.3s ease; max-width: 360px; font-size: 13px; }
.flash-toast button { background: none; border: none; font-size: 18px; cursor: pointer; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* NO RESULTS */
.no-results { grid-column: 1 / -1; text-align: center; padding: 50px 20px; }
.no-results-icon { font-size: 56px; margin-bottom: 14px; }
.no-results p { font-size: 15px; color: var(--gris1); margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--or); color: #fff; }
.btn-primary:hover { background: var(--or2); color: #fff; }
.btn-secondary { background: #f5f5f5; color: var(--noir); }
.btn-secondary:hover { background: #e8e8e8; color: var(--noir); }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ==================== */
/* RESPONSIVE - TABLET (768px+) */
/* ==================== */
@media (min-width: 768px) {
    .header-desktop { display: block; }
    .header-mobile, .mobile-cats, .mobile-bottom-nav, .filter-toggle-btn, .filter-panel { display: none !important; }
    .footer { display: block; }
    .float-wa { bottom: 24px; right: 24px; width: 56px; height: 56px; }
    .float-wa svg { width: 28px; height: 28px; }
    .main-content { padding-bottom: 24px; }

    .layout { flex-direction: row; }
    .sidebar { width: 280px; flex-shrink: 0; }
    .main-col { flex: 1; min-width: 0; }

    .banners { grid-template-columns: 2fr 1fr; }
    .banners-side { display: flex; flex-direction: column; gap: 12px; }
    .banner-sm { height: 90px; }

    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .props-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .promo-bands { grid-template-columns: repeat(3, 1fr); }
    .pcard-img { height: 160px; }

    .prop-gallery-main { height: 400px; }
    .prop-info h1 { font-size: 26px; }
    .prop-price { font-size: 32px; }

    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(4, 1fr); }
    .dash-sidebar { display: none; }
    .dash-content { padding: 16px; }
}

/* ==================== */
/* RESPONSIVE - DESKTOP (992px+) */
/* ==================== */
@media (min-width: 992px) {
    .props-grid { grid-template-columns: repeat(4, 1fr); }
    .filter-panel-footer { display: none; }

    .prop-detail { flex-direction: row; }
    .prop-detail > div { flex: 1; min-width: 0; }
    .prop-detail aside { width: 340px; flex-shrink: 0; }
    .prop-gallery-main { height: 450px; }
}

/* ==================== */
/* RESPONSIVE - LARGE (1200px+) */
/* ==================== */
@media (min-width: 1200px) {
    .sidebar { width: 300px; }
    .prop-detail aside { width: 380px; }
}

/* ==================== */
/* RESPONSIVE - MOBILE SMALL (400px-) */
/* ==================== */
/* ==================== */
/* MOBILE DASHBOARD NAV */
/* ==================== */
.dash-mobile-nav {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    gap: 4px;
}

.dash-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gris1);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.dash-mobile-nav a:hover {
    background: #f8f8f8;
}

.dash-mobile-nav a.active {
    background: #fff5ee;
    color: var(--or);
}

.dash-mobile-nav a svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 400px) {
    .props-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .banners-side { grid-template-columns: 1fr; }
    .prop-contact-btns { flex-direction: column; }
    .dash-stats { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .btitle { font-size: 17px; }
    .banner-main { padding: 18px 20px; }
    .pcard-img { height: 180px; }
    .prop-gallery-main { height: 220px; }
    .prop-info { padding: 18px; }
    .prop-info h1 { font-size: 18px; }
    .prop-price { font-size: 22px; }
    .prop-item { flex-wrap: wrap; }
    .prop-item-img { width: 100%; height: 120px; }
    .auth-card { padding: 24px 20px; }
    .prop-item-actions { width: 100%; justify-content: flex-end; }
}

/* ==================== */
/* MOBILE SCROLLBAR HIDE */
/* ==================== */
.mobile-cats, .prop-gallery-thumbs { -ms-overflow-style: none; scrollbar-width: none; }
.mobile-cats::-webkit-scrollbar, .prop-gallery-thumbs::-webkit-scrollbar { display: none; }

/* ==================== */
/* SAFE AREA FOR MOBILE */
/* ==================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .main-content { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
