
body.phg-offer-dark {
    --pd-bg: #131313;
    --pd-surface: #1b1b1b;
    --pd-line: #333;
    --pd-cream: #eeece6;
    --pd-gray: #b9b9b9;
    --pd-gray-d: #8a8a8a;
    background: var(--pd-bg);
    color: #fff;
}
body.phg-offer-dark #main,
body.phg-offer-dark #content,
body.phg-offer-dark .the-content,
body.phg-offer-dark #footer { background: var(--pd-bg) !important; color: #fff; }


body.phg-offer-dark #content h1,
body.phg-offer-dark #content h2,
body.phg-offer-dark #content h3,
body.phg-offer-dark #content h4 { color: #fff !important; }
body.phg-offer-dark #content p,
body.phg-offer-dark #content li,
body.phg-offer-dark #content dd { color: var(--pd-gray) !important; }


body.phg-offer-dark #title { padding-top: 2.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--pd-line); }
body.phg-offer-dark #title h1 {
    color: #fff !important; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
}
body.phg-offer-dark #title .left-part,
body.phg-offer-dark #title .right-part { color: #fff; }

body.phg-offer-dark #title .left-part p,
body.phg-offer-dark #title .left-part .sections,
body.phg-offer-dark #title .subtitle { color: var(--pd-gray-d) !important; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

body.phg-offer-dark #title .price,
body.phg-offer-dark #title .prices .price { color: var(--pd-cream) !important; }
body.phg-offer-dark #title .price-m2,
body.phg-offer-dark #title .prices .price-m2 { color: var(--pd-gray-d) !important; }


body.phg-offer-dark #title a,
body.phg-offer-dark #title i,
body.phg-offer-dark #title .actions a { color: #fff !important; }


body.phg-offer-dark #params-main { background: var(--pd-bg); padding: 2.4rem 0; }
body.phg-offer-dark #params-main .col {
    background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 4px;
    padding: 18px 16px; color: #fff;
}
body.phg-offer-dark #params-main .col .label,
body.phg-offer-dark #params-main dt { color: var(--pd-gray-d) !important; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
body.phg-offer-dark #params-main .col .value,
body.phg-offer-dark #params-main .col strong,
body.phg-offer-dark #params-main dd { color: var(--pd-cream) !important; }

body.phg-offer-dark #params-main dl.row { gap: 12px !important; }
body.phg-offer-dark #params-main .col.hl {
    background: var(--pd-surface) !important;
    border-color: var(--pd-line) !important;
    margin-left: 0 !important;
}


body.phg-offer-dark #description { padding: 2.6rem 0; }
body.phg-offer-dark #description h3 { text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.2rem; }
body.phg-offer-dark #description .col-md-7 { color: var(--pd-gray); line-height: 1.85; }

body.phg-offer-dark #description .row { align-items: flex-start !important; }
body.phg-offer-dark #description .col-md-4 { background: transparent !important; border: 0 !important; align-self: flex-start !important; height: auto !important; }
body.phg-offer-dark #description .agent-card {
    background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 6px;
    padding: 26px; height: auto !important; align-self: flex-start;
}


body.phg-offer-dark #params-lateral { background: var(--pd-bg); padding: 1rem 0 2.6rem; }
body.phg-offer-dark #params-lateral h3 { text-transform: uppercase; letter-spacing: .06em; }
body.phg-offer-dark #params-lateral dl > div,
body.phg-offer-dark #params-lateral dl .row > * { border-bottom: 1px solid var(--pd-line); padding: 12px 0; }
body.phg-offer-dark #params-lateral dt { color: var(--pd-gray-d) !important; }
body.phg-offer-dark #params-lateral dd { color: #fff !important; }


body.phg-offer-dark #gallery-slider { background: #000; }
body.phg-offer-dark #gallery-grid { background: var(--pd-bg); padding: 2.4rem 0; }
body.phg-offer-dark #gallery-grid h3 { text-transform: uppercase; letter-spacing: .06em; }


body.phg-offer-dark #map { background: var(--pd-bg); padding: 2.4rem 0; }
body.phg-offer-dark #map h3 { text-transform: uppercase; letter-spacing: .06em; }


body.phg-offer-dark #contact.bg-dark,
body.phg-offer-dark #contact { background: var(--pd-surface) !important; }
body.phg-offer-dark #contact h3 { text-transform: uppercase; letter-spacing: .06em; }
body.phg-offer-dark #contact label { color: var(--pd-gray) !important; }
body.phg-offer-dark #contact input,
body.phg-offer-dark #contact textarea {
    background: #131313 !important; border: 1px solid var(--pd-line) !important; color: #fff !important;
}


body.phg-offer-dark .btn,
body.phg-offer-dark button[type=submit],
body.phg-offer-dark input[type=submit],
body.phg-offer-dark .btn-default,
body.phg-offer-dark .btn-primary {
    background: transparent !important; color: #fff !important;
    border: 1px solid var(--pd-cream) !important; border-radius: 0 !important;
    text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
    transition: all .3s ease;
}
body.phg-offer-dark .btn:hover,
body.phg-offer-dark button[type=submit]:hover,
body.phg-offer-dark input[type=submit]:hover {
    background: var(--pd-cream) !important; color: #131313 !important; border-color: var(--pd-cream) !important;
}


body.phg-offer-dark #content hr,
body.phg-offer-dark #content .divider { border-color: var(--pd-line) !important; background: var(--pd-line) !important; }


body.phg-offer-dark #property_map,
body.phg-offer-dark .leaflet-container { background: #1b1b1b !important; }
body.phg-offer-dark .leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(0.96); }
body.phg-offer-dark .leaflet-control-zoom a {
    background: #1b1b1b !important; color: #fff !important; border-color: #333 !important;
}
body.phg-offer-dark .leaflet-control-zoom a:hover { background: #2a2a2a !important; }
body.phg-offer-dark .leaflet-bar { border-color: #333 !important; }
body.phg-offer-dark .leaflet-control-attribution { background: rgba(0,0,0,0.55) !important; color: #888 !important; }
body.phg-offer-dark .leaflet-control-attribution a { color: #aaa !important; }



body.phg-offer-dark #title,
body.phg-offer-dark #title .row,
body.phg-offer-dark #title .left-part,
body.phg-offer-dark #title .right-part,
body.phg-offer-dark #title .price { background: var(--pd-bg) !important; }

body.phg-offer-dark #title .left-part h2,
body.phg-offer-dark #title .left-part h2 span {
    color: var(--pd-gray-d) !important; font-size: .85rem !important; font-weight: 600 !important;
    text-transform: uppercase !important; letter-spacing: .14em !important;
}
body.phg-offer-dark #title h1 { font-size: 2.2rem !important; }


body.phg-offer-dark #description .agent-card,
body.phg-offer-dark #description .agent-card .info,
body.phg-offer-dark #description .agent-card .title { color: #fff !important; }
body.phg-offer-dark #description .agent-card h3 { color: #fff !important; }
body.phg-offer-dark #description .agent-card .position { color: var(--pd-gray-d) !important; }
body.phg-offer-dark #description .agent-card .links a,
body.phg-offer-dark #description .agent-card .links li,
body.phg-offer-dark #description .agent-card .links i { color: var(--pd-cream) !important; }
body.phg-offer-dark #description .agent-card .links a:hover { color: #fff !important; }


body.phg-offer-dark .leaflet-marker-pane img.leaflet-marker-icon {
    filter: hue-rotate(195deg) saturate(1.7) brightness(1.08);
}


body.phg-offer-dark #footer { background: #0f0f0f !important; border-top: 1px solid var(--pd-line); }
body.phg-offer-dark #footer h3 { color: #fff !important; text-transform: uppercase; letter-spacing: .08em; }
body.phg-offer-dark #footer,
body.phg-offer-dark #footer p,
body.phg-offer-dark #footer address,
body.phg-offer-dark #footer li,
body.phg-offer-dark #footer .widget { color: var(--pd-gray) !important; }
body.phg-offer-dark #footer a { color: var(--pd-gray) !important; transition: color .25s ease; }
body.phg-offer-dark #footer a:hover { color: var(--pd-cream) !important; }
body.phg-offer-dark #footer .name strong,
body.phg-offer-dark #footer .widget-aboutus strong { color: #fff !important; }
body.phg-offer-dark #footer .widget-social a,
body.phg-offer-dark #footer .widget-social i { color: var(--pd-cream) !important; }

body.phg-offer-dark #footer-widgets-bottom img { filter: brightness(0) invert(1); opacity: .92; }

body.phg-offer-dark #footer .widgets { border-color: var(--pd-line) !important; }


body.phg-offer-dark #description .agent-card .image { text-align: center; }
body.phg-offer-dark #description .agent-card .image img { max-height: 280px; width: auto; max-width: 100%; object-fit: contain; display: inline-block; border-radius: 4px; }


body.phg-offer-dark .locality { color: #fff !important; }

/* ============================================================
   REDESIGN v2 — editorial premium (2026-07-03)
   Warstwa nadpisujaca: zlote hairline'y, karty z hoverem,
   formularz liniowy, akcje jako okragle ghost-buttony,
   reveal-animacje (gate: html.phg-offer-anim, klasy z offer-anim.js)
   ============================================================ */

body.phg-offer-dark { --pd-gold: #d0b857; --pd-gold-d: #b08a3e; }

/* --- naglowki sekcji: zloty hairline-kicker przed h3 --- */
body.phg-offer-dark #content section > .container > .row h3,
body.phg-offer-dark #content section h3 {
    font-size: 1.5rem !important;
    letter-spacing: .12em !important;
    display: block;
    position: relative;
    padding-top: 18px;
    margin-bottom: 1.6rem !important;
}
body.phg-offer-dark #content section h3::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 44px; height: 2px;
    background: linear-gradient(90deg, var(--pd-gold-d), var(--pd-gold));
}
body.phg-offer-dark #description .agent-card h3 { padding-top: 0; }
body.phg-offer-dark #description .agent-card h3::before { display: none; }

/* --- #title: editorial hero --- */
body.phg-offer-dark #title { padding-top: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--pd-line); position: relative; }
body.phg-offer-dark #title .left-part h2,
body.phg-offer-dark #title .left-part h2 span {
    color: var(--pd-gold) !important;
    letter-spacing: .24em !important;
    font-size: .78rem !important;
}
body.phg-offer-dark #title h1 {
    font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
    line-height: 1.18 !important;
    max-width: 21ch;
}
body.phg-offer-dark #title .price,
body.phg-offer-dark #title .prices .price { font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important; letter-spacing: .02em; }
body.phg-offer-dark #title .price-m2,
body.phg-offer-dark #title .prices .price-m2 { letter-spacing: .08em; }

/* akcje (schowek/serce/udostepnij/plany): okragle ghost-buttony */
body.phg-offer-dark #title .actions { display: flex; gap: 10px; align-items: center; }
body.phg-offer-dark #title .actions > a {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.26);
    display: inline-flex !important; align-items: center; justify-content: center;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    background: transparent;
}
body.phg-offer-dark #title .actions > a:hover {
    border-color: var(--pd-gold); background: var(--pd-gold);
    transform: translateY(-3px);
}
body.phg-offer-dark #title .actions > a:hover,
body.phg-offer-dark #title .actions > a:hover i { color: #131313 !important; }
body.phg-offer-dark #title .actions > a img { max-width: 20px; max-height: 20px; }
body.phg-offer-dark #title .actions > a:hover img { filter: brightness(0); }
body.phg-offer-dark #title .actions .bookmark.fas { color: #E63946 !important; }

/* --- karty parametrow: zloty tick, hover-lift --- */
body.phg-offer-dark #params-basic .module,
body.phg-offer-dark #params-main .col {
    position: relative;
    border-radius: 2px !important;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
}
body.phg-offer-dark #params-basic .module::before,
body.phg-offer-dark #params-main .col::before {
    content: "";
    position: absolute; top: 0; left: 16px;
    width: 26px; height: 2px;
    background: var(--pd-gold);
    opacity: .75;
    transition: width .35s cubic-bezier(.16,1,.3,1);
}
body.phg-offer-dark #params-basic .module:hover,
body.phg-offer-dark #params-main .col:hover {
    border-color: rgba(208,184,87,.55) !important;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.4);
}
body.phg-offer-dark #params-basic .module:hover::before,
body.phg-offer-dark #params-main .col:hover::before { width: 52px; }
body.phg-offer-dark #params-basic .module { background: var(--pd-surface); border: 1px solid var(--pd-line); padding: 18px 16px; }
body.phg-offer-dark #params-basic .module-info { color: var(--pd-gray-d) !important; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
body.phg-offer-dark #params-basic .module-content { color: var(--pd-cream) !important; }

/* --- dodatkowe informacje: wiersze z hoverem --- */
body.phg-offer-dark #params-lateral dl > div,
body.phg-offer-dark #params-lateral dl .row > * { transition: border-color .3s ease; }
body.phg-offer-dark #params-lateral dl > div:hover,
body.phg-offer-dark #params-lateral dl .row > *:hover { border-bottom-color: rgba(208,184,87,.5); }

/* --- opis: swiatlo i rytm --- */
body.phg-offer-dark #description .col-md-7 { font-size: 1.02rem; }
body.phg-offer-dark #description .col-md-7 p { margin-bottom: 1.1em; }

/* --- karta agenta: zloty ring na hover --- */
body.phg-offer-dark #description .agent-card,
body.phg-offer-dark #contact .agent-card {
    transition: border-color .35s ease, box-shadow .35s ease;
}
body.phg-offer-dark #description .agent-card:hover,
body.phg-offer-dark #contact .agent-card:hover { border-color: rgba(208,184,87,.5); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
body.phg-offer-dark .agent-card .position { color: var(--pd-gold) !important; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }

/* --- galeria mozaika: hover premium --- */
body.phg-offer-dark #gallery-grid .grid-images-container a,
body.phg-offer-dark #offer-gallery a { display: block; overflow: hidden; border-radius: 2px; }
body.phg-offer-dark #gallery-grid .offer-image-img {
    transition: transform .8s cubic-bezier(.25,.74,.22,.99), filter .5s ease;
    display: block;
}
body.phg-offer-dark #gallery-grid a:hover .offer-image-img { transform: scale(1.045); filter: brightness(1.08) saturate(1.05); }

/* --- formularz kontaktowy: pola liniowe, zloty focus --- */
body.phg-offer-dark #contact { padding: 3rem 0 !important; }
body.phg-offer-dark #contact input:not([type=submit]):not([type=checkbox]),
body.phg-offer-dark #contact textarea,
body.phg-offer-dark #contact select {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pd-line) !important;
    border-radius: 0 !important;
    color: var(--pd-cream) !important;
    padding: 12px 2px !important;
    transition: border-color .3s ease;
}
body.phg-offer-dark #contact input:focus,
body.phg-offer-dark #contact textarea:focus {
    border-bottom-color: var(--pd-gold) !important;
    outline: none !important;
    box-shadow: none !important;
}
body.phg-offer-dark #contact label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; }
body.phg-offer-dark #contact button[type=submit],
body.phg-offer-dark #contact input[type=submit] {
    background: var(--pd-gold) !important; color: #131313 !important; border-color: var(--pd-gold) !important;
    padding: 14px 40px;
}
body.phg-offer-dark #contact button[type=submit]:hover,
body.phg-offer-dark #contact input[type=submit]:hover {
    background: transparent !important; color: var(--pd-gold) !important; border-color: var(--pd-gold) !important;
}

/* --- mapa: zloty akcent naglowka juz jest; delikatna ramka --- */
body.phg-offer-dark #property_map { border: 1px solid var(--pd-line); border-radius: 2px; }

/* ============================================================
   REVEAL-ANIMACJE (offer-anim.js nadaje .phgo-reveal + kierunek,
   po wejsciu .in; po transitionend JS zdejmuje klasy = zero
   konfliktow z hover-transformami)
   ============================================================ */
html.phg-offer-anim .phgo-reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--phgo-d, 0s);
    will-change: transform, opacity;
}
html.phg-offer-anim .phgo-reveal.m-left  { transform: translate3d(-44px, 26px, 0); }
html.phg-offer-anim .phgo-reveal.m-right { transform: translate3d(44px, 26px, 0); }
html.phg-offer-anim .phgo-reveal.m-zoom  { transform: translateY(30px) scale(.94); }
html.phg-offer-anim .phgo-reveal.in { opacity: 1; transform: none; }

.phgo-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999;
    background: linear-gradient(90deg, var(--pd-gold-d, #b08a3e), var(--pd-gold, #d0b857));
    transform-origin: left; transform: scaleX(0);
    box-shadow: 0 0 12px rgba(208,184,87,.5);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html.phg-offer-anim .phgo-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .phgo-progress { display: none !important; }
    body.phg-offer-dark #params-basic .module:hover,
    body.phg-offer-dark #params-main .col:hover { transform: none; }
}


/* ikony akcji/share (svg z motywu sa czarne) -> biale na ciemnym tle oferty; na zlotym hoverze ciemne */
body.phg-offer-dark img[src*="assets/img/icons/"] { filter: brightness(0) invert(1); transition: filter .25s ease; }
body.phg-offer-dark a:hover > img[src*="assets/img/icons/"],
body.phg-offer-dark button:hover > img[src*="assets/img/icons/"] { filter: brightness(0); }


/* tabela ofert inwestycji (widok tabeli, bootstrap .table) — dark premium */
body.phg-offer-dark .investment-offers-table-wrapper { background: transparent; }
body.phg-offer-dark .investment-offers-table {
    --bs-table-bg: transparent;
    --bs-table-color: #eeece6;
    color: #eeece6 !important;
    border-color: rgba(255,255,255,.1) !important;
}
body.phg-offer-dark .investment-offers-table thead th,
body.phg-offer-dark .investment-offers-table thead td {
    background: #1b1b1b !important;
    color: #d0b857 !important;
    font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
    border-bottom: 1px solid rgba(208,184,87,.4) !important;
    border-top: 0 !important;
}
body.phg-offer-dark .investment-offers-table tbody td,
body.phg-offer-dark .investment-offers-table tbody th {
    background: #161616 !important;
    color: #eeece6 !important;
    border-color: rgba(255,255,255,.08) !important;
}
body.phg-offer-dark .investment-offers-table.table-hover tbody tr:hover td,
body.phg-offer-dark .investment-offers-table tbody tr:hover td {
    background: #201e18 !important;
    color: #fff !important;
}
body.phg-offer-dark .investment-offers-table a { color: #d0b857 !important; }
body.phg-offer-dark .investment-offers-table a:hover { color: #e7d27a !important; }

/* ikony przelacznikow widoku (grid/tabela): biale, zloty hover/aktywny */
body.phg-offer-dark a[data-holder=".investment-offers-table-wrapper"],
body.phg-offer-dark a[data-cookie-val][data-holder] {
    color: #fff !important;
    transition: color .25s ease, transform .25s ease;
}
body.phg-offer-dark a[data-cookie-val][data-holder]:hover { color: #d0b857 !important; transform: scale(1.12); }
body.phg-offer-dark a[data-cookie-val][data-holder].active { color: #d0b857 !important; }
body.phg-offer-dark a[data-cookie-val][data-holder] i { color: inherit !important; }

/* ============================================================
   MOBILE FIXES — audyt 390px (2026-07-03)
   ============================================================ */

/* poziomy overflow strony oferty: .owl-stage (galeria) oraz elementy
   z pre-reveal transformami (m-left/m-right, +/-44px) wystaja poza
   viewport -> clip; clip zamiast hidden, bo nie tworzy scroll containera
   (bez wplywu na wyglad desktopu - tnie tylko to, co i tak wystawalo) */
body.phg-offer-dark { overflow-x: clip; }
body.phg-offer-dark .owl-stage-outer { overflow-x: clip; }

@media (max-width: 767px) {

    /* sekcje skinu maja padding "X 0", a same sa bootstrapowym .container
       -> poziomy padding kontenera zostal wyzerowany i tresc (opis, parametry,
       ceny w kartach) dotykala krawedzi ekranu; przywracamy boczny oddech.
       Tylko padding-left/right, zeby nie ruszac pionowych wartosci skinu.
       Rodzice tych sekcji nie maja wlasnego paddingu (brak podwojenia);
       wewnetrzny .row (-12px) + .col (+12px) daje netto rowne 20px. */
    body.phg-offer-dark #title,
    body.phg-offer-dark #params-main,
    body.phg-offer-dark #params-basic,
    body.phg-offer-dark #params,
    body.phg-offer-dark #description,
    body.phg-offer-dark #params-lateral,
    body.phg-offer-dark #gallery-grid,
    body.phg-offer-dark #map {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* zerowy odstep miedzy hero (#title) a pierwsza sekcja parametrow
       (motyw robi "#params-main { margin-top: unset }" - stad !important) */
    body.phg-offer-dark #title + section { margin-top: 32px !important; }

    /* tap-targety: przelacznik widoku grid/tabela min 40x40 (padding przez
       min-wymiary + centrowanie, ikona bez zmian wygladu) */
    body.phg-offer-dark a[data-cookie-val][data-holder] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
    }

    /* tap-targety: okragle ikony akcji w hero - pilnujemy pelnych 44x44,
       bez sciskania w flexie */
    body.phg-offer-dark #title .actions > a {
        flex: 0 0 auto;
        min-width: 44px;
        min-height: 44px;
    }
}

/* M3 (2026-07-23): sticky CTA na dole ekranu (mobile) — bialy pasek z niewidoczna trescia.
   Ciemne przyciski, zlota tresc, subtelny separator. */
body.phg-offer-dark .agent-links-sticky { background: var(--pd-bg, #131313) !important; box-shadow: 0 -6px 18px rgba(0,0,0,.6); }
body.phg-offer-dark .agent-links-sticky .btn.agent-link,
body.phg-offer-dark .agent-links-sticky .agent-links-sticky__phone-link.btn.btn-primary,
body.phg-offer-dark .agent-links-sticky .agent-links-sticky__form-link.btn.btn-primary {
    background: #1b1b1b !important;
    color: #d0b857 !important;
    border: 0 !important;
    border-top: 1px solid #333 !important;
}
body.phg-offer-dark .agent-links-sticky .btn.agent-link + .btn.agent-link { border-left: 1px solid #333 !important; }
body.phg-offer-dark .agent-links-sticky .btn.agent-link:is(:hover, :focus, :active) { background: #131313 !important; color: #e6cf7a !important; }
