
  :root{
    --bs-primary:#0E8A5F;
    --bs-primary-rgb:14,138,95;
    --brand-700:#0a6c4a;
    --brand-50:#e7f5ee;
    --accent:#FFB020;
    --accent-50:#fff4dc;
    --ink:#15201A;
    --ink-2:#3a463f;
    --muted:#6B7570;
    --line:#E6E4DC;
    --line-2:#EFEDE5;
    --bg:#FAFAF6;
    --surface:#ffffff;
    --danger:#D9534F;
    --radius-sm:8px;
    --radius:12px;
    --radius-lg:16px;
    --shadow-sm:0 1px 2px rgba(20,24,22,.04), 0 1px 1px rgba(20,24,22,.03);
    --shadow:0 4px 14px rgba(20,24,22,.06), 0 1px 2px rgba(20,24,22,.04);
  }
  html,body{background:var(--bg); color:var(--ink); font-family:'Plus Jakarta Sans', system-ui, sans-serif;}
  body{font-size:15px; -webkit-font-smoothing:antialiased;}
  h1,h2,h3,h4,h5,h6{font-family:'Plus Jakarta Sans', sans-serif; font-weight:700; letter-spacing:-0.01em; color:var(--ink);}
  a{color:var(--brand-700); text-decoration:none;}
  a:hover{color:var(--bs-primary);}
  .text-muted{color:var(--muted) !important;}
  hr{color:var(--line); opacity:1;}
  code, .mono{font-family:'JetBrains Mono', ui-monospace, monospace;}

  /* ============ HEADER ============ */
  .topbar{
    background:#15201A; color:#cfd6d1; font-size:12.5px;
  }
  .topbar a{color:#cfd6d1;}
  .topbar a:hover{color:#fff;}
  .topbar .divider{opacity:.35;}

  .mainbar{
    background:#fff; border-bottom:1px solid var(--line);
    position:sticky; top:0; z-index:1030;
  }
  .brand{
    font-weight:800; font-size:22px; color:var(--ink); display:inline-flex; align-items:center; gap:8px;
    letter-spacing:-0.02em;
  }
  .brand .dot{
    width:28px; height:28px; border-radius:8px; background:var(--bs-primary); color:#fff;
    display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:15px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
  }
  .brand .tld{color:var(--bs-primary);}
  .megasearch{
    background:#fff; border:1.5px solid var(--line); border-radius:12px;
    padding:4px; display:flex; align-items:stretch; gap:0; transition:border-color .15s;
  }
  .megasearch:focus-within{border-color:var(--bs-primary); box-shadow:0 0 0 4px rgba(14,138,95,.08);}
  .megasearch .form-control, .megasearch .form-select{
    border:0; box-shadow:none !important; background:transparent; font-size:15px; height:42px;
  }
  .megasearch .form-select{max-width:140px; color:var(--ink-2);}
  .megasearch .vline{width:1px; background:var(--line); margin:8px 0;}
  .megasearch .btn{
    border-radius:8px; padding:0 18px; font-weight:600; font-size:14px;
    display:inline-flex; align-items:center; gap:6px;
  }

  .catstrip{
    background:#fff; border-bottom:1px solid var(--line);
  }
  .catstrip .scroller{
    display:flex; gap:4px; overflow-x:auto; padding:6px 0; scrollbar-width:none;
  }
  .catstrip .scroller::-webkit-scrollbar{display:none;}
  .catlink{
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 12px; border-radius:999px; color:var(--ink-2); font-weight:500; font-size:13.5px;
    white-space:nowrap;
  }
  .catlink:hover{background:var(--line-2); color:var(--ink);}
  .catlink.active{background:var(--brand-50); color:var(--brand-700);}
  .catlink i{font-size:14px;}

  /* ============ ICON BUTTONS ============ */
  .icon-btn{
    width:40px; height:40px; border-radius:10px; border:1px solid var(--line); background:#fff;
    display:inline-flex; align-items:center; justify-content:center; color:var(--ink-2);
    position:relative;
  }
  .icon-btn:hover{background:var(--line-2); color:var(--ink);}
  .icon-btn .badge-dot{
    position:absolute; top:6px; right:7px; width:8px; height:8px; background:var(--danger); border-radius:50%; border:2px solid #fff;
  }

  .btn-primary{
    --bs-btn-bg:var(--bs-primary); --bs-btn-border-color:var(--bs-primary);
    --bs-btn-hover-bg:var(--brand-700); --bs-btn-hover-border-color:var(--brand-700);
    --bs-btn-active-bg:var(--brand-700); --bs-btn-active-border-color:var(--brand-700);
    font-weight:600;
  }
  .btn-outline-primary{
    --bs-btn-color:var(--brand-700); --bs-btn-border-color:var(--bs-primary);
    --bs-btn-hover-bg:var(--bs-primary); --bs-btn-hover-border-color:var(--bs-primary);
    font-weight:600;
  }
  .btn-postad{
    background:var(--accent); border-color:var(--accent); color:#3a2b00; font-weight:700;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
  }
  .btn-postad:hover{background:#f3a510; border-color:#f3a510; color:#3a2b00;}

  /* ============ HERO ============ */
  .hero{
    background: linear-gradient(180deg, #f3f7f1 0%, #fafaf6 100%);
    padding: 24px 0 16px;
  }
  .hero h1{font-size: clamp(24px, 4vw, 36px); margin-bottom:6px;}
  .hero .lede{color:var(--muted); margin-bottom:16px;}
  .hero .stats{display:flex; gap:16px; flex-wrap:wrap; margin-top:12px;}
  .hero .stat{font-size:13px; color:var(--muted);}
  .hero .stat strong{color:var(--ink); font-weight:700;}

  /* ============ CATEGORIES GRID ============ */
  .cat-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:10px;}
  @media (min-width:576px){.cat-grid{grid-template-columns:repeat(4, 1fr);}}
  @media (min-width:992px){.cat-grid{grid-template-columns:repeat(6, 1fr);}}
  .cat-tile{
    background:#fff; border:1px solid var(--line); border-radius:14px;
    padding:16px 12px; display:flex; flex-direction:column; align-items:center; gap:8px;
    color:var(--ink); transition:transform .15s, border-color .15s, box-shadow .15s;
    text-align:center;
  }
  .cat-tile:hover{transform:translateY(-2px); border-color:var(--bs-primary); box-shadow:var(--shadow-sm); color:var(--ink);}
  .cat-tile .ico{
    width:75px; height:75px; border-radius:14px; background:var(--brand-50); color:var(--bs-primary);
    display:inline-flex; align-items:center; justify-content:center; font-size:60px;
  }
  .cat-tile .label{font-weight:600; font-size:13.5px; line-height:1.2;}
  .cat-tile .count{font-size:11.5px; color:var(--muted);}

  /* alternating tile tints */
  .cat-tile:nth-child(6n+2) .ico{background:#fef4e1; color:#b87900;}
  .cat-tile:nth-child(6n+3) .ico{background:#eaf1fb; color:#2566c5;}
  .cat-tile:nth-child(6n+4) .ico{background:#fbe9eb; color:#c73a4b;}
  .cat-tile:nth-child(6n+5) .ico{background:#efeafa; color:#6a47c0;}
  .cat-tile:nth-child(6n+6) .ico{background:#e5f3f1; color:#0a7a72;}

  /* "All Categories" more tile */
  .cat-tile-more{background:transparent; border:1.5px dashed var(--line); cursor:pointer; font-family:inherit;}
  .cat-tile-more .ico{background:var(--line-2) !important; color:var(--muted) !important;}
  .cat-tile-more .label{color:var(--ink-2);}
  .cat-tile-more .count{color:var(--muted);}
  .cat-tile-more:hover{border-color:var(--bs-primary); background:rgba(14,138,95,.04);}
  .cat-tile-more:hover .ico{background:var(--brand-50) !important; color:var(--bs-primary) !important;}
  .cat-tile-more:hover .label{color:var(--bs-primary);}

  /* ============ AD CARDS (GRID) ============ */
  .ad{
    background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;
    display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s, border-color .15s;
    position:relative;
  }
  .ad:hover{transform:translateY(-2px); box-shadow:var(--shadow); border-color:#dad7cc;}
  .ad .thumb{
    aspect-ratio: 4/3; background:#eceae3; position:relative; overflow:hidden;
  }
  .ad .thumb .placeholder-img{
    width:100%; height:100%;
    background:
      repeating-linear-gradient(45deg, #e7e3d6 0 8px, #ece8db 8px 16px);
    display:flex; align-items:center; justify-content:center;
    color:#8a8474; font-family:'JetBrains Mono', monospace; font-size:11px;
  }
  .ad .heart{
    position:absolute; top:8px; right:8px; width:34px; height:34px; border-radius:50%;
    background:rgba(255,255,255,.92); border:0; display:inline-flex; align-items:center; justify-content:center;
    color:var(--ink-2); font-size:16px; backdrop-filter: blur(4px); cursor:pointer;
  }
  .ad .heart.on{color:var(--danger);}
  .ad .heart:hover{background:#fff;}
  .ad .ribbon{
    position:absolute; top:8px; left:8px; background:var(--accent); color:#3a2b00;
    padding:3px 8px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.02em;
  }
  .ad .ribbon.urgent{background:#ffe2e2; color:#a51d1d;}
  .ad .body{padding:10px 12px 12px; display:flex; flex-direction:column; gap:4px;}
  .ad .price{font-weight:800; font-size:16px; color:var(--ink); letter-spacing:-0.01em;}
  .ad .title{font-size:13.5px; color:var(--ink-2); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:36px;}
  .ad .meta{display:flex; justify-content:space-between; align-items:center; font-size:11.5px; color:var(--muted); margin-top:4px;}
  .ad .meta .loc{display:inline-flex; align-items:center; gap:3px;}

  /* Layout toggle buttons */
  .layout-toggle{display:flex; gap:2px; background:var(--line-2); border-radius:8px; padding:3px;}
  .lt-btn{
    background:transparent; border:none; border-radius:6px; padding:5px 9px;
    font-size:15px; color:var(--ink-2); cursor:pointer; transition:background .12s, color .12s;
    line-height:1;
  }
  .lt-btn:hover{background:#fff; color:var(--ink);}
  .lt-btn.active{background:#fff; color:var(--bs-primary); box-shadow:0 1px 3px rgba(0,0,0,.1);}

  /* List view */
  .ads-grid.list-view{display:grid; grid-template-columns:1fr; gap:10px;}
  .ads-grid.list-view .ad{flex-direction:row;}
  .ads-grid.list-view .ad .thumb{width:140px; flex-shrink:0; aspect-ratio:1/1;}
  @media (min-width:576px){.ads-grid.list-view .ad .thumb{width:180px; aspect-ratio:4/3;}}
  .ads-grid.list-view .ad .body{flex:1; padding:12px 14px;}
  .ads-grid.list-view .ad .title{font-size:15px; -webkit-line-clamp:2; min-height:0;}
  .ads-grid.list-view .ad .price{font-size:18px;}
  .ads-grid.list-view .ad .description{font-size:13px; color:var(--muted); margin-top:6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}

  /* Compact view */
  .ads-grid.compact-view{display:grid; grid-template-columns:1fr; gap:0;}
  .ads-grid.compact-view .ad{flex-direction:row; border-radius:0; border-left:0; border-right:0; border-top:0;}
  .ads-grid.compact-view .ad:first-child{border-top:1px solid var(--line);}
  .ads-grid.compact-view .ad:hover{transform:none; box-shadow:none; background:#fbfaf4;}
  .ads-grid.compact-view .ad .thumb{width:72px; aspect-ratio:1/1; flex-shrink:0; border-radius:8px; margin:10px 0 10px 10px;}
  .ads-grid.compact-view .ad .heart{display:none;}
  .ads-grid.compact-view .ad .ribbon{display:none;}
  .ads-grid.compact-view .ad .body{padding:10px 12px;}
  .ads-grid.compact-view .ad .title{font-size:14px; min-height:0; -webkit-line-clamp:1;}
  .ads-grid.compact-view .ad .price{font-size:14px;}

  /* Grid view (default) */
  .ads-grid:not(.list-view):not(.compact-view){
    display:grid; grid-template-columns:repeat(2, 1fr); gap:10px;
  }
  @media (min-width:576px){.ads-grid:not(.list-view):not(.compact-view){grid-template-columns:repeat(3, 1fr); gap:14px;}}
  @media (min-width:992px){.ads-grid:not(.list-view):not(.compact-view){grid-template-columns:repeat(4, 1fr);}}
  @media (min-width:1200px){.ads-grid:not(.list-view):not(.compact-view){grid-template-columns:repeat(5, 1fr);}}

  /* Featured row scroll on mobile */
  .featured-row{
    display:grid; grid-template-columns:repeat(2, 1fr); gap:10px;
  }
  @media (min-width:576px){.featured-row{grid-template-columns:repeat(3, 1fr); gap:14px;}}
  @media (min-width:992px){.featured-row{grid-template-columns:repeat(4, 1fr);}}

  /* ============ SECTION HEADERS ============ */
  .section-head{
    display:flex; justify-content:space-between; align-items:end; margin:24px 0 12px;
  }
  .section-head h2{font-size:20px; margin:0;}
  @media (min-width:768px){.section-head h2{font-size:22px;}}
  .section-head .sub{color:var(--muted); font-size:13px; margin-top:2px;}
  .section-head a{font-size:13.5px; font-weight:600;}

  /* ============ FILTER SIDEBAR ============ */
  .filter-card{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px;
  }
  .filter-card h6{font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-bottom:10px;}
  .filter-card + .filter-card{margin-top:12px;}
  .price-range{display:flex; gap:8px; align-items:center;}
  .price-range .form-control{font-size:13.5px;}

  /* ============ LIGHTBOX (Fancybox-style image viewer) ============ */
  .gallery-main{cursor:zoom-in;}
  .gallery-main .zoom-hint{
    position:absolute; top:12px; left:12px; background:rgba(0,0,0,.55); color:#fff;
    padding:5px 10px; border-radius:8px; font-size:11.5px; font-weight:600;
    display:inline-flex; align-items:center; gap:6px; backdrop-filter:blur(6px);
    opacity:0; transition:opacity .15s; pointer-events:none;
  }
  .gallery-main:hover .zoom-hint{opacity:1;}

  .lightbox{
    position:fixed; inset:0; z-index:1080; background:rgba(8,12,10,.92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display:none; flex-direction:column;
    animation: lbFade .2s ease;
  }
  .lightbox.open{display:flex;}
  @keyframes lbFade{from{opacity:0;}to{opacity:1;}}
  @keyframes lbZoom{from{opacity:0; transform:scale(.97);}to{opacity:1; transform:scale(1);}}

  .lightbox .lb-topbar{
    flex:0 0 auto;
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 20px; color:#fff;
    background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 100%);
  }
  .lightbox .lb-title{
    font-size:14px; font-weight:600; max-width:60%;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    display:flex; align-items:center; gap:10px;
  }
  .lightbox .lb-counter{
    background:rgba(255,255,255,.12); color:#fff; padding:4px 12px;
    border-radius:999px; font-size:12px; font-weight:600;
    font-family:'JetBrains Mono', monospace; letter-spacing:.5px;
  }
  .lightbox .lb-actions{display:flex; gap:8px;}
  .lightbox .lb-iconbtn{
    width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.1);
    border:0; color:#fff; display:inline-flex; align-items:center; justify-content:center;
    font-size:18px; cursor:pointer; transition:background .15s;
  }
  .lightbox .lb-iconbtn:hover{background:rgba(255,255,255,.22);}

  .lightbox .lb-stage{
    flex:1 1 auto; min-height:0; position:relative;
    display:flex; align-items:center; justify-content:center;
    padding: 0 16px;
  }
  .lightbox .lb-image{
    max-width:min(100%, 1100px); max-height:100%;
    aspect-ratio:4/3; width:100%;
    border-radius:14px; overflow:hidden; background:#0c1410;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: lbZoom .25s cubic-bezier(.2,.7,.3,1);
    position:relative;
  }
  .lightbox .lb-image .placeholder-img{
    width:100%; height:100%;
    background: repeating-linear-gradient(45deg, #2a3531 0 18px, #303c37 18px 36px);
    display:flex; align-items:center; justify-content:center;
    color:#a8b3ad; font-family:'JetBrains Mono', monospace; font-size:14px; padding:20px;
    text-align:center;
  }
  .lightbox .lb-nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.92);
    color:var(--ink); border:0; display:inline-flex; align-items:center; justify-content:center;
    font-size:22px; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.3);
    transition:transform .12s, background .15s;
  }
  .lightbox .lb-nav:hover{background:#fff; transform:translateY(-50%) scale(1.06);}
  .lightbox .lb-nav.prev{left:24px;}
  .lightbox .lb-nav.next{right:24px;}
  @media (max-width: 575.98px){
    .lightbox .lb-nav.prev{left:8px;}
    .lightbox .lb-nav.next{right:8px;}
    .lightbox .lb-nav{width:40px; height:40px; font-size:18px;}
  }

  .lightbox .lb-strip{
    flex:0 0 auto; padding:16px 20px max(16px, env(safe-area-inset-bottom));
    display:flex; gap:8px; overflow-x:auto; justify-content:center;
    scrollbar-width:none;
  }
  .lightbox .lb-strip::-webkit-scrollbar{display:none;}
  .lightbox .lb-strip .lb-thumb{
    flex:0 0 auto; width:64px; height:64px; border-radius:8px;
    border:2px solid transparent; opacity:.5; cursor:pointer; transition:opacity .12s, border-color .12s;
    overflow:hidden;
  }
  .lightbox .lb-strip .lb-thumb:hover{opacity:.9;}
  .lightbox .lb-strip .lb-thumb.active{opacity:1; border-color:var(--bs-primary);}
  .lightbox .lb-strip .lb-thumb .placeholder-img{
    width:100%; height:100%;
    background: repeating-linear-gradient(45deg, #4a5550 0 6px, #5a6660 6px 12px);
  }

  body.lb-open{overflow:hidden;}

  /* ============ AD DETAIL ============ */
  .breadcrumbs{font-size:13px; color:var(--muted); padding:14px 0;}
  .breadcrumbs a{color:var(--muted);}
  .breadcrumbs a:hover{color:var(--bs-primary);}
  .breadcrumbs i{font-size:10px; margin:0 6px;}

  .gallery-main{
    background:#1d2622; aspect-ratio:4/3; border-radius:14px; overflow:hidden; position:relative;
  }
  .gallery-main .placeholder-img{
    width:100%; height:100%;
    background: repeating-linear-gradient(45deg, #2a3531 0 14px, #303c37 14px 28px);
    display:flex; align-items:center; justify-content:center;
    color:#8e9b94; font-family:'JetBrains Mono', monospace; font-size:13px;
  }
  .gallery-main .nav-btn{
    position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%;
    background:rgba(255,255,255,.95); color:var(--ink); border:0; display:inline-flex; align-items:center; justify-content:center;
    font-size:18px;
  }
  .gallery-main .nav-btn.prev{left:12px;}
  .gallery-main .nav-btn.next{right:12px;}
  .gallery-main .counter{
    position:absolute; bottom:12px; right:12px; background:rgba(0,0,0,.6); color:#fff;
    padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600;
  }
  .gallery-thumbs{
    display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; margin-top:8px;
  }
  .gallery-thumb{
    aspect-ratio:1/1; border-radius:8px; overflow:hidden; cursor:pointer; border:2px solid transparent;
  }
  .gallery-thumb.active{border-color:var(--bs-primary);}
  .gallery-thumb .placeholder-img{
    width:100%; height:100%;
    background: repeating-linear-gradient(45deg, #d8d4c5 0 7px, #e2dfd1 7px 14px);
  }

  .phone-reveal{
    background:#f7f5ee; border:1.5px dashed var(--line); border-radius:10px; padding:12px;
    display:flex; align-items:center; gap:10px; cursor:pointer; transition:background .15s;
  }
  .phone-reveal:hover{background:#f1eee3;}
  .phone-reveal.revealed{background:var(--brand-50); border-style:solid; border-color:var(--bs-primary); cursor:default; display: none;}
  .phone-reveal .num{font-family:'JetBrains Mono', monospace; font-weight:600; font-size:16px; letter-spacing:.5px;}
  .phone-reveal .num .hidden-part{filter: blur(5px); user-select:none;}

  .badge-soft{background:var(--brand-50); color:var(--brand-700); font-weight:600; font-size:11.5px; padding:4px 8px; border-radius:6px;}
  .badge-soft.amber{background:var(--accent-50); color:#7a4f00;}
  .badge-soft.gray{background:var(--line-2); color:var(--ink-2);}

  .spec-grid{
    display:grid; grid-template-columns:1fr 1fr; gap:0;
    border:1px solid var(--line); border-radius:12px; overflow:hidden;
  }
  .spec-grid .item{padding:12px 14px; border-bottom:1px solid var(--line);}
  .spec-grid .item:nth-last-child(-n+2){border-bottom:0;}
  .spec-grid .item:nth-child(odd){border-right:1px solid var(--line);}
  .spec-grid .k{font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px;}
  .spec-grid .v{font-weight:600; font-size:14px; color:var(--ink);}

  /* ============ POST AD ============ */
  .stepper{
    display:flex; align-items:center; gap:6px; flex-wrap:nowrap; overflow-x:auto;
    padding:6px 0; margin-bottom:20px;
  }
  .step{
    display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
    background:#fff; border:1px solid var(--line); font-size:13px; color:var(--muted); white-space:nowrap;
  }
  .step.active{background:var(--brand-50); border-color:var(--bs-primary); color:var(--brand-700); font-weight:600;}
  .step.done{background:var(--bs-primary); border-color:var(--bs-primary); color:#fff;}
  .step .num{
    width:20px; height:20px; border-radius:50%; background:rgba(0,0,0,.06); display:inline-flex;
    align-items:center; justify-content:center; font-size:11px; font-weight:700;
  }
  .step.active .num{background:var(--bs-primary); color:#fff;}
  .step.done .num{background:rgba(255,255,255,.25); color:#fff;}
  .step .dash{width:14px; height:1px; background:var(--line);}

  .photo-grid{
    display:grid; grid-template-columns:repeat(2, 1fr); gap:10px;
  }
  @media (min-width:576px){.photo-grid{grid-template-columns:repeat(4, 1fr);}}
  .photo-slot{
    aspect-ratio:1/1; border:2px dashed var(--line); border-radius:12px; background:#fcfbf6;
    display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--muted);
    font-size:12px; gap:6px; cursor:pointer; position:relative;
  }
  .photo-slot:hover{border-color:var(--bs-primary); color:var(--brand-700);}
  .photo-slot.filled{
    background: repeating-linear-gradient(45deg, #e7e3d6 0 8px, #ece8db 8px 16px);
    border-style:solid; border-color:var(--line);
  }
  .photo-slot.filled .remove{
    position:absolute; top:6px; right:6px; width:24px; height:24px; border-radius:50%;
    background:rgba(0,0,0,.6); color:#fff; border:0; display:inline-flex; align-items:center; justify-content:center;
    font-size:12px;
  }
  .photo-slot .primary-tag{
    position:absolute; bottom:6px; left:6px; background:var(--bs-primary); color:#fff;
    padding:2px 8px; border-radius:999px; font-size:10px; font-weight:700; letter-spacing:.04em;
  }
  .photo-slot i{font-size:22px;}

  .form-control, .form-select{
    border:1.5px solid var(--line); border-radius:10px; padding:10px 12px; font-size:14.5px;
    background:#fff;
  }
  .form-control:focus, .form-select:focus{
    border-color:var(--bs-primary); box-shadow:0 0 0 4px rgba(14,138,95,.08);
  }
  .form-label{font-weight:600; font-size:13.5px; margin-bottom:6px;}
  .form-text{font-size:12.5px; color:var(--muted);}

  /* Pill picker */
  .pill-group{display:flex; flex-wrap:wrap; gap:8px;}
  .pill-group label{
    background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:7px 14px;
    font-size:13.5px; font-weight:500; color:var(--ink-2); cursor:pointer; transition:all .12s;
  }
  .pill-group input[type=radio]{display:none;}
  .pill-group input[type=radio]:checked + label{
    background:var(--brand-50); border-color:var(--bs-primary); color:var(--brand-700); font-weight:600;
  }

  /* ============ AUTH ============ */
  .auth-card{
    background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px 24px;
    box-shadow:var(--shadow-sm); max-width:420px; margin:30px auto;
  }
  @media (min-width:768px){.auth-card{padding:36px 32px;}}
  .auth-card h2{font-size:24px; margin-bottom:6px;}
  .auth-card .lede{color:var(--muted); font-size:14px; margin-bottom:22px;}
  .social-btn{
    width:100%; display:inline-flex; align-items:center; justify-content:center; gap:8px;
    background:#fff; border:1.5px solid var(--line); border-radius:10px; padding:10px 14px;
    font-weight:600; font-size:14px; color:var(--ink); transition:background .12s;
  }
  .social-btn:hover{background:var(--line-2); color:var(--ink);}
  .or-sep{display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin:18px 0;}
  .or-sep::before, .or-sep::after{content:""; flex:1; height:1px; background:var(--line);}

  /* ============ DASHBOARD ============ */
  .side-nav{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:8px;
    display:flex; flex-direction:column; gap:2px;
  }
  .side-nav a{
    padding:10px 12px; border-radius:10px; color:var(--ink-2); font-weight:500; font-size:14px;
    display:flex; align-items:center; gap:10px;
  }
  .side-nav a:hover{background:var(--line-2); color:var(--ink);}
  .side-nav a.active{background:var(--brand-50); color:var(--brand-700); font-weight:600;}
  .side-nav a i{font-size:16px; width:18px; text-align:center;}
  .side-nav a .count{margin-left:auto; background:var(--line-2); color:var(--ink-2); font-size:11px; padding:2px 8px; border-radius:999px; font-weight:600;}
  .side-nav a.active .count{background:var(--bs-primary); color:#fff;}

  .stat-card{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px;
  }
  .stat-card .k{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; font-weight:600;}
  .stat-card .v{font-size:26px; font-weight:800; letter-spacing:-0.02em; color:var(--ink); margin-top:4px;}
  .stat-card .d{font-size:12px; color:var(--bs-primary); font-weight:600; margin-top:4px;}

  /* ============ FOOTER ============ */
  footer.site{
    background:#15201A; color:#a8b3ad; padding:40px 0 16px; margin-top:48px;
  }
  footer.site h6{color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px;}
  footer.site a{color:#a8b3ad; display:block; padding:3px 0; font-size:13.5px;}
  footer.site a:hover{color:#fff;}
  footer.site .legal{
    border-top:1px solid rgba(255,255,255,.08); padding-top:16px; margin-top:24px;
    font-size:12.5px; color:#7f8a85;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  }
  footer.site .brand{color:#fff;}
  footer.site .brand .dot{background:var(--bs-primary);}

  /* On mobile the dark footer is redundant \u2014 all those links live in the
     bottom-nav "More" offcanvas. Hide it below the breakpoint so the page
     ends cleanly at the last grid row. */
  @media (max-width: 991.98px){
    footer.site{display:none;}
  }

  /* ============ RECENT SEARCHES PILL ============ */
  .recent-chip{
    display:inline-flex; align-items:center; gap:6px; padding:6px 12px;
    background:#fff; border:1px solid var(--line); border-radius:999px;
    font-size:13px; color:var(--ink-2); cursor:pointer;
  }
  .recent-chip:hover{border-color:var(--bs-primary); color:var(--brand-700);}
  .recent-chip i{font-size:12px; color:var(--muted);}

  /* ============ FLOATING POST BTN ============ */
  .fab-post{
    position:fixed; bottom:18px; right:18px; z-index:1020;
    background:var(--accent); color:#3a2b00; border:0;
    width:56px; height:56px; border-radius:50%;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:22px; box-shadow:0 8px 20px rgba(255,176,32,.4), inset 0 -3px 0 rgba(0,0,0,.1);
  }
  @media (min-width:992px){.fab-post{display:none;}}

  /* ============ MOBILE TWEAKS ============ */
  @media (max-width:767.98px){
    .mainbar .inner{padding:10px 0;}
    .megasearch .form-select{display:none;}
  }

  /* ============ TWEAKS PANEL ============ */
  .tweaks-panel{
    position:fixed; bottom:18px; left:18px; z-index:1050;
    background:#fff; border:1px solid var(--line); border-radius:14px;
    box-shadow:0 14px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    padding:14px; width:280px; display:none;
  }
  .tweaks-panel.open{display:block;}
  .tweaks-panel h6{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;}
  .seg{
    display:flex; background:var(--line-2); border-radius:10px; padding:3px;
  }
  .seg button{
    flex:1; border:0; background:transparent; padding:7px 10px; border-radius:8px;
    font-size:13px; font-weight:600; color:var(--muted); cursor:pointer;
  }
  .seg button.on{background:#fff; color:var(--ink); box-shadow:var(--shadow-sm);}

  /* ============ NAV PAGE ANIM ============ */
  .page{display:none;}
  .page.active{display:block; animation: pageIn .25s ease;}
  @keyframes pageIn{from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:translateY(0);}}

  /* mobile drawer for filters */
  .filter-drawer-toggle{
    background:#fff; border:1px solid var(--line); border-radius:10px;
    padding:8px 12px; font-size:13.5px; font-weight:600; color:var(--ink-2);
    display:inline-flex; align-items:center; gap:6px;
  }
  @media (min-width:992px){.filter-drawer-toggle{display:none;}}

  /* messages list (dashboard) */
  .msg-row{
    display:flex; gap:12px; padding:14px; border-bottom:1px solid var(--line); cursor:pointer;
  }
  .msg-row:hover{background:#fbfaf4;}
  .msg-row.unread{background:#fafef8;}
  .msg-row.unread .name{font-weight:700;}
  .msg-row .name{font-weight:600; font-size:14.5px;}
  .msg-row .preview{color:var(--muted); font-size:13px; margin-top:2px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;}
  .msg-row .time{font-size:11.5px; color:var(--muted); white-space:nowrap;}
  .msg-row .ad-thumb{
    width:46px; height:46px; flex-shrink:0; border-radius:8px;
    background: repeating-linear-gradient(45deg, #e7e3d6 0 6px, #ece8db 6px 12px);
  }
  .unread-dot{width:8px; height:8px; background:var(--bs-primary); border-radius:50%; display:inline-block; margin-left:6px;}

  /* my ads table */
  .myad{
    background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px;
    display:flex; gap:12px; align-items:center;
  }
  .myad .thumb{width:64px; height:64px; flex-shrink:0; border-radius:10px;
    background: repeating-linear-gradient(45deg, #e7e3d6 0 6px, #ece8db 6px 12px);}
  .myad .info{flex:1; min-width:0;}
  .myad .ttl{font-weight:600; font-size:14.5px; line-height:1.3;}
  .myad .meta{font-size:12px; color:var(--muted); margin-top:2px; display:flex; gap:10px; flex-wrap:wrap;}
  .myad .meta .stat-i{display:inline-flex; align-items:center; gap:3px;}
  .myad .actions{display:flex; gap:6px;}
  .myad-status{
    display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:600; padding:3px 8px; border-radius:6px;
  }
  .myad-status.live{background:#e7f5ee; color:var(--brand-700);}
  .myad-status.pending{background:#fff4dc; color:#7a4f00;}
  .myad-status.expired{background:#fbe9eb; color:#a51d1d;}
  .myad-status .dotty{width:6px; height:6px; border-radius:50%; background:currentColor;}

  /* helper utilities */
  .hide-mobile{display:none;}
  @media (min-width:768px){.hide-mobile{display:initial;}}
  .show-mobile{display:initial;}
  @media (min-width:768px){.show-mobile{display:none;}}

  /* ============ PICKER TRIGGERS (cat / loc in megasearch) ============ */
  .picker-trigger{
    background:transparent; border:0; padding:0 12px; height:42px;
    display:inline-flex; align-items:center; gap:6px; color:var(--ink-2);
    font-weight:500; font-size:14px; max-width:170px; cursor:pointer;
  }
  .picker-trigger .label{
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:120px;
  }
  .picker-trigger:hover{color:var(--bs-primary);}
  .picker-trigger .bi-chevron-down{font-size:11px; color:var(--muted);}
  .picker-trigger .bi-geo-alt{color:var(--muted); font-size:14px;}

  /* ============ PICKER MODALS (location / category) ============ */
  .picker-modal .modal-content{
    border:0; border-radius:16px; overflow:hidden;
  }
  .picker-modal .modal-header{
    border-bottom:1px solid var(--line); padding:16px 20px;
    background:#fff;
  }
  .picker-modal .modal-title{font-size:18px; font-weight:700;}
  .picker-modal .modal-body{padding:0; max-height:65vh; overflow:hidden;}
  .picker-modal .picker-search{
    padding:12px 20px; border-bottom:1px solid var(--line); background:#fff;
  }
  .picker-modal .picker-search .form-control{
    border:1.5px solid var(--line); height:44px;
  }
  .picker-modal .picker-search .form-control:focus{
    border-color:var(--bs-primary);
  }
  .picker-cols{
    display:grid; grid-template-columns: 1fr 1.2fr;
    height:50vh; min-height:320px; max-height:480px;
  }
  @media (max-width:575.98px){
    .picker-cols{grid-template-columns:1fr; height:auto; max-height:60vh;}
    .picker-cols .col-detail{display:none;}
    .picker-cols.show-detail .col-master{display:none;}
    .picker-cols.show-detail .col-detail{display:flex;}
  }
  .picker-cols .col{
    overflow-y:auto; padding:8px 0;
  }
  .picker-cols .col-master{border-right:1px solid var(--line); background:#fbfaf4;}
  .picker-cols .col-detail{display:flex; flex-direction:column; background:#fff;}
  .picker-cols .col-detail-inner{flex:1; overflow-y:auto; padding:8px 0;}

  .picker-back{
    display:none; align-items:center; gap:6px; padding:10px 16px;
    background:#fff; border-bottom:1px solid var(--line); color:var(--ink-2);
    font-weight:600; font-size:13.5px; cursor:pointer; border:0; width:100%; text-align:left;
  }
  @media (max-width:575.98px){.picker-cols.show-detail .picker-back{display:flex;}}

  .picker-item{
    display:flex; align-items:center; gap:10px; padding:11px 18px; cursor:pointer;
    font-size:14px; color:var(--ink-2); border-left:3px solid transparent;
    user-select:none;
  }
  .picker-item:hover{background:rgba(14,138,95,.05);}
  .picker-item.active{
    background:var(--brand-50); color:var(--brand-700); font-weight:600;
    border-left-color:var(--bs-primary);
  }
  .picker-item .ico{
    width:28px; height:28px; border-radius:8px; background:var(--brand-50); color:var(--bs-primary);
    display:inline-flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0;
  }
  .picker-item .count{
    margin-left:auto; font-size:11.5px; color:var(--muted); font-weight:500;
  }
  .picker-item .bi-chevron-right{margin-left:auto; color:var(--muted); font-size:11px;}
  .picker-item.all{
    background:#fff; border-bottom:1px solid var(--line); margin-bottom:4px;
    font-weight:600; color:var(--ink);
  }
  .picker-item.all .ico{background:var(--ink); color:#fff;}
  .picker-item.selected-mark::after{
    content:""; width:18px; height:18px; border-radius:50%; background:var(--bs-primary);
    margin-left:auto; flex-shrink:0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.5 4.5L6 12l-3.5-3.5 1-1L6 10l6.5-6.5z'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:center;
  }

  .picker-detail-header{
    padding:14px 18px 8px; font-size:11.5px; color:var(--muted); text-transform:uppercase;
    letter-spacing:.05em; font-weight:700;
  }
  .picker-empty{
    padding:40px 20px; text-align:center; color:var(--muted); font-size:13.5px;
  }
  .picker-modal .modal-footer{
    padding:12px 20px; border-top:1px solid var(--line); background:#fff;
  }
  .picker-modal .selection-chip{
    display:inline-flex; align-items:center; gap:6px; padding:6px 12px;
    background:var(--brand-50); color:var(--brand-700);
    border-radius:999px; font-size:13px; font-weight:600;
  }

  /* ============ LISTING LAYOUT (category/search pages) ============ */
  .listing-layout{
    display:grid; grid-template-columns:260px 1fr; gap:24px; align-items:start;
  }
  @media (max-width:991.98px){
    .listing-layout{grid-template-columns:1fr;}
  }

  /* ============ ADS SIDEBAR ============ */
  .ads-sidebar{position:sticky; top:80px;}
  .ads-sidebar-card{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px;
  }
  .ads-placeholder{
    background:var(--line-2); display:flex; align-items:center; justify-content:center;
    flex-direction:column; gap:6px;
  }
  .ads-placeholder span{
    font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em;
  }

  /* Responsive filter panel — offcanvas on mobile, inline sticky on desktop */
  @media (min-width:992px){
    .filter-sidebar-panel{
      background:#fff !important; border:1px solid var(--line) !important;
      border-radius:14px; padding:16px !important;
      position:sticky; top:80px;
      transform:none !important; visibility:visible !important;
      width:auto !important; height:auto !important;
    }
    .filter-sidebar-panel .offcanvas-header{display:none;}
    .filter-sidebar-panel .offcanvas-body{
      flex-direction:column !important; padding:0 !important;
      overflow-y:visible !important; flex-grow:1;
    }
  }

  .filter-card{
    padding-bottom:16px; border-bottom:1px solid var(--line-2);
  }
  .filter-card:last-child{border-bottom:0; padding-bottom:0;}
  .filter-card h6{font-size:12px; font-weight:700; color:var(--muted); margin-bottom:10px; text-transform:uppercase; letter-spacing:.05em;}
  .listing-main{min-width:0;}
  .listing-toolbar{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    margin-bottom:16px; flex-wrap:wrap;
  }
  .price-range{display:flex; align-items:center; gap:6px;}
  .price-range .form-control{min-width:0;}

  /* Category chips row (listing/index.php) */
  .cat-chips-row{
    display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; margin-bottom:20px;
    scrollbar-width:none;
  }
  .cat-chips-row::-webkit-scrollbar{display:none;}
  .cat-chip{
    display:inline-flex; align-items:center; gap:5px; padding:7px 12px;
    background:#fff; border:1px solid var(--line); border-radius:999px;
    font-size:13px; font-weight:500; color:var(--ink-2); white-space:nowrap;
    text-decoration:none; flex-shrink:0; transition:background .12s, border-color .12s, color .12s;
  }
  .cat-chip:hover{background:var(--line-2); color:var(--ink); border-color:var(--muted);}
  .cat-chip.active{background:var(--brand-50); border-color:var(--bs-primary); color:var(--brand-700); font-weight:600;}
  .cat-chip i{font-size:13px;}

  /* ============ AD DETAIL LAYOUT ============ */
  .ad-detail-layout{
    display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start;
  }
  @media (max-width:991.98px){
    .ad-detail-layout{grid-template-columns:1fr;}
    .ad-detail-sidebar{order:-1;}
  }
  .ad-detail-main{min-width:0;}
  .ad-detail-sidebar{position:sticky; top:88px;}
  .seller-card{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px;
  }
  .seller-header{display:flex; align-items:center; gap:12px; margin-bottom:16px;}
  .seller-avatar{
    width:48px; height:48px; border-radius:50%; background:var(--bs-primary);
    color:#fff; font-size:20px; font-weight:700; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  .seller-name{font-weight:700; font-size:15px; color:var(--ink);}
  .seller-meta{font-size:12px; color:var(--muted); margin-top:2px;}
  .seller-secondary-actions{display:flex; gap:8px; margin-top:14px;}
  .seller-secondary-actions .sa-btn{
    flex:1; display:inline-flex; align-items:center; justify-content:center; gap:5px;
    background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 6px;
    font-size:12px; font-weight:600; color:var(--ink-2); cursor:pointer; text-decoration:none;
    transition:background .12s, border-color .12s;
  }
  .seller-secondary-actions .sa-btn:hover{background:var(--line-2); border-color:var(--muted); color:var(--ink);}
  .seller-secondary-actions .sa-btn i{font-size:14px;}
  .phone-row{
    display:flex; align-items:center; gap:8px; padding:10px 12px; margin-bottom:6px;
    background:var(--bg); border:1px solid var(--line-2); border-radius:10px;
  }
  .phone-row .phone-num{
    flex:1; font-family:'JetBrains Mono',ui-monospace,monospace;
    font-weight:600; font-size:14px; color:var(--ink);
  }
  .phone-row .phone-call{
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; border-radius:8px; border:1px solid var(--bs-primary);
    color:var(--brand-700); background:#fff; text-decoration:none; transition:background .12s;
  }
  .phone-row .phone-call:hover{background:var(--brand-50);}
  .phone-row .phone-wa{
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; border-radius:8px; border:0;
    color:#fff; background:#25d366; text-decoration:none; transition:background .12s;
  }
  .phone-row .phone-wa:hover{background:#1faf57;}
  .spec-grid{
    display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:12px; overflow:hidden;
  }
  .spec-item{
    padding:10px 14px; border-bottom:1px solid var(--line);
  }
  .spec-item:nth-last-child(-n+2){border-bottom:0;}
  .spec-item:nth-child(odd){border-right:1px solid var(--line);}
  .spec-label{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px;}
  .spec-value{font-weight:600; font-size:13px; color:var(--ink-1);}
  .gallery-main{
    aspect-ratio:4/3; background:var(--line-2); border-radius:16px; overflow:hidden; position:relative;
  }
  .gallery-count{
    position:absolute; bottom:10px; right:10px;
    background:rgba(0,0,0,.55); color:#fff; font-size:12px; font-weight:600;
    padding:4px 10px; border-radius:999px;
    display:flex; align-items:center; gap:4px;
  }
  .gallery-thumbs{
    display:flex; gap:8px; margin-top:10px; overflow-x:auto;
  }
  .thumb-item{
    width:72px; height:56px; border-radius:8px; overflow:hidden; flex-shrink:0;
    border:2px solid var(--line); cursor:pointer; transition:border-color .15s;
  }
  .thumb-item.active,.thumb-item:hover{border-color:var(--primary);}
  .detail-section{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px;
  }

  /* ============ SECTION HEADERS (home page) ============ */
  .section-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;}
  .section-title{font-size:18px; font-weight:800; margin:0 0 10px; color:var(--ink-1);}
  .section-link{font-size:13px; color:var(--primary); font-weight:600; text-decoration:none;}
  .section-link:hover{text-decoration:underline;}

  /* ============ DASHBOARD LAYOUT ============ */
  .dashboard-layout{
    display:grid; grid-template-columns:240px 1fr; gap:24px; align-items:start;
  }
  @media (max-width:767.98px){
    .dashboard-layout{grid-template-columns:1fr;}
    .dashboard-nav{display:none;}
  }
  .dashboard-nav{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px;
    position:sticky; top:80px; display:flex; flex-direction:column; gap:4px; min-height:300px;
  }
  .dash-user{display:flex; gap:10px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--line-2); margin-bottom:6px;}
  .dash-avatar{
    width:40px; height:40px; border-radius:50%; background:var(--primary);
    color:#fff; font-weight:700; font-size:16px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .dash-nav-links{display:flex; flex-direction:column; gap:2px;}
  .dash-link{
    display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:10px;
    color:var(--ink-2); font-size:14px; font-weight:500; text-decoration:none;
  }
  .dash-link:hover{background:var(--line-2); color:var(--ink-1);}
  .dash-link.active{background:rgba(14,138,95,.08); color:var(--primary); font-weight:700;}
  .dash-link i{font-size:16px; width:18px; text-align:center;}
  .dashboard-main{min-width:0;}

  /* stat cards */
  .stat-card{
    background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 20px;
    display:flex; flex-direction:column; gap:4px; text-decoration:none;
    transition:box-shadow .15s;
  }
  .stat-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08);}
  .stat-icon{
    width:40px; height:40px; border-radius:10px;
    background:rgba(14,138,95,.10); color:var(--primary);
    display:flex; align-items:center; justify-content:center; font-size:18px;
    margin-bottom:8px;
  }
  .stat-value{font-size:26px; font-weight:800; color:var(--ink-1); line-height:1;}
  .stat-label{font-size:12px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em; margin-top:4px;}

  /* auth logo */
  .auth-logo{text-align:center; margin-bottom:20px;}

  /* empty state */
  .empty-state{text-align:center; padding:48px 24px;}

  /* lightbox */
  .lightbox{
    display:none; position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,.92); align-items:center; justify-content:center;
  }
  .lightbox img{max-width:90vw; max-height:90vh; border-radius:4px; object-fit:contain;}
  .lightbox-close,.lightbox-prev,.lightbox-next{
    position:absolute; background:rgba(255,255,255,.12); border:0; color:#fff;
    width:44px; height:44px; border-radius:50%; font-size:20px;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    transition:background .15s;
  }
  .lightbox-close{top:16px; right:16px;}
  .lightbox-prev{left:16px;}
  .lightbox-next{right:16px;}
  .lightbox-caption{
    position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
    color:rgba(255,255,255,.7); font-size:13px; background:rgba(0,0,0,.4);
    padding:4px 12px; border-radius:999px;
  }

  /* Hero search w/ location for mobile */
  .mobile-search-wrap{
    max-height:0; overflow:hidden; transition:max-height .25s ease, padding .25s ease;
    padding:0 0;
  }
  .mobile-search-wrap.open{
    max-height:180px; padding:0 0 10px;
  }
  .mobile-search{
    background:#fff; border:1.5px solid var(--line); border-radius:14px;
    padding:6px; display:flex; flex-direction:column; gap:6px;
  }
  .mobile-search .ms-row{
    display:flex; align-items:center; gap:6px;
  }
  .mobile-search .ms-row-1 > button{
    flex:1; min-width:0;
  }
  .mobile-search input{
    border:0; box-shadow:none !important; background:transparent;
    height:42px; font-size:15px; min-width:0; flex:1; padding:0 8px;
  }
  .mobile-search input:focus{outline:0;}
  .mobile-search .loc-pill,
  .mobile-search .cat-pill{
    border:0; border-radius:10px;
    padding:9px 12px; font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:6px;
    white-space:nowrap;
  }
  .mobile-search .loc-pill{background:var(--line-2); color:var(--ink-2);}
  .mobile-search .cat-pill{background:var(--brand-50); color:var(--brand-700);}
  .mobile-search .loc-pill span,
  .mobile-search .cat-pill span{
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .mobile-search .filters-pill{
    flex-shrink:0; background:var(--line-2); color:var(--ink-2); border:0; border-radius:10px;
    width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; font-size:17px;
  }
  .mobile-search .filters-pill:hover{background:var(--brand-50); color:var(--brand-700);}
  .mobile-search .btn-primary{
    flex-shrink:0; border-radius:10px; padding:0 14px; height:42px;
    display:inline-flex; align-items:center; justify-content:center; font-size:17px;
  }

  /* ============ ADVANCED FILTERS OFFCANVAS ============ */
  .adv-filters .adv-sec{
    padding:14px 0; border-bottom:1px solid var(--line);
  }
  .adv-filters .adv-sec:last-child{border-bottom:0;}
  .adv-filters .adv-sec h6{
    font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:10px;
    text-transform:none; letter-spacing:0;
  }
  .adv-filters .adv-cat-specific{display:none;}
  .adv-filters .adv-cat-specific.show{display:block;}
  

  .adv-seg{
    display:grid; grid-template-columns:1fr 1fr; gap:8px;
  }
  .adv-seg button{
    background:#fff; border:1.5px solid var(--line); border-radius:10px;
    padding:10px 12px; font-size:13.5px; color:var(--ink-2); font-weight:500;
    display:inline-flex; align-items:center; gap:6px; justify-content:flex-start;
    text-align:left;
  }
  .adv-seg button i{font-size:14px; color:var(--muted);}
  .adv-seg button.on{
    background:var(--brand-50); border-color:var(--bs-primary); color:var(--brand-700); font-weight:600;
  }
  .adv-seg button.on i{color:var(--bs-primary);}

  .adv-check{display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink-2);}
  .adv-check input{width:18px; height:18px;}

  .adv-footer{
    position:absolute; bottom:0; left:0; right:0; background:#fff;
    border-top:1px solid var(--line);
    padding:12px 16px max(12px, env(safe-area-inset-bottom));
    display:flex; align-items:center; gap:10px;
  }
  .adv-footer .btn-link{color:var(--ink-2); font-weight:600; text-decoration:none; padding:10px 4px;}
  .adv-footer .btn-link:hover{color:var(--danger);}
  .adv-footer .btn-primary{padding:12px; border-radius:10px; font-size:15px; font-weight:700;}

  @media (min-width:768px){
    #advFilters{
      left:25% !important; right:25% !important;
      border-radius:18px 18px 0 0 !important;
    }
  }

  /* ============ MOBILE BOTTOM NAV ============ */
  .mob-tabbar{
    display:flex; align-items:stretch; justify-content:space-between;
    position:fixed; bottom:0; left:0; right:0; z-index:1040;
    background:rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top:1px solid var(--line);
    padding: 4px 4px max(4px, env(safe-area-inset-bottom)) 4px;
  }
  @media (min-width:992px){.mob-tabbar{display:none;}}
  .mob-tab{
    flex:1; background:transparent; border:0; padding:7px 4px;
    display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
    gap:2px; color:var(--muted); font-size:10.5px; font-weight:600;
    text-decoration:none; min-width:0;
  }
  .mob-tab i{font-size:21px; line-height:1;}
  .mob-tab:hover, .mob-tab.active{color:var(--bs-primary);}
  .mob-tab .lbl{letter-spacing:.01em;}
  .mob-tab.post{
    color:#3a2b00; transform: translateY(-8px);
  }
  .mob-tab.post .ico-wrap{
    width:50px; height:50px; border-radius:50%; background:var(--accent);
    display:inline-flex; align-items:center; justify-content:center;
    box-shadow:0 6px 16px rgba(255,176,32,.45), inset 0 -3px 0 rgba(0,0,0,.1);
    margin-bottom:2px;
  }
  .mob-tab.post .ico-wrap i{font-size:24px; color:#3a2b00;}
  .mob-tab.post .lbl{color:var(--ink-2);}

  /* ============ CHAT PAGE ============ */
  .chat-shell{
    background:#fff; border:1px solid var(--line); border-radius:14px;
    overflow:hidden; display:grid; grid-template-columns: 320px 1fr;
    height: calc(100vh - 200px); min-height:540px; max-height:820px;
    box-shadow: var(--shadow-sm);
  }
  @media (max-width: 991.98px){
    .chat-shell{
      grid-template-columns:1fr; border:0; border-radius:0;
      height: calc(100vh - 60px); min-height:0; max-height:none;
      box-shadow:none;
    }
  }

  /* Conversation list (left pane) */
  .chat-list{
    display:flex; flex-direction:column; min-height:0;
    border-right:1px solid var(--line); background:#fff;
  }
  .chat-list-head{
    flex:0 0 auto; padding:14px 16px 10px;
    border-bottom:1px solid var(--line);
  }
  .chat-list-head h2{font-size:18px; margin:0 0 8px;}
  .chat-list-head .filter-row{
    display:flex; gap:6px; overflow-x:auto; scrollbar-width:none;
    margin-bottom:8px;
  }
  .chat-list-head .filter-row::-webkit-scrollbar{display:none;}
  .chat-list-head .filter-chip{
    flex:0 0 auto; padding:5px 11px; background:var(--line-2); border:0;
    border-radius:999px; font-size:12px; font-weight:600; color:var(--ink-2);
    display:inline-flex; align-items:center; gap:5px; cursor:pointer;
  }
  .chat-list-head .filter-chip.on{background:var(--brand-50); color:var(--brand-700);}
  .chat-list-head .filter-chip .count{
    background:rgba(0,0,0,.08); padding:1px 6px; border-radius:999px; font-size:10.5px;
  }
  .chat-list-head .search{
    position:relative;
  }
  .chat-list-head .search input{
    width:100%; height:38px; border:1.5px solid var(--line); border-radius:10px;
    padding:6px 12px 6px 36px; font-size:13.5px;
  }
  .chat-list-head .search .bi{
    position:absolute; top:50%; left:12px; transform:translateY(-50%);
    color:var(--muted); font-size:13px;
  }

  .chat-list-body{flex:1 1 auto; overflow-y:auto;}
  .convo{
    display:flex; gap:12px; padding:12px 16px; cursor:pointer; position:relative;
    border-bottom:1px solid var(--line-2); transition:background .12s;
  }
  .convo:hover{background:#fbfaf4;}
  .convo.active{background:var(--brand-50);}
  .convo.active::before{
    content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--bs-primary);
  }
  .convo .avatar-wrap{position:relative; flex-shrink:0;}
  .convo .avatar{width:44px; height:44px; font-size:15px;}
  .convo .status-dot{
    position:absolute; bottom:0; right:0; width:11px; height:11px; border-radius:50%;
    background:#ccc; border:2px solid #fff;
  }
  .convo .status-dot.online{background:#22c55e;}
  .convo .info{flex:1; min-width:0;}
  .convo .top-row{display:flex; justify-content:space-between; gap:6px; align-items:baseline;}
  .convo .name{
    font-weight:600; font-size:14.5px; color:var(--ink);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .convo.unread .name{font-weight:800;}
  .convo .time{font-size:11.5px; color:var(--muted); flex-shrink:0;}
  .convo.unread .time{color:var(--bs-primary); font-weight:700;}
  .convo .last{
    font-size:12.5px; color:var(--muted); margin-top:2px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    display:flex; align-items:center; gap:6px;
  }
  .convo.unread .last{color:var(--ink-2); font-weight:600;}
  .convo .ad-pill{
    display:inline-flex; align-items:center; gap:5px; padding:2px 7px;
    background:var(--line-2); border-radius:999px; font-size:11px; color:var(--ink-2);
    margin-top:5px; max-width:100%;
  }
  .convo .ad-pill .ad-thumb-mini{
    width:16px; height:16px; border-radius:4px; flex-shrink:0;
    background: repeating-linear-gradient(45deg, #d8d4c5 0 3px, #e2dfd1 3px 6px);
  }
  .convo .ad-pill span{
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .convo .unread-pill{
    background:var(--bs-primary); color:#fff; border-radius:999px;
    padding:2px 7px; font-size:11px; font-weight:700; margin-left:auto;
  }

  /* Thread (right pane) */
  .chat-thread{
    display:flex; flex-direction:column; min-height:0; background:#f5f4ee;
    position:relative;
  }
  .chat-thread.empty{
    align-items:center; justify-content:center; padding:40px; text-align:center; color:var(--muted);
    background: linear-gradient(180deg, #fafaf6 0%, #f1f0e9 100%);
  }
  .chat-thread.empty i{font-size:48px; color:var(--line); margin-bottom:14px;}
  .chat-thread.empty h3{font-size:18px; color:var(--ink); margin-bottom:6px;}
  .chat-thread.empty p{max-width:280px; font-size:13.5px; line-height:1.5;}

  .thread-header{
    flex:0 0 auto; background:#fff; border-bottom:1px solid var(--line);
    padding:10px 16px; display:flex; align-items:center; gap:10px;
  }
  .thread-header .th-back{
    width:36px; height:36px; border-radius:50%; border:0; background:transparent;
    display:none; align-items:center; justify-content:center; color:var(--ink); font-size:18px;
  }
  .thread-header .th-back:hover{background:var(--line-2);}
  @media (max-width: 991.98px){.thread-header .th-back{display:inline-flex;}}
  .thread-header .avatar{width:40px; height:40px; font-size:14px;}
  .thread-header .meta{flex:1; min-width:0;}
  .thread-header .name{font-weight:700; font-size:14.5px; display:flex; align-items:center; gap:6px;}
  .thread-header .verified-tick{color:var(--bs-primary); font-size:12px;}
  .thread-header .status{font-size:11.5px; color:var(--muted); display:flex; align-items:center; gap:5px;}
  .thread-header .status .dotty{width:7px; height:7px; border-radius:50%; background:#22c55e;}
  .thread-header .th-actions{display:flex; gap:4px;}
  .thread-header .th-actions .icon-btn{width:36px; height:36px; border:0; border-radius:50%;}
  .thread-header .th-actions .icon-btn:hover{background:var(--line-2);}

  /* Ad context strip — what the conversation is about */
  .thread-ad-strip{
    flex:0 0 auto; background:#fff; padding:10px 16px;
    border-bottom:1px solid var(--line);
    display:flex; align-items:center; gap:10px; cursor:pointer;
  }
  .thread-ad-strip:hover{background:#fbfaf4;}
  .thread-ad-strip .ad-thumb-sm{
    width:42px; height:42px; border-radius:8px; flex-shrink:0;
    background: repeating-linear-gradient(45deg, #d8d4c5 0 6px, #e2dfd1 6px 12px);
  }
  .thread-ad-strip .ad-info{flex:1; min-width:0;}
  .thread-ad-strip .ad-title{font-size:13px; color:var(--ink-2);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .thread-ad-strip .ad-price{font-weight:800; font-size:14px; color:var(--ink); letter-spacing:-0.01em;}
  .thread-ad-strip .bi-chevron-right{color:var(--muted); font-size:13px;}

  /* Messages area */
  .thread-body{
    flex:1 1 auto; min-height:0; overflow-y:auto;
    padding:18px 16px 8px;
    display:flex; flex-direction:column; gap:4px;
  }
  .thread-body::-webkit-scrollbar{width:6px;}
  .thread-body::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12); border-radius:999px;}

  .date-sep{
    align-self:center; padding:5px 12px; background:rgba(0,0,0,.06);
    border-radius:999px; font-size:11px; color:var(--muted); font-weight:600;
    margin:10px 0 6px;
  }

  .msg-row{display:flex; max-width:100%;}
  .msg-row.sent{justify-content:flex-end;}
  .msg-row.recv{justify-content:flex-start;}
  .msg-row + .msg-row{margin-top:2px;}
  .msg-row.gap{margin-top:10px;}

  .bubble{
    max-width:78%; padding:9px 13px; border-radius:18px; font-size:14px;
    line-height:1.4; word-wrap:break-word; box-shadow: 0 1px 2px rgba(0,0,0,.04);
    position:relative;
  }
  .msg-row.recv .bubble{
    background:#fff; color:var(--ink); border-bottom-left-radius:6px;
  }
  .msg-row.sent .bubble{
    background:var(--bs-primary); color:#fff; border-bottom-right-radius:6px;
  }
  .msg-row.recv + .msg-row.recv .bubble{border-top-left-radius:6px;}
  .msg-row.sent + .msg-row.sent .bubble{border-top-right-radius:6px;}

  .bubble .time{
    display:block; font-size:10.5px; opacity:.7; margin-top:4px; font-weight:500;
    text-align:right;
  }
  .msg-row.recv .bubble .time{color:var(--muted); opacity:1;}
  .msg-row.sent .bubble .time{color:rgba(255,255,255,.78);}
  .bubble .time .read-tick{margin-left:4px;}

  /* Special bubble types */
  .bubble.offer{
    background:#fff !important; border:1.5px solid var(--accent);
    color:var(--ink) !important; padding:14px; border-radius:16px;
    min-width:240px;
  }
  .msg-row.sent .bubble.offer{
    border-color:var(--bs-primary);
  }
  .bubble.offer .label{
    font-size:11.5px; color:var(--muted); text-transform:uppercase;
    letter-spacing:.06em; font-weight:700; margin-bottom:4px;
  }
  .bubble.offer .amount{font-size:22px; font-weight:800; letter-spacing:-0.02em;}
  .bubble.offer .sub{font-size:12px; color:var(--muted); margin-top:2px;}
  .bubble.offer .actions{
    display:flex; gap:6px; margin-top:10px;
  }
  .bubble.offer .actions button{
    flex:1; border:0; border-radius:8px; padding:7px; font-size:12.5px; font-weight:700;
    cursor:pointer;
  }
  .bubble.offer .actions .accept{background:var(--bs-primary); color:#fff;}
  .bubble.offer .actions .reject{background:var(--line-2); color:var(--ink-2);}
  .bubble.offer .actions .counter{background:var(--accent); color:#3a2b00;}
  .msg-row.sent .bubble.offer .time{color:var(--muted);}

  .bubble.image{
    padding:4px; background:#fff !important;
  }
  .bubble.image .img-ph{
    width:240px; aspect-ratio:4/3; border-radius:12px; overflow:hidden;
    background: repeating-linear-gradient(45deg, #d8d4c5 0 8px, #e2dfd1 8px 16px);
    display:flex; align-items:center; justify-content:center;
    color:#8a8474; font-family:'JetBrains Mono', monospace; font-size:11px;
  }
  .bubble.image .time{padding:0 8px 6px;}
  .msg-row.sent .bubble.image .time{color:var(--muted);}

  /* Typing indicator */
  .typing{
    display:inline-flex; align-items:center; gap:4px;
    background:#fff; padding:11px 14px; border-radius:18px 18px 18px 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }
  .typing .dot{
    width:7px; height:7px; border-radius:50%; background:var(--muted);
    animation: typingBounce 1.2s infinite;
  }
  .typing .dot:nth-child(2){animation-delay:.18s;}
  .typing .dot:nth-child(3){animation-delay:.36s;}
  @keyframes typingBounce{
    0%,60%,100%{opacity:.35; transform:translateY(0);}
    30%{opacity:1; transform:translateY(-3px);}
  }

  /* Quick replies + input */
  .thread-input-wrap{
    flex:0 0 auto; background:#fff; border-top:1px solid var(--line);
    padding:10px 12px max(10px, env(safe-area-inset-bottom));
  }
  .quick-replies{
    display:flex; gap:6px; overflow-x:auto; scrollbar-width:none;
    padding-bottom:8px;
  }
  .quick-replies::-webkit-scrollbar{display:none;}
  .quick-reply{
    flex:0 0 auto; padding:6px 12px; background:var(--line-2); border:0;
    border-radius:999px; font-size:12.5px; font-weight:500; color:var(--ink-2);
    cursor:pointer; white-space:nowrap;
  }
  .quick-reply:hover{background:var(--brand-50); color:var(--brand-700);}

  .thread-input{
    display:flex; align-items:end; gap:6px;
    background:var(--bg); border-radius:22px; padding:4px 4px 4px 8px;
  }
  .thread-input .input-icon{
    width:38px; height:38px; border-radius:50%; border:0; background:transparent;
    display:inline-flex; align-items:center; justify-content:center;
    color:var(--ink-2); font-size:18px; flex-shrink:0; cursor:pointer;
  }
  .thread-input .input-icon:hover{background:var(--line-2);}
  .thread-input textarea{
    flex:1; min-width:0; resize:none; border:0; background:transparent;
    padding:9px 4px; font-size:14.5px; max-height:120px; min-height:38px;
    font-family:inherit;
  }
  .thread-input textarea:focus{outline:0;}
  .thread-input .send-btn{
    width:38px; height:38px; border-radius:50%; border:0;
    background:var(--bs-primary); color:#fff;
    display:inline-flex; align-items:center; justify-content:center; font-size:16px;
    flex-shrink:0; cursor:pointer; transition:transform .08s, background .12s;
  }
  .thread-input .send-btn:disabled{background:var(--line); cursor:default;}
  .thread-input .send-btn:active{transform:scale(.94);}

  /* Attach popover */
  .attach-popover{
    position:absolute; bottom:80px; left:14px; z-index:5;
    background:#fff; border:1px solid var(--line); border-radius:14px;
    padding:6px; box-shadow: 0 14px 40px rgba(0,0,0,.12); display:none;
    min-width:180px;
  }
  .attach-popover.open{display:block;}
  .attach-popover button{
    display:flex; align-items:center; gap:10px; width:100%;
    padding:9px 12px; border:0; background:transparent; border-radius:10px;
    font-size:13.5px; color:var(--ink-2); font-weight:500; text-align:left; cursor:pointer;
  }
  .attach-popover button:hover{background:var(--line-2); color:var(--ink);}
  .attach-popover button i{font-size:17px; width:20px; text-align:center;}
  .attach-popover button.offer i{color:var(--accent);}
  .attach-popover button.photo i{color:#2566c5;}
  .attach-popover button.location i{color:#c73a4b;}

  /* Mobile master/detail toggling */
  @media (max-width: 991.98px){
    body.in-chat-thread .chat-list{display:none;}
    body:not(.in-chat-thread) .chat-thread{display:none;}
    /* When inside a chat thread on mobile, hide the bottom tabbar */
    body.in-chat-thread .mob-tabbar{display:none;}
    body.in-chat-thread main{padding-bottom:0;}
  }

  /* On mobile, when on chat page, kill the regular container padding so the
     shell fills edge-to-edge */
  @media (max-width: 991.98px){
    body.on-chat-page main > section.page[data-route="chat"] > .container{
      padding:0; max-width:none;
    }
    body.on-chat-page .breadcrumbs{display:none;}
  }

  /* Add bottom padding to body so content doesn't hide under tabbar */
  @media (max-width:991.98px){
    main{padding-bottom:80px;}
    footer.site{padding-bottom:90px;}
  }

  /* ============ AD DETAIL — MOBILE CHROME ============ */
  /* When on the ad detail page, mobile gets its own top header (back + icons)
     and a sticky bottom action bar (call/chat/whatsapp). The regular site
     header and bottom tabbar are hidden. Desktop is unchanged. */
  .ad-mobile-header{
    display:none;
    position:sticky; top:0; z-index:1030; background:#fff;
    border-bottom:1px solid var(--line);
    padding:8px 12px; align-items:center; gap:6px;
  }
  .ad-mobile-header .ad-mh-back{
    width:40px; height:40px; border-radius:10px; border:0; background:transparent;
    display:inline-flex; align-items:center; justify-content:center; color:var(--ink);
    font-size:20px;
  }
  .ad-mobile-header .ad-mh-back:hover{background:var(--line-2);}
  .ad-mobile-header .ad-mh-title{
    flex:1; min-width:0;
    font-weight:700; font-size:15px; color:var(--ink);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .ad-mobile-header .ad-mh-actions{display:flex; gap:2px;}
  .ad-mobile-header .ad-mh-icon{
    width:38px; height:38px; border-radius:10px; border:0; background:transparent;
    display:inline-flex; align-items:center; justify-content:center;
    color:var(--ink-2); font-size:17px;
  }
  .ad-mobile-header .ad-mh-icon:hover{background:var(--line-2); color:var(--ink);}
  .ad-mobile-header .ad-mh-icon.on i{color:var(--danger);}

  .ad-mobile-actionbar{
    display:none;
    position:fixed; bottom:0; left:0; right:0; z-index:1040;
    background:#fff; border-top:1px solid var(--line);
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    gap:8px;
  }
  .ad-mobile-actionbar .amab-btn{
    flex:1; border:0; border-radius:10px; padding:8px 8px;
    display:inline-flex; flex-direction:row; align-items:center; justify-content:center;
    gap:6px; font-size:13px; font-weight:700; letter-spacing:.01em;
    cursor:pointer; transition:transform .08s; min-height:42px;
  }
  .ad-mobile-actionbar .amab-btn i{font-size:16px;}
  .ad-mobile-actionbar .amab-btn:active{transform:scale(.97);}
  .ad-mobile-actionbar .amab-btn.call{background:var(--brand-50); color:var(--brand-700);}
  .ad-mobile-actionbar .amab-btn.chat{background:var(--bs-primary); color:#fff;}
  .ad-mobile-actionbar .amab-btn.whatsapp{background:#25D366; color:#fff;}
  .ad-mobile-actionbar .amab-btn.call:hover{background:#d8edde;}
  .ad-mobile-actionbar .amab-btn.whatsapp:hover{background:#1faf57;}
  .ad-mobile-actionbar .amab-btn.chat:hover{background:var(--brand-700);}

  /* Page hooks — when ad page is active on mobile, swap the chrome */
  @media (max-width: 991.98px){
    body.on-ad-page > header,
    body.on-ad-page .mob-tabbar{display:none;}
    body.on-ad-page .ad-mobile-header{display:flex;}
    body.on-ad-page .ad-mobile-actionbar{display:flex;}
    /* Hide the in-page breadcrumbs + the desktop sidebar seller card actions
       since the new chrome covers all of those affordances. */
    body.on-ad-page .page[data-route="ad"] .breadcrumbs{display:none;}
  }

  /* ============ MORE MENU OFFCANVAS (footer links on mobile) ============ */
  .more-menu .offcanvas-body{padding:0;}
  .more-menu .menu-section{
    padding:18px 20px 12px; border-bottom:1px solid var(--line);
  }
  .more-menu .menu-section:last-child{border-bottom:0;}
  .more-menu .menu-section h6{
    font-size:11.5px; color:var(--muted); text-transform:uppercase;
    letter-spacing:.06em; font-weight:700; margin-bottom:10px;
  }
  .more-menu .menu-link{
    display:flex; align-items:center; gap:12px; padding:10px 0;
    color:var(--ink); font-size:14.5px; font-weight:500;
  }
  .more-menu .menu-link i{
    width:24px; font-size:17px; color:var(--muted); flex-shrink:0;
  }
  .more-menu .menu-link:hover{color:var(--bs-primary);}
  .more-menu .menu-link:hover i{color:var(--bs-primary);}
  .more-menu .menu-link .bi-arrow-up-right{
    margin-left:auto; font-size:12px; color:var(--muted);
  }
  .more-menu .social-row{
    display:flex; gap:10px; padding:14px 20px;
  }
  .more-menu .social-row a{
    width:44px; height:44px; border-radius:12px; background:var(--line-2);
    color:var(--ink); display:inline-flex; align-items:center; justify-content:center;
    font-size:18px;
  }
  .more-menu .social-row a:hover{background:var(--brand-50); color:var(--bs-primary);}
  .more-menu .user-card{
    background:linear-gradient(140deg, var(--brand-50), #f3f7f1);
    padding:18px 20px; display:flex; align-items:center; gap:12px;
  }
  .more-menu .user-card .avatar{width:44px; height:44px; font-size:16px;}
  #advFiltersBtnDesktop{margin-left: 10px;}
