/* ============================================================
   dark.css — Mode fosc (base Proty .dark-theme) adaptat a IMMOAC
   2026-12-05 · de moment només a test (DARK_MODE=1 per activar-lo a producció)
   Paleta: fons #14171b · superfície #1d2227 · superfície 2 #252b31 · línia #2e353c
           text #eceff2 · text secundari #a7b0ba · blau marca clar #62a6d5
   ============================================================ */

/* ── Botó del tema (també en mode clar) ── */
.theme-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1px solid transparent;background:transparent;color:#1f242a;cursor:pointer;transition:background .25s,color .25s,border-color .25s;margin-inline:4px;padding:0;}
.theme-btn:hover{background:rgba(31,36,42,.06);}
.theme-btn:focus-visible{outline:2px solid #2b71a1;outline-offset:2px;}
.theme-btn .i-sun{display:none;}
body.dark-theme .theme-btn{color:#eceff2;}
body.dark-theme .theme-btn:hover{background:rgba(255,255,255,.08);}
body.dark-theme .theme-btn .i-sun{display:block;}
body.dark-theme .theme-btn .i-moon{display:none;}

/* ── Base ── */
body.dark-theme{--White:#1d2227;--bg-body-color:#14171b;--Heading:#eceff2;--Text:#a7b0ba;--Text-2:#eceff2;--Line:#2e353c;--Sub-primary-1:#1d2227;
  --ink-primary:#62a6d5;--ink-muted:#a7b0ba;background:#14171b!important;color:#c9d0d7;color-scheme:dark;}
body.dark-theme ::selection{background:#62a6d5;color:#14171b;}
body.dark-theme #wrapper,body.dark-theme .main-content,body.dark-theme #page{background:#14171b!important;}
body.dark-theme h1,body.dark-theme h2,body.dark-theme h3,body.dark-theme h4,body.dark-theme h5,body.dark-theme h6,
body.dark-theme .h1,body.dark-theme .h2,body.dark-theme .h3,body.dark-theme .h4,body.dark-theme .h5,body.dark-theme .h6{color:#eceff2;}
body.dark-theme p,body.dark-theme .text-1,body.dark-theme .text-2,body.dark-theme .text-3{color:#a7b0ba;}
body.dark-theme a{color:inherit;}

/* ── Capçalera ── */
body.dark-theme .header,body.dark-theme .header .header-inner,body.dark-theme .header.header-sticky,body.dark-theme .header-fixed{background:#181c21!important;border-color:#2e353c!important;box-shadow:0 1px 0 #2e353c!important;}
body.dark-theme .header .main-menu .navigation>li>a,body.dark-theme .header .phone-number,body.dark-theme .header .phone-number a,
body.dark-theme .header .phone-number .icons i,body.dark-theme .fav-header-btn,body.dark-theme .header .mobile-button,
body.dark-theme .header .lang-switch,body.dark-theme .header [class*="lang"] > a,body.dark-theme .header [class*="lang"] button{color:#eceff2!important;}
body.dark-theme .header .main-menu .navigation>li.current>a,body.dark-theme .header .main-menu .navigation>li>a:hover{color:#62a6d5!important;}
body.dark-theme .header .mobile-button span,body.dark-theme .header .mobile-button span::before,body.dark-theme .header .mobile-button span::after,
body.dark-theme .mobile-button::before,body.dark-theme .mobile-button::after{background:#eceff2!important;}
body.dark-theme .header .sub-menu,body.dark-theme .header .dropdown-menu,body.dark-theme .header ul.sub-menu{background:#1d2227!important;border-color:#2e353c!important;box-shadow:0 18px 40px -12px rgba(0,0,0,.6)!important;}
body.dark-theme .header .sub-menu a,body.dark-theme .header .dropdown-menu a{color:#d5dbe1!important;}
body.dark-theme .header .sub-menu a:hover,body.dark-theme .header .dropdown-menu a:hover{color:#62a6d5!important;background:#252b31!important;}
body.dark-theme .offcanvas,body.dark-theme #menu-mobile{background:#181c21!important;color:#eceff2;}
body.dark-theme #menu-mobile a{color:#eceff2!important;}

/* ── Portada: capçal + cercador ── */
body.dark-theme .page-title.home01 .hero-bg-light{opacity:.35;}
body.dark-theme .wg-filter .form-title,body.dark-theme .immo-search-bar{background:#1d2227!important;border-color:#2e353c!important;box-shadow:0 24px 60px -20px rgba(0,0,0,.7)!important;}
body.dark-theme .immo-search-bar *{border-color:#2e353c!important;}
body.dark-theme .immo-search-bar label,body.dark-theme .immo-search-bar .isb-label,body.dark-theme .immo-search-bar [class*="label"]{color:#a7b0ba!important;}
body.dark-theme .immo-search-bar input,body.dark-theme .immo-search-bar select,body.dark-theme .immo-search-bar .nice-select,
body.dark-theme .immo-search-bar .current,body.dark-theme .immo-search-bar .isb-text-input{background:#252b31!important;color:#eceff2!important;}
body.dark-theme .immo-search-bar input::placeholder{color:#8a949e!important;}
body.dark-theme .immo-search-bar .nice-select .list,body.dark-theme .nice-select .list{background:#1d2227!important;border:1px solid #2e353c!important;}
body.dark-theme .nice-select .option{color:#d5dbe1!important;}
body.dark-theme .nice-select .option:hover,body.dark-theme .nice-select .option.focus,body.dark-theme .nice-select .option.selected.focus{background:#252b31!important;}
body.dark-theme .isb-op-toggle{background:#252b31!important;}
body.dark-theme .isb-op-btn{color:#d5dbe1!important;}
body.dark-theme .isb-op-btn.active{background:#2b71a1!important;color:#fff!important;}
body.dark-theme .isb-op-btn[data-value="rent"].active{background:#c8650f!important;}
body.dark-theme .wd-search-form,body.dark-theme .wd-search-form *{background-color:#1d2227;color:#d5dbe1;border-color:#2e353c!important;}

/* ── Seccions de la portada ── */
body.dark-theme .hm-alt,body.dark-theme .section-categories,body.dark-theme .section-listing,body.dark-theme .hm-sec{background:#14171b!important;}
body.dark-theme .hm-sec .heading-section .title,body.dark-theme .nb-bgimg .heading-section .title,body.dark-theme .hm-feat .heading-section .title{color:#eceff2!important;}
body.dark-theme .hm-sub,body.dark-theme .hm-sec .heading-section .hm-sub,body.dark-theme .nb-bgimg .heading-section .hm-sub,body.dark-theme .hm-feat .heading-section .hm-sub{color:#a7b0ba!important;}
body.dark-theme .nb-ic{background:#252b31!important;border-color:#2e353c!important;color:#62a6d5!important;}
/* tipus */
body.dark-theme .hm-cat .categories-item{background:#1d2227!important;border-color:#2e353c!important;}
body.dark-theme .hm-cat .categories-item .icon-box .icon,body.dark-theme .hm-cat .categories-item .content .hm-cat-n{color:#eceff2!important;}
body.dark-theme .hm-cat .categories-item .content p{color:#a7b0ba!important;}
@media(hover:hover){body.dark-theme .hm-cat .categories-item:hover{border-color:#62a6d5!important;box-shadow:0 14px 30px rgba(0,0,0,.45)!important;}
  body.dark-theme .hm-cat .categories-item:hover .icon-box .icon{color:#62a6d5!important;}}
body.dark-theme .sw-pagination .swiper-pagination-bullet{background:#4a535c;}
/* mapa de parròquies */
body.dark-theme .pm-sec{background:#181c21!important;}
body.dark-theme .pm-bg{opacity:.55!important;filter:brightness(.42) saturate(.75)!important;}   /* foto de fons visible també en fosc (Loti 2026-12-05) */
body.dark-theme .pm-bgimg::before,body.dark-theme .pm-sec::before{background:linear-gradient(180deg,rgba(20,23,27,.72),rgba(20,23,27,.45) 50%,rgba(20,23,27,.72))!important;}
body.dark-theme .pm-h{color:#eceff2!important;}
body.dark-theme .pm-li{background:rgba(29,34,39,.92)!important;border-color:#2e353c!important;}
body.dark-theme .pm-nm{color:#eceff2!important;}
body.dark-theme .pm-op{background:rgba(98,166,213,.14)!important;color:#bcd9ee!important;}
body.dark-theme .pm-op-r{background:rgba(216,198,43,.14)!important;color:#e9dc8a!important;}
body.dark-theme .pm-op b{color:inherit!important;}
/* targetes de propietat */
body.dark-theme .box-house{background:#1d2227!important;border-color:#2e353c!important;box-shadow:none!important;}
body.dark-theme .box-house .content,body.dark-theme .box-house .bottom,body.dark-theme .box-house .info,body.dark-theme .box-house .meta-list{background:#1d2227!important;}
body.dark-theme .box-house .content,body.dark-theme .box-house .content *{border-color:#2e353c!important;}
body.dark-theme .box-house .title a,body.dark-theme .box-house .title,body.dark-theme .box-house .content .h5,body.dark-theme .box-house .price{color:#eceff2!important;}
body.dark-theme .box-house .location,body.dark-theme .box-house .location *,body.dark-theme .box-house .meta-list,body.dark-theme .box-house .meta-list *,
body.dark-theme .box-house .text-color-primary{color:#a7b0ba!important;}
body.dark-theme .box-house .meta-list b,body.dark-theme .box-house .meta-list strong{color:#eceff2!important;}
body.dark-theme .box-house i,body.dark-theme .box-house svg{color:#a7b0ba;}
body.dark-theme .card-fav,body.dark-theme .card-fav-top{background:#252b31!important;color:#eceff2!important;}
/* zones */
body.dark-theme .nb-bgimg{background:#14171b!important;}
body.dark-theme .nb-bgimg::before{background:linear-gradient(180deg,rgba(20,23,27,.96) 0%,rgba(20,23,27,.85) 35%,rgba(20,23,27,.6) 75%,rgba(20,23,27,.9) 100%)!important;}
body.dark-theme .nb-bg{filter:brightness(.6) saturate(.8);}
body.dark-theme .nb-par .box-location .tf-btn{background:#1d2227!important;color:#eceff2!important;border-color:#2e353c!important;}
/* botons */
body.dark-theme .tf-btn.bg-color-primary{background:#2b71a1!important;color:#fff!important;}
body.dark-theme .tf-btn.bg-color-primary:hover{background:#62a6d5!important;color:#14171b!important;}

/* ── Peu ── */
body.dark-theme .footer,body.dark-theme #footer{background:#0f1215!important;}

/* Venda blau / Lloguer taronja també en fosc: blau sòlid de marca perquè el text blanc es llegeixi */
body.dark-theme .box-house .flat-tag:not(.tag-rent):not(.tag-new-build){background:#2b71a1!important;color:#fff!important;}
body.dark-theme .bg-color-primary,body.dark-theme .btn-primary,body.dark-theme .tf-btn.bg-color-primary,body.dark-theme .immo-search-bar button[type="submit"]{background-color:#2b71a1!important;border-color:#2b71a1!important;color:#fff!important;}
body.dark-theme .immo-search-bar .tf-btn.isb-submit,body.dark-theme .wg-filter .isb-submit{background:#2b71a1!important;background-image:none!important;border-color:#2b71a1!important;color:#fff!important;}
body.dark-theme .immo-search-bar .tf-btn.isb-submit:hover{background:#62a6d5!important;color:#14171b!important;}
/* els botons de ui-polish usen var(--ink-primary) amb selectors molt específics: en fosc, el botó manté el blau de marca sòlid */
body.dark-theme .tf-btn,body.dark-theme .btn-primary,body.dark-theme .bg-color-primary,body.dark-theme .isb-op-btn{--ink-primary:#2b71a1;--ink-primary-hover:#3a86bb;}

/* Mode fosc: Venda/Lloguer en to suau (com els comptadors del mapa) — Loti 2026-12-05 */
body.dark-theme .box-house .flat-tag:not(.tag-rent):not(.tag-new-build){background:#2c3a48!important;color:#bcd9ee!important;}
body.dark-theme .box-house .flat-tag.tag-rent{background:#3f3b22!important;color:#e9dc8a!important;}
body.dark-theme .box-house .flat-tag.tag-new-build{background:#252b31!important;color:#d5dbe1!important;}
body.dark-theme .isb-op-btn.active{background:#2c3a48!important;color:#bcd9ee!important;box-shadow:none!important;}
body.dark-theme .isb-op-btn[data-value="rent"].active{background:#3f3b22!important;color:#e9dc8a!important;}
/* Hover de targeta en fosc: Venda blau clar · Lloguer groc suau */
body.dark-theme .box-house.hover-img:hover .content .title a,
body.dark-theme .box-house.hover-img:hover .price{color:#8fc3e6!important;}
body.dark-theme .box-house.hover-img:has(.tag-rent):hover .content .title a,
body.dark-theme .box-house.hover-img:has(.tag-rent):hover .price{color:#e9dc8a!important;}

/* ══ Auditoria mode fosc (2026-12-05): panells clars restants a tota la web ══ */
body.dark-theme .header.header-sticky.is-sticky,body.dark-theme header.header-sticky,body.dark-theme .header-sticky.is-sticky{background:#181c21!important;box-shadow:0 1px 0 #2e353c!important;}
/* formularis */
body.dark-theme input:not([type=checkbox]):not([type=radio]):not([type=range]),body.dark-theme textarea,body.dark-theme select,body.dark-theme .form-control,body.dark-theme .nice-select{background-color:#252b31!important;color:#eceff2!important;border-color:#3a424a!important;}
body.dark-theme input::placeholder,body.dark-theme textarea::placeholder{color:#8a949e!important;}
body.dark-theme label{color:#c9d0d7;}
/* panells i targetes genèriques de pàgines interiors */
body.dark-theme .flat-title.style-2:not(.pl-hero),
body.dark-theme .promos-isb,body.dark-theme .psn-card,body.dark-theme .promo-units-table,body.dark-theme .promo-units-table td,body.dark-theme .promo-units-table th,
body.dark-theme .mk-toggle,body.dark-theme .mk-map,body.dark-theme .mk-af2-rr,body.dark-theme .mk-hi,body.dark-theme .mk-chart,body.dark-theme .mk-nw,body.dark-theme .mk-more,body.dark-theme .mk-clau,body.dark-theme .mk-kpi,body.dark-theme .mk-card,body.dark-theme li.hot,
body.dark-theme .blh2,body.dark-theme .bl-search,body.dark-theme .bl-key,body.dark-theme .gd-w,body.dark-theme .gd-cost-r,body.dark-theme .gd-note,body.dark-theme .gd-src,body.dark-theme .bl-src,body.dark-theme details,
body.dark-theme .sidebar-item,body.dark-theme .bl-topic,body.dark-theme .bl-help,body.dark-theme .bl-latest,
body.dark-theme .agl-why-body,body.dark-theme .agl-val-btn,body.dark-theme .agl-tl-card,body.dark-theme .agl-join-link,
body.dark-theme .ct-top,body.dark-theme .ct-form,body.dark-theme .ct-card,body.dark-theme .ct-office,body.dark-theme .ct-cta-call,body.dark-theme .ct-cta-wa,body.dark-theme .ct-cta-mail,
body.dark-theme .tf-btn.style-2,body.dark-theme .gm-cell{background-color:#1d2227!important;border-color:#2e353c!important;color:#d5dbe1!important;}
body.dark-theme .ct-form span,body.dark-theme .ct-form a{color:inherit;}
body.dark-theme .promo-units-table tr:nth-child(even) td{background-color:#20262c!important;}
body.dark-theme .psn-card *,body.dark-theme .agl-why-body *,body.dark-theme .agl-tl-card *,body.dark-theme .ct-card *,body.dark-theme .ct-office *,body.dark-theme .gd-w *,body.dark-theme .gd-note *,body.dark-theme .bl-key *,body.dark-theme .sidebar-item *,body.dark-theme .mk-nw *,body.dark-theme .mk-clau *,body.dark-theme .mk-kpi *,body.dark-theme .mk-hi *,body.dark-theme .mk-af2-rr *,body.dark-theme details *{border-color:#2e353c;}
body.dark-theme .psn-card :is(p,span,li,td,small,b,strong,a:not(.tf-btn)),body.dark-theme .agl-why-body :is(p,span),body.dark-theme .agl-tl-card :is(p,span,b),body.dark-theme .ct-card :is(p,span,a,b),body.dark-theme .ct-office :is(p,span,a,b),
body.dark-theme .gd-w :is(p,span,label,b,small),body.dark-theme .gd-note,body.dark-theme .gd-note *,body.dark-theme .bl-key *,body.dark-theme .sidebar-item :is(a,span,p,li),body.dark-theme .bl-topic,body.dark-theme .bl-help *,
body.dark-theme .mk-nw *,body.dark-theme .mk-clau *,body.dark-theme .mk-kpi *,body.dark-theme .mk-hi *,body.dark-theme .mk-af2-rr *,body.dark-theme .mk-chart :is(p,span,small,b,div),body.dark-theme details :is(p,li,span,summary),body.dark-theme .promos-isb *{color:#d5dbe1!important;}
body.dark-theme :is(.psn-card,.agl-why-body,.agl-tl-card,.ct-card,.ct-office,.gd-w,.sidebar-item,.mk-nw,.mk-clau,.mk-kpi,.mk-hi,.mk-chart,details,.bl-help) :is(h1,h2,h3,h4,h5,h6,.h5,.h6,strong,b){color:#eceff2!important;}
body.dark-theme .breadcrumb a,body.dark-theme .breadcrumb li{color:#c9d0d7!important;}
/* peu de pàgina i botons secundaris */
body.dark-theme .tf-btn.style-2{color:#eceff2!important;}
body.dark-theme #header-main.header,body.dark-theme #header-main.header.header-sticky,body.dark-theme #header-main.header.header-sticky.is-sticky,body.dark-theme.interior-page #header-main.header.header-sticky{background:rgba(24,28,33,.97)!important;}
body.dark-theme .ct-card2 .ct-cta a,body.dark-theme .ct-card2 .ct-cta-call,body.dark-theme .ct-card2 .ct-cta-wa,body.dark-theme .ct-card2 .ct-cta-mail{background:#252b31!important;color:#eceff2!important;border-color:#3a424a!important;}
body.dark-theme .ct-card2 .ct-cta a *,body.dark-theme .ct-card2 .ct-cta-call *{color:#eceff2!important;}
body.dark-theme .bl-sh-txt{background:#252b31!important;color:#eceff2!important;}
body.dark-theme .box-house>.content,body.dark-theme .box-house .content{background:#1d2227!important;}
body.dark-theme .ct-chip span{background:#252b31!important;color:#d5dbe1!important;border-color:#3a424a!important;}
body.dark-theme .ct-chip input:checked+span{background:#2b71a1!important;color:#fff!important;}
body.dark-theme #fav-form-wrap{background:#1d2227!important;border-color:#2e353c!important;color:#d5dbe1;}
body.dark-theme #fav-form-wrap :is(p,span,label){color:#c9d0d7!important;}
body.dark-theme .section-property-layout.style-1 .box-house .content,body.dark-theme .section-property-layout .box-house .content{background:#1d2227!important;}

/* ══ Contrast de text en mode fosc (escàner 2026-12-05) ══ */
/* fitxa de propietat */
body.dark-theme .box-overview .text-1,body.dark-theme .box-overview .content .text-1,body.dark-theme .detalls-value,body.dark-theme .detalls-cell span:last-child,
body.dark-theme .nb-l b,body.dark-theme .nb-v,body.dark-theme .nb-l,body.dark-theme .wg-property .text-1{color:#eceff2!important;}
body.dark-theme .detalls-cell,body.dark-theme .detalls-cell span:first-child{color:#a7b0ba;}
body.dark-theme h2.h5,body.dark-theme .h5{color:#eceff2;}
/* blau de marca com a text → blau clar */
body.dark-theme a[href^="tel:"]:not([class*="btn"]):not(.qc-tel):not(.ct-pop-tel):not([class*="cta"]),body.dark-theme a[href^="tel:"]:not([class*="btn"]):not(.qc-tel):not(.ct-pop-tel):not([class*="cta"]) span,body.dark-theme .agl-why-kicker,body.dark-theme .text-2 a,body.dark-theme .bl-cat span,body.dark-theme .bl-badge,body.dark-theme .bl-toc span,
body.dark-theme .wg-title,body.dark-theme .u-ref a,body.dark-theme .u-ref,body.dark-theme .u-btn,body.dark-theme .mk-pqd-cta,body.dark-theme .pais .nm,body.dark-theme .pais .vl,
body.dark-theme .promos .price,body.dark-theme .sidebar-item .price,body.dark-theme .price.text-1{color:#8fc3e6!important;}
/* grisos i tinta fosca hardcoded → clars */
body.dark-theme .adv-label,body.dark-theme .wrap-pagination p,body.dark-theme .pz-txt,body.dark-theme .bl-share-l,body.dark-theme .bl-topic-t small,body.dark-theme small,
body.dark-theme .mk-pqd-sub,body.dark-theme .mk-toggle button,body.dark-theme .ct-need em,body.dark-theme em{color:#a7b0ba!important;}
body.dark-theme .hot .nm,body.dark-theme .hot .vl,body.dark-theme .mk-pqd .nm,body.dark-theme .mk-pqd .vl,body.dark-theme .mk-pqd b,body.dark-theme [class*="mk-pq"] .nm,body.dark-theme [class*="mk-pq"] .vl,
body.dark-theme legend,body.dark-theme .ct-need span,body.dark-theme .gd-fact,body.dark-theme .bl-content li,body.dark-theme .bl-content li b,body.dark-theme article li,body.dark-theme article li b,body.dark-theme article p,body.dark-theme article strong{color:#e3e7eb!important;}
body.dark-theme .mk-toggle button.on,body.dark-theme .mk-toggle button.active,body.dark-theme .mk-toggle button[aria-pressed="true"]{color:#fff!important;}
/* paginació */
body.dark-theme .wrap-pagination a,body.dark-theme .wrap-pagination li a{color:#d5dbe1!important;}
body.dark-theme .wrap-pagination .active a,body.dark-theme .wrap-pagination li.active a{background:#2b71a1!important;color:#fff!important;}
/* xips sobre fons clar: en fosc, fons fosc amb text clar */
body.dark-theme .mk-tk,body.dark-theme .mk-tag,body.dark-theme .ct-badge{background:#252b31!important;color:#d5dbe1!important;border-color:#3a424a!important;}
body.dark-theme .mk-tk.up{color:#f3a59d!important;} body.dark-theme .mk-tk.dn{color:#7fd39a!important;}
body.dark-theme .ct-route2{color:#8fc3e6!important;}
body.dark-theme .mk-cta a{background:#2b71a1!important;color:#fff!important;}
/* referència i preu antic a les targetes */
body.dark-theme .box-house .content .location>span.text-color-primary,body.dark-theme .box-house .price .price-old{color:#a7b0ba!important;}

body.dark-theme .main-content h2.h5,body.dark-theme main h2.h5,body.dark-theme section h2.h5{color:#eceff2!important;}
body.dark-theme .pz-txt p,body.dark-theme .pz-txt{color:#c9d0d7!important;}
body.dark-theme [class*="mk-"] span.nm,body.dark-theme [class*="mk-"] span.vl{color:#e3e7eb!important;}
body.dark-theme [class*="mk-"] li.pais span.nm,body.dark-theme [class*="mk-"] li.pais span.vl{color:#8fc3e6!important;}
body.dark-theme .mk-pqd p.mk-pqd-sub,body.dark-theme p.mk-pqd-sub{color:#a7b0ba!important;}
body.dark-theme .bl-toc-n{background:#2b71a1!important;color:#fff!important;}
body.dark-theme .bl-topic small,body.dark-theme .bl-topic-t small{background:#252b31!important;color:#c9d0d7!important;}
body.dark-theme .ct-route2{background:#252b31!important;}
body.dark-theme .ct-form span:not([class]),body.dark-theme .ct-need label span{color:#e3e7eb!important;}
body.dark-theme ul.contact li span,body.dark-theme ul.contact li a{color:#8fc3e6!important;}
body.dark-theme #pqd-sub{color:#a7b0ba!important;}
body.dark-theme .mk-clau span.l,body.dark-theme .mk-pc .mk-pc-t,body.dark-theme .mk-pc .mk-pc-l,body.dark-theme .mk-clau span.d,body.dark-theme .mk-pqd-k b>small,body.dark-theme .ct-office-h b,body.dark-theme.page-contacte em{color:#a7b0ba!important;}
body.dark-theme .bl-toc span.bl-toc-n,body.dark-theme span.bl-toc-n{color:#fff!important;}
body.dark-theme .ct-form button span,body.dark-theme .ct-form label:has(input:checked) span,body.dark-theme .ct-send span{color:#fff!important;}
body.dark-theme .ct-read a span,body.dark-theme .ct-read a{color:#e3e7eb!important;}
body.dark-theme .bl-cat small,body.dark-theme .bl-topics a small,body.dark-theme .bl-topic small{background:#2e353c!important;color:#e3e7eb!important;}
body.dark-theme .bl-cat.on small{background:#2b71a1!important;color:#fff!important;}
body.dark-theme form.ct-form button.ct-send span,body.dark-theme form.ct-form button.ct-send{color:#fff!important;}

/* ══ Mode fosc, ronda 3 (superfícies clares amb color-mix / degradats) ══ */
body.dark-theme .quick-contact a,body.dark-theme a.qc-wa,body.dark-theme a.qc-tel,body.dark-theme a.qc-sig{background:#252b31!important;border-color:#3a424a!important;}
body.dark-theme a.qc-wa{color:#7fd39a!important;} body.dark-theme a.qc-tel{color:#e3e7eb!important;} body.dark-theme a.qc-sig{color:#9fb8ff!important;}
body.dark-theme .tf-btn.style-border{background:#252b31!important;border-color:#3a424a!important;color:#eceff2!important;}
body.dark-theme .tf-btn.style-border:hover{background:#2b71a1!important;border-color:#2b71a1!important;color:#fff!important;}
/* mercat */
body.dark-theme .mk-clau,body.dark-theme .mk-pc{background:#1d2227!important;background-image:none!important;border-color:#2e353c!important;box-shadow:none!important;}
body.dark-theme .mk-clau b,body.dark-theme .mk-pc b,body.dark-theme .mk-pc-v{color:#eceff2!important;}
body.dark-theme .mk-rank span.bar,body.dark-theme .hot span.bar{background:#2e353c!important;}
body.dark-theme .mk-af2-sw button{background:#252b31!important;color:#c9d0d7!important;}
body.dark-theme .mk-af2-sw button.on{background:#2b71a1!important;color:#fff!important;}
body.dark-theme .mk-chip{background:#252b31!important;color:#d5dbe1!important;border-color:#3a424a!important;}
body.dark-theme .mk-chip.on,body.dark-theme .mk-chip:hover{background:#2b71a1!important;color:#fff!important;border-color:#2b71a1!important;}
/* guies i blog */
body.dark-theme .bl-views a,body.dark-theme .bl-sh,body.dark-theme .bl-sc-i,body.dark-theme .bl-topic-i,body.dark-theme .list-categories small{background:#252b31!important;color:#d5dbe1!important;border-color:#3a424a!important;}
body.dark-theme .bl-views a.on,body.dark-theme .bl-views a.active,body.dark-theme .bl-sh:hover{background:#2b71a1!important;color:#fff!important;}
body.dark-theme .list-categories .on a,body.dark-theme .list-categories li.on>a,body.dark-theme .list-categories a.on{background:#2b71a1!important;color:#fff!important;}
body.dark-theme .list-categories .on a *,body.dark-theme .list-categories li.on>a *{color:#fff!important;}
body.dark-theme .list-categories .on .bl-sc-i,body.dark-theme .list-categories .on small{background:rgba(255,255,255,.18)!important;}
/* equip */
body.dark-theme .agl-tl-line{background:#3a424a!important;}
body.dark-theme .agl-tl-dot{background:#2b71a1!important;border-color:#1d2227!important;}
body.dark-theme .agl-badge{background:#252b31!important;color:#d5dbe1!important;}

body.dark-theme .agl-join :is(h4,h5,h6,.h6){color:#eceff2!important;} body.dark-theme .agl-join p{color:#c9d0d7!important;}
body.dark-theme .agl-join .tf-btn,body.dark-theme .agl-join a{background:#2b71a1!important;color:#fff!important;}
/* contacte */
body.dark-theme .ct-langs2 span{background:#252b31!important;color:#d5dbe1!important;border-color:#3a424a!important;}
body.dark-theme .ct-card2 .ct-cta svg,body.dark-theme .ct-card2 a svg:first-child,body.dark-theme .ct-cta a>span:first-child{background:#2e353c!important;color:#8fc3e6!important;}
body.dark-theme .ct-open.on{background:#1f3a2a!important;color:#7fd39a!important;}
/* hovers genèrics de llistes i enllaços sobre fons fosc */
body.dark-theme .sidebar-item a:hover,body.dark-theme .bl-topic:hover,body.dark-theme .mk-nw:hover{background:#252b31!important;}
body.dark-theme .sidebar-item a:hover *,body.dark-theme .bl-topic:hover *,body.dark-theme .mk-nw:hover *{color:#fff!important;}
body.dark-theme .agl-join{border-color:#2e353c!important;background-blend-mode:normal!important;}
body.dark-theme .agl-join::before{background:linear-gradient(90deg,rgba(20,23,27,.96) 0%,rgba(20,23,27,.86) 55%,rgba(20,23,27,.5) 100%)!important;}
body.dark-theme .mk-pc-p{color:#eceff2!important;} body.dark-theme .mk-pc-q{color:#8fc3e6!important;} body.dark-theme .mk-pc-r{color:#c9d0d7!important;}
body.dark-theme .bl-sh-txt:hover,body.dark-theme .bl-print:hover{color:#fff!important;background:#2b71a1!important;}
body.dark-theme .bl-toc a:hover,body.dark-theme .bl-toc a:hover *{color:#8fc3e6!important;}
body.dark-theme a:hover{text-decoration-color:currentColor;}
body.dark-theme .bl-toc a:hover .bl-toc-n{color:#fff!important;}
/* Cercador en fosc: el botó de cerca, el recompte i les icones segueixen l'operació (Lloguer = groc suau · Venda = blau) */
body.dark-theme form:has(.isb-op-btn[data-value="rent"].active){--ink-primary:#e9dc8a;--color-primary:#e9dc8a;}
body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) .isb-submit,body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) .tf-btn.isb-submit{background:#e9dc8a!important;border-color:#e9dc8a!important;color:#1f242a!important;}
body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) .isb-submit *{color:#1f242a!important;}
body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) .isb-submit:hover{background:#f3e7a6!important;}
body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) .isb-live-count,body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) .isb-live-count *{color:#e9dc8a!important;}
body.dark-theme form:has(.isb-op-btn[data-value="rent"].active) :is(.isb-label-top i,.isb-field i,.adv-label i){color:#e9dc8a!important;}
body.dark-theme form:has(.isb-op-btn[data-value="sale"].active) .isb-live-count,body.dark-theme form:has(.isb-op-btn[data-value="sale"].active) .isb-live-count *{color:#8fc3e6!important;}
body.dark-theme form:has(.isb-op-btn[data-value="sale"].active) :is(.isb-label-top i,.isb-field i){color:#8fc3e6!important;}
body.dark-theme .pm-li:hover,body.dark-theme .pm-li.on{background:#262d34!important;border-color:#62a6d5!important;box-shadow:0 8px 22px rgba(0,0,0,.45)!important;}
body.dark-theme .pm-li:hover .pm-nm,body.dark-theme .pm-li.on .pm-nm{color:#fff!important;}
