/*
Theme Name: JTM Development
Theme URI:
Author: Adrian Zawada
Author URI:
Description: Custom theme for JTM Sp. z o.o. — strona dewelopera (rodzinna, doświadczona, lokalna).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jtm-development
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   CSS Variables — paleta wg docs/jtmdevelopment/04-ui-style-guide.md
   ========================================================================== */

:root {
    /* Paleta — zieleń z logo JTM Development (jtmdevelopment.pl) */
    --jtm-color-primary:        #1E2820;     /* ciemny grafit z lekko zielonym podtonem (jak "JTM" w logo) */
    --jtm-color-secondary:      #5C685B;     /* chłodno-zielona szarość */
    --jtm-color-accent:         #5BA646;     /* zielony z logo */
    --jtm-color-accent-hover:   #3F7A2F;     /* ciemniejszy zielony — hover */
    --jtm-color-bg:             #FAFBF8;     /* prawie biały, ledwo zielonkawy off-white */
    --jtm-color-surface:        #EEF2EA;     /* surface chłodny zielonkawy beż */
    --jtm-color-border:         #D6DCD1;
    --jtm-color-dark:           #1E2820;
    --jtm-color-dark-surface:   #2A352B;

    --jtm-status-available:     #5BA646;     /* zielony — ujednolicony z accent */
    --jtm-status-reserved:      #C99A3D;     /* ochra */
    --jtm-status-sold:          #9E978C;     /* szary */

    --jtm-font-heading:         'Inter', system-ui, -apple-system, sans-serif;
    --jtm-font-body:            'Inter', system-ui, -apple-system, sans-serif;

    --jtm-container-max:        1240px;
    --jtm-container-pad:        32px;
    --jtm-section-gap:          120px;

    --jtm-radius:               4px;
    --jtm-radius-lg:            8px;
    --jtm-shadow-sm:            0 1px 2px rgba(30, 40, 32, 0.04);
    --jtm-shadow-md:            0 4px 12px rgba(30, 40, 32, 0.08);
    --jtm-shadow-lg:            0 12px 40px rgba(30, 40, 32, 0.12);
    --jtm-transition:           180ms ease;
    --jtm-header-h:             104px;
}

@media (max-width: 1024px) { :root { --jtm-section-gap: 80px; } }
@media (max-width: 768px)  {
    :root {
        --jtm-container-pad: 20px;
        --jtm-section-gap: 64px;
        --jtm-header-h: 80px;
    }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--jtm-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--jtm-color-primary);
    background: var(--jtm-color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jtm-font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    color: var(--jtm-color-primary);
}

h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 20px; }

p { margin: 0 0 1em; max-width: 680px; }

a {
    color: var(--jtm-color-accent);
    text-decoration: none;
    transition: color var(--jtm-transition);
}
a:hover { color: var(--jtm-color-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }

/* ==========================================================================
   Layout
   ========================================================================== */

.jtm-container {
    width: 100%;
    max-width: var(--jtm-container-max);
    margin: 0 auto;
    padding: 0 var(--jtm-container-pad);
}

.jtm-section { padding: var(--jtm-section-gap) 0; }
.jtm-section--surface { background: var(--jtm-color-surface); }
.jtm-section--dark { background: var(--jtm-color-dark); color: #fff; }
.jtm-section--dark h1, .jtm-section--dark h2, .jtm-section--dark h3 { color: #fff; }
.jtm-section--compact { padding: 40px 0; }

.jtm-section__head {
    margin-bottom: 48px;
    max-width: 720px;
}
.jtm-section__head--centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.jtm-section__lead {
    font-size: 18px;
    color: var(--jtm-color-secondary);
    margin-top: 8px;
}

.jtm-grid { display: grid; gap: 24px; }
.jtm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.jtm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.jtm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.jtm-grid--60-40 { grid-template-columns: 6fr 4fr; }
.jtm-grid--50-50 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1024px) { .jtm-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .jtm-grid--2, .jtm-grid--3, .jtm-grid--4, .jtm-grid--60-40, .jtm-grid--50-50 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.jtm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    height: 52px;
    font-family: var(--jtm-font-body);
    font-size: 16px;
    font-weight: 500;
    border: 1.5px solid transparent;
    border-radius: var(--jtm-radius);
    cursor: pointer;
    transition: background var(--jtm-transition), border-color var(--jtm-transition), color var(--jtm-transition);
    text-decoration: none;
    white-space: nowrap;
}
.jtm-btn--primary {
    background: var(--jtm-color-accent);
    color: #fff;
    border-color: var(--jtm-color-accent);
}
.jtm-btn--primary:hover {
    background: var(--jtm-color-accent-hover);
    border-color: var(--jtm-color-accent-hover);
    color: #fff;
}
.jtm-btn--secondary {
    background: transparent;
    color: var(--jtm-color-primary);
    border-color: var(--jtm-color-primary);
}
.jtm-btn--secondary:hover {
    background: var(--jtm-color-primary);
    color: #fff;
}
.jtm-btn--ghost {
    background: transparent;
    color: var(--jtm-color-accent);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}
.jtm-btn--small { height: 40px; padding: 8px 18px; font-size: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */

.jtm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 251, 248, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, height 220ms ease;
}
.jtm-header.is-scrolled {
    background: rgba(250, 251, 248, 0.96);
    border-bottom-color: var(--jtm-color-border);
    box-shadow: 0 4px 20px rgba(30, 40, 32, 0.06);
}
.jtm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: var(--jtm-header-h);
    transition: height 220ms ease;
}
.jtm-header.is-scrolled .jtm-header__inner {
    height: calc(var(--jtm-header-h) - 8px);
}
.jtm-header__brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.jtm-logo {
    display: block;
    height: auto;
}
.jtm-logo--header { height: 90px; width: auto; max-width: 100%; }
.jtm-logo--footer { height: 80px; width: auto; max-width: 100%; }
@media (max-width: 1024px) {
    .jtm-logo--header { height: 78px; }
}
@media (max-width: 540px) {
    .jtm-logo--header { height: 64px; }
}
.jtm-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}
.jtm-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.jtm-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}
.jtm-menu { flex-wrap: nowrap; }
.jtm-menu > li { flex-shrink: 0; }
.jtm-menu > li > a {
    color: var(--jtm-color-primary);
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 2px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}
/* Underline animation pod każdym top-level itemem */
.jtm-menu > li > a::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 2px;
    background: var(--jtm-color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.jtm-menu > li > a:hover { color: var(--jtm-color-accent); }
.jtm-menu > li > a:hover::after,
.jtm-menu > li.current-menu-item > a::after,
.jtm-menu__item--has-dropdown:hover > a::after,
.jtm-menu__item.is-open > a::after {
    transform: scaleX(1);
}
.jtm-menu .current-menu-item > a { color: var(--jtm-color-accent); }
.jtm-menu__caret {
    color: var(--jtm-color-secondary);
    transition: transform 220ms ease, color 180ms ease;
    margin-left: 2px;
    flex-shrink: 0;
}
.jtm-menu > li:hover .jtm-menu__caret { color: var(--jtm-color-accent); }

/* Dropdown */
.jtm-menu__item--has-dropdown { position: relative; }
.jtm-menu__dropdown {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 240px;
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    box-shadow: var(--jtm-shadow-md);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
    z-index: 60;
}
.jtm-menu__item--has-dropdown:hover .jtm-menu__dropdown,
.jtm-menu__item--has-dropdown:focus-within .jtm-menu__dropdown,
.jtm-menu__item--has-dropdown.is-open .jtm-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
.jtm-menu__item--has-dropdown:hover .jtm-menu__caret,
.jtm-menu__item--has-dropdown.is-open .jtm-menu__caret,
.jtm-menu__item--has-dropdown:focus-within .jtm-menu__caret {
    transform: rotate(-180deg);
    color: var(--jtm-color-accent);
}
.jtm-menu__dropdown li { margin: 0; }
.jtm-menu__dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--jtm-radius);
    color: var(--jtm-color-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--jtm-transition), color var(--jtm-transition);
}
.jtm-menu__dropdown a:hover,
.jtm-menu__dropdown li.current-menu-item > a {
    background: var(--jtm-color-surface);
    color: var(--jtm-color-accent);
}

/* Mobile — submenu jako accordion zamiast hover dropdown */
@media (max-width: 1024px) {
    .jtm-menu__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 0 16px;
        margin: 8px 0 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 200ms ease;
    }
    .jtm-menu__item--has-dropdown.is-open .jtm-menu__dropdown {
        max-height: 600px;
    }
    .jtm-menu__dropdown a { padding: 8px 0; font-size: 14px; }
}

.jtm-header__cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.jtm-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jtm-color-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--jtm-radius);
    background: transparent;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.jtm-header__phone svg {
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.jtm-header__phone:hover {
    color: var(--jtm-color-accent);
    background: rgba(91, 166, 70, 0.08);
}
.jtm-header__phone:hover svg {
    transform: rotate(-12deg) scale(1.1);
}

.jtm-burger {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--jtm-color-primary);
}

@media (max-width: 1024px) {
    .jtm-header__nav { display: none; }
    .jtm-header__cta .jtm-btn { display: none; }
    .jtm-burger { display: inline-flex; }
    .jtm-header__nav.is-open {
        display: block;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--jtm-color-bg);
        border-bottom: 1px solid var(--jtm-color-border);
        padding: 24px var(--jtm-container-pad);
    }
    .jtm-header__nav.is-open .jtm-menu {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.jtm-hero {
    padding: 80px 0 100px;
    background: var(--jtm-color-bg);
}
.jtm-hero__grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 1024px) {
    .jtm-hero__grid { grid-template-columns: 1fr; }
}
.jtm-hero__title { margin-bottom: 16px; }
.jtm-hero__lead {
    font-size: 19px;
    color: var(--jtm-color-secondary);
    margin-bottom: 24px;
}
.jtm-hero__points {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 12px;
}
.jtm-hero__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: var(--jtm-color-primary);
}
.jtm-hero__points svg { color: var(--jtm-color-accent); flex-shrink: 0; margin-top: 2px; }
.jtm-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.jtm-hero__media {
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
    box-shadow: var(--jtm-shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--jtm-color-surface);
}
.jtm-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Mini-stats
   ========================================================================== */

.jtm-stats {
    padding: 48px 0;
    background: var(--jtm-color-surface);
    border-top: 1px solid var(--jtm-color-border);
    border-bottom: 1px solid var(--jtm-color-border);
}
.jtm-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 768px) { .jtm-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.jtm-stat__num {
    font-family: var(--jtm-font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--jtm-color-accent);
    line-height: 1;
    margin-bottom: 6px;
}
.jtm-stat__label {
    font-size: 14px;
    color: var(--jtm-color-secondary);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.jtm-card {
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
    transition: transform var(--jtm-transition), box-shadow var(--jtm-transition);
    display: flex;
    flex-direction: column;
}
.jtm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--jtm-shadow-md);
}
.jtm-card__media {
    aspect-ratio: 4 / 3;
    background: var(--jtm-color-surface);
    overflow: hidden;
}
.jtm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.jtm-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.jtm-card__title { margin-bottom: 8px; }
.jtm-card__meta {
    color: var(--jtm-color-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}
.jtm-card__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 14px;
    color: var(--jtm-color-secondary);
}
.jtm-card__cta { margin-top: auto; }

/* Value tile */
.jtm-tile {
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    padding: 24px;
}
.jtm-tile__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jtm-color-surface);
    color: var(--jtm-color-accent);
    margin-bottom: 16px;
}
.jtm-tile h4 { margin-bottom: 8px; }
.jtm-tile p { color: var(--jtm-color-secondary); margin-bottom: 0; }

/* ==========================================================================
   Status badges
   ========================================================================== */

.jtm-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.jtm-status--available { background: var(--jtm-status-available); }
.jtm-status--reserved  { background: var(--jtm-status-reserved); }
.jtm-status--sold      { background: var(--jtm-status-sold); }

/* ==========================================================================
   Units list (table + cards)
   ========================================================================== */

.jtm-units-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
}
.jtm-units-table th, .jtm-units-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--jtm-color-border);
    font-size: 15px;
}
.jtm-units-table th {
    background: var(--jtm-color-surface);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jtm-color-secondary);
}
.jtm-units-table tr:last-child td { border-bottom: 0; }
.jtm-units-table tr:hover td { background: rgba(241, 236, 227, 0.4); }
.jtm-units-table .jtm-price { font-weight: 600; color: var(--jtm-color-primary); }
.jtm-units-table .jtm-price-m2 { color: var(--jtm-color-secondary); font-size: 13px; }
.jtm-units-table__inv {
    color: var(--jtm-color-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--jtm-transition), color var(--jtm-transition);
}
.jtm-units-table__inv:hover { color: var(--jtm-color-accent); border-bottom-color: var(--jtm-color-accent); }

@media (max-width: 768px) {
    .jtm-units-table { display: none; }
}

.jtm-units-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 768px) {
    .jtm-units-cards { display: flex; }
}

.jtm-unit-card {
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    padding: 16px;
}
.jtm-unit-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.jtm-unit-card__title { font-weight: 600; }
.jtm-unit-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}
.jtm-unit-card__row span:first-child { color: var(--jtm-color-secondary); }
.jtm-unit-card__price {
    font-family: var(--jtm-font-heading);
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0;
}

/* ==========================================================================
   Filters
   ========================================================================== */

.jtm-filters {
    background: var(--jtm-color-surface);
    border-radius: var(--jtm-radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}
@media (max-width: 1024px) {
    .jtm-filters { grid-template-columns: repeat(2, 1fr); }
    .jtm-filters__reset { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 540px) {
    .jtm-filters { grid-template-columns: 1fr; }
}
.jtm-filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jtm-filter--range { /* zawiera dwa inputy w jednym slocie gridowym */ }
.jtm-filter__range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: center;
}
.jtm-filter__range input { width: 100%; min-width: 0; }
.jtm-filter__range span { color: var(--jtm-color-secondary); font-weight: 500; }
.jtm-filter label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--jtm-color-secondary);
    letter-spacing: 0.04em;
}
.jtm-filter input, .jtm-filter select {
    padding: 8px 12px;
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius);
    background: var(--jtm-color-bg);
    font-family: var(--jtm-font-body);
    font-size: 14px;
}
.jtm-filter input:focus, .jtm-filter select:focus {
    outline: 2px solid var(--jtm-color-accent);
    outline-offset: 1px;
}

/* ==========================================================================
   Site plan (SVG overlay)
   ========================================================================== */

.jtm-site-plan {
    position: relative;
    background: var(--jtm-color-surface);
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.jtm-site-plan__bg { width: 100%; height: 100%; object-fit: contain; }
.jtm-site-plan__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* Domyślny stan polygonu — przed hydratacją lub fallback */
.jtm-site-plan__svg polygon[data-unit-number],
.jtm-site-plan__svg path[data-unit-number] {
    fill: var(--jtm-color-border);
    fill-opacity: 0.5;
    cursor: pointer;
    transition: fill-opacity var(--jtm-transition), fill var(--jtm-transition);
}
.jtm-site-plan__svg [data-unit-status="available"] { fill: var(--jtm-status-available); fill-opacity: 0.55; }
.jtm-site-plan__svg [data-unit-status="reserved"]  { fill: var(--jtm-status-reserved);  fill-opacity: 0.55; }
.jtm-site-plan__svg [data-unit-status="sold"]      { fill: var(--jtm-status-sold);      fill-opacity: 0.55; }
.jtm-site-plan__svg [data-unit-status]:hover       { fill-opacity: 0.85; }

.jtm-site-plan__svg [data-unit-status]:focus-visible {
    outline: 3px solid var(--jtm-color-accent);
    outline-offset: 2px;
}

.jtm-site-plan__legend {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: var(--jtm-color-bg);
    border-top: 1px solid var(--jtm-color-border);
    font-size: 14px;
    flex-wrap: wrap;
}
.jtm-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* ─── Site plan tooltip (desktop) ─── */
.jtm-site-plan__tooltip {
    position: fixed;
    z-index: 30;
    background: var(--jtm-color-primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--jtm-radius);
    box-shadow: var(--jtm-shadow-md);
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 12px));
    transition: opacity 120ms ease;
    white-space: nowrap;
    max-width: 280px;
}
.jtm-site-plan__tooltip.is-visible { opacity: 1; }
.jtm-site-plan__tooltip strong { display: block; font-size: 14px; margin-bottom: 2px; }
.jtm-site-plan__tooltip .jtm-status { margin-top: 4px; }

/* ─── Site plan panel (mobile bottom sheet + desktop sidebar) ─── */
.jtm-plan-panel {
    position: fixed;
    z-index: 60;
    bottom: 0; left: 0; right: 0;
    background: var(--jtm-color-bg);
    border-top: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg) var(--jtm-radius-lg) 0 0;
    box-shadow: 0 -8px 32px rgba(30, 40, 32, 0.16);
    padding: 24px var(--jtm-container-pad) 32px;
    transform: translateY(100%);
    transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh;
    overflow-y: auto;
}
.jtm-plan-panel.is-open { transform: translateY(0); }

.jtm-plan-panel__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--jtm-color-surface);
    border: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--jtm-color-primary);
}
.jtm-plan-panel__close:hover { background: var(--jtm-color-border); }

.jtm-plan-panel__handle {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--jtm-color-border);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.jtm-plan-panel__title {
    font-family: var(--jtm-font-heading);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    padding-right: 48px;
}
.jtm-plan-panel__sub {
    font-size: 14px;
    color: var(--jtm-color-secondary);
    margin: 0 0 16px;
}

.jtm-plan-panel__price {
    font-family: var(--jtm-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--jtm-color-accent);
    margin: 12px 0 4px;
}
.jtm-plan-panel__price-m2 { color: var(--jtm-color-secondary); font-size: 13px; }

.jtm-plan-panel__data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin: 20px 0;
    font-size: 14px;
}
.jtm-plan-panel__data dt { color: var(--jtm-color-secondary); margin: 0; }
.jtm-plan-panel__data dd { margin: 0; font-weight: 500; }

.jtm-plan-panel__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.jtm-plan-panel__cta .jtm-btn { flex: 1 1 180px; }

.jtm-plan-backdrop {
    position: fixed;
    z-index: 55;
    inset: 0;
    background: rgba(30, 40, 32, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}
.jtm-plan-backdrop.is-visible { opacity: 1; pointer-events: auto; }

@media (min-width: 1024px) {
    .jtm-plan-panel {
        bottom: 24px;
        right: 24px;
        left: auto;
        width: 380px;
        max-height: calc(100vh - 48px);
        border-radius: var(--jtm-radius-lg);
        transform: translateY(calc(100% + 24px));
    }
    .jtm-plan-panel__handle { display: none; }
}

@media (hover: none) {
    /* Bez hover'a tooltip jest mylący — ukrywamy na touch */
    .jtm-site-plan__tooltip { display: none; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.jtm-form {
    display: grid;
    gap: 16px;
}
.jtm-form__field { display: flex; flex-direction: column; gap: 6px; }
.jtm-form__field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--jtm-color-primary);
}
.jtm-form__field input,
.jtm-form__field textarea,
.jtm-form__field select {
    padding: 12px 16px;
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius);
    background: var(--jtm-color-bg);
    font-family: var(--jtm-font-body);
    font-size: 16px;
    color: var(--jtm-color-primary);
    transition: border-color var(--jtm-transition);
}
.jtm-form__field input:focus,
.jtm-form__field textarea:focus,
.jtm-form__field select:focus {
    outline: 2px solid var(--jtm-color-accent);
    outline-offset: 1px;
    border-color: var(--jtm-color-accent);
}
.jtm-form__field textarea { resize: vertical; min-height: 120px; }
.jtm-form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--jtm-color-secondary);
}
.jtm-form__consent input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.jtm-form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jtm-form__msg {
    padding: 12px 16px;
    border-radius: var(--jtm-radius);
    font-size: 14px;
}
.jtm-form__msg--success { background: #E8F0E7; color: #2D4A2C; border: 1px solid #B8D2B5; }
.jtm-form__msg--error   { background: #F5E5E0; color: #6E2C18; border: 1px solid #DCB8AB; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.jtm-breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--jtm-color-secondary);
}
.jtm-breadcrumbs ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.jtm-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--jtm-color-border);
}
.jtm-breadcrumbs a { color: var(--jtm-color-secondary); }
.jtm-breadcrumbs a:hover { color: var(--jtm-color-accent); }

/* ==========================================================================
   Single unit (detail page)
   ========================================================================== */

.jtm-unit-hero {
    padding: 32px 0 48px;
    background: var(--jtm-color-surface);
}
.jtm-unit-hero h1 { margin-bottom: 12px; }
.jtm-unit-hero__price {
    font-family: var(--jtm-font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--jtm-color-accent);
    margin: 8px 0;
}
.jtm-unit-hero__price-m2 { color: var(--jtm-color-secondary); }

.jtm-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--jtm-color-border);
}
.jtm-data-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--jtm-color-border);
    font-size: 15px;
}
.jtm-data-list li > span:first-child { color: var(--jtm-color-secondary); }
.jtm-data-list li > span:last-child  { font-weight: 500; }

/* ==========================================================================
   Footer
   ========================================================================== */

.jtm-footer {
    background: var(--jtm-color-dark);
    color: #DAD5CB;
    padding: 64px 0 32px;
    margin-top: 0;
}
.jtm-footer h4 { color: #fff; margin-bottom: 16px; }
.jtm-footer a { color: #DAD5CB; }
.jtm-footer a:hover { color: var(--jtm-color-accent); }
.jtm-footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}
@media (max-width: 768px) {
    .jtm-footer__cols { grid-template-columns: 1fr 1fr; }
}
.jtm-footer__col p { color: #DAD5CB; font-size: 14px; }
.jtm-footer__col strong { color: #fff; display: block; margin-bottom: 8px; }
.jtm-footer__legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}
.jtm-footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 13px;
    color: #9C9789;
    text-align: center;
}

/* ==========================================================================
   Misc
   ========================================================================== */

.jtm-cta-band {
    background: var(--jtm-color-surface);
    border-radius: var(--jtm-radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .jtm-cta-band {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 24px;
    }
}
.jtm-cta-band__head h2 { margin-bottom: 12px; }
.jtm-cta-band__lead {
    font-size: 17px;
    color: var(--jtm-color-secondary);
    margin: 0;
    max-width: 460px;
}
.jtm-cta-band__form { width: 100%; }
.jtm-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) {
    .jtm-form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Active investments — horizontal showcase layout
   ========================================================================== */

.jtm-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--jtm-color-accent);
    margin-bottom: 16px;
}

.jtm-inv-showcase__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}
.jtm-inv-showcase__head > div { max-width: 720px; }
.jtm-inv-showcase__counter {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jtm-color-secondary);
    flex-shrink: 0;
    padding-top: 32px;
}

.jtm-inv-showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jtm-inv-showcase__card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--jtm-transition), border-color var(--jtm-transition);
}
.jtm-inv-showcase__card:hover {
    box-shadow: var(--jtm-shadow-md);
}
@media (max-width: 1024px) {
    .jtm-inv-showcase__card { grid-template-columns: 1fr; }
}

.jtm-inv-showcase__media {
    position: relative;
    background: var(--jtm-color-surface);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    min-height: 320px;
}
.jtm-inv-showcase__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jtm-inv-showcase__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, var(--jtm-color-surface), var(--jtm-color-surface) 12px, var(--jtm-color-bg) 12px, var(--jtm-color-bg) 24px);
}
.jtm-inv-showcase__placeholder-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jtm-color-secondary);
    background: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--jtm-radius);
}

.jtm-inv-showcase__pill {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: var(--jtm-radius);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.95);
    color: var(--jtm-color-primary);
    backdrop-filter: blur(8px);
}
.jtm-inv-showcase__pill--active { color: var(--jtm-status-available); }
.jtm-inv-showcase__pill--planned { color: var(--jtm-color-secondary); }

.jtm-inv-showcase__body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 768px) {
    .jtm-inv-showcase__body { padding: 24px; gap: 12px; }
}
.jtm-inv-showcase__title {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    margin: 0;
}
.jtm-inv-showcase__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jtm-color-secondary);
    font-size: 14px;
}
.jtm-inv-showcase__desc {
    color: var(--jtm-color-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.jtm-inv-showcase__stats {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius);
    overflow: hidden;
}
@media (max-width: 540px) {
    .jtm-inv-showcase__stats { grid-template-columns: repeat(2, 1fr); }
}
.jtm-inv-showcase__stats li {
    padding: 12px 16px;
    border-right: 1px solid var(--jtm-color-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--jtm-color-bg);
}
.jtm-inv-showcase__stats li:last-child { border-right: 0; }
@media (max-width: 540px) {
    .jtm-inv-showcase__stats li:nth-child(2) { border-right: 0; }
    .jtm-inv-showcase__stats li:nth-child(-n+2) { border-bottom: 1px solid var(--jtm-color-border); }
}
.jtm-inv-showcase__stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jtm-color-secondary);
}
.jtm-inv-showcase__stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--jtm-color-primary);
}

.jtm-inv-showcase__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 16px;
    flex-wrap: wrap;
}
.jtm-inv-showcase__price-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jtm-color-secondary);
    margin-bottom: 2px;
}
.jtm-inv-showcase__price {
    font-family: var(--jtm-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--jtm-color-primary);
}
.jtm-inv-showcase__price--soon { font-size: 18px; color: var(--jtm-color-secondary); font-weight: 500; }

/* ==========================================================================
   Doc cards — sekcja "Dokumenty do pobrania" na single-investment
   ========================================================================== */

.jtm-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 1024px) {
    .jtm-doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .jtm-doc-grid { grid-template-columns: 1fr; gap: 12px; }
}

.jtm-doc-card {
    display: grid;
    grid-template-columns: 56px 1fr 24px;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    color: var(--jtm-color-primary);
    text-decoration: none;
    transition: transform var(--jtm-transition), border-color var(--jtm-transition), box-shadow var(--jtm-transition), background var(--jtm-transition);
}
.jtm-doc-card:hover {
    transform: translateY(-2px);
    border-color: var(--jtm-color-accent);
    box-shadow: var(--jtm-shadow-md);
    color: var(--jtm-color-primary);
}
.jtm-doc-card:hover .jtm-doc-card__icon {
    background: var(--jtm-color-accent);
    color: #fff;
}
.jtm-doc-card:hover .jtm-doc-card__arrow {
    color: var(--jtm-color-accent);
    transform: translateX(4px);
}

.jtm-doc-card__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--jtm-radius);
    background: var(--jtm-color-surface);
    color: var(--jtm-color-accent);
    transition: background var(--jtm-transition), color var(--jtm-transition);
    flex-shrink: 0;
}
.jtm-doc-card__icon svg { width: 28px; height: 28px; }

.jtm-doc-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.jtm-doc-card__title {
    font-family: var(--jtm-font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--jtm-color-primary);
    line-height: 1.3;
}
.jtm-doc-card__sub {
    font-size: 14px;
    color: var(--jtm-color-secondary);
    line-height: 1.4;
}
.jtm-doc-card__meta {
    font-size: 12px;
    color: var(--jtm-color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 4px;
}

.jtm-doc-card__arrow {
    color: var(--jtm-color-secondary);
    transition: color var(--jtm-transition), transform var(--jtm-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 540px) {
    .jtm-doc-card { padding: 16px; gap: 14px; grid-template-columns: 48px 1fr 20px; }
    .jtm-doc-card__icon { width: 48px; height: 48px; }
    .jtm-doc-card__icon svg { width: 24px; height: 24px; }
    .jtm-doc-card__title { font-size: 16px; }
}

/* ==========================================================================
   Pagination — czysta, profesjonalna
   ========================================================================== */
.jtm-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.jtm-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.jtm-pagination .page-numbers li { margin: 0; }
.jtm-pagination .page-numbers a,
.jtm-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--jtm-radius);
    border: 1px solid var(--jtm-color-border);
    background: var(--jtm-color-bg);
    color: var(--jtm-color-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--jtm-transition), border-color var(--jtm-transition), color var(--jtm-transition);
}
.jtm-pagination .page-numbers a:hover {
    background: var(--jtm-color-surface);
    border-color: var(--jtm-color-primary);
    color: var(--jtm-color-primary);
}
.jtm-pagination .page-numbers .current {
    background: var(--jtm-color-accent);
    border-color: var(--jtm-color-accent);
    color: #fff;
}
.jtm-pagination .page-numbers .dots {
    border-color: transparent;
    background: transparent;
    color: var(--jtm-color-secondary);
}
.jtm-pagination .page-numbers .prev,
.jtm-pagination .page-numbers .next {
    font-size: 18px;
    line-height: 1;
}

.jtm-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: var(--jtm-color-secondary);
    font-size: 14px;
    margin: 12px 0;
}
.jtm-meta-line span { display: inline-flex; align-items: center; gap: 6px; }

.jtm-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius);
    color: var(--jtm-color-primary);
    font-weight: 500;
    background: var(--jtm-color-bg);
}
.jtm-pdf-link:hover { background: var(--jtm-color-surface); color: var(--jtm-color-primary); }

.jtm-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--jtm-color-secondary);
}

.jtm-placeholder {
    padding: 96px 0;
    text-align: center;
}
.jtm-placeholder p {
    margin: 0 auto 16px;
    max-width: 680px;
    color: var(--jtm-color-secondary);
}

/* ==========================================================================
   Single-investment galeria — taby + slider w kontenerze
   ========================================================================== */

.jtm-inv-gallery {
    background: transparent;
}

.jtm-inv-gallery__tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--jtm-color-border);
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
    touch-action: pan-x;
}
.jtm-inv-gallery__tabs::-webkit-scrollbar { display: none; }

.jtm-inv-gallery__tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 14px 20px;
    font-family: var(--jtm-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--jtm-color-secondary);
    cursor: pointer;
    transition: color var(--jtm-transition), border-color var(--jtm-transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.jtm-inv-gallery__tab:hover { color: var(--jtm-color-primary); }
.jtm-inv-gallery__tab.is-active {
    color: var(--jtm-color-accent);
    border-bottom-color: var(--jtm-color-accent);
}
@media (max-width: 768px) {
    .jtm-inv-gallery__tab { padding: 12px 14px; font-size: 14px; }
}

.jtm-inv-gallery__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
    background: var(--jtm-color-surface);
    box-shadow: var(--jtm-shadow-md);
}
.jtm-inv-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}
.jtm-inv-gallery__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.jtm-inv-gallery__slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.jtm-inv-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
}
.jtm-inv-gallery__slide[data-fit="contain"] img {
    object-fit: contain;
    background: #ffffff;
}

/* ==========================================================================
   Single-investment hero — pełen blok z obrazem w tle + tabami u dołu
   ========================================================================== */

.jtm-inv-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.jtm-inv-hero__slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.jtm-inv-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
}
.jtm-inv-hero__slide.is-active { opacity: 1; }
.jtm-inv-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
}
/* Rzuty piętra/parteru pokazujemy w całości (contain), nie kadrujemy */
.jtm-inv-hero__slide[data-fit="contain"] img {
    object-fit: contain;
    background: #1a1a18;
}
.jtm-inv-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(30,40,32,0.55) 0%, rgba(30,40,32,0.25) 35%, rgba(30,40,32,0.0) 60%, rgba(30,40,32,0.55) 100%);
    z-index: 2;
}

.jtm-inv-hero__inner {
    position: relative;
    z-index: 3;
    padding-top: 32px;
    padding-bottom: 75vh;
    min-height: 92vh;
}
@media (max-width: 768px) {
    .jtm-inv-hero__inner {
        padding-bottom: 60vh;
        min-height: 80vh;
    }
}

.jtm-inv-hero__crumbs {
    margin-bottom: 16px;
}
.jtm-inv-hero__crumbs .jtm-breadcrumbs {
    padding: 0;
    color: rgba(255,255,255,0.85);
}
.jtm-inv-hero__crumbs .jtm-breadcrumbs a {
    color: rgba(255,255,255,0.85);
}
.jtm-inv-hero__crumbs .jtm-breadcrumbs a:hover { color: #fff; }
.jtm-inv-hero__crumbs .jtm-breadcrumbs li:not(:last-child)::after { color: rgba(255,255,255,0.4); }

.jtm-inv-hero__title {
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin: 0 0 8px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.jtm-inv-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.92);
    font-size: 17px;
    margin: 0;
}
.jtm-inv-hero__location svg { color: var(--jtm-color-accent); }

/* Taby przy dolnej krawędzi hero */
.jtm-inv-hero__tabs-wrap {
    position: relative;
    z-index: 4;
    background: rgba(30,40,32,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: -64px; /* nakłada się na dolny zakres obrazu */
}
.jtm-inv-hero__tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.jtm-inv-hero__tabs::-webkit-scrollbar { display: none; }

.jtm-inv-hero__tab {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 18px 24px;
    font-family: var(--jtm-font-body);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color var(--jtm-transition), border-color var(--jtm-transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.jtm-inv-hero__tab:hover { color: #fff; }
.jtm-inv-hero__tab.is-active {
    color: #fff;
    border-bottom-color: var(--jtm-color-accent);
}
@media (max-width: 768px) {
    .jtm-inv-hero__tab { padding: 14px 16px; font-size: 14px; }
}

/* ==========================================================================
   Home hero v2 — full-width slider tła
   ========================================================================== */

.jtm-home-hero {
    position: relative;
    /* viewport - sticky header — stats bar zaczyna się pod hero */
    min-height: calc(100vh - var(--jtm-header-h));
    min-height: calc(100svh - var(--jtm-header-h));
    display: flex;
    align-items: stretch;
    color: #fff;
    overflow: hidden;
}
@media (max-width: 768px) {
    .jtm-home-hero {
        min-height: calc(100vh - var(--jtm-header-h));
        min-height: calc(100svh - var(--jtm-header-h));
    }
}

.jtm-home-hero__slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.jtm-home-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 800ms ease, transform 12s ease-out;
}
.jtm-home-hero__slide.is-active {
    opacity: 1;
    transform: scale(1.0);
}
.jtm-home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(30,40,32,0.15) 0%, rgba(30,40,32,0.55) 60%, rgba(30,40,32,0.92) 100%),
        linear-gradient(90deg, rgba(30,40,32,0.45) 0%, rgba(30,40,32,0.0) 60%);
    z-index: 2;
}

.jtm-home-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    align-self: stretch;
    padding-top: 80px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
}

.jtm-home-hero__content {
    max-width: 720px;
}

.jtm-home-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.jtm-home-hero__title {
    color: #fff;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.1;
    margin: 0 0 16px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
    max-width: 760px;
}

.jtm-home-hero__lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: rgba(255,255,255,0.92);
    max-width: 580px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.jtm-home-hero__points {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px 24px;
}
@media (max-width: 540px) {
    .jtm-home-hero__points { grid-template-columns: 1fr; }
}
.jtm-home-hero__points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.92);
}
.jtm-home-hero__points svg {
    color: var(--jtm-color-accent);
    flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    padding: 4px;
    width: 26px;
    height: 26px;
}

.jtm-home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jtm-btn--ghost-light {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
}
.jtm-btn--ghost-light:hover {
    background: rgba(255,255,255,0.18);
    border-color: #fff;
    color: #fff;
}

.jtm-home-hero__facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 24px;
}
@media (max-width: 768px) {
    .jtm-home-hero__facts { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
}
.jtm-home-hero__fact {
    border-right: 1px solid rgba(255,255,255,0.12);
    padding: 4px 16px 4px 0;
}
.jtm-home-hero__fact:last-child { border-right: 0; }
@media (max-width: 768px) {
    .jtm-home-hero__fact:nth-child(2) { border-right: 0; }
}
.jtm-home-hero__fact-num {
    font-family: var(--jtm-font-heading);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}
.jtm-home-hero__fact-label {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jtm-home-hero__nav {
    position: absolute;
    bottom: 24px;
    right: var(--jtm-container-pad);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.jtm-home-hero__dot {
    width: 32px;
    height: 4px;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background var(--jtm-transition), width var(--jtm-transition);
    border-radius: 2px;
}
.jtm-home-hero__dot.is-active {
    background: #fff;
    width: 48px;
}

/* ==========================================================================
   Similar units — sekcja "Pozostałe lokale"
   ========================================================================== */

.jtm-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) { .jtm-similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .jtm-similar-grid { grid-template-columns: 1fr; } }

.jtm-similar-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    color: var(--jtm-color-primary);
    text-decoration: none;
    transition: transform var(--jtm-transition), border-color var(--jtm-transition), box-shadow var(--jtm-transition);
}
.jtm-similar-card:hover {
    transform: translateY(-2px);
    border-color: var(--jtm-color-accent);
    box-shadow: var(--jtm-shadow-md);
    color: var(--jtm-color-primary);
}
.jtm-similar-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.jtm-similar-card__num {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jtm-color-secondary);
}
.jtm-similar-card__params {
    color: var(--jtm-color-secondary);
    font-size: 14px;
}
.jtm-similar-card__sep { margin: 0 4px; color: var(--jtm-color-border); }
.jtm-similar-card__price {
    font-family: var(--jtm-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--jtm-color-primary);
    margin-top: 4px;
}

.jtm-section__more {
    display: inline-block;
    margin-top: 32px;
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    color: var(--jtm-color-primary);
}
.jtm-section__more:hover { color: var(--jtm-color-accent); }

/* ==========================================================================
   Unit layout — galeria po lewej + dane po prawej
   ========================================================================== */

.jtm-unit-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: start;
}
.jtm-unit-layout > * { min-width: 0; }
.jtm-inv-gallery { min-width: 0; max-width: 100%; }
@media (max-width: 1024px) {
    .jtm-unit-layout { grid-template-columns: 1fr; gap: 24px; }
}

.jtm-unit-details {
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    padding: 28px 32px;
    position: sticky;
    top: calc(var(--jtm-header-h) + 16px);
}
@media (max-width: 1024px) {
    .jtm-unit-details { position: static; padding: 24px; }
}
.jtm-unit-details__status {
    display: inline-block;
    margin-bottom: 16px;
    align-self: flex-start;
}
.jtm-unit-details__price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--jtm-color-border);
}
.jtm-unit-details__price-value {
    display: block;
    font-family: var(--jtm-font-heading);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    color: var(--jtm-color-primary);
    line-height: 1.1;
    text-decoration: none;
}
a.jtm-unit-details__price-value { color: var(--jtm-color-accent); border-bottom: 2px solid var(--jtm-color-accent); padding-bottom: 4px; }
.jtm-unit-details__price-m2 {
    color: var(--jtm-color-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.jtm-unit-details__params {
    border-top: 0;
    margin-bottom: 24px;
}
.jtm-unit-details__params li:first-child { padding-top: 0; }
.jtm-unit-details__params li:last-child { border-bottom: 0; padding-bottom: 0; }

.jtm-unit-details__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jtm-unit-details__cta .jtm-btn { width: 100%; }

/* ==========================================================================
   Single unit — redesign v2 (legacy data tiles, używane w starszej wersji)
   ========================================================================== */

.jtm-unit-hero-v2 {
    position: relative;
    color: #fff;
    padding: 0;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.jtm-unit-hero-v2__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.jtm-unit-hero-v2__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,40,32,0.0) 0%, rgba(30,40,32,0.55) 60%, rgba(30,40,32,0.85) 100%);
    z-index: 2;
}
.jtm-unit-hero-v2__inner {
    position: relative;
    z-index: 3;
    padding: 56px var(--jtm-container-pad) 48px;
}
.jtm-unit-hero-v2__title {
    color: #fff;
    margin: 8px 0 6px;
    font-size: clamp(32px, 4.5vw, 56px);
}
.jtm-unit-hero-v2__sub {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin: 0 0 24px;
}
.jtm-unit-hero-v2__sub a { color: #fff; text-decoration: underline; }
.jtm-unit-hero-v2__badge { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); }
.jtm-unit-hero-v2__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 24px;
}
.jtm-unit-hero-v2__price {
    font-family: var(--jtm-font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.jtm-unit-hero-v2__price a { color: #fff; text-decoration: underline; }
.jtm-unit-hero-v2__price-m2 { color: rgba(255,255,255,0.8); font-size: 16px; }

/* Grid: dane + slider */
.jtm-unit-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 1024px) {
    .jtm-unit-grid { grid-template-columns: 1fr; }
}
.jtm-unit-data h2 { margin-bottom: 24px; }

/* Data tiles */
.jtm-data-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.jtm-data-tiles li {
    background: var(--jtm-color-surface);
    border-radius: var(--jtm-radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jtm-data-tiles__label {
    font-size: 12px;
    color: var(--jtm-color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.jtm-data-tiles__value {
    font-family: var(--jtm-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--jtm-color-primary);
}

.jtm-unit-data__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

/* Slider rzutów / galeria */
.jtm-unit-slider {
    position: sticky;
    top: calc(var(--jtm-header-h) + 16px);
    background: var(--jtm-color-surface);
    border-radius: var(--jtm-radius-lg);
    overflow: hidden;
    box-shadow: var(--jtm-shadow-md);
}
@media (max-width: 1024px) { .jtm-unit-slider { position: static; } }

.jtm-unit-slider__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--jtm-color-surface);
    overflow: hidden;
}

/* Wide variant — sekcja galerii inwestycji (full width container) */
.jtm-unit-slider--wide {
    position: static;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.jtm-unit-slider--wide .jtm-unit-slider__stage {
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    border-radius: var(--jtm-radius-lg);
    box-shadow: var(--jtm-shadow-md);
}
.jtm-unit-slider--wide .jtm-unit-slider__slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.jtm-unit-slider--wide .jtm-unit-slider__slide img {
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

/* Hero variant — większy stage, lepsza prezentacja na top of page */
.jtm-unit-slider--hero .jtm-unit-slider__stage {
    aspect-ratio: 21 / 9;
    max-height: 80vh;
}
@media (max-width: 768px) {
    .jtm-unit-slider--hero .jtm-unit-slider__stage {
        aspect-ratio: 4 / 3;
    }
}

/* Tabs variant — taby z border-bottom zamiast kropek */
.jtm-unit-slider__tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--jtm-color-border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.jtm-unit-slider__tabs::-webkit-scrollbar { display: none; }

.jtm-unit-slider__tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 14px 20px;
    margin-bottom: -1px;
    font-family: var(--jtm-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--jtm-color-secondary);
    cursor: pointer;
    transition: color var(--jtm-transition), border-color var(--jtm-transition);
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    transform: none !important;
}
.jtm-unit-slider__tab:hover {
    color: var(--jtm-color-primary);
}
.jtm-unit-slider__tab.is-active {
    color: var(--jtm-color-accent);
    border-bottom-color: var(--jtm-color-accent);
    background: transparent;
    transform: none;
}
@media (max-width: 768px) {
    .jtm-unit-slider__tab { padding: 12px 14px; font-size: 14px; }
}

/* W variant tabs ukrywamy dolny rząd kropek (tabs przejmują rolę nawigacji) */
.jtm-unit-slider--tabs .jtm-unit-slider__nav { display: none; }

/* Floating prev/next na obrazie */
.jtm-unit-slider__btn--floating {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--jtm-shadow-md);
    z-index: 4;
}
.jtm-unit-slider__btn--floating:hover { background: #fff; }
.jtm-unit-slider__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jtm-color-surface);
}
.jtm-unit-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.jtm-unit-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--jtm-color-surface);
}
.jtm-unit-slider__slide figcaption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(30,40,32,0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--jtm-radius);
    font-size: 13px;
    font-weight: 500;
}

.jtm-unit-slider__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--jtm-color-border);
    background: var(--jtm-color-bg);
}
.jtm-unit-slider__btn {
    background: transparent;
    border: 1px solid var(--jtm-color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--jtm-color-primary);
    transition: background var(--jtm-transition);
    flex-shrink: 0;
}
.jtm-unit-slider__btn:hover { background: var(--jtm-color-surface); }

.jtm-unit-slider__dots {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
.jtm-unit-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--jtm-color-border);
    cursor: pointer;
    transition: background var(--jtm-transition), transform var(--jtm-transition);
}
.jtm-unit-slider__dot.is-active { background: var(--jtm-color-accent); transform: scale(1.25); }

.jtm-unit-slider__pause {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.92);
    border: 0;
    border-radius: var(--jtm-radius);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jtm-color-primary);
    transition: background var(--jtm-transition);
    z-index: 5;
}
.jtm-unit-slider__pause:hover { background: #fff; }

/* Standalone CTA na końcu */
.jtm-unit-cta {
    background: var(--jtm-color-surface);
    border-radius: var(--jtm-radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .jtm-unit-cta { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
}
.jtm-unit-cta__col h2 { margin-bottom: 12px; }

/* Prose — typografia długiego tekstu (strony prawne, opisy) */
.jtm-prose h2 { font-size: clamp(22px, 2vw, 28px); margin: 32px 0 12px; }
.jtm-prose h3 { font-size: 18px; margin: 24px 0 8px; }
.jtm-prose p { margin: 0 0 1em; }
.jtm-prose ul, .jtm-prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.jtm-prose li { margin-bottom: 4px; }
.jtm-prose a { text-decoration: underline; }

/* Mobile sticky bar */
.jtm-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--jtm-color-bg);
    border-top: 1px solid var(--jtm-color-border);
    padding: 12px var(--jtm-container-pad);
    gap: 12px;
    z-index: 40;
}
.jtm-mobile-bar .jtm-btn { flex: 1; height: 48px; }
@media (max-width: 768px) {
    body.jtm-show-mobile-bar .jtm-mobile-bar { display: flex; }
    body.jtm-show-mobile-bar { padding-bottom: 76px; }
}

/* ==========================================================================
   Animacje — entrance + scroll reveal + hover polish
   ========================================================================== */

/* Stary fade — utrzymany dla backwards compat */
.jtm-fade { opacity: 0; transform: translateY(12px); transition: opacity 480ms ease, transform 480ms ease; }
.jtm-fade.is-visible { opacity: 1; transform: translateY(0); }

/* Reveal — fade-up triggered on intersection */
.jtm-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.jtm-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Reveal — slide-in z lewej (eyebrow, drobne akcenty) */
.jtm-reveal--left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.jtm-reveal--left.is-visible { opacity: 1; transform: translateX(0); }

/* Stagger — children pojawiają się po kolei (100ms between) */
.jtm-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.jtm-stagger.is-visible > *           { opacity: 1; transform: translateY(0); }
.jtm-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.jtm-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.jtm-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.jtm-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.jtm-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.jtm-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; }
.jtm-stagger.is-visible > *:nth-child(7) { transition-delay: 600ms; }
.jtm-stagger.is-visible > *:nth-child(8) { transition-delay: 700ms; }

/* Hero entrance — staggered po załadowaniu strony (animation, nie IO) */
@keyframes jtmFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.jtm-home-hero__pill,
.jtm-home-hero__title,
.jtm-home-hero__lead,
.jtm-home-hero__points,
.jtm-home-hero__cta,
.jtm-home-hero__facts {
    opacity: 0;
    animation: jtmFadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.jtm-home-hero__pill   { animation-delay: 100ms; }
.jtm-home-hero__title  { animation-delay: 220ms; }
.jtm-home-hero__lead   { animation-delay: 340ms; }
.jtm-home-hero__points { animation-delay: 460ms; }
.jtm-home-hero__cta    { animation-delay: 580ms; }
.jtm-home-hero__facts  { animation-delay: 700ms; }

/* Logo subtle fade-in po load */
.jtm-logo {
    animation: jtmFadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hover polish — scale buttonów primary i secondary */
.jtm-btn--primary,
.jtm-btn--secondary {
    transform: translateY(0);
    will-change: transform;
}
.jtm-btn--primary:hover,
.jtm-btn--secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91, 166, 70, 0.25);
}
.jtm-btn--primary:active,
.jtm-btn--secondary:active { transform: translateY(0); }

/* Card image zoom on hover (subtle) */
.jtm-card__media,
.jtm-inv-showcase__media,
.jtm-card__media img,
.jtm-inv-showcase__media img {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.jtm-card:hover .jtm-card__media img,
.jtm-inv-showcase__card:hover .jtm-inv-showcase__media img {
    transform: scale(1.04);
}

/* Scroll margin pod sticky header dla anchor links (#dostepne-lokale itp.) */
:target,
[id] {
    scroll-margin-top: calc(var(--jtm-header-h) + 16px);
}

/* Reduce motion — pełen szacunek dla a11y prefers */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .jtm-reveal,
    .jtm-reveal--left,
    .jtm-stagger > *,
    .jtm-home-hero__pill,
    .jtm-home-hero__title,
    .jtm-home-hero__lead,
    .jtm-home-hero__points,
    .jtm-home-hero__cta,
    .jtm-home-hero__facts {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Sekcja "Nasze biura" — 2 karty + full-width map
   ========================================================================== */

.jtm-offices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .jtm-offices { grid-template-columns: 1fr; }
}

.jtm-office {
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow var(--jtm-transition), border-color var(--jtm-transition);
}
.jtm-office:hover {
    border-color: var(--jtm-color-accent);
    box-shadow: var(--jtm-shadow-md);
}
@media (max-width: 540px) {
    .jtm-office { padding: 24px; }
}

.jtm-office__pill {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background: var(--jtm-color-surface);
    color: var(--jtm-color-accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.jtm-office--sales .jtm-office__pill {
    background: var(--jtm-status-available);
    color: #fff;
}

.jtm-office__title {
    font-family: var(--jtm-font-heading);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.jtm-office__addr {
    font-size: 15px;
    color: var(--jtm-color-secondary);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--jtm-color-border);
}

.jtm-office__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jtm-office__contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--jtm-color-primary);
}
.jtm-office__contacts a {
    color: var(--jtm-color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--jtm-transition);
}
.jtm-office__contacts a:hover { color: var(--jtm-color-accent); }
.jtm-office__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--jtm-color-surface);
    border-radius: 50%;
    color: var(--jtm-color-accent);
    flex-shrink: 0;
}
.jtm-office__icon svg { width: 18px; height: 18px; }

.jtm-office__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--jtm-color-primary);
    color: #fff;
    border-radius: var(--jtm-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--jtm-transition);
}
.jtm-office__cta:hover {
    background: var(--jtm-color-accent);
    color: #fff;
}
.jtm-office__cta svg { width: 18px; height: 18px; }

/* Full-width map (poza container) */
.jtm-fullwidth-map {
    width: 100%;
    height: 480px;
    background: var(--jtm-color-surface);
    overflow: hidden;
    position: relative;
}
.jtm-fullwidth-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .jtm-fullwidth-map { height: 360px; }
}

/* ==========================================================================
   Sekcja kontakt — split 50/50 (info lewa, formularz w karcie prawa)
   ========================================================================== */

.jtm-contact {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 1024px) {
    .jtm-contact { grid-template-columns: 1fr; gap: 32px; }
}

.jtm-contact__title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 16px;
}
.jtm-contact__lead {
    font-size: 16px;
    color: var(--jtm-color-secondary);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 460px;
}

.jtm-contact__block {
    margin-bottom: 28px;
}
.jtm-contact__block:last-child { margin-bottom: 0; }

.jtm-contact__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--jtm-color-secondary);
    margin-bottom: 6px;
}

.jtm-contact__big {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--jtm-color-primary);
    text-decoration: none;
    line-height: 1.3;
    transition: color var(--jtm-transition);
}
.jtm-contact__big:hover { color: var(--jtm-color-accent); }
.jtm-contact__big + .jtm-contact__big { margin-top: 4px; }

.jtm-contact__addr {
    font-size: 15px;
    color: var(--jtm-color-primary);
    margin: 0 0 4px;
    font-weight: 600;
    line-height: 1.5;
}
.jtm-contact__small-link {
    display: inline-block;
    font-size: 14px;
    color: var(--jtm-color-secondary);
    text-decoration: none;
    margin-top: 4px;
    margin-right: 12px;
}
.jtm-contact__small-link:hover { color: var(--jtm-color-accent); }
.jtm-contact__legal {
    font-size: 13px;
    color: var(--jtm-color-secondary);
    margin: 4px 0 0;
    font-family: 'SF Mono', Menlo, monospace;
    letter-spacing: 0.02em;
}

.jtm-contact__form-wrap {
    background: var(--jtm-color-bg);
    border: 1px solid var(--jtm-color-border);
    border-radius: var(--jtm-radius-lg);
    padding: 36px 36px 32px;
}
@media (max-width: 768px) {
    .jtm-contact__form-wrap { padding: 24px; }
}
.jtm-contact__form-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}
.jtm-contact__form-sub {
    font-size: 14px;
    color: var(--jtm-color-secondary);
    margin: 0 0 24px;
}

.jtm-contact__form .jtm-form__field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jtm-color-secondary);
}
.jtm-contact__form input,
.jtm-contact__form textarea,
.jtm-contact__form select {
    background: var(--jtm-color-bg);
}

.jtm-contact__form .jtm-form__consent {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: var(--jtm-color-secondary);
    align-items: flex-start;
}
.jtm-contact__form .jtm-form__consent input { margin-top: 2px; }

.jtm-contact__submit {
    width: 100%;
    height: 56px;
    font-size: 15px;
    background: var(--jtm-status-available);
    border-color: var(--jtm-status-available);
}
.jtm-contact__submit:hover {
    background: #4a6849;
    border-color: #4a6849;
}

/* ==========================================================================
   Lightbox — pełnoekranowy modal galerii
   ========================================================================== */

.jtm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 17, 22, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}
.jtm-lightbox[hidden] { display: none; }
.jtm-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 768px) {
    .jtm-lightbox { padding: 56px 16px; }
}

.jtm-lightbox__stage {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.jtm-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--jtm-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.jtm-lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.jtm-lightbox__caption:empty { display: none; }

.jtm-lightbox__close,
.jtm-lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: background var(--jtm-transition), border-color var(--jtm-transition), transform var(--jtm-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.jtm-lightbox__close:hover,
.jtm-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}
.jtm-lightbox__close {
    top: 24px;
    right: 24px;
    font-size: 28px;
    font-weight: 300;
}
.jtm-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
}
.jtm-lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.jtm-lightbox__nav--prev { left: 24px; }
.jtm-lightbox__nav--next { right: 24px; }
@media (max-width: 768px) {
    .jtm-lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
    .jtm-lightbox__nav--prev { left: 8px; }
    .jtm-lightbox__nav--next { right: 8px; }
    .jtm-lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
}

.jtm-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

body.jtm-lightbox-open { overflow: hidden; }

/* Galeria figura — kursor wskazuje że klik otwiera lightbox */
.jtm-inv-gallery__slide a { cursor: zoom-in; }

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--jtm-color-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ───────── Price history — clock button ───────── */
.jtm-price-history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    margin-left: 6px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--jtm-color-border, #d8dbd6);
    border-radius: 999px;
    color: var(--jtm-color-secondary, #4a554c);
    cursor: pointer;
    vertical-align: middle;
    transition: background .15s, border-color .15s, color .15s;
}
.jtm-price-history-btn:hover,
.jtm-price-history-btn:focus-visible {
    background: var(--jtm-color-accent, #5BA646);
    border-color: var(--jtm-color-accent, #5BA646);
    color: #fff;
    outline: none;
}
.jtm-price-history-btn svg { width: 16px; height: 16px; }

/* ───────── Price stats card on single-unit ───────── */
.jtm-price-stats {
    margin: 16px 0 8px;
    padding: 14px 16px;
    border: 1px solid var(--jtm-color-border, #d8dbd6);
    border-radius: 10px;
    background: var(--jtm-color-surface, #f7f8f5);
}
.jtm-price-stats--down { border-left: 4px solid #00a32a; }
.jtm-price-stats--up   { border-left: 4px solid #d63638; }
.jtm-price-stats--flat { border-left: 4px solid var(--jtm-color-secondary, #6e766f); }
.jtm-price-stats__head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
}
.jtm-price-stats__label    { font-weight: 600; color: var(--jtm-color-primary, #1E2820); font-size: 13px; }
.jtm-price-stats__changes  { font-size: 11px; color: var(--jtm-color-secondary, #6e766f); white-space: nowrap; }
.jtm-price-stats__row {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.jtm-price-stats__row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jtm-price-stats__small { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--jtm-color-secondary, #6e766f); }
.jtm-price-stats__row strong {
    font-size: 13px; color: var(--jtm-color-primary, #1E2820);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    line-height: 1.25;
}
.jtm-price-stats__delta { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid var(--jtm-color-border, #d8dbd6); }
.jtm-price-stats__delta strong { font-size: 14px; }
.jtm-price-stats--down .jtm-price-stats__delta strong { color: #00a32a; }
.jtm-price-stats--up   .jtm-price-stats__delta strong { color: #d63638; }
@media (min-width: 1100px) {
    .jtm-unit-layout__details .jtm-price-stats__row { grid-template-columns: repeat(2, 1fr); }
}

/* ───────── Inline price history disclosure on single-unit ───────── */
.jtm-price-history {
    margin: 12px 0 24px;
    border: 1px solid var(--jtm-color-border, #d8dbd6);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.jtm-price-history > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px;
    color: var(--jtm-color-primary, #1E2820);
    transition: background-color .15s;
}
.jtm-price-history > summary:hover,
.jtm-price-history > summary:focus-visible {
    background: var(--jtm-color-surface, #f7f8f5);
    outline: none;
}
.jtm-price-history > summary::-webkit-details-marker { display: none; }
.jtm-price-history > summary svg { flex-shrink: 0; color: var(--jtm-color-secondary, #6e766f); }
.jtm-price-history > summary::after {
    content: "";
    margin-left: auto;
    width: 10px; height: 10px;
    border-right: 2px solid var(--jtm-color-secondary, #6e766f);
    border-bottom: 2px solid var(--jtm-color-secondary, #6e766f);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.jtm-price-history[open] > summary::after { transform: rotate(-135deg); }
.jtm-price-history[open] > summary { border-bottom: 1px solid var(--jtm-color-border, #d8dbd6); }
.jtm-unit-details__params { margin-top: 4px; }
.jtm-price-history__list { list-style: none; margin: 0; padding: 0; }
.jtm-price-history__item {
    display: grid; grid-template-columns: 100px 1fr; gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--jtm-color-border, #d8dbd6);
    font-size: 14px;
}
.jtm-price-history__item:last-child { border-bottom: none; }
.jtm-price-history__date  { color: var(--jtm-color-secondary, #6e766f); font-variant-numeric: tabular-nums; }
.jtm-price-history__arrow { font-weight: 700; margin: 0 6px; }
.jtm-price-history__item--down .jtm-price-history__arrow { color: #00a32a; }
.jtm-price-history__item--up   .jtm-price-history__arrow { color: #d63638; }

/* ───────── Price history modal ───────── */
.jtm-ph-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.jtm-ph-modal[hidden] { display: none; }
.jtm-ph-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 26, 18, .55); backdrop-filter: blur(2px); }
.jtm-ph-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: min(720px, 100%);
    max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 26, 18, .35);
}
.jtm-ph-modal__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--jtm-color-border, #d8dbd6);
}
.jtm-ph-modal__head h3 { margin: 0; font-size: 18px; }
.jtm-ph-modal__subtitle { margin: 4px 0 0; font-size: 13px; color: var(--jtm-color-secondary, #6e766f); }
.jtm-ph-modal__close {
    background: transparent; border: none; font-size: 28px; line-height: 1;
    color: var(--jtm-color-secondary, #6e766f); cursor: pointer; padding: 0 4px;
}
.jtm-ph-modal__close:hover { color: var(--jtm-color-primary, #1E2820); }
.jtm-ph-modal__body { padding: 8px 20px 20px; overflow-y: auto; }
.jtm-ph-modal__loading,
.jtm-ph-modal__empty   { text-align: center; padding: 28px 0; color: var(--jtm-color-secondary, #6e766f); }
.jtm-ph-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jtm-ph-table thead th {
    text-align: left; padding: 10px 8px;
    border-bottom: 1px solid var(--jtm-color-border, #d8dbd6);
    color: var(--jtm-color-secondary, #6e766f); font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px;
}
.jtm-ph-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--jtm-color-border, #f1f1ee);
    vertical-align: top;
}
.jtm-ph-table tbody tr:last-child td { border-bottom: none; }
.jtm-ph-cell__main { display: block; font-weight: 600; color: var(--jtm-color-primary, #1E2820); }
.jtm-ph-cell__sub  { display: block; font-size: 12px; color: var(--jtm-color-secondary, #6e766f); }
.jtm-ph-table__diff--down { color: #00a32a; font-weight: 600; }
.jtm-ph-table__diff--up   { color: #d63638; font-weight: 600; }
.jtm-ph-table__arrow { margin-right: 4px; }
@media (max-width: 540px) {
    .jtm-ph-table { font-size: 13px; }
    .jtm-ph-table thead th, .jtm-ph-table tbody td { padding: 8px 4px; }
}
