/* =========================================================
   PM Nieruchomości — front
   ========================================================= */
.pmn-archive, .pmn-single, .pmn-grid, .pmn-similar {
	--pmn-line: var(--pm-line, #dfe3e8);
	--pmn-navy: var(--pm-navy, #12395c);
	--pmn-reed: var(--pm-reed, #2f8f5b);
	--pmn-alert: var(--pm-alert, #c8402f);
	--pmn-ink: var(--pm-ink, #1c2430);
	--pmn-muted: var(--pm-muted, #5b6673);
	--pmn-radius: var(--pm-radius, 6px);
	--pmn-white: #fff;
}

.pmn-h2 {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 800;
	color: var(--pmn-navy);
}
.pmn-intro-text {
	max-width: 70ch;
	margin: -4px 0 20px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--pmn-muted);
}

/* ---------------------------------------------------------
   Wyszukiwarka
   --------------------------------------------------------- */
.pmn-search {
	padding: 16px;
	margin-bottom: 18px;
	background: var(--pmn-white);
	border: 1px solid var(--pmn-line);
	border-top: 3px solid var(--pmn-navy);
	border-radius: var(--pmn-radius);
}
.pmn-search__row {
	display: grid;
	gap: 12px;
	margin-bottom: 12px;
}
.pmn-search__row--more { display: none; }
.pmn-search__row--more.is-open { display: grid; }

.pmn-search__field { display: block; }
.pmn-search__field > span,
.pmn-search__legend {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #37434f;
}
.pmn-search select,
.pmn-search input[type="number"],
.pmn-search input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 15px;
	color: var(--pmn-ink);
	background: var(--pmn-white);
	border: 1px solid #ccd4dc;
	border-radius: var(--pmn-radius);
}
.pmn-search select:focus,
.pmn-search input:focus {
	border-color: var(--pm-lake, #1f7a8c);
	outline: 2px solid rgba(31, 122, 140, .22);
}

.pmn-search__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.pmn-search__pair .pmn-search__legend { grid-column: 1 / -1; margin-bottom: 0; }

.pmn-search__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.pmn-search__submit {
	flex: 1 1 auto;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--pmn-radius);
	background: var(--pmn-reed);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.pmn-search__submit:hover { background: #267a4c; }
.pmn-search__toggle {
	padding: 12px 16px;
	border: 1px solid var(--pmn-line);
	border-radius: var(--pmn-radius);
	background: var(--pmn-white);
	color: var(--pmn-navy);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.pmn-search__toggle:hover { border-color: var(--pmn-navy); }
.pmn-search__reset {
	font-size: 14px;
	font-weight: 600;
	color: var(--pmn-alert);
	text-decoration: none;
}
.pmn-search__reset:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   Pasek wyników
   --------------------------------------------------------- */
.pmn-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--pmn-line);
}
.pmn-toolbar__count {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--pmn-navy);
}
.pmn-toolbar__sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-size: 13.5px;
	color: var(--pmn-muted);
}
.pmn-toolbar__link {
	color: var(--pmn-muted);
	text-decoration: none;
	padding: 4px 2px;
	border-bottom: 2px solid transparent;
}
.pmn-toolbar__link:hover { color: var(--pmn-navy); }
.pmn-toolbar__link.is-active {
	color: var(--pmn-navy);
	font-weight: 700;
	border-bottom-color: var(--pmn-reed);
}

/* ---------------------------------------------------------
   Kafelki ofert
   --------------------------------------------------------- */
.pmn-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.pmn-card__link {
	display: block;
	background: var(--pmn-white);
	border: 1px solid var(--pmn-line);
	border-radius: var(--pmn-radius);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .18s, box-shadow .18s;
}
.pmn-card__link:hover {
	border-color: #c3ccd6;
	box-shadow: 0 10px 24px rgba(18, 57, 92, .09);
}
.pmn-card--special .pmn-card__link { border-color: var(--pmn-reed); }

.pmn-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #e9edf1;
	overflow: hidden;
}
.pmn-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.pmn-card__blank {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #17486f, #1f7a8c);
}
.pmn-card__tags {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.pmn-tag {
	padding: 4px 9px;
	background: rgba(6, 20, 34, .8);
	border-radius: 3px;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
}
.pmn-tag--special { background: var(--pmn-reed); }
.pmn-tag--rezerwacja { background: #b9820a; }
.pmn-tag--zakonczona { background: var(--pmn-alert); }

.pmn-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}
.pmn-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 20px;
	font-weight: 800;
	color: var(--pmn-navy);
	letter-spacing: -.01em;
}
.pmn-card__price em {
	font-size: 13px;
	font-weight: 600;
	font-style: normal;
	color: var(--pmn-muted);
}
.pmn-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pmn-ink);
}
.pmn-card__loc {
	font-size: 14px;
	color: var(--pmn-muted);
}
.pmn-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--pmn-line);
	font-size: 13.5px;
	color: #45505d;
}
.pmn-card__ref { margin-left: auto; color: #8a949f; }

.pmn-empty {
	padding: 32px 20px;
	background: var(--pmn-white);
	border: 1px dashed var(--pmn-line);
	border-radius: var(--pmn-radius);
	text-align: center;
	color: var(--pmn-muted);
}
.pmn-empty__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--pmn-navy);
}
.pmn-empty__btn {
	display: inline-block;
	margin-top: 14px;
	padding: 11px 22px;
	background: var(--pmn-navy);
	border-radius: var(--pmn-radius);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* ---------------------------------------------------------
   Pojedyncza oferta
   --------------------------------------------------------- */
.pmn-single { padding-top: 20px; }
.pmn-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 13.5px;
	color: var(--pmn-muted);
}
.pmn-crumbs a { color: var(--pm-lake, #1f7a8c); text-decoration: none; }
.pmn-crumbs a:hover { text-decoration: underline; }

.pmn-single__head { margin-bottom: 18px; }
.pmn-single__title {
	margin: 0 0 8px;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: var(--pmn-ink);
	text-wrap: balance;
}
.pmn-single__sub {
	margin: 0;
	font-size: 15px;
	color: var(--pmn-muted);
}

.pmn-single__grid { display: grid; gap: 28px; }
.pmn-single__main { min-width: 0; }

/* Zdjęcia */
.pmn-photos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 26px;
}
.pmn-photos__cell {
	display: block;
	padding: 0;
	border: 0;
	border-radius: var(--pmn-radius);
	overflow: hidden;
	background: #e9edf1;
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
}
.pmn-photos__cell--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pmn-photos__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pmn-photos--single { display: block; }

/* Opis i parametry */
.pmn-desc, .pmn-params, .pmn-features, .pmn-map { margin-bottom: 28px; }
.pmn-desc__body {
	font-size: 16.5px;
	line-height: 1.7;
	color: #222c38;
}
.pmn-desc__body p { margin: 0 0 1.1em; max-width: 68ch; }

.pmn-params__list {
	margin: 0;
	border: 1px solid var(--pmn-line);
	border-radius: var(--pmn-radius);
	overflow: hidden;
	background: var(--pmn-white);
}
.pmn-params__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--pmn-line);
	font-size: 14.5px;
}
.pmn-params__row:last-child { border-bottom: 0; }
.pmn-params__row:nth-child(odd) { background: #f7f9fb; }
.pmn-params__row dt { color: var(--pmn-muted); }
.pmn-params__row dd {
	margin: 0;
	font-weight: 600;
	color: var(--pmn-ink);
}

.pmn-features__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pmn-features__list li {
	padding: 7px 13px;
	background: #e7f1ec;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #1d6a43;
}

.pmn-map__frame {
	position: relative;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--pmn-line);
	border-radius: var(--pmn-radius);
	overflow: hidden;
}
.pmn-map__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.pmn-map__note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--pmn-muted);
}

.pmn-disclaimer {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--pmn-line);
	font-size: 13px;
	line-height: 1.55;
	color: #8a949f;
}

/* Karta kontaktu */
.pmn-contact {
	align-self: start;
	padding: 18px;
	background: var(--pmn-white);
	border: 1px solid var(--pmn-line);
	border-top: 3px solid var(--pmn-reed);
	border-radius: var(--pmn-radius);
}
.pmn-contact__head {
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--pmn-line);
}
.pmn-contact__price {
	display: block;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--pmn-navy);
}
.pmn-contact__ref {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #8a949f;
}
.pmn-contact__status {
	margin: 0 0 14px;
	padding: 8px 12px;
	background: #fdf3e2;
	border-left: 3px solid #b9820a;
	font-size: 14px;
	color: #7a5600;
}
.pmn-contact__agent {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 16px;
}
.pmn-contact__agent-name { font-size: 15.5px; font-weight: 700; color: var(--pmn-ink); }
.pmn-contact__agent-firm { font-size: 13.5px; color: var(--pmn-muted); }
.pmn-contact__phone {
	margin-top: 6px;
	font-size: 19px;
	font-weight: 800;
	color: var(--pmn-reed);
	text-decoration: none;
}

.pmn-field { margin: 0 0 13px; }
.pmn-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13.5px;
	font-weight: 600;
	color: #37434f;
}
.pmn-field input[type="text"],
.pmn-field textarea {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 16px;
	border: 1px solid #ccd4dc;
	border-radius: var(--pmn-radius);
	background: var(--pmn-white);
	color: var(--pmn-ink);
}
.pmn-field textarea { resize: vertical; }
.pmn-field button {
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: var(--pmn-radius);
	background: var(--pmn-navy);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.pmn-field button:hover { background: var(--pm-navy-deep, #0c2a45); }
.pmn-field--trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pmn-msg {
	margin: 0 0 14px;
	padding: 11px 14px;
	border-radius: var(--pmn-radius);
	font-size: 14.5px;
	line-height: 1.5;
}
.pmn-msg--ok { background: #e7f3ec; border-left: 3px solid var(--pmn-reed); color: #1d5c3a; }
.pmn-msg--err { background: #fbecea; border-left: 3px solid var(--pmn-alert); color: #8e2d1f; }

/* Podgląd zdjęć */
body.pmn-locked { overflow: hidden; }
.pmn-view {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 56px 8px 68px;
	background: rgba(6, 14, 22, .94);
}
.pmn-view.is-open { display: flex; }
.pmn-view__img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	border-radius: 4px;
}
.pmn-view__close,
.pmn-view__arrow {
	position: absolute;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}
.pmn-view__close { top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; }
.pmn-view__arrow { top: 50%; transform: translateY(-50%); width: 48px; height: 60px; border-radius: 6px; font-size: 34px; }
.pmn-view__arrow--prev { left: 8px; }
.pmn-view__arrow--next { right: 8px; }
.pmn-view__counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 14px;
	background: rgba(255, 255, 255, .12);
	border-radius: 999px;
	color: #fff;
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
}

/* =========================================================
   Większe ekrany
   ========================================================= */
@media (min-width: 620px) {
	.pmn-search__row { grid-template-columns: repeat(3, 1fr); }
	.pmn-search__row--more.is-open { grid-template-columns: repeat(2, 1fr); }
	.pmn-grid { grid-template-columns: repeat(2, 1fr); }
	.pmn-single__title { font-size: 30px; }
	.pmn-photos { grid-template-columns: repeat(3, 1fr); }
	.pmn-photos__cell--lead { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
	.pmn-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.pmn-grid--short { grid-template-columns: repeat(3, 1fr); }
	.pmn-search { padding: 20px 22px; }
	.pmn-search__row--more.is-open { grid-template-columns: repeat(4, 1fr); }
	.pmn-single__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
	.pmn-contact { position: sticky; top: 76px; }
	.pmn-single__title { font-size: 34px; }
	.pmn-params__row { grid-template-columns: 240px 1fr; }
	.pmn-view { padding: 70px 80px; }
	.pmn-view__close { top: 18px; right: 22px; }
	.pmn-view__arrow--prev { left: 18px; }
	.pmn-view__arrow--next { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.pmn-card__link { transition: none; }
}
