/*
 * dark-mode-classes.css
 * Semantic color utility classes extracted from inline styles.
 * Light-mode values only — dark mode overrides will be added separately.
 * Prefix: zam-
 */

/* ── Backgrounds ── */
.zam-bg-white       { background: #fff; }
.zam-bg-surface2    { background: #f9fafb; }
.zam-bg-surface3    { background: #f3f4f6; }
.zam-bg-green-soft  { background: #f0fdf4; }
.zam-bg-blue-soft   { background: #eff6ff; }
.zam-bg-red-soft    { background: #fee2e2; }
.zam-bg-yellow-soft { background: #fef9c3; }

/* ── Text colors ── */
.zam-text-primary   { color: #111; }
.zam-text-secondary { color: #374151; }
.zam-text-muted     { color: #6b7280; }
.zam-text-faint     { color: #9ca3af; }
.zam-text-white     { color: #fff; }

/* ── Borders ── */
.zam-border         { border: 1px solid #e5e7eb; }
.zam-border-light   { border: 1px solid #f3f4f6; }
.zam-border-bottom  { border-bottom: 1px solid #e5e7eb; }
.zam-border-top     { border-top: 1px solid #e5e7eb; }

/* ── Combined background + border ── */
.zam-bg-green-soft.zam-border-green { border-color: #bbf7d0; }

/* ============================================================
   HEADER – pełna szerokość + naprawiony gap z nowym przyciskiem
   ============================================================ */
.site-header > .container {
    max-width: 100% !important;
    padding-inline: var(--space-6);
}
.header-inner {
    gap: var(--space-4) !important;
}
#zam-dark-toggle ~ .btn--sm { flex-shrink: 0; }

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
#zam-dark-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
#zam-dark-toggle:hover { background: var(--color-surface-2, #f3f4f6); }

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode {
    /* ── Nadpisanie design-system CSS tokens ── */
    --color-bg:           #0f172a;
    --color-surface:      #1e293b;
    --color-surface-2:    #263347;
    --color-border:       #334155;
    --color-border-hover: #475569;
    --color-text:         #f1f5f9;
    --color-text-2:       #94a3b8;
    --color-text-3:       #64748b;
    --color-text-inv:     #0f172a;
    --color-primary-soft: #1a0a00;
    --color-accent-soft:  #0c1a3a;
    --header-bg:          rgba(15,23,42,.92);
    background: #0f172a;
    color: #f1f5f9;
}

/* Tła */
body.dark-mode .zam-bg-white      { background: #1e293b !important; }
body.dark-mode .zam-bg-surface2   { background: #263347 !important; }
body.dark-mode .zam-bg-surface3   { background: #1a2538 !important; }
body.dark-mode .zam-bg-green-soft { background: #052e16 !important; }
body.dark-mode .zam-bg-blue-soft  { background: #0c1a3a !important; }
body.dark-mode .zam-bg-red-soft   { background: #2d0a0a !important; }
body.dark-mode .zam-bg-yellow-soft{ background: #2a1f00 !important; }

/* Tekst */
body.dark-mode .zam-text-primary   { color: #f1f5f9 !important; }
body.dark-mode .zam-text-secondary { color: #cbd5e1 !important; }
body.dark-mode .zam-text-muted     { color: #94a3b8 !important; }
body.dark-mode .zam-text-faint     { color: #64748b !important; }
body.dark-mode .zam-text-white     { color: #fff !important; }

/* Obramowania */
body.dark-mode .zam-border        { border-color: #334155 !important; }
body.dark-mode .zam-border-light  { border-color: #1e293b !important; }
body.dark-mode .zam-border-bottom { border-bottom-color: #334155 !important; }
body.dark-mode .zam-border-top    { border-top-color: #334155 !important; }

/* Główne elementy layoutu */
body.dark-mode .site-header        { background: rgba(15,23,42,.97) !important; border-bottom-color: #1e293b !important; }
body.dark-mode .header-top         { border-bottom-color: #1e293b !important; }
body.dark-mode .header-nav         { background: transparent !important; }
body.dark-mode .mega-nav__link     { color: #94a3b8 !important; }
body.dark-mode .mega-nav__link:hover,
body.dark-mode .mega-nav__item:hover > .mega-nav__link { color: #4ade80 !important; border-bottom-color: #4ade80 !important; }
body.dark-mode .nav-primary__link  { color: #cbd5e1 !important; }
body.dark-mode .site-footer        { background: #0a1120 !important; }

/* Karty RCN */
body.dark-mode .rcn-card           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcn-card-head      { background: #263347 !important; border-bottom-color: #334155 !important; }
body.dark-mode .rcn-card-body      { background: #1e293b !important; }
body.dark-mode .rcn-chip           { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .rcn-price-m2       { color: #34d399 !important; }
body.dark-mode .rcn-price-tot      { color: #94a3b8 !important; }
body.dark-mode .rcn-card-title     { color: #f1f5f9 !important; }
body.dark-mode .rcn-card:hover     { border-color: #34d399 !important; box-shadow: 0 8px 32px rgba(0,0,0,.4) !important; }

/* Sidebar RCN */
body.dark-mode .rcn-sc             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcn-sc-title       { background: #263347 !important; color: #94a3b8 !important; border-bottom-color: #334155 !important; }
body.dark-mode .rcn-rank-item      { border-bottom-color: #334155 !important; }
body.dark-mode .rcn-rank-item:hover{ background: #263347 !important; }
body.dark-mode .rcn-rank-name      { color: #cbd5e1 !important; }
body.dark-mode .rcn-rank-cnt       { color: #64748b !important; }
body.dark-mode .rcn-sidebar        { background: transparent !important; }
body.dark-mode .rcn-info           { background: #1e293b !important; color: #64748b !important; border-color: #334155 !important; }

/* Transakcja – single */
body.dark-mode .rcns-card          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcns-card-head     { background: #263347 !important; border-bottom-color: #334155 !important; }
body.dark-mode .rcns-swidget       { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcns-swidget-head  { background: #263347 !important; border-bottom-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .rcns-details-table tr     { border-bottom-color: #334155 !important; }
body.dark-mode .rcns-details-table td:first-child { color: #64748b !important; }
body.dark-mode .rcns-details-table td:last-child  { color: #f1f5f9 !important; }
body.dark-mode .rcns-kpi-band      { background: #1e293b !important; border-bottom-color: #334155 !important; }
body.dark-mode .rcns-kpi           { border-right-color: #334155 !important; }
body.dark-mode .rcns-kpi-label     { color: #64748b !important; }
body.dark-mode .rcns-kpi-value     { color: #f1f5f9 !important; }
body.dark-mode .rcns-kpi-sub       { color: #64748b !important; }
body.dark-mode .rcns-vs            { background: #263347 !important; }
body.dark-mode .rcns-sim-card      { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcns-sim-card:hover{ background: #263347 !important; }
body.dark-mode .rcns-faq details   { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcns-faq summary   { color: #f1f5f9 !important; }
body.dark-mode .rcns-header        { /* gradient — zostaje */ }
body.dark-mode .rcn-single         { background: #0f172a !important; }

/* Paginacja */
body.dark-mode .rcn-pag a          { background: #1e293b !important; border-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .rcn-pag .cur       { background: var(--rcn-green, #1a6b45) !important; }

/* Hero */
body.dark-mode .rcn-hero           { /* gradient — zostaje */ }
body.dark-mode .rcn-wrap           { background: #0f172a !important; }

/* Panel analityki */
body.dark-mode .rcn-panel          { background: transparent !important; }
body.dark-mode .rcn-ana-panel-grid > div { background: #1e293b !important; }

/* Porównywarka */
body.dark-mode #dp-compare-bar     { background: #0a1120 !important; }
body.dark-mode .dp-cmp-modal-inner { background: #1e293b !important; }
body.dark-mode .dp-cmp-modal-head  { border-bottom-color: #334155 !important; }
body.dark-mode .dp-cmp-table thead th { background: #263347 !important; border-bottom-color: #334155 !important; }
body.dark-mode .dp-cmp-row-label   { background: #1a2538 !important; color: #64748b !important; border-bottom-color: #334155 !important; }
body.dark-mode .dp-cmp-cell        { border-bottom-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .dp-cmp-th-msc      { color: #f1f5f9 !important; }
body.dark-mode .dp-cmp-th-title    { color: #94a3b8 !important; }
body.dark-mode .dp-cmp-modal-foot  { border-top-color: #334155 !important; }

/* Wycena */
body.dark-mode .dp-wycena-wrap     { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .dp-wycena-field input,
body.dark-mode .dp-wycena-field select { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .dpw-stat           { background: #1a2538 !important; }
body.dark-mode .dpw-stat-val       { color: #60a5fa !important; }

/* Alert form */
body.dark-mode .dp-alert-wrap      { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .dp-alert-row input,
body.dark-mode .dp-alert-row select { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }

/* Formularz wyszukiwarki */
body.dark-mode .rcn-filter-bar     { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .rcn-field input,
body.dark-mode .rcn-field select   { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .rcn-typ-tab        { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .rcn-typ-tab.active { background: #1a6b45 !important; color: #fff !important; }

/* Blisko mnie overlay */
body.dark-mode #blisko-overlay     { background: #1e293b !important; border-color: #334155 !important; }

/* Ogólne tło strony */
body.dark-mode               { background: #0f172a !important; }
body.dark-mode main,
body.dark-mode .site-content { background: #0f172a !important; }

/* ── Strona główna (front-page.php) ── */
body.dark-mode .fp-section,
body.dark-mode .fp-box,
body.dark-mode .fp-card       { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-card__body { color: #cbd5e1 !important; }
body.dark-mode .fp-section--alt{ background: #1a2538 !important; }
/* Sekcje z białym tłem na stronie głównej */
body.dark-mode section,
body.dark-mode .section       { background: transparent !important; }
body.dark-mode .bg-white,
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:white"],
body.dark-mode [style*="background:#f9fafb"],
body.dark-mode [style*="background:#f3f4f6"] { background: #1e293b !important; color: #f1f5f9 !important; }

/* Strefa wiedzy / blog / archive */
body.dark-mode .post-card,
body.dark-mode .article-card,
body.dark-mode .blog-card     { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .post-card__title { color: #f1f5f9 !important; }
body.dark-mode .post-card__excerpt { color: #94a3b8 !important; }
body.dark-mode .post-card__meta { color: #64748b !important; }
body.dark-mode .tag, body.dark-mode .category-badge { background: #263347 !important; color: #94a3b8 !important; }

/* Kalkulator */
body.dark-mode .kalk-form,
body.dark-mode .kalk-result   { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kalk-input,
body.dark-mode .kalk-select   { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .kalk-row      { border-bottom-color: #334155 !important; }

/* Stopka */
body.dark-mode .site-footer   { background: #080f1e !important; }
body.dark-mode .site-footer a { color: #94a3b8 !important; }
body.dark-mode .site-footer a:hover { color: #f1f5f9 !important; }

/* Mapa cen */
body.dark-mode .map-sidebar   { background: #1e293b !important; }
body.dark-mode .map-filters   { border-bottom-color: #334155 !important; }
body.dark-mode .filter-chip   { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .filter-chip.active { background: #1a6b45 !important; color: #fff !important; }
body.dark-mode .map-topbar    { background: #1e293b !important; border-bottom-color: #334155 !important; }

/* Nawigacja mobilna */
/* ── Mobile nav dark mode ── */
body.dark-mode .nav-mobile                 { background: #0f172a !important; border-left-color: #1e293b !important; }
body.dark-mode .nav-mobile__header         { border-bottom-color: #1e293b !important; }
body.dark-mode .nav-mobile__header-label   { color: #475569 !important; }
body.dark-mode .nav-mobile__header-brand   { color: #f1f5f9 !important; }
body.dark-mode .nav-mobile__list           { background: #0f172a !important; }
body.dark-mode .nav-mobile__link           { color: #cbd5e1 !important; border-bottom-color: #1e293b !important; background: #0f172a !important; }
body.dark-mode .nav-mobile__link:hover     { background: #1e293b !important; color: #34d399 !important; }
body.dark-mode .nav-mobile__link.active    { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .nav-mobile__item           { border-bottom-color: #1e293b !important; }
body.dark-mode .nav-mobile__sub            { background: #070f1c !important; }
body.dark-mode .nav-mobile__sub-link       { color: #94a3b8 !important; border-bottom-color: #1e293b !important; }
body.dark-mode .nav-mobile__sub-link:hover { color: #34d399 !important; background: #1e293b !important; }
body.dark-mode .nav-mobile__sub-toggle     { border-left-color: #1e293b !important; color: #94a3b8 !important; }
body.dark-mode .nav-mobile__sub-toggle:hover { background: #1e293b !important; }
body.dark-mode .nav-mobile__footer         { border-top-color: #1e293b !important; background: #0f172a !important; }
body.dark-mode .nav-toggle span            { background: #f1f5f9 !important; }

/* ── Strona 404 ── */
body.dark-mode .e404-wrap                  { background: #0f172a !important; }
body.dark-mode .e404-quick-card            { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .e404-quick-card:hover      { border-color: #34d399 !important; }
body.dark-mode .e404-quick-card__title     { color: #f1f5f9 !important; }
body.dark-mode .e404-quick-card__desc      { color: #94a3b8 !important; }
body.dark-mode .e404-art-card              { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .e404-art-card:hover        { border-color: #34d399 !important; }
body.dark-mode .e404-art-card__title       { color: #f1f5f9 !important; }
body.dark-mode .e404-art-card__meta        { color: #64748b !important; }
body.dark-mode .e404-art-card__thumb       { background: linear-gradient(135deg,#052e16,#0f172a) !important; }
body.dark-mode .e404-section-title         { color: #f1f5f9 !important; }
body.dark-mode .e404-divider               { border-top-color: #1e293b !important; }
body.dark-mode .e404-body                  { background: #0f172a !important; }
body.dark-mode .nav-overlay   { background: rgba(0,0,0,.7) !important; }

/* Dropdown nawigacji desktop */
body.dark-mode .nav-primary__dropdown { background: #1e293b !important; border-color: #334155 !important; box-shadow: 0 8px 32px rgba(0,0,0,.4) !important; }
body.dark-mode .nav-primary__sub-link { color: #cbd5e1 !important; }
body.dark-mode .nav-primary__sub-link:hover { background: #263347 !important; }

/* Inwestycje */
body.dark-mode .investment-card { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .investment-card__title { color: #f1f5f9 !important; }
body.dark-mode .investment-card__meta  { color: #94a3b8 !important; }

/* Formularze globalne */
body.dark-mode input:not([type=range]),
body.dark-mode select,
body.dark-mode textarea       { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: #64748b !important; }

/* Scrollbar (webkit) */
body.dark-mode ::-webkit-scrollbar      { background: #1e293b; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* ── Zmienne globalne CSS – dark mode ── */
body.dark-mode {
    /* design-system.css */
    --color-surface:   #1e293b;
    --color-surface-2: #263347;
    --color-bg:        #0f172a;
    --color-border:    #334155;
    --color-text:      #f1f5f9;
    --color-text-2:    #cbd5e1;
    --color-text-3:    #94a3b8;
    /* shorthand alias */
    --surface:         #1e293b;
    /* page-dla-deweloperow.php */
    --ink:  #f1f5f9;
    --m:    #cbd5e1;
    --s:    #94a3b8;
    --bd:   #334155;
    --w:    #1e293b;
    --al:   #052e16;
    --ab:   #166534;
    /* page-o-portalu.php */
    --ink-mid:  #cbd5e1;
    --ink-soft: #94a3b8;
    --border:   #334155;
    --white:    #1e293b;
}

/* ── Fala SVG (hero wave) – zmień fill na ciemny ── */
body.dark-mode .fp-hero-wave path       { fill: #0f172a !important; }

/* ── Hover dla top-lokalizacje w sidebarze RCN ── */
.rcn-top-link:hover                     { background: #f9fafb; }
body.dark-mode .rcn-top-link:hover      { background: #263347 !important; }

/* ── Strefa wiedzy / blog / archive (arc2 + art-card) ── */
body.dark-mode .arc2                    { background: #0f172a !important; }
body.dark-mode .arc2-filters            { background: #1e293b !important; border-bottom-color: #334155 !important; box-shadow: 0 2px 8px rgba(0,0,0,.3) !important; }
body.dark-mode .arc2-filter-chip        { background: #263347 !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .arc2-filter-chip:hover,
body.dark-mode .arc2-filter-chip.active { background: #1a6b45 !important; border-color: #1a6b45 !important; color: #fff !important; }
body.dark-mode .arc2-search-input       { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .art-card                { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .art-card:hover          { box-shadow: 0 8px 32px rgba(0,0,0,.4) !important; }
body.dark-mode .art-card-title          { color: #f1f5f9 !important; }
body.dark-mode .art-card-meta           { color: #64748b !important; }
body.dark-mode .art-card-excerpt        { color: #94a3b8 !important; }
body.dark-mode .art-card-thumb-ph       { background: linear-gradient(135deg,#052e16,#14532d) !important; }
body.dark-mode .arc2-widget             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .arc2-widget-head        { background: #263347 !important; border-bottom-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .arc2-widget-body        { background: #1e293b !important; }
body.dark-mode .arc2-widget-link        { color: #cbd5e1 !important; border-bottom-color: #263347 !important; }
body.dark-mode .arc2-widget-link:hover  { color: #34d399 !important; }
body.dark-mode .arc2-widget-link-cnt    { background: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .rss-wi-item             { border-bottom-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .rss-wi-item:hover       { background: #263347 !important; }
body.dark-mode .rss-wi-title            { color: #f1f5f9 !important; }
body.dark-mode .rss-wi-date             { color: #64748b !important; }
body.dark-mode .arc2-pag a,
body.dark-mode .arc2-pag span           { background: #1e293b !important; border-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .arc2-pag .current       { background: #1a6b45 !important; border-color: #1a6b45 !important; color: #fff !important; }
body.dark-mode .arc2-empty              { color: #64748b !important; }

/* ── Strona główna (front-page) – fp-blog sekcje ── */
body.dark-mode .fp-wrap                 { background: #0f172a !important; }
body.dark-mode .fp-blog-section         { background: #0f172a !important; border-top-color: #334155 !important; }
body.dark-mode .fp-blog-featured        { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .fp-blog-featured:hover  { box-shadow: 0 16px 48px rgba(0,0,0,.5) !important; }
body.dark-mode .fp-blog-featured__title { color: #f1f5f9 !important; }
body.dark-mode .fp-blog-featured__excerpt { color: #94a3b8 !important; }
body.dark-mode .fp-blog-featured__meta  { color: #64748b !important; border-top-color: #334155 !important; }
body.dark-mode .fp-blog-side-card       { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .fp-blog-side-card:hover { border-color: #34d399 !important; }
body.dark-mode .fp-blog-side-card__title { color: #f1f5f9 !important; }
body.dark-mode .fp-blog-side-card__excerpt { color: #94a3b8 !important; }
body.dark-mode .fp-blog-side-card__meta { color: #64748b !important; }
body.dark-mode .fp-blog-3               { background: #0f172a !important; }
body.dark-mode .fp-blog-card            { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .fp-blog-card:hover      { box-shadow: 0 8px 32px rgba(0,0,0,.4) !important; }
body.dark-mode .fp-blog-card__title     { color: #f1f5f9 !important; }
body.dark-mode .fp-blog-card__meta      { color: #64748b !important; }
body.dark-mode .fp-blog-header h2,
body.dark-mode .fp-blog-3 h2           { color: #f1f5f9 !important; }

/* ── Strona główna – pozostałe sekcje z białym tłem ── */
body.dark-mode .fp-section--white,
body.dark-mode .fp-inw-section          { background: #0f172a !important; }
body.dark-mode .fp-inw-card             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-inw-card__title      { color: #f1f5f9 !important; }
body.dark-mode .fp-inw-card__meta       { color: #94a3b8 !important; }

/* Fallback: dowolna sekcja strony głównej z białym/szarym tłem inline */
body.dark-mode .fp-wrap > section,
body.dark-mode .fp-wrap > div:not(.fp-hero):not(.fp-ticker):not(.fp-rcn-strip) {
    background-color: #0f172a !important;
}
/* Tekst w sekcjach fp */
body.dark-mode .fp-wrap h2,
body.dark-mode .fp-wrap h3,
body.dark-mode .fp-wrap p   { color: inherit; }

/* ── Dla deweloperów (page-dla-deweloperow) ── */
body.dark-mode .dla-dev-wrap,
body.dark-mode .dla-dev-section         { background: #0f172a !important; }
body.dark-mode .dla-dev-card            { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .dla-dev-card h3,
body.dark-mode .dla-dev-card p          { color: #cbd5e1 !important; }
/* Gradient tekst staje się niewidoczny - wyłącz w dark mode */
body.dark-mode [class*="gradient-text"],
body.dark-mode [style*="-webkit-background-clip: text"],
body.dark-mode [style*="-webkit-text-fill-color: transparent"] {
    -webkit-text-fill-color: #f1f5f9 !important;
    background: none !important;
    color: #f1f5f9 !important;
}

/* ── Kalkulator (page-kalkulator) – uzupełnienie ── */
body.dark-mode .kalk-wrap               { background: #0f172a !important; }
body.dark-mode .kalk-card               { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kalk-label              { color: #94a3b8 !important; }
body.dark-mode .kalk-val                { color: #f1f5f9 !important; }
body.dark-mode .kalk-sum                { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .kalk-sum-val            { color: #4ade80 !important; }

/* ═══════════════════════════════════════════════════════════════
   SINGLE ARTYKUŁ (single.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .art                     { background: #0f172a !important; }
body.dark-mode .art-content             { background: #1e293b !important; color: #cbd5e1 !important; }
body.dark-mode .art-content h1,
body.dark-mode .art-content h2,
body.dark-mode .art-content h3,
body.dark-mode .art-content h4         { color: #f1f5f9 !important; }
body.dark-mode .art-content p,
body.dark-mode .art-content ul,
body.dark-mode .art-content ol,
body.dark-mode .art-content li         { color: #cbd5e1 !important; }
body.dark-mode .art-content a          { color: #34d399 !important; }
body.dark-mode .art-content blockquote { background: #263347 !important; border-left-color: #1a6b45 !important; color: #94a3b8 !important; }
body.dark-mode .art-content th         { background: #263347 !important; color: #f1f5f9 !important; }
body.dark-mode .art-content td         { border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .art-content code,
body.dark-mode .art-content pre        { background: #0a1120 !important; color: #86efac !important; border-color: #334155 !important; }
body.dark-mode .art-author-box         { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .art-tag                { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .art-share-btn          { background: #263347 !important; color: #cbd5e1 !important; border-color: #334155 !important; }
body.dark-mode .art-widget             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .art-widget-head        { background: #263347 !important; border-bottom-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .art-widget-link        { color: #cbd5e1 !important; border-bottom-color: #263347 !important; }
body.dark-mode .art-widget-link:hover  { color: #34d399 !important; }
body.dark-mode .art-rel-card           { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .art-rel-card:hover     { border-color: #34d399 !important; }
body.dark-mode .art-rel-card__title    { color: #f1f5f9 !important; }
body.dark-mode .art-meta               { color: #64748b !important; }
body.dark-mode .art-header             { background: transparent !important; }
/* WP content ogólne (klasyczne bloki Gutenberg) */
body.dark-mode .entry-content,
body.dark-mode .wp-block-paragraph     { color: #cbd5e1 !important; }
body.dark-mode .wp-block-heading       { color: #f1f5f9 !important; }
body.dark-mode .wp-block-quote         { border-left-color: #1a6b45 !important; color: #94a3b8 !important; }
body.dark-mode .wp-block-code,
body.dark-mode .wp-block-preformatted  { background: #0a1120 !important; color: #86efac !important; }
body.dark-mode .wp-block-table td,
body.dark-mode .wp-block-table th      { border-color: #334155 !important; }
body.dark-mode .wp-block-table thead   { background: #263347 !important; color: #f1f5f9 !important; }

/* ═══════════════════════════════════════════════════════════════
   O PORTALU (page-o-portalu.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .op-card                { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .op-card__text          { color: #94a3b8 !important; }
body.dark-mode .op-section-text        { color: #cbd5e1 !important; }
body.dark-mode .op-fw-card--light      { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .op-source              { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .op-source__list li     { color: #94a3b8 !important; }
body.dark-mode .op-faq                 { background: #0f172a !important; }
body.dark-mode .op-faq__item           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .op-faq__q              { color: #f1f5f9 !important; }
body.dark-mode .op-faq__q:hover        { background: #263347 !important; }
body.dark-mode .op-faq__a              { color: #94a3b8 !important; }
body.dark-mode .op-wrap                { background: #0f172a !important; }

/* ═══════════════════════════════════════════════════════════════
   DLA DEWELOPERÓW (page-dla-deweloperow.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .dp-why-card            { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .dp-why-card h3         { color: #f1f5f9 !important; }
body.dark-mode .dp-features            { background: #0a1120 !important; }
body.dark-mode .dp-tab                 { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .dp-tab.active          { background: #1a6b45 !important; color: #fff !important; }
body.dark-mode .dp-feat                { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .dp-feat h3             { color: #f1f5f9 !important; }
body.dark-mode .dp-plan                { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .dp-plan__list li       { color: #cbd5e1 !important; }
body.dark-mode .dp-plan__list li.dim   { color: #64748b !important; }
body.dark-mode .dp-plan h3             { color: #f1f5f9 !important; }
body.dark-mode .dp-plan__price         { color: #f1f5f9 !important; }
body.dark-mode .dp-how                 { background: #0a1120 !important; }
body.dark-mode .dp-form__box           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .dp-form__box-title     { color: #f1f5f9 !important; }
body.dark-mode .dp-form__check         { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .dp-form__check-title   { color: #f1f5f9 !important; }
body.dark-mode .dp-h2                  { -webkit-text-fill-color: #f1f5f9 !important; background: none !important; color: #f1f5f9 !important; }
body.dark-mode .dp-section-title       { -webkit-text-fill-color: #f1f5f9 !important; background: none !important; color: #f1f5f9 !important; }
body.dark-mode .dp-faq                 { background: #0f172a !important; border-top-color: #334155 !important; }
body.dark-mode .dp-faq__item           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .dp-faq__q              { color: #f1f5f9 !important; }
body.dark-mode .dp-faq__a              { color: #94a3b8 !important; }
body.dark-mode .dp-wrap                { background: #0f172a !important; }
body.dark-mode .dp-section             { background: #0f172a !important; }
/* Gradient headings stają się niewidoczne w dark mode — override */
body.dark-mode .dp-heading-grad,
body.dark-mode [class*="__heading"],
body.dark-mode .dp-section h2          { -webkit-text-fill-color: #f1f5f9 !important; background: none !important; color: #f1f5f9 !important; }

/* ═══════════════════════════════════════════════════════════════
   KALKULATOR (page-kalkulator.php) – pełne klasy
═══════════════════════════════════════════════════════════════ */
body.dark-mode .kalk-form              { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kalk-input             { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .kalk-input:focus       { background: #1e293b !important; border-color: #1a6b45 !important; }
body.dark-mode .kalk-results           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kalk-result-main       { background: linear-gradient(135deg,#052e16,#14532d) !important; }
body.dark-mode .kalk-result-row        { border-bottom-color: #334155 !important; }
body.dark-mode .kalk-result-label      { color: #94a3b8 !important; }
body.dark-mode .kalk-result-val        { color: #f1f5f9 !important; }
body.dark-mode .kalk-chart-wrap        { background: #0a1120 !important; }
body.dark-mode .kalk-bank-placeholder  { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kalk-page              { background: #0f172a !important; }

/* ═══════════════════════════════════════════════════════════════
   INWESTYCJA – single (single-dp_investment.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .inv2                   { background: #0f172a !important; }
body.dark-mode .inv2-kpi-cell          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .inv2-kpi-label         { color: #64748b !important; }
body.dark-mode .inv2-section           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .inv2-section h2,
body.dark-mode .inv2-section h3        { color: #f1f5f9 !important; }
body.dark-mode .inv2-table th          { color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .inv2-table td          { border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .inv2-table tr:hover td { background: #263347 !important; }
body.dark-mode .inv2-card              { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .inv2-card-head         { background: #263347 !important; border-bottom-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .inv2-form input,
body.dark-mode .inv2-form textarea,
body.dark-mode .inv2-form select       { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .inv2-feat              { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .inv2-gallery a         { border-color: #334155 !important; }

/* ═══════════════════════════════════════════════════════════════
   INWESTYCJE – archiwum (archive-dp_investment.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .arc-filters            { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .arc-filt-sel           { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .arc-chip               { background: #263347 !important; color: #94a3b8 !important; border-color: #334155 !important; }
body.dark-mode .arc-chip.active        { background: #1a6b45 !important; color: #fff !important; }
body.dark-mode .inv-card2              { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .inv-card2-title        { color: #f1f5f9 !important; }
body.dark-mode .inv-card2:hover        { border-color: #34d399 !important; }
body.dark-mode .inv-card2-img          { background: #263347 !important; }
body.dark-mode .inv-card2-chip         { background: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .inv-card2__title       { color: #f1f5f9 !important; }
body.dark-mode .inv-card2__meta        { color: #94a3b8 !important; }
body.dark-mode .arc-pag a,
body.dark-mode .arc-pag span           { border-color: #334155 !important; color: #94a3b8 !important; background: #1e293b !important; }
body.dark-mode .arc-pag a:hover        { border-color: #34d399 !important; color: #34d399 !important; }
body.dark-mode .arc-wrap               { background: #0f172a !important; }

/* ═══════════════════════════════════════════════════════════════
   LOKAL / UNIT (single-dp_unit.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .unit-single            { background: #0f172a !important; }
body.dark-mode .unit-kpi-band          { background: #1e293b !important; border-bottom-color: #334155 !important; }
body.dark-mode .unit-kpi               { border-right-color: #334155 !important; }
body.dark-mode .unit-kpi-label         { color: #64748b !important; }
body.dark-mode .unit-kpi-value         { color: #f1f5f9 !important; }
body.dark-mode .unit-card              { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .unit-card-head         { background: #263347 !important; border-bottom-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .unit-param             { background: #263347 !important; color: #cbd5e1 !important; }
body.dark-mode .unit-param-value       { color: #f1f5f9 !important; }
body.dark-mode .unit-extra-chip        { background: #052e16 !important; color: #4ade80 !important; border-color: #166534 !important; }
body.dark-mode .unit-input             { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .unit-input:focus       { background: #1e293b !important; border-color: #1a6b45 !important; }
body.dark-mode .unit-widget            { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .unit-widget-head       { background: #263347 !important; border-bottom-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .unit-sibling           { border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .unit-sibling:hover     { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .unit-sibling-name      { color: #f1f5f9 !important; }

/* ═══════════════════════════════════════════════════════════════
   GMINA MICROSITE (gmina-microsite.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .gm-wrap                { background: #0f172a !important; }

/* Sekcje i nagłówki */
body.dark-mode .gm-section-title       { color: #f1f5f9 !important; border-bottom-color: #334155 !important; }

/* Karty trend */
body.dark-mode .gm-trend-card          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .gm-trend-card-title    { color: #94a3b8 !important; }
body.dark-mode .gm-trend-val           { color: #f1f5f9 !important; }
body.dark-mode .gm-trend-cnt           { color: #64748b !important; }

/* Ranking miejscowości */
body.dark-mode .gm-rank-item           { border-bottom-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .gm-rank-item:hover     { background: #1e293b !important; }
body.dark-mode .gm-rank-num            { color: #64748b !important; }
body.dark-mode .gm-rank-name           { color: #f1f5f9 !important; }
body.dark-mode .gm-rank-cnt            { color: #64748b !important; }
body.dark-mode .gm-rank-bar            { background: #334155 !important; }

/* Ostatnie transakcje */
body.dark-mode .gm-trans-item          { border-color: #334155 !important; background: #1e293b !important; }
body.dark-mode .gm-trans-item:hover    { box-shadow: 0 2px 12px rgba(0,0,0,.4) !important; }
body.dark-mode .gm-trans-msc           { color: #f1f5f9 !important; }
body.dark-mode .gm-trans-meta          { color: #94a3b8 !important; }
body.dark-mode .gm-trans-total         { color: #94a3b8 !important; }

/* Siatka miejscowości */
body.dark-mode .gm-msc-link            { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .gm-msc-link:hover      { background: #052e16 !important; border-color: #166534 !important; color: #34d399 !important; }

/* Sidebar karty */
body.dark-mode .gm-sc                  { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .gm-sc-title            { color: #94a3b8 !important; border-bottom-color: #334155 !important; background: #263347 !important; }

/* Inne gminy */
body.dark-mode .gm-other-link          { color: #cbd5e1 !important; }
body.dark-mode .gm-other-link:hover    { background: #1e293b !important; }
body.dark-mode .gm-other-link.active   { background: #052e16 !important; color: #34d399 !important; }

/* Opis gminy */
body.dark-mode .gm-opis                { background: #0a1120 !important; color: #94a3b8 !important; border-left-color: #1a6b45 !important; }

/* Porównanie VS */
body.dark-mode .gm-vs-card             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .gm-vs-title            { color: #f1f5f9 !important; }
body.dark-mode .gm-vs-label            { color: #94a3b8 !important; }
body.dark-mode .gm-vs-price            { color: #f1f5f9 !important; }
body.dark-mode .gm-vs-bar-bg           { background: #334155 !important; }
body.dark-mode .gm-vs-diff.same        { background: #263347 !important; color: #94a3b8 !important; }
body.dark-mode .gm-vs-diff.higher      { background: #450a0a !important; color: #fca5a5 !important; }
body.dark-mode .gm-vs-diff.lower       { background: #052e16 !important; color: #86efac !important; }

/* Zakładki wykresów */
body.dark-mode .gm-chart-tabs          { border-bottom-color: #334155 !important; }
body.dark-mode .gm-chart-tab           { color: #94a3b8 !important; }
body.dark-mode .gm-chart-tab:hover     { background: #1e293b !important; }
body.dark-mode .gm-chart-tab.active    { background: #1e293b !important; }
body.dark-mode .gm-ct-label            { color: #64748b !important; }
body.dark-mode .gm-ct-val              { color: #f1f5f9 !important; }

/* Główny panel wykresu */
body.dark-mode .gm-chart-main          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .gm-chart-kpi           { border-bottom-color: #334155 !important; }
body.dark-mode .gm-chart-kpi-label     { color: #64748b !important; }
body.dark-mode .gm-chart-kpi-val       { color: #f1f5f9 !important; }
body.dark-mode .gm-chart-years span    { color: #64748b !important; }

/* Tabela historii */
body.dark-mode .gm-chart-hist          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .gm-chart-hist-title    { background: #263347 !important; color: #94a3b8 !important; border-bottom-color: #334155 !important; }
body.dark-mode .gm-chart-hist-row      { border-bottom-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .gm-chart-hist-row.current { background: #052e16 !important; }
body.dark-mode .gm-chr-year            { color: #f1f5f9 !important; }
body.dark-mode .gm-chr-val             { color: #f1f5f9 !important; }
body.dark-mode .gm-chr-cnt             { color: #64748b !important; }

/* ═══════════════════════════════════════════════════════════════
   KONTAKT (page-kontakt.php)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .kontakt-card           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kontakt-card-label     { color: #64748b !important; }
body.dark-mode .kontakt-card-val       { color: #f1f5f9 !important; }
body.dark-mode .kontakt-card-val a     { color: #34d399 !important; }
body.dark-mode .kontakt-about          { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .kontakt-about-desc     { color: #94a3b8 !important; }
body.dark-mode .kontakt-form-wrap      { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .kontakt-form-wrap input,
body.dark-mode .kontakt-form-wrap textarea,
body.dark-mode .kontakt-form-wrap select { background: #263347 !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .kontakt-form-wrap input:focus,
body.dark-mode .kontakt-form-wrap textarea:focus { background: #1e293b !important; border-color: #1a6b45 !important; }
body.dark-mode .kontakt-form-wrap label { color: #94a3b8 !important; }
body.dark-mode .kontakt-page           { background: #0f172a !important; }

/* ═══════════════════════════════════════════════════════════════
   STRONA GŁÓWNA – KOMPLETNE (front-page.php)
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   LOGO (header)
═══════════════════════════════════════════════════════════════ */
body.dark-mode .site-logo__name        { color: #f1f5f9 !important; }
body.dark-mode .site-logo__domain      { color: #94a3b8 !important; }

/* ── Nadpisanie zmiennych CSS front-page – kluczowe! ── */
body.dark-mode {
    --fp-surface: #1e293b;
    --fp-border:  #334155;
    --fp-text:    #f1f5f9;
    --fp-muted:   #94a3b8;
}

/* ── Główny wrapper ── */
body.dark-mode .fp-wrap                { background: #0f172a !important; }

/* ── Artykuły – sekcja główna (featured + boczne) ── */
body.dark-mode .fp-blog-section        { background: #1e293b !important; border-top-color: #334155 !important; }
body.dark-mode .fp-blog-featured       { background: #1e293b !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .fp-blog-featured__title { color: #f1f5f9 !important; }
body.dark-mode .fp-blog-featured__excerpt { color: #94a3b8 !important; }
body.dark-mode .fp-blog-featured__meta { color: #64748b !important; border-top-color: #334155 !important; }
body.dark-mode .fp-blog-featured__thumb { background: linear-gradient(135deg,#052e16,#0f172a) !important; }
body.dark-mode .fp-blog-side-card      { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-blog-side-card:hover { border-color: #34d399 !important; }
body.dark-mode .fp-blog-side-card__title { color: #f1f5f9 !important; }
body.dark-mode .fp-blog-side-card__excerpt { color: #94a3b8 !important; }
body.dark-mode .fp-blog-side-card__meta { color: #64748b !important; }
body.dark-mode .fp-blog-side-card__thumb { background: linear-gradient(135deg,#052e16,#0f172a) !important; }

/* ── Artykuły – 3 kolejne ── */
body.dark-mode .fp-blog-3             { background: #0f172a !important; }
body.dark-mode .fp-blog-card          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-blog-card:hover    { box-shadow: 0 8px 32px rgba(0,0,0,.4) !important; }
body.dark-mode .fp-blog-card__title   { color: #f1f5f9 !important; }
body.dark-mode .fp-blog-card__thumb   { background: linear-gradient(135deg,#052e16,#0f172a) !important; }

/* ── Mapa ── */
body.dark-mode .fp-map-section        { background: #1e293b !important; border-bottom-color: #334155 !important; }
body.dark-mode .fp-map-teaser         { border-color: #334155 !important; }

/* ── Wykresy / historia ── */
body.dark-mode .fp-charts-section     { background: #0a1120 !important; }
body.dark-mode .fp-charts-tabs        { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-ctab               { color: #94a3b8 !important; background: transparent !important; }
body.dark-mode .fp-ctab.active        { background: #1a6b45 !important; color: #fff !important; }
body.dark-mode .fp-chart-main         { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-chart-title        { color: #f1f5f9 !important; }
body.dark-mode .fp-history-table      { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-history-table th   { background: #263347 !important; color: #94a3b8 !important; border-bottom-color: #334155 !important; }
body.dark-mode .fp-history-table td   { border-bottom-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .fp-history-table tr.current-year td { background: #052e16 !important; }
body.dark-mode .fp-chart-years        { color: #64748b !important; }

/* ── Inwestycje ── */
body.dark-mode .fp-inv-section        { background: #0f172a !important; border-top-color: #334155 !important; }
body.dark-mode .fp-inv-card           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-inv-name           { color: #f1f5f9 !important; }
body.dark-mode .fp-inv-chip           { background: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .fp-inv-cta            { border-top-color: #334155 !important; }
body.dark-mode .fp-inv-thumb          { background: #263347 !important; }

/* ── Kalkulator banner (pod sekcją zieloną) ── */
body.dark-mode .fp-kalk-banner        { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-kalk-banner-title  { color: #f1f5f9 !important; }
body.dark-mode .fp-kalk-banner-sub    { color: #94a3b8 !important; }

/* ── Cennik / pakiety ── */
body.dark-mode .fp-pricing-section    { background: #0a1120 !important; border-top-color: #334155 !important; }
body.dark-mode .fp-pricing-card       { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-pricing-card.popular { border-color: #1a6b45 !important; }
body.dark-mode .fp-pkg-name           { color: #f1f5f9 !important; }
body.dark-mode .fp-pkg-price          { color: #f1f5f9 !important; }
body.dark-mode .fp-pkg-features li    { color: #cbd5e1 !important; border-bottom-color: #334155 !important; }
body.dark-mode .fp-pkg-cta.outline    { border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .fp-pricing-note       { color: #64748b !important; }

/* ── Ostatnie transakcje + Top lokalizacje ── */
body.dark-mode .fp-trans-section      { background: #0f172a !important; border-top-color: #334155 !important; }
body.dark-mode .fp-trans-item         { border-color: #334155 !important; }
body.dark-mode .fp-trans-item:hover   { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .fp-trans-msc          { color: #f1f5f9 !important; }
body.dark-mode .fp-trans-icon.lok     { background: #052e16 !important; }
body.dark-mode .fp-trans-icon.dzi     { background: #431407 !important; }
body.dark-mode .fp-trans-icon.bud     { background: #2e1065 !important; }
body.dark-mode .fp-top-name           { color: #f1f5f9 !important; }
body.dark-mode .fp-top-bar            { background: #334155 !important; }
/* Widget head (zastąpił inline color:#111 w front-page) */
body.dark-mode .fp-widget-head          { color: #f1f5f9 !important; border-bottom-color: #334155 !important; }

/* onmouseover='#f9fafb' – hover na linkach top-lokalizacje */
body.dark-mode .fp-top-list a:hover    { background: #263347 !important; }
body.dark-mode .fp-wrap a[onmouseover]:hover { background: #263347 !important; }

/* unit-sibling-name (single-dp_unit.php) */
body.dark-mode .unit-sibling-name      { color: #f1f5f9 !important; }

/* Fallback: dowolny element z hardcoded color:#111 wewnątrz fp-wrap */
body.dark-mode .fp-wrap [style*="color:#111"] { color: #f1f5f9 !important; }

/* ═══════════════════════════════════════════════════════════════
   NOWE SEKCJE STRONY GŁÓWNEJ
═══════════════════════════════════════════════════════════════ */

/* Social proof bar — już jest ciemny (#0d3d22), działa w obu trybach */

/* Tools discovery section */
body.dark-mode .fp-tools-section       { background: #0f172a !important; border-bottom-color: #334155 !important; }
body.dark-mode .fp-tool-card           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-tool-card:hover     { border-color: #34d399 !important; box-shadow: 0 8px 32px rgba(52,211,153,.08) !important; }
body.dark-mode .fp-tool-card__title    { color: #f1f5f9 !important; }
body.dark-mode .fp-tool-card__desc     { color: #94a3b8 !important; }
body.dark-mode .fp-tool-card__cta      { color: #34d399 !important; }
body.dark-mode .fp-tool-card__badge    { background: #422006 !important; color: #fcd34d !important; }

/* Alert section — gradient już ciemny, formularz glass działa, override dla --fp-surface w tytule sekcji */
body.dark-mode .fp-alert-section .fp-section-eyebrow { color: rgba(255,255,255,.4) !important; }

/* Sekcja "Sprawdź ceny w okolicy" */
body.dark-mode .fp-msc-section        { background: #0a1120 !important; border-top-color: #334155 !important; }
body.dark-mode .fp-msc-tabs           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-msc-tab            { color: #94a3b8 !important; }
body.dark-mode .fp-msc-tab.active     { background: #1a6b45 !important; color: #fff !important; }
body.dark-mode .fp-msc-card           { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-msc-card:hover     { border-color: #34d399 !important; background: #1e293b !important; }
body.dark-mode .fp-msc-dist           { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .fp-geo-btn            { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .fp-geo-btn:hover      { border-color: #34d399 !important; color: #34d399 !important; }
body.dark-mode .fp-geo-btn.active     { background: #052e16 !important; border-color: #166534 !important; color: #4ade80 !important; }
body.dark-mode .fp-msc-name           { color: #f1f5f9 !important; }
body.dark-mode .fp-msc-bar            { background: #334155 !important; }
body.dark-mode .fp-msc-meta           { color: #64748b !important; }

/* Sekcja "Ostatnio sprzedane" — pełna szerokość 2-col grid */
body.dark-mode .fp-trans-section      { background: #0f172a !important; border-top-color: #334155 !important; }
body.dark-mode .fp-trans-item         { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-trans-item:hover   { background: #052e16 !important; border-color: #166534 !important; }
body.dark-mode .fp-widget-sub         { color: #64748b !important; }

/* ── Strona wyników wyszukiwania (search.php) ── */
body.dark-mode .srp                   { background: #0f172a !important; }
body.dark-mode .srp-tabs              { background: #1e293b !important; border-bottom-color: #334155 !important; }
body.dark-mode .srp-tab               { color: #94a3b8 !important; }
body.dark-mode .srp-tab.active        { color: #4ade80 !important; border-bottom-color: #4ade80 !important; }
body.dark-mode .srp-tab-cnt           { background: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .srp-tab.active .srp-tab-cnt { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .srp-section-head      { color: #64748b !important; border-bottom-color: #334155 !important; }
body.dark-mode .srp-art-card          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .srp-art-card:hover    { border-color: #34d399 !important; box-shadow: 0 8px 28px rgba(0,0,0,.4) !important; }
body.dark-mode .srp-art-thumb-ph      { background: linear-gradient(135deg,#052e16,#0f172a) !important; }
body.dark-mode .srp-art-title         { color: #f1f5f9 !important; }
body.dark-mode .srp-art-meta          { color: #64748b !important; }
body.dark-mode .srp-art-excerpt       { color: #94a3b8 !important; }
body.dark-mode .srp-rcn-card          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .srp-rcn-card:hover    { border-color: #34d399 !important; }
body.dark-mode .srp-rcn-msc           { color: #f1f5f9 !important; }
body.dark-mode .srp-rcn-title         { color: #94a3b8 !important; }
body.dark-mode .srp-rcn-date          { color: #64748b !important; }
body.dark-mode .srp-rcn-price         { border-top-color: #334155 !important; }
body.dark-mode .srp-rcn-price-m2      { color: #64748b !important; }
body.dark-mode .srp-rcn-area          { color: #64748b !important; }
body.dark-mode .srp-rcn-type--lokale  { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .srp-rcn-type--dzialki { background: #1c1208 !important; color: #fbbf24 !important; }
body.dark-mode .srp-rcn-type--budynki { background: #1e1030 !important; color: #a78bfa !important; }
body.dark-mode .srp-empty             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .srp-pag a, body.dark-mode .srp-pag span { background: #1e293b !important; border-color: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .srp-pag .current      { background: #1a6b45 !important; border-color: #1a6b45 !important; color: #fff !important; }
body.dark-mode .srp-widget            { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .srp-widget-head       { background: #0f172a !important; border-bottom-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .srp-widget-link       { color: #cbd5e1 !important; border-bottom-color: #1e293b !important; }
body.dark-mode .srp-widget-link:hover { color: #4ade80 !important; }
body.dark-mode .srp-widget-cnt        { background: #334155 !important; color: #94a3b8 !important; }
body.dark-mode .srp-noquery h1        { color: #f1f5f9 !important; }

/* ── Strona lokalizacji ── */
body.dark-mode .lok                    { background: #0a1120 !important; }
body.dark-mode .lok-stat-card          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .lok-stat-card:hover    { border-color: var(--lok-color, #34d399) !important; }
body.dark-mode .lok-stat-label         { color: #64748b !important; }
body.dark-mode .lok-stat-row           { color: #64748b !important; }
body.dark-mode .lok-stat-empty         { color: #475569 !important; }
body.dark-mode .lok-charts-section     { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .lok-charts-head        { color: #f1f5f9 !important; }
body.dark-mode .lok-ctabs              { background: #0f172a !important; border-color: #334155 !important; }
body.dark-mode .lok-ctab               { color: #94a3b8 !important; background: transparent !important; }
body.dark-mode .lok-ctab.active        { background: #1a6b45 !important; color: #fff !important; }
body.dark-mode .lok-chart-meta         { color: #64748b !important; }
body.dark-mode .lok-hist-table         { border-color: #334155 !important; }
body.dark-mode .lok-hist-table th      { background: #263347 !important; color: #94a3b8 !important; border-bottom-color: #334155 !important; }
body.dark-mode .lok-hist-table td      { border-bottom-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .lok-hist-table tr.cur td { background: #052e16 !important; }
body.dark-mode .lok-no-data            { background: #0f172a !important; color: #475569 !important; }
body.dark-mode .lok-chart-years        { color: #475569 !important; }
body.dark-mode .lok-section-head       { color: #64748b !important; border-bottom-color: #334155 !important; }
body.dark-mode .lok-section-head a     { color: #4ade80 !important; }
body.dark-mode .lok-trans-card         { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .lok-trans-card:hover   { border-color: #34d399 !important; }
body.dark-mode .lok-trans-title        { color: #94a3b8 !important; }
body.dark-mode .lok-trans-date         { color: #64748b !important; }
body.dark-mode .lok-trans-price        { border-top-color: #334155 !important; }
body.dark-mode .lok-trans-price-m2     { color: #64748b !important; }
body.dark-mode .lok-trans-area         { color: #64748b !important; }
body.dark-mode .lok-trans-type--lokale  { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .lok-trans-type--dzialki { background: #1c1208 !important; color: #fbbf24 !important; }
body.dark-mode .lok-trans-type--budynki { background: #1e1030 !important; color: #a78bfa !important; }
body.dark-mode .lok-widget             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .lok-widget-head        { background: #0f172a !important; border-bottom-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .lok-widget-link        { color: #cbd5e1 !important; border-bottom-color: #1e293b !important; }
body.dark-mode .lok-widget-link:hover  { color: #4ade80 !important; }

/* ── OGŁOSZENIA — lista (page-ogloszenia.php) ── */
body.dark-mode .ogl-filters            { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .ogl-filter-sel,
body.dark-mode .ogl-filter-inp        { background: #0f172a !important; color: #f1f5f9 !important; border-color: #334155 !important; }
body.dark-mode .ogl-card              { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .ogl-card:hover        { border-color: #34d399 !important; }
body.dark-mode .ogl-card__img-ph      { background: #0f172a !important; }
body.dark-mode .ogl-card__title       { color: #f1f5f9 !important; }
body.dark-mode .ogl-card__meta        { color: #94a3b8 !important; }
body.dark-mode .ogl-card__cena        { color: #4ade80 !important; }
body.dark-mode .ogl-card__link        { background: #0d2e1a !important; color: #4ade80 !important; }
body.dark-mode .ogl-card__link:hover  { background: #1a3d28 !important; }
body.dark-mode .ogl-card__badge--mieszkanie { background: #1e3a5f !important; color: #93c5fd !important; }
body.dark-mode .ogl-card__badge--dom  { background: #1a2e1a !important; color: #86efac !important; }
body.dark-mode .ogl-card__badge--dzialka { background: #2d2000 !important; color: #fde68a !important; }
body.dark-mode .ogl-card__badge--lokal { background: #2d1b4e !important; color: #d8b4fe !important; }
body.dark-mode .ogl-page-btn          { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-mode .ogl-page-btn.active   { background: #1a6b45 !important; border-color: #1a6b45 !important; color: #fff !important; }
body.dark-mode .ogl-loading,
body.dark-mode .ogl-empty             { color: #64748b !important; }

/* ── DODAJ OGŁOSZENIE (page-dodaj-ogloszenie.php) ── */
body.dark-mode .add-ogl-form          { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .add-ogl-section__title { color: #f1f5f9 !important; border-bottom-color: #334155 !important; }
body.dark-mode .ogl-typ-card          { border-color: #334155 !important; background: #0f172a !important; }
body.dark-mode .ogl-typ-card:has(input:checked) { border-color: #22c55e !important; background: #0d2e1a !important; }
body.dark-mode .ogl-typ-card em       { color: #94a3b8 !important; }
body.dark-mode .add-ogl-field label   { color: #94a3b8 !important; }
body.dark-mode .add-ogl-field input,
body.dark-mode .add-ogl-field textarea { background: #0f172a !important; border-color: #334155 !important; color: #f1f5f9 !important; }
body.dark-mode .add-ogl-field input:focus,
body.dark-mode .add-ogl-field textarea:focus { border-color: #22c55e !important; outline-color: #22c55e !important; }
body.dark-mode .ogl-photo-placeholder { border-color: #334155 !important; color: #64748b !important; }
body.dark-mode .ogl-photo-placeholder:hover { background: #1e293b !important; border-color: #22c55e !important; }
body.dark-mode .add-ogl-privacy,
body.dark-mode .add-ogl-terms        { color: #64748b !important; }
body.dark-mode .add-ogl-msg--ok      { background: #0d2e1a !important; border-color: #166534 !important; color: #86efac !important; }
body.dark-mode .add-ogl-msg--err     { background: #2d1515 !important; border-color: #7f1d1d !important; color: #fca5a5 !important; }

/* ── SINGLE OGŁOSZENIE (single-dp_listing.php) ── */
body.dark-mode .sgl-ogl__card,
body.dark-mode .sgl-ogl__contact,
body.dark-mode .sgl-ogl__rcn         { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .sgl-ogl__title       { color: #f1f5f9 !important; }
body.dark-mode .sgl-ogl__cena        { color: #4ade80 !important; }
body.dark-mode .sgl-ogl__cena-m2,
body.dark-mode .sgl-ogl__loc         { color: #94a3b8 !important; }
body.dark-mode .sgl-ogl__params      { border-top-color: #334155 !important; }
body.dark-mode .sgl-ogl__param span  { color: #64748b !important; }
body.dark-mode .sgl-ogl__param strong { color: #e2e8f0 !important; }
body.dark-mode .sgl-ogl__badge--mieszkanie { background: #1e3a5f !important; color: #93c5fd !important; }
body.dark-mode .sgl-ogl__badge--dom  { background: #1a2e1a !important; color: #86efac !important; }
body.dark-mode .sgl-ogl__badge--dzialka { background: #2d2000 !important; color: #fde68a !important; }
body.dark-mode .sgl-ogl__badge--lokal { background: #2d1b4e !important; color: #d8b4fe !important; }
body.dark-mode .sgl-contact__name    { color: #f1f5f9 !important; }
body.dark-mode .sgl-contact__btn--mail { background: #0d2e1a !important; border-color: #166534 !important; color: #4ade80 !important; }
body.dark-mode .sgl-contact__note    { color: #64748b !important; }
body.dark-mode .sgl-ogl__rcn h4      { color: #f1f5f9 !important; }
body.dark-mode .sgl-rcn__link        { color: #4ade80 !important; }
body.dark-mode .sgl-gallery__main    { background: #0f172a !important; }
body.dark-mode .sgl-no-photo         { background: #1e293b !important; color: #475569 !important; }
body.dark-mode .sgl-ogl__opis        { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .sgl-ogl__opis h3     { color: #f1f5f9 !important; }
body.dark-mode .sgl-ogl__opis-text   { color: #cbd5e1 !important; }
body.dark-mode .sgl-ogl__bc a        { color: #64748b !important; }
body.dark-mode .sgl-ogl__bc a:hover  { color: #4ade80 !important; }

/* ── FRONT PAGE — Ogłoszenia sekcja ── */
body.dark-mode .fp-ogl-section          { background: #0f172a !important; border-bottom-color: #334155 !important; }
body.dark-mode .fp-ogl-card             { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .fp-ogl-card:hover       { box-shadow: 0 8px 28px rgba(0,0,0,.35) !important; }
body.dark-mode .fp-ogl-card__img-ph     { background: #0f172a !important; }
body.dark-mode .fp-ogl-card__title      { color: #f1f5f9 !important; }
body.dark-mode .fp-ogl-card__loc        { color: #64748b !important; }
body.dark-mode .fp-ogl-card__cena       { color: #4ade80 !important; }
body.dark-mode .fp-ogl-card__pow        { color: #94a3b8 !important; }
body.dark-mode .fp-ogl-card__badge--sprzedaz { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .fp-ogl-card__badge--wynajem  { background: #1e3a5f !important; color: #93c5fd !important; }
body.dark-mode .fp-ogl-card__badge--mieszkanie { background: #1e3a5f !important; color: #93c5fd !important; }
body.dark-mode .fp-ogl-card__badge--dom    { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .fp-ogl-card__badge--dzialka { background: #1c1208 !important; color: #fbbf24 !important; }
body.dark-mode .fp-ogl-btn--outline     { border-color: #22c55e !important; color: #4ade80 !important; }
body.dark-mode .fp-ogl-btn--outline:hover { background: #052e16 !important; }
body.dark-mode .fp-ogl-demo-note        { color: #475569 !important; }

/* ── DODAJ OGŁOSZENIE — trans toggle ── */
body.dark-mode .ogl-trans-card          { border-color: #334155 !important; background: #0f172a !important; }
body.dark-mode .ogl-trans-card em       { color: #94a3b8 !important; }
body.dark-mode .ogl-trans-card:has(input:checked) { border-color: #22c55e !important; background: #0d2e1a !important; }

/* ── LISTA OGŁOSZEŃ — trans badges ── */
body.dark-mode .ogl-card__badge--sprzedaz { background: #052e16 !important; color: #4ade80 !important; }
body.dark-mode .ogl-card__badge--wynajem  { background: #1e3a5f !important; color: #93c5fd !important; }

/* ── MEGA MENU — dark mode ── */
body.dark-mode .header-top          { border-bottom-color: #1e293b !important; }
body.dark-mode .header-cta-btn      { border-color: #22c55e !important; color: #4ade80 !important; }
body.dark-mode .header-cta-btn:hover{ background: #166534 !important; color: #fff !important; }
body.dark-mode .mega-nav__link      { color: #94a3b8 !important; }
body.dark-mode .mega-nav__link:hover,
body.dark-mode .mega-nav__item:hover > .mega-nav__link { color: #4ade80 !important; border-bottom-color: #4ade80 !important; }
body.dark-mode .mega-panel          { background: #0f172a !important; border-top-color: #22c55e !important; box-shadow: 0 12px 40px rgba(0,0,0,.4) !important; }
body.dark-mode .mega-col__title     { color: #475569 !important; border-bottom-color: #1e293b !important; }
body.dark-mode .mega-col__link      { color: #94a3b8 !important; }
body.dark-mode .mega-col__link:hover{ background: #1e293b !important; color: #4ade80 !important; }
body.dark-mode .mega-col__link--strong { color: #4ade80 !important; }
body.dark-mode .mega-col__link--cta { background: #0d2e1a !important; border-color: #166534 !important; color: #4ade80 !important; }
body.dark-mode .drop-panel          { background: #0f172a !important; border-color: #334155 !important; }
body.dark-mode .drop-link           { color: #94a3b8 !important; }
body.dark-mode .drop-link:hover     { background: #1e293b !important; color: #f1f5f9 !important; }
body.dark-mode .nav-mob-group__btn  { color: #f1f5f9 !important; }
body.dark-mode .nav-mob-group       { border-bottom-color: #1e293b !important; }
