/* =========================================================
   PM Ogłoszenia — lista, ogłoszenie, formularz
   Mobile first. Kolory z motywu, z wartościami zapasowymi.
   ========================================================= */
.pmo {
	--pmo-navy: var(--pm-navy, #12395c);
	--pmo-navy-deep: var(--pm-navy-deep, #0c2a45);
	--pmo-lake: var(--pm-lake, #1f7a8c);
	--pmo-green: var(--pm-reed, #2f8f5b);
	--pmo-green-dark: #24774a;
	--pmo-price: #1f6b44;
	--pmo-alert: var(--pm-alert, #c8402f);
	--pmo-ink: var(--pm-ink, #1c2430);
	--pmo-text: #2a3540;
	--pmo-muted: var(--pm-muted, #5b6673);
	--pmo-line: var(--pm-line, #dfe3e8);
	--pmo-line-soft: #ebeef1;
	--pmo-paper: var(--pm-paper, #fbfaf7);
	--pmo-soft: #eef2f5;
	--pmo-green-soft: #e3f0ea;
	--pmo-blue-soft: #e2edf5;
	--pmo-amber: #8a5a00;
	--pmo-amber-soft: #fbf1dc;
	--pmo-radius: 12px;
	--pmo-radius-sm: 8px;

	background: var(--pmo-paper);
	color: var(--pmo-ink);
	line-height: 1.55;
}
.pmo *,
.pmo *::before,
.pmo *::after { box-sizing: border-box; }

.pmo-wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}
.pmo-wrap--narrow { max-width: 760px; }
.pmo-wrap--tiny { max-width: 560px; }
.pmo-page { padding-top: 16px; padding-bottom: 56px; }

.pmo a { color: var(--pmo-navy); }
.pmo a:hover { color: var(--pmo-lake); }

.pmo-i { width: 18px; height: 18px; flex: none; }
.pmo-i--xs { width: 14px; height: 14px; }
.pmo-i--lg { width: 30px; height: 30px; }

.pmo .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	border: 0; white-space: nowrap;
}

.pmo-h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.3; color: var(--pmo-navy-deep); }

/* ---------------------------------------------------------
   Przyciski
   --------------------------------------------------------- */
.pmo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--pmo-radius-sm);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
	-webkit-tap-highlight-color: transparent;
}
.pmo-btn:focus-visible { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }
.pmo-btn--lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.pmo-btn--block { width: 100%; }
.pmo .pmo-btn--green { background: var(--pmo-green); color: #fff; }
.pmo .pmo-btn--green:hover { background: var(--pmo-green-dark); color: #fff; }
.pmo .pmo-btn--navy { background: var(--pmo-navy); color: #fff; }
.pmo .pmo-btn--navy:hover { background: var(--pmo-navy-deep); color: #fff; }
.pmo .pmo-btn--ghost { background: #fff; border-color: var(--pmo-line); color: var(--pmo-navy); }
.pmo .pmo-btn--ghost:hover { border-color: var(--pmo-navy); color: var(--pmo-navy); }
.pmo .pmo-btn--link { background: none; color: var(--pmo-navy); text-decoration: underline; padding: 0 8px; }
.pmo .pmo-btn--danger { background: #fff; border-color: var(--pmo-alert); color: var(--pmo-alert); }
.pmo .pmo-btn--danger:hover { background: var(--pmo-alert); color: #fff; }
.pmo-btn[disabled],
.pmo-btn.is-busy { opacity: .7; cursor: progress; }

/* ---------------------------------------------------------
   Komunikaty
   --------------------------------------------------------- */
.pmo-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: var(--pmo-radius-sm);
	font-weight: 600;
}
.pmo-notice--ok { background: var(--pmo-green-soft); color: var(--pmo-price); }
.pmo-notice--info { background: var(--pmo-blue-soft); color: var(--pmo-navy); font-weight: 500; }
.pmo-notice--info a { font-weight: 700; }
.pmo-notice .pmo-i { flex: none; }
.pmo-notice--error { background: #fbe9e6; color: #9d2f20; }

.pmo-state {
	display: flex;
	gap: 14px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--pmo-radius);
	border: 1px solid var(--pmo-line);
	background: #fff;
}
.pmo-state p { margin: 0; }
.pmo-state__title { font-weight: 800; font-size: 16px; margin-bottom: 2px !important; }
.pmo-state__icon {
	display: flex; align-items: center; justify-content: center;
	flex: none; width: 40px; height: 40px; border-radius: 50%;
}
.pmo-state--wait { background: var(--pmo-amber-soft); border-color: #ecd59f; color: #5a3d00; }
.pmo-state--wait .pmo-state__icon { background: #f3dfae; color: var(--pmo-amber); }
.pmo-state--off { background: var(--pmo-soft); color: var(--pmo-text); }
.pmo-state--off .pmo-state__icon { background: #dde3e9; color: var(--pmo-muted); }
.pmo-state--ok { background: var(--pmo-green-soft); border-color: #bcdcc9; color: #1b4f33; }
.pmo-state--ok .pmo-state__icon { background: #c7e5d3; color: var(--pmo-price); }

/* ---------------------------------------------------------
   Okruszki
   --------------------------------------------------------- */
.pmo-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; color: var(--pmo-muted); }
.pmo-crumbs li + li::before { content: "›"; margin-right: 4px; color: #9aa4ae; }
.pmo-crumbs a { color: var(--pmo-muted); text-decoration: none; }
.pmo-crumbs a:hover { color: var(--pmo-navy); text-decoration: underline; }

/* ---------------------------------------------------------
   Pas tytułowy listy
   --------------------------------------------------------- */
.pmo-hero {
	background: linear-gradient(160deg, var(--pmo-navy) 0%, var(--pmo-navy-deep) 100%);
	color: #fff;
	padding: 20px 0 22px;
}
.pmo-hero .pmo-crumbs ol,
.pmo-hero .pmo-crumbs a { color: #b8c8d8; }
.pmo-hero .pmo-crumbs [aria-current] { color: #fff; }
.pmo-hero__row { display: flex; flex-direction: column; gap: 14px; }
.pmo-hero__kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fd0b0; }
.pmo-hero__title { margin: 0; font-size: 27px; line-height: 1.15; color: #fff; }
.pmo-hero__lead { margin: 8px 0 0; max-width: 620px; color: #d5e0ea; font-size: 15px; }
.pmo-hero__add { display: none; }

/* ---------------------------------------------------------
   Wyszukiwarka
   --------------------------------------------------------- */
.pmo-search {
	margin: -8px 0 16px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius);
	box-shadow: 0 6px 20px rgba(12, 42, 69, .08);
	position: relative;
}
.pmo-hero + .pmo-page .pmo-search { margin-top: -12px; }
.pmo-search__bar { display: flex; gap: 8px; }
.pmo-search__input {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius-sm);
	background: #fff;
	color: var(--pmo-muted);
}
.pmo-search__input:focus-within { border-color: var(--pmo-lake); box-shadow: 0 0 0 3px rgba(31, 122, 140, .18); }
.pmo-search__input input {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	border: 0;
	outline: 0;
	background: none;
	font: inherit;
	font-size: 16px;
	color: var(--pmo-ink);
}
.pmo-search__go { flex: none; min-height: 48px; }
.pmo-search__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pmo-search__toggle { min-height: 40px; padding: 0 14px; }
.pmo-search__toggle[aria-expanded="true"] { background: var(--pmo-soft); border-color: var(--pmo-navy); }
.pmo-search__count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
	background: var(--pmo-green); color: #fff; font-size: 12px;
}

/* Przełącznik „Tylko ze zdjęciem” */
.pmo-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; user-select: none; }
.pmo-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmo-switch__box { position: relative; width: 42px; height: 24px; border-radius: 12px; background: #c9d1d9; transition: background .15s; flex: none; }
.pmo-switch__box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.pmo-switch input:checked + .pmo-switch__box { background: var(--pmo-green); }
.pmo-switch input:checked + .pmo-switch__box::after { transform: translateX(18px); }
.pmo-switch input:focus-visible + .pmo-switch__box { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }

/* Panel filtrów */
.pmo-filter {
	display: grid;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--pmo-line-soft);
}
.pmo-filter[hidden] { display: none; }
.pmo-filter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------------------------------------------------------
   Pola formularzy (wspólne)
   --------------------------------------------------------- */
.pmo-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.pmo-filter .pmo-f { margin: 0; }
.pmo-f__label { font-weight: 700; font-size: 15px; color: var(--pmo-navy-deep); padding: 0; }
.pmo-f__opt { font-weight: 400; color: var(--pmo-muted); font-size: 14px; }
.pmo-f__hint { margin: 0; font-size: 13.5px; color: var(--pmo-muted); }
.pmo-f__hint--count { display: flex; justify-content: space-between; gap: 10px; }
.pmo-f__counter { flex: none; font-variant-numeric: tabular-nums; }
.pmo-f__counter.is-over { color: var(--pmo-alert); font-weight: 700; }
.pmo-f__error { margin: 0; color: #a3301f; font-size: 14px; font-weight: 700; }

.pmo input[type="text"],
.pmo input[type="email"],
.pmo input[type="tel"],
.pmo select,
.pmo textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #c9d1d9;
	border-radius: var(--pmo-radius-sm);
	background: #fff;
	color: var(--pmo-ink);
	font: inherit;
	font-size: 16px; /* bez powiększania na iPhonie */
	line-height: 1.4;
}
.pmo textarea { min-height: 140px; resize: vertical; }
.pmo select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6673' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.pmo input:focus,
.pmo select:focus,
.pmo textarea:focus { outline: 0; border-color: var(--pmo-lake); box-shadow: 0 0 0 3px rgba(31, 122, 140, .18); }
.pmo .pmo-search__input input:focus { box-shadow: none; }

.pmo-f.has-error input,
.pmo-f.has-error select,
.pmo-f.has-error textarea { border-color: #c8402f; background: #fff8f6; }
.pmo-f.has-error .pmo-f__label { color: #a3301f; }

.pmo-f__pair { display: flex; align-items: center; gap: 8px; }
.pmo-f__pair input { flex: 1; min-width: 0; }
.pmo-f__unit { color: var(--pmo-muted); font-weight: 600; }
.pmo-f__money { display: flex; align-items: center; gap: 8px; max-width: 260px; }

.pmo-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.pmo-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pmo-green); }
.pmo-check--inline { font-size: 14.5px; color: var(--pmo-text); }
.pmo-check.has-error span { color: #a3301f; }
.pmo-f.has-error .pmo-check input:required + span { color: #a3301f; }

.pmo-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------
   Kategorie
   --------------------------------------------------------- */
.pmo-cats { margin: 0 -16px 18px; }
/* Telefon: dwa rzędy kafelków przewijane w bok — wyniki zostają blisko góry */
.pmo-cats__list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(2, auto);
	grid-auto-columns: 98px;
	gap: 8px;
	margin: 0;
	padding: 2px 16px 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.pmo-cats__list::-webkit-scrollbar { display: none; }
.pmo-cats__list li { scroll-snap-align: start; }
.pmo-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
	min-height: 96px;
	padding: 10px 6px;
	background: #fff;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius-sm);
	text-align: center;
	text-decoration: none;
	color: var(--pmo-ink);
	transition: border-color .15s, box-shadow .15s;
}
.pmo-cat:hover { border-color: var(--pmo-lake); box-shadow: 0 4px 14px rgba(12, 42, 69, .08); color: var(--pmo-ink); }
.pmo-cat__icon {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--pmo-blue-soft); color: var(--pmo-navy);
}
.pmo-cat__icon .pmo-i { width: 21px; height: 21px; }
.pmo-cat.is-external .pmo-cat__icon { background: var(--pmo-green-soft); color: var(--pmo-price); }
.pmo-cat__name { font-weight: 700; font-size: 13px; line-height: 1.2; hyphens: auto; }
.pmo-cat__count { font-size: 11.5px; color: var(--pmo-muted); }

.pmo-chips { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pmo-chip {
	flex: none;
	display: inline-flex; align-items: center;
	min-height: 38px; padding: 0 14px;
	border: 1px solid var(--pmo-line); border-radius: 19px;
	background: #fff; color: var(--pmo-navy);
	font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pmo-chip:hover { border-color: var(--pmo-navy); }
.pmo .pmo-chip.is-active { background: var(--pmo-navy); border-color: var(--pmo-navy); color: #fff; }

/* ---------------------------------------------------------
   Pasek nad wynikami
   --------------------------------------------------------- */
.pmo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.pmo-toolbar__count { margin: 0; color: var(--pmo-muted); font-size: 14.5px; }
.pmo-toolbar__count strong { color: var(--pmo-ink); }
.pmo-toolbar__sort { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pmo-muted); }
.pmo .pmo-toolbar__sort select { min-height: 38px; width: auto; padding: 4px 32px 4px 10px; font-size: 14.5px; }

/* ---------------------------------------------------------
   Karty ogłoszeń — na telefonie wiersze, szerzej siatka
   --------------------------------------------------------- */
.pmo-grid { display: grid; gap: 10px; }
.pmo-card { min-width: 0; }
.pmo-card__link {
	display: grid;
	grid-template-columns: 116px 1fr;
	gap: 12px;
	height: 100%;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius);
	color: var(--pmo-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.pmo-card__link:hover { border-color: #b5c3cf; box-shadow: 0 6px 18px rgba(12, 42, 69, .09); color: var(--pmo-ink); }
.pmo-card__link:focus-visible { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }
.pmo-card.is-featured .pmo-card__link { border-color: #e2c26b; background: #fffdf6; }
.pmo-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--pmo-radius-sm);
	overflow: hidden;
	background: var(--pmo-soft);
	align-self: start;
}
.pmo-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pmo-card__noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #9fb0bf; }
.pmo-card__noimg .pmo-i { width: 34px; height: 34px; }
.pmo-card__count {
	position: absolute; right: 6px; bottom: 6px;
	display: inline-flex; align-items: center; gap: 3px;
	padding: 2px 6px; border-radius: 6px;
	background: rgba(12, 42, 69, .75); color: #fff;
	font-size: 12px; font-weight: 700;
}
.pmo-card__badge {
	position: absolute; left: 6px; top: 6px;
	padding: 2px 7px; border-radius: 6px;
	background: #f3c64d; color: #4a3500;
	font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.pmo-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 2px 4px 2px 0; }
.pmo-card__title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pmo-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.pmo-card__price { font-size: 17px; font-weight: 800; color: var(--pmo-price); }
.pmo-card__price small,
.pmo-ad__price small { font-size: 12.5px; font-weight: 600; color: var(--pmo-muted); }
.pmo-card__price.is-ask { font-size: 14px; color: var(--pmo-muted); font-weight: 700; }
.pmo-card__price.is-free,
.pmo-ad__price.is-free { color: var(--pmo-lake); }
.pmo-card__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: var(--pmo-muted); }
.pmo-card__cond { padding: 0 6px; border-radius: 4px; background: var(--pmo-soft); color: var(--pmo-text); font-weight: 600; }
.pmo-card__foot { margin-top: auto; font-size: 12.5px; color: var(--pmo-muted); }

/* Stronicowanie */
.pmo-pages { margin: 24px 0 0; }
.pmo-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pmo-pages li > .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 10px;
	border: 1px solid var(--pmo-line); border-radius: var(--pmo-radius-sm);
	background: #fff; color: var(--pmo-navy); font-weight: 700; text-decoration: none;
}
.pmo-pages li > .page-numbers.current { background: var(--pmo-navy); border-color: var(--pmo-navy); color: #fff; }
.pmo-pages li > .page-numbers.dots { border: 0; background: none; }

/* Pusto */
.pmo-empty { padding: 32px 16px; text-align: center; background: #fff; border: 1px dashed #c9d1d9; border-radius: var(--pmo-radius); }
.pmo-empty__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--pmo-soft); color: var(--pmo-muted); }
.pmo-empty__icon .pmo-i { width: 26px; height: 26px; }
.pmo-empty__title { margin: 12px 0 4px; font-size: 20px; color: var(--pmo-navy-deep); }
.pmo-empty p { margin: 0 0 8px; color: var(--pmo-muted); }
.pmo-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px !important; }

/* Pływający przycisk na telefonie */
.pmo-fab {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 52px; padding: 0 20px;
	border-radius: 26px;
	background: var(--pmo-green); color: #fff;
	font-weight: 800; font-size: 15.5px; text-decoration: none;
	box-shadow: 0 8px 24px rgba(20, 70, 45, .35);
}
.pmo .pmo-fab:hover { background: var(--pmo-green-dark); color: #fff; }

/* ---------------------------------------------------------
   Ogłoszenie
   --------------------------------------------------------- */
.pmo-ad {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "gal" "head" "side" "desc" "form" "safe";
	gap: 16px;
}
.pmo-ad__gallery { grid-area: gal; }
.pmo-ad__head { grid-area: head; }
.pmo-ad__side { grid-area: side; display: flex; flex-direction: column; gap: 12px; }
.pmo-ad__desc { grid-area: desc; }
.pmo-ad__contact { grid-area: form; }
.pmo-ad__safe { grid-area: safe; }
/* Rady o bezpieczeństwie: na telefonie pod formularzem, na komputerze w bocznej kolumnie */
.pmo-ad__side-safe { display: none; }

/* Galeria */
.pmo-gallery { margin: 0 -16px; }
.pmo-gallery__stage {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #10202f;
	overflow: hidden;
	touch-action: pan-y;
}
.pmo-gallery__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pmo-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .9); color: var(--pmo-navy-deep);
	cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pmo-gallery__nav--prev { left: 10px; }
.pmo-gallery__nav--next { right: 10px; }
.pmo-gallery__nav .pmo-i { width: 22px; height: 22px; }
.pmo-gallery__counter {
	position: absolute; right: 10px; bottom: 10px;
	padding: 3px 9px; border-radius: 12px;
	background: rgba(12, 42, 69, .75); color: #fff; font-size: 13px; font-weight: 700;
}
.pmo-gallery__thumbs { display: flex; gap: 6px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: thin; }
.pmo-gallery__thumb {
	flex: none; width: 68px; height: 52px; padding: 0;
	border: 2px solid transparent; border-radius: 6px; overflow: hidden;
	background: var(--pmo-soft); cursor: pointer; opacity: .7;
}
.pmo-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pmo-gallery__thumb.is-active { border-color: var(--pmo-green); opacity: 1; }

.pmo-ad__head { padding: 16px; background: #fff; border: 1px solid var(--pmo-line); border-radius: var(--pmo-radius); }
.pmo-ad__title { margin: 0 0 6px; font-size: 23px; line-height: 1.25; color: var(--pmo-navy-deep); overflow-wrap: anywhere; }
.pmo-ad__price { display: block; font-size: 26px; font-weight: 800; color: var(--pmo-price); line-height: 1.2; }
.pmo-ad__price.is-ask { font-size: 18px; color: var(--pmo-muted); }
.pmo-ad__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.pmo-tag {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px; border-radius: 6px;
	background: var(--pmo-soft); color: var(--pmo-text);
	font-size: 13.5px; font-weight: 600;
}
.pmo-tag .pmo-i { width: 15px; height: 15px; }
.pmo .pmo-tag--link { text-decoration: none; color: var(--pmo-navy); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.pmo .pmo-tag--link:hover { border-color: var(--pmo-navy); background: #fff; color: var(--pmo-navy); }
.pmo .pmo-tag--link::after { content: "›"; margin-left: 2px; font-weight: 700; }
.pmo-tag--cond { background: var(--pmo-blue-soft); color: var(--pmo-navy); }
.pmo-tag--star { background: #fbefc8; color: #6b4d00; }
.pmo-ad__meta { margin: 10px 0 0; font-size: 13px; color: var(--pmo-muted); }

/* Sprzedający */
.pmo-seller { padding: 16px; background: #fff; border: 1px solid var(--pmo-line); border-radius: var(--pmo-radius); }
.pmo-seller__who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pmo-seller__who p { margin: 0; }
.pmo-seller__avatar {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--pmo-blue-soft); color: var(--pmo-navy);
	font-size: 20px; font-weight: 800;
}
.pmo-seller__name { font-weight: 800; font-size: 17px; }
.pmo-seller__note { font-size: 13.5px; color: var(--pmo-muted); }
.pmo-seller__actions { display: flex; flex-direction: column; gap: 8px; }
.pmo-seller__off { margin: 0; padding: 10px 12px; border-radius: var(--pmo-radius-sm); background: var(--pmo-soft); color: var(--pmo-muted); font-size: 14px; }
.pmo .pmo-revealed { font-size: 17px; letter-spacing: .02em; word-break: break-all; }

.pmo-owner { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 4px; }
.pmo-owner__link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.pmo-owner__link--muted { color: var(--pmo-muted) !important; font-weight: 600; }

.pmo-safe { padding: 14px 16px; border-radius: var(--pmo-radius); background: var(--pmo-blue-soft); font-size: 13.5px; color: var(--pmo-text); }
.pmo-safe__title { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 800; color: var(--pmo-navy); font-size: 14.5px; }
.pmo-safe ul { margin: 0; padding-left: 18px; }
.pmo-safe li { margin: 2px 0; }

/* Opis */
.pmo-ad__desc,
.pmo-ad__contact { padding: 16px; background: #fff; border: 1px solid var(--pmo-line); border-radius: var(--pmo-radius); }
.pmo-ad__text { font-size: 16px; color: var(--pmo-text); overflow-wrap: anywhere; }
.pmo-ad__text p { margin: 0 0 12px; }
.pmo-ad__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--pmo-line-soft); }
.pmo-ad__facts div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--pmo-radius-sm); background: var(--pmo-paper); }
.pmo-ad__facts dt { font-size: 12.5px; color: var(--pmo-muted); }
.pmo-ad__facts dd { margin: 0; font-weight: 700; }
.pmo-ad__fact-price small { display: block; font-weight: 600; color: var(--pmo-muted); }

/* Formularz wiadomości */
.pmo-grid2 { display: grid; gap: 0 14px; }
.pmo-contact__form .pmo-f { margin-bottom: 14px; }
.pmo-contact__form .pmo-btn { margin-top: 4px; }
.pmo-contact__form .pmo-f__hint { margin-top: 10px; }
.pmo-captcha { margin: 0 0 14px; }

/* Podobne */
.pmo-similar { margin-top: 32px; }
.pmo-similar__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.pmo-similar__head .pmo-h2 { margin: 0; }
.pmo-similar__head a { font-size: 14.5px; font-weight: 600; }

.pmo-back { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }

/* ---------------------------------------------------------
   Formularz ogłoszenia
   --------------------------------------------------------- */
.pmo-formhead { margin: 0 0 18px; }
.pmo-formhead__title { margin: 0; font-size: 26px; line-height: 1.2; color: var(--pmo-navy-deep); }
.pmo-formhead__lead { margin: 6px 0 0; color: var(--pmo-muted); }

.pmo-errors {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #efb9ae;
	border-left: 5px solid var(--pmo-alert);
	border-radius: var(--pmo-radius-sm);
	background: #fdf1ee;
	color: #7d2416;
}
.pmo-errors:focus { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }
.pmo-errors__title { margin: 0; font-weight: 800; }
.pmo-errors ul { margin: 8px 0 0; padding-left: 18px; }
.pmo-errors a { color: #7d2416; }

.pmo-step {
	margin: 0 0 14px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius);
}
.pmo-step .pmo-f:last-child { margin-bottom: 0; }
.pmo-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 19px; color: var(--pmo-navy-deep); }
.pmo-step__no {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--pmo-navy); color: #fff; font-size: 15px; font-weight: 800;
}
.pmo-step__opt { font-weight: 400; font-size: 15px; color: var(--pmo-muted); }

/* Zdjęcia */
.pmo-photos { position: relative; }
.pmo-photos__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.pmo-photos__drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 120px; padding: 18px 14px;
	border: 2px dashed #a9b9c8; border-radius: var(--pmo-radius);
	background: #f6f9fb; color: var(--pmo-navy);
	text-align: center; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.pmo-photos__drop:hover,
.pmo-photos__drop.is-over { border-color: var(--pmo-lake); background: #eef6f8; }
.pmo-photos__input:focus-visible + .pmo-photos__drop { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }
.pmo-photos__drop[hidden] { display: none; }
.pmo-photos__title { font-weight: 800; font-size: 16px; }
.pmo-photos__hint { font-size: 13.5px; color: var(--pmo-muted); }
.pmo-photos.has-error .pmo-photos__drop { border-color: #c8402f; background: #fff8f6; }

.pmo-photos__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pmo-photos__list.has-items { margin-bottom: 10px; }
.pmo-photo {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--pmo-radius-sm);
	overflow: hidden;
	background: var(--pmo-soft);
	border: 2px solid transparent;
}
.pmo-photo:first-child { border-color: var(--pmo-green); }
.pmo-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pmo-photo.is-loading img { opacity: .45; }
.pmo-photo__del {
	position: absolute; top: 4px; right: 4px;
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(12, 42, 69, .8); color: #fff; cursor: pointer;
}
.pmo-photo__del .pmo-i { width: 16px; height: 16px; }
.pmo-photo__main {
	position: absolute; left: 4px; right: 4px; bottom: 4px;
	min-height: 28px; padding: 2px 4px; border: 0; border-radius: 6px;
	background: rgba(255, 255, 255, .92); color: var(--pmo-navy);
	font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; line-height: 1.15;
}
.pmo-photo:first-child .pmo-photo__main { background: var(--pmo-green); color: #fff; pointer-events: none; }
.pmo-photo:first-child .pmo-photo__main { font-size: 0; }
.pmo-photo:first-child .pmo-photo__main::after { content: "Zdjęcie główne"; font-size: 11.5px; }
.pmo-photo__size { position: absolute; left: 4px; top: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(12, 42, 69, .75); color: #fff; font-size: 11px; font-weight: 700; }

.pmo-free-note { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 12px; border-radius: var(--pmo-radius-sm); background: var(--pmo-green-soft); color: var(--pmo-price); font-weight: 600; }
.pmo-free-note[hidden] { display: none; }

/* Wybór stanu */
.pmo-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pmo-pill { position: relative; }
.pmo-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmo-pill span {
	display: inline-flex; align-items: center;
	min-height: 44px; padding: 0 16px;
	border: 1px solid #c9d1d9; border-radius: 22px;
	background: #fff; font-weight: 600; cursor: pointer;
}
.pmo-pill input:checked + span { background: var(--pmo-navy); border-color: var(--pmo-navy); color: #fff; }
.pmo-pill input:focus-visible + span { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }

/* Czas emisji */
.pmo-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pmo-period { position: relative; }
.pmo-period input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmo-period__box {
	display: flex; flex-direction: column; gap: 2px;
	height: 100%; padding: 14px;
	border: 2px solid var(--pmo-line); border-radius: var(--pmo-radius);
	background: #fff; cursor: pointer;
}
.pmo-period__box strong { font-size: 17px; color: var(--pmo-navy-deep); }
.pmo-period__box span { font-size: 13.5px; color: var(--pmo-muted); }
.pmo-period input:checked + .pmo-period__box { border-color: var(--pmo-green); background: var(--pmo-green-soft); }
.pmo-period input:focus-visible + .pmo-period__box { outline: 3px solid var(--pmo-lake); outline-offset: 2px; }

.pmo-submit { margin: 18px 0 0; }
.pmo-submit__note { text-align: center; margin-top: 10px; }

/* Ramki w edycji */
.pmo-box {
	margin: 18px 0 0;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius);
}
.pmo-box p { margin: 0 0 12px; }
.pmo-box__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; color: var(--pmo-navy-deep); }
.pmo-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pmo-box--danger { border-color: #efc3bb; }
.pmo-box--danger .pmo-box__title { color: #9d2f20; }
.pmo-box--danger .pmo-check { flex-basis: 100%; }

/* ---------------------------------------------------------
   Dostęp (e-mail + klucz) i strony „gotowe”
   --------------------------------------------------------- */
.pmo-access,
.pmo-done {
	padding: 24px 18px;
	background: #fff;
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius);
	text-align: center;
}
.pmo-access__icon,
.pmo-done__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 50%;
	background: var(--pmo-green-soft); color: var(--pmo-price);
}
.pmo-done__icon .pmo-i { width: 32px; height: 32px; }
.pmo-access__icon { background: var(--pmo-blue-soft); color: var(--pmo-navy); }
.pmo-done__icon--muted { background: var(--pmo-soft); color: var(--pmo-muted); }
.pmo-access__title,
.pmo-done__title { margin: 14px 0 6px; font-size: 23px; line-height: 1.25; color: var(--pmo-navy-deep); }
.pmo-done__lead { margin: 0 0 16px; font-size: 17px; color: var(--pmo-text); }
.pmo-access__ad { margin: 0 0 4px; font-weight: 700; }
.pmo-access__lead { margin: 0 0 18px; color: var(--pmo-muted); }
.pmo-access__form,
.pmo-access__lost { text-align: left; }
.pmo-key-input { font-family: Consolas, Monaco, monospace !important; letter-spacing: .12em; text-transform: uppercase; font-size: 19px !important; }
.pmo-access__lost { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pmo-line-soft); }
.pmo-access__lost summary { cursor: pointer; font-weight: 700; color: var(--pmo-navy); min-height: 32px; }
.pmo-access__lost form { margin-top: 10px; }
.pmo-access__lost p { color: var(--pmo-muted); font-size: 14.5px; }

.pmo-done__card {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 18px; padding: 10px;
	border: 1px solid var(--pmo-line); border-radius: var(--pmo-radius);
	background: var(--pmo-paper); text-align: left;
}
.pmo-done__card p { margin: 0; }
.pmo-done__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--pmo-radius-sm); flex: none; }
.pmo-done__ad { font-weight: 800; overflow-wrap: anywhere; }
.pmo-done__price { font-weight: 800; color: var(--pmo-price); }
.pmo-done__status {
	display: inline-flex !important; align-items: center; gap: 5px; margin-top: 4px !important;
	padding: 2px 8px; border-radius: 6px;
	background: var(--pmo-amber-soft); color: var(--pmo-amber);
	font-size: 13px; font-weight: 700;
}
.pmo-done__steps { margin: 0 0 20px; padding-left: 22px; text-align: left; color: var(--pmo-text); }
.pmo-done__steps li { margin: 6px 0; }
.pmo-done__actions { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.pmo-done .pmo-f__hint { text-align: center; }

/* ---------------------------------------------------------
   Szerzej niż telefon
   --------------------------------------------------------- */
@media (min-width: 600px) {
	.pmo-grid2 { grid-template-columns: 1fr 1fr; }
	.pmo-photos__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pmo-done__actions { flex-direction: row; justify-content: center; }
	.pmo-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pmo-filter__actions { grid-column: 1 / -1; }
	.pmo-gallery { margin: 0; }
	.pmo-gallery__stage { border-radius: var(--pmo-radius); }
	.pmo-gallery__thumbs { padding: 8px 0 0; }
	.pmo-access, .pmo-done { padding: 32px 28px; }
}

@media (min-width: 760px) {
	.pmo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.pmo-card__link { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding: 0; overflow: hidden; }
	.pmo-card__media { border-radius: 0; }
	.pmo-card__body { padding: 0 12px 12px; }
	.pmo-hero { padding: 28px 0 34px; }
	.pmo-hero__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.pmo-hero__title { font-size: 34px; }
	.pmo-hero__add { display: inline-flex; flex: none; }
	.pmo-fab { display: none; }
	.pmo-search { padding: 16px; }
	.pmo-filter { grid-template-columns: 2fr 2fr 1.2fr auto; align-items: end; }
	.pmo-filter__actions { grid-column: auto; }
	.pmo-cats { margin: 0 0 18px; }
	.pmo-cats__list { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; overflow: visible; }
	.pmo-cat__name { font-size: 14px; }
}

@media (min-width: 1000px) {
	.pmo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pmo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pmo-cats__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.pmo-cat { padding: 14px 6px; }
	.pmo-cat__icon { width: 44px; height: 44px; }
	.pmo-cat__icon .pmo-i { width: 24px; height: 24px; }

	.pmo-ad {
		grid-template-columns: minmax(0, 1fr) 340px;
		grid-template-areas:
			"gal side"
			"head side"
			"desc side"
			"form side"
			". side";
		grid-template-rows: auto auto auto auto 1fr;
	}
	.pmo-ad__safe { display: none; }
	.pmo-ad__side-safe { display: block; }
	.pmo-ad {
		gap: 20px 28px;
	}
	.pmo-ad__side { position: sticky; top: 20px; align-self: start; }
	.pmo-ad__head { padding: 20px 22px; }
	.pmo-ad__title { font-size: 28px; }
	.pmo-ad__price { font-size: 30px; }
	.pmo-ad__desc, .pmo-ad__contact { padding: 20px 22px; }
	.pmo-ad__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pmo-step { padding: 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.pmo * { transition: none !important; }
}
