:root {
    color-scheme: light;
    --bg: #faf7f2;
    --surface: #fffdf9;
    --white: #fff;
    --ink: #252923;
    --muted: #585d53;
    --line: #e6dfd5;
    --accent: #8e3827;
    --accent-dark: #70291b;
    --accent-soft: #f7e7dc;
    --forest: #20352e;
    --soft-green: #e8eee6;
    --radius: 20px;
    --shadow: 0 12px 32px rgba(46, 35, 25, .07);
    --edge: clamp(1rem, 4vw, 3.75rem);
    --wrap: 80rem;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.033em; }
h1 { font-size: clamp(2.15rem, 5.3vw, 3.85rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 800; }
small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--edge))); margin-inline: auto; }
.inner-page { padding-block: clamp(1.5rem, 5vw, 3.75rem) clamp(3rem, 8vw, 6rem); }
.inner-page > h1 { margin-bottom: 1.35rem; }
.sr, .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 20; left: 1rem; top: 1rem; background: var(--white); padding: .75rem 1rem; }

.button, button, .outline, .danger {
    display: inline-flex;
    min-height: 46px;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    gap: .55rem;
    padding: .62rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    font-size: .9375rem;
    font-weight: 800;
    line-height: 1.28;
    transition: background-color .18s, border-color .18s, color .18s;
}
.button:hover, button:hover { background: var(--accent-dark); color: var(--white); }
.outline, .danger { background: var(--surface); border-color: var(--line); color: var(--ink); }
.outline:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.danger { color: #862315; }
.danger:hover { background: #fce5e0; color: #752013; border-color: #b34b38; }
.text-link, .back { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .9375rem; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
.panel, .empty, .row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: clamp(1.05rem, 3vw, 2rem);
}
.panel > :not(:first-child), .empty > :not(:first-child) { margin-top: .8rem; }
.panel.stack > * { margin-top: 0; }
.empty { border-style: dashed; color: var(--muted); }
.empty h3, .empty h2 { color: var(--ink); }
.notice {
    padding: .85rem 1rem;
    border: 1px solid #cbdaca;
    border-radius: 12px;
    background: #eaf2e9;
    color: #284438;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.notice[role="alert"] { border-color: #edc8bc; background: #fceee8; color: #762618; }
.front > .notice { width: min(var(--wrap), calc(100% - 2 * var(--edge))); margin: 1rem auto; }
.loc, .place { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.preserve { white-space: pre-wrap; }

.mast { position: relative; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; min-height: 77px; gap: clamp(.75rem, 2vw, 2rem); }
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    max-width: 100%;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(1.04rem, 2vw, 1.48rem);
    letter-spacing: -.06em;
    flex: 0 1 auto;
}
.wordmark:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: none; color: #fff; background: var(--accent); border-radius: 11px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark em { color: var(--accent); font-style: normal; }
.primary-links, .mast-tools { display: flex; align-items: center; }
.primary-links { gap: clamp(.75rem, 1.9vw, 1.65rem); margin-left: auto; }
.primary-links a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 800; padding-block: .8rem; }
.primary-links a:hover, .primary-links a[aria-current], .pop-list a[aria-current] { color: var(--accent); }
.mast-tools { gap: .35rem; flex-shrink: 0; }
.mast-tools .new-ad { margin-right: .25rem; white-space: nowrap; }
.mast-tools :is(.icon-link, summary) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ink);
}
.mast-tools :is(.icon-link, summary):hover, .mast-tools details[open] > summary { background: var(--accent-soft); color: var(--accent); }
.mobile-menu { display: none; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-list {
    position: absolute;
    z-index: 10;
    top: calc(100% - .2rem);
    right: max(var(--edge), calc((100% - var(--wrap)) / 2));
    width: min(23rem, calc(100vw - 2 * var(--edge)));
    max-height: min(70svh, 30rem);
    overflow-y: auto;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.pop-list strong, .pop-list p { display: block; padding: .55rem; }
.pop-list p { color: var(--muted); }
.pop-list a { display: block; padding: .65rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 750; }
.pop-list a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.saved-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .5rem; border-top: 1px solid var(--line); padding: .25rem 0; }
.saved-row button { min-width: 44px; border-color: var(--line); background: var(--surface); color: var(--accent); padding: .25rem; font-size: 1.2rem; }
.saved-row button:hover { background: var(--accent-soft); color: var(--accent-dark); }

.front-hero {
    display: grid;
    align-content: end;
    justify-items: start;
    position: relative;
    background: var(--forest) linear-gradient(90deg, rgba(23,35,27,.94) 0%, rgba(23,35,27,.86) 25%, rgba(23,35,27,.52) 53%, rgba(23,35,27,.09) 84%);
    color: #fffdf6;
    padding: clamp(3rem, 7vw, 6.3rem) max(var(--edge), calc((100% - var(--wrap)) / 2)) clamp(2.75rem, 5.2vw, 4.8rem);
    isolation: isolate;
}
.front-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(22,31,25,.92), rgba(22,31,25,.78) 27%, rgba(22,31,25,.29) 62%, rgba(22,31,25,.05)), url("hero.jpg") center 52% / cover;
}
.hero-copy { max-width: 42rem; }
.hero-copy .eyebrow { color: #f1d3ac; margin-bottom: 1.15rem; }
.hero-copy h1 { font-size: clamp(2.6rem, 6.05vw, 5.55rem); letter-spacing: -.067em; line-height: .98; }
.hero-copy h1 em { color: #f3d9b5; font-family: "Instrument Serif", Georgia, serif; font-size: 1.17em; font-weight: 400; letter-spacing: -.025em; }
.hero-desc { max-width: 37rem; margin-top: 1rem; font-size: clamp(.98rem, 1.7vw, 1.12rem); color: #f7f2e8; }
.finder {
    width: min(100%, 48rem);
    display: grid;
    gap: .78rem;
    margin-top: clamp(1.45rem, 4vw, 2rem);
    padding: .8rem 1rem 1rem;
    border: 1px solid #fff9;
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.finder fieldset { display: flex; width: max-content; max-width: 100%; gap: .2rem; border: 0; border-radius: 10px; padding: .22rem; margin: 0; background: #f3eee6; }
.finder fieldset label { position: relative; display: block; min-width: 0; }
.finder fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.finder fieldset span { display: block; text-align: center; cursor: pointer; padding: .45rem .88rem; border-radius: 8px; }
.finder fieldset input:checked + span { color: var(--white); background: var(--forest); }
.finder fieldset input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.finder-row, .searchRow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) auto; gap: .75rem; align-items: end; }
.finder-row button { min-width: 7.4rem; min-height: 48px; }
.finder-input { display: flex; align-items: center; position: relative; }
.finder-input > svg { position: absolute; left: .7rem; color: var(--accent); pointer-events: none; }
.finder .finder-input :is(input, select) { padding-left: 2.18rem; }

.front-wrap { padding-bottom: clamp(3rem, 8vw, 6.5rem); }
.front-block { margin-top: clamp(2.35rem, 5vw, 4.5rem); }
.front-heading, .sectionHead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.15rem; margin-bottom: 1.2rem; }
.sectionHead { margin-top: 2rem; }
.sectionHead:first-child { margin-top: 0; }
.front-heading h2 { font-size: clamp(1.6rem, 3.7vw, 2.45rem); }
.portals, .tile-grid, .panel-choices { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); }
.portals, .tile-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.department, .panel-choices a {
    display: flex;
    align-items: flex-start;
    gap: .82rem;
    padding: clamp(.75rem, 1.45vw, 1.1rem);
    min-height: 5.85rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .18s, border-color .18s;
}
.department:hover, .panel-choices a:hover, .tile:hover, .firm-tile:hover {
    color: var(--ink); border-color: #c9a89a; box-shadow: var(--shadow);
}
.department-icon, .plan-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; color: var(--accent); background: var(--accent-soft); border-radius: 12px; }
.department-ogloszenia .department-icon { color: #725018; background: #f7ecd4; }
.department-noclegi .department-icon { color: #31543e; background: #e6eee3; }
.department-firmy .department-icon { color: #505267; background: #eeebf1; }
.department strong { display: block; font-weight: 800; font-size: 1rem; }
.department small { display: block; margin-top: .18rem; color: var(--muted); line-height: 1.35; }
.tile, .firm-tile { min-width: 0; position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.tile > a, .firm-tile { display: block; height: 100%; color: var(--ink); text-decoration: none; border-radius: inherit; }
.tile > a { display: flex; flex-direction: column; }
.tile-photo, .spot-photo, .no-photo { display: grid; place-items: center; position: relative; background: var(--soft-green); color: var(--forest); }
.tile-photo { aspect-ratio: 1.57; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; }
.tile-photo img, .spot-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-category { position: absolute; left: .65rem; top: .65rem; max-width: calc(100% - 4.3rem); padding: .24rem .58rem; border-radius: 7px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 800; }
.save-ad { position: absolute; top: .55rem; right: .55rem; width: 44px; height: 44px; min-height: 44px; padding: 0; background: var(--surface); color: var(--accent); border-radius: 50%; border-color: var(--line); }
.save-ad:hover, .save-ad[aria-pressed="true"], .property-save[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-dark); }
:is(.save-ad, .property-save)[aria-pressed="true"] svg { fill: currentColor; }
.tile-copy { flex: 1; display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; padding: clamp(.8rem, 1.6vw, 1.18rem); gap: .44rem; }
.tile-copy h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.tile-copy .place, .tile-facts { font-size: .875rem; line-height: 1.3; }
.tile-facts { display: flex; flex-wrap: wrap; gap: .38rem .85rem; color: var(--muted); }
.tile-facts span { display: flex; align-items: center; gap: .28rem; }
.tile-price { color: var(--accent); font-weight: 800; grid-row: 4; margin-top: .3rem; }

.spotlight { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spot-photo { min-height: 17rem; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); overflow: hidden; }
.spot-photo img { position: absolute; inset: 0; }
.spot-copy { padding: clamp(1.15rem, 4vw, 2.5rem); display: grid; align-content: center; gap: .7rem; }
.spot-copy h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
.spot-copy p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot-spec, .spot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.05rem; }
.spot-spec { color: var(--muted); font-size: .9rem; }
.spot-spec > span { display: inline-flex; align-items: center; gap: .35rem; }
.spot-bottom { margin-top: .45rem; justify-content: space-between; }
.spot-bottom strong { color: var(--accent); font-size: 1.35rem; }
.develop {
    display: grid;
    align-items: center;
    min-height: 19rem;
    padding: clamp(1.2rem, 5vw, 3.4rem);
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(31,48,40,.96), rgba(31,48,40,.75) 38%, rgba(31,48,40,.17)), url("portal/inwestycje.webp") center / cover, var(--forest);
    color: #fff;
}
.develop > div { display: grid; gap: .9rem; justify-items: start; max-width: 28rem; }
.develop h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.develop .button { background: var(--surface); color: var(--forest); }
.develop .button:hover { background: var(--soft-green); }
.firm-tile img { aspect-ratio: 2; object-fit: cover; width: 100%; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.firm-tile > div { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem; }
.firm-tile svg { color: var(--accent); }
.firm-tile p { color: var(--muted); font-size: .875rem; margin-top: .3rem; }
.cities, .filter-links, .tabs, .pager { display: flex; flex-wrap: wrap; gap: .55rem; }
.cities a, .filter-links a, .tabs a {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 44px; padding: .45rem .75rem;
    color: var(--ink); text-decoration: none; font-weight: 750; font-size: .875rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
}
:is(.cities, .filter-links, .tabs) a:hover { color: var(--accent-dark); border-color: var(--accent); }
:is(.filter-links, .tabs) a[aria-current], .tabs .current { background: var(--forest); color: #fff; border-color: var(--forest); }
.page-heading { margin-bottom: 1.4rem; display: grid; gap: 1.1rem; }
.result-count { display: inline-block; color: var(--accent); background: var(--accent-soft); font-size: .875rem; padding: .2rem .52rem; border-radius: 20px; margin-left: .35rem; vertical-align: middle; letter-spacing: 0; }
.pager { justify-content: center; align-items: center; margin-top: 1.5rem; }

label { display: grid; gap: .36rem; min-width: 0; font-size: .875rem; font-weight: 800; }
input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea {
    display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px;
    border: 1px solid #d8d0c5; border-radius: 9px; padding: .58rem .72rem;
    background: var(--white); color: var(--ink);
    font-size: 1rem; font-weight: 550; line-height: 1.35;
}
:is(input, textarea)::placeholder { opacity: 1; color: #64685d; }
textarea { resize: vertical; min-height: 7rem; }
input[type="file"] { min-height: 4rem; padding: .48rem !important; font-size: .875rem !important; overflow: hidden; }
input::file-selector-button { border: 0; border-radius: 6px; background: var(--soft-green); color: var(--forest); font: inherit; font-weight: 800; padding: .35rem .55rem; margin-right: .5rem; cursor: pointer; }
select {
    appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b554a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .55rem center;
    background-size: 1.15rem;
    text-overflow: ellipsis;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
summary { font-size: .9375rem; font-weight: 800; color: var(--accent); }
summary:hover { color: var(--accent-dark); }
.searchRow { grid-template-columns: 1.2fr 1.2fr minmax(0, .9fr) auto; }
.searchRow > *, .fields > *, .edit-grid > * { min-width: 0; }
.searchRow button { min-height: 48px; }
.search > details[open] .fields { padding-top: .9rem; }
.fields, .edit-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: .95rem; align-content: start; }
.stack > :is(button, .button, .outline) { justify-self: start; }
.stack > small { color: var(--muted); }
.narrow { width: min(100%, 30rem); margin-inline: auto; }
.narrow > .back { margin-bottom: .6rem; }
.narrow > h1 { margin-bottom: 1.3rem; }
.narrow .eyebrow { margin-bottom: .55rem; }
.auth-view { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); max-width: 57rem; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.auth-visual {
    display: grid; align-content: end; padding: 2rem; min-height: 29rem;
    color: #fff6e4; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
    background: linear-gradient(0deg, #202c22b3, transparent 78%), url("home2.jpg") center / cover, var(--forest);
}
.auth-visual .wordmark { color: white; }
.auth-visual .wordmark em { color: #ffdbba; }
.auth-main { display: grid; align-content: center; padding: clamp(1.15rem, 5vw, 3rem); gap: 1.35rem; min-width: 0; }
.auth-main h1 { font-size: clamp(2rem, 4.8vw, 3rem); }
.auth-main button { width: 100%; }
.auth-main .text-link { justify-self: center; }
.panel-hub, .panel-editor { max-width: 57rem; margin-inline: auto; }
.panel-hub h1, .panel-editor h1 { margin-bottom: 1.4rem; }
.panel-editor .back { margin-bottom: .65rem; }
.panel-editor .stack { gap: 1.05rem; }
.panel-editor form h2 { color: var(--forest); font-size: clamp(1.17rem, 2.4vw, 1.5rem); }
.panel-editor form h2:not(:first-of-type) { margin-top: .75rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.panel-editor input[type="file"] { margin-bottom: .5rem; }
.panel-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-choices a { align-items: center; font-size: clamp(1rem, 2vw, 1.25rem); padding: 1rem; }
.current-photo { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.current-photo img { width: 5rem; height: 3.45rem; object-fit: cover; border-radius: 7px; }
.check { display: flex; align-items: center; gap: .45rem; min-height: 44px; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); flex: none; }
.inline, .actions { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.inline > *, .actions > * { min-width: 0; }
.row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
    margin-top: .65rem; padding: clamp(.85rem, 2.5vw, 1.35rem);
}
.row > div:first-child { flex: 1 1 16rem; min-width: 0; }
.row h3 a { color: var(--ink); }
.row p, .row small, .sectionHead small { color: var(--muted); }
.status {
    display: inline-flex; width: fit-content; background: #f3ece2; color: #583e26;
    padding: .2rem .55rem; margin-bottom: .35rem; border-radius: 6px; font-size: .8125rem; font-weight: 800;
}
.status-published, .status-active { background: #e5eee3; color: #31533c; }
.status-rejected, .status-cancelled { background: #fae8e0; color: #802d22; }
.tabs { margin-bottom: 1.6rem; }
.admin-content > .panel { margin-top: .7rem; }
.admin-content > .button { margin-block: .8rem .2rem; }
.admin-content .panel .panel { padding: .8rem 0 0; border: 0; border-radius: 0; }
.page-account .sectionHead > div { min-width: 0; }
.page-account .sectionHead > div > .eyebrow { margin-bottom: .4rem; }
.page-account .sectionHead > div > small { display: block; margin-top: .5rem; }
.account-watches { margin-top: 2rem; }
.account-watches .panel { margin-top: .85rem; }

.priceSection { text-align: center; }
.pricing-head { display: grid; gap: .75rem; margin: 0 auto clamp(1.5rem, 4vw, 2.65rem); max-width: 42rem; }
.pricing-head p { color: var(--muted); }
.promo {
    display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.4rem; text-align: left;
    padding: 1rem; background: var(--soft-green); border: 1px solid #cedacf; border-radius: 13px;
}
.promo > div { flex: 1 1 13rem; }
.promo > div > span { display: block; }
.promoIcon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--forest); background: #f7faf5; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 1rem; }
.plan {
    display: flex; flex-direction: column; align-items: flex-start; gap: .48rem;
    padding: clamp(1rem, 2.7vw, 1.6rem); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); text-align: left;
}
.plan-icon { margin-bottom: .5rem; }
.plan h2 { font-size: 1.32rem; }
.plan p, .plan > span:not(.plan-icon) { color: var(--muted); }
.plan strong { color: var(--forest); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.05em; }
.plan > span:not(.plan-icon) { margin-bottom: .75rem; }
.plan .button { width: 100%; margin-top: auto; }

.detailGrid, .estate-top, .estate-lower { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(.9rem, 2.5vw, 1.55rem); align-items: start; }
.detail-heading { margin-bottom: 1.4rem; display: grid; gap: .65rem; }
.detail-heading .back { justify-self: start; }
.detailImg { width: 100%; max-height: 42rem; object-fit: contain; background: var(--soft-green); border-radius: 13px; }
.detailGrid article h2, .detailGrid aside h2 { font-size: clamp(1.3rem, 2.7vw, 1.85rem); }
.contact-note { color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: .25rem .45rem; align-items: center; font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.estate-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .9rem 1rem; margin-bottom: 1.35rem; }
.estate-head > div:first-child { flex: 1 1 28rem; min-width: 0; }
.estate-head .loc { margin-top: .55rem; }
.estate-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.share-panel { display: grid; gap: .5rem; padding: .85rem; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin-bottom: 1rem; }
.share-panel [role="status"] { color: var(--muted); font-size: .875rem; }
.estate-gallery {
    display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px;
    aspect-ratio: 1.75; border-radius: var(--radius); overflow: hidden; background: var(--soft-green);
}
.estate-gallery.count-0, .estate-gallery.count-1 { grid-template: 1fr / minmax(0, 1fr); }
.estate-gallery.count-2 { grid-template-rows: minmax(0, 1fr); }
.estate-gallery a { display: block; min-height: 0; min-width: 0; }
.estate-gallery.count-3 a:first-child { grid-row: span 2; }
.estate-gallery a img { width: 100%; height: 100%; object-fit: cover; }
.estate-gallery.count-1 a img { object-fit: contain; }
.estate-gallery a:focus-visible { position: relative; z-index: 1; outline-offset: -5px; outline-color: #fff; }
.no-photo { gap: .65rem; align-content: center; min-height: 10rem; }
.estate-stats { display: flex; flex-wrap: wrap; gap: .85rem 1.3rem; align-items: center; margin-top: .8rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.estate-stats strong { font-size: clamp(1.32rem, 3vw, 2rem); color: var(--accent); font-weight: 800; letter-spacing: -.04em; }
.estate-stats > span { display: flex; align-items: center; gap: .5rem; }
.estate-stats small { display: block; color: var(--muted); }
.estate-stats svg { color: var(--forest); }
.seller-box, .estate-lower section { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(.9rem, 2.4vw, 1.5rem); }
.seller-box { display: grid; gap: .85rem; }
.seller-box h2, .estate-lower h2 { font-size: clamp(1.24rem, 2.6vw, 1.85rem); }
.seller-person { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.seller-person :is(img, .avatar-icon) { display: grid; place-items: center; width: 55px; height: 55px; flex: none; border-radius: 50%; object-fit: cover; background: var(--soft-green); color: var(--forest); }
.seller-person p, .seller-rating { color: var(--muted); font-size: .875rem; }
.seller-rating span { color: #8a5415; }
.rating-form form { margin-top: .5rem; }
.phone-box summary { padding: .68rem; border-radius: 9px; color: var(--white); background: var(--accent); text-align: center; list-style: none; }
.phone-box summary::-webkit-details-marker { display: none; }
.phone-box summary:hover { background: var(--accent-dark); }
.phone-box a { display: block; padding-top: .55rem; text-align: center; font-weight: 800; }
.seller-links { display: grid; gap: .5rem; }
.seller-links a, .seller-links button { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 800; }
.seller-links button { width: 100%; }
.estate-lower { margin-top: 1.25rem; }
.estate-lower h2 { margin-bottom: .85rem; }
.offer-spec > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.offer-spec > div:last-child { border-bottom: 0; }
.offer-spec dd { margin: 0; font-weight: 800; }
.offer-spec dt { color: var(--muted); }

.site-foot { background: var(--forest); color: #f7f4eb; padding-block: clamp(2rem, 5vw, 3.7rem); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, .85fr)); gap: 1.65rem; }
.foot-grid > div { min-width: 0; }
.foot-grid p { max-width: 17rem; margin-top: .85rem; color: #d6dfd5; }
.foot-grid h2 { font-size: .9375rem; letter-spacing: 0; margin-bottom: .65rem; }
.foot-grid a:not(.wordmark) { display: block; width: fit-content; padding-block: .25rem; color: #d6dfd5; text-decoration: none; font-size: .9rem; }
.foot-grid a:not(.wordmark):hover { text-decoration: underline; color: #fff; }
.site-foot .wordmark { color: #fff; }
.site-foot .wordmark em { color: #f3cfad; }
.site-foot :focus-visible, .auth-visual :focus-visible, .front-hero :focus-visible { outline-color: #f1d3ac; }
.front-hero .finder :focus-visible { outline-color: var(--accent); }

@media (max-width: 67rem) {
    .primary-links { display: none; }
    .mobile-menu { display: block; }
    .portals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mast-inner { min-height: 68px; }
}
@media (max-width: 53rem) {
    .detailGrid, .estate-top, .estate-lower { grid-template-columns: minmax(0, 1fr); }
    .tile-grid, .tile-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .searchRow, .search .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .estate-actions { width: 100%; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
    .mast-inner { gap: .45rem; min-height: 62px; }
    .mast-tools { gap: .1rem; }
    .mast-tools .new-ad { margin-right: 0; min-width: 44px; padding-inline: .55rem; }
    .ad-long, .mast-tools .icon-link { display: none; }
    .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
    .mast .wordmark { font-size: 1.1rem; gap: .35rem; }
    .front-hero { padding-top: 2.5rem; padding-bottom: 1.75rem; }
    .front-hero::before { background: linear-gradient(110deg, rgba(22,31,25,.86), rgba(22,31,25,.48) 70%, rgba(22,31,25,.5)), url("hero.jpg") 57% center / cover; }
    .hero-copy .eyebrow { margin-bottom: .7rem; }
    .finder { padding: .7rem; }
    .finder-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .finder-row button { width: 100%; }
    .spotlight { grid-template-columns: minmax(0, 1fr); }
    .spot-photo { min-height: 0; aspect-ratio: 1.62; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
    .department { display: grid; min-height: auto; }
    .department-icon { height: 40px; width: 40px; }
    .auth-view { display: block; }
    .auth-visual { display: none; }
    .estate-gallery { aspect-ratio: 1.5; }
    .estate-actions :is(.outline, .button) { flex: 1 1 10rem; }
    .row .actions { width: 100%; }
}
@media (max-width: 30rem) {
    .tile-grid, .tile-grid.four, .panel-choices, .searchRow, .fields, .edit-grid, .search .fields { grid-template-columns: minmax(0, 1fr); }
    .tile-photo { aspect-ratio: 1.72; }
    .searchRow button, .panel-editor form > button, .narrow .stack > button { width: 100%; }
    .auth-main { padding-block: 1.6rem; }
    .estate-stats strong { flex-basis: 100%; }
    .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 22rem) {
    .mast-tools .new-ad > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .001ms !important; }
}

/* Filtry lokalizacji i pakiety publikacji */
.finder-row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.finder-row > * { min-width: 0; }
.searchRow { grid-template-columns: 1.15fr 1fr 1fr .95fr auto; }
.publication-box { border-top: 1px solid var(--line, #e0e0e0); padding-top: 1rem; }
.publication-box p { margin: 0; }
.pricing-group { margin-top: 2.25rem; scroll-margin-top: 5rem; }
.priceSection .plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.priceSection .plan h3 { margin: 0; }
.urgent-badge { display: inline-block; width: max-content; padding: .15rem .55rem; border-radius: .4rem; background: #fce9e6; color: #941f27; font-size: .85rem; font-weight: 800; }
.status-approved { color: #80500c; background: #fff2d7; }
.status-expired { color: #42484f; background: #ebedf0; }
.admin-filters { margin-bottom: 1rem; }
.bulk-moderation { margin: 1rem 0; }
@media (max-width: 900px) {
    .searchRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .finder-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 530px) {
    .searchRow { grid-template-columns: minmax(0, 1fr); }
}
