/* Porównywarka ulubionych mieszkań (/ulubione/). Offteam 2026-11. */

/* Checkbox "porównaj" */
.favorite-compare__check {
	align-items: center;
	color: #02589d;
	cursor: pointer;
	display: inline-flex;
	font: 400 16px/1 Lato, sans-serif;
	gap: 12px;
	margin: 0;
	user-select: none;
}
.favorite-compare__check input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}
.favorite-compare__check i {
	border: 1.5px solid currentColor;
	border-radius: 4px;
	display: inline-block;
	flex: 0 0 auto;
	height: 18px;
	position: relative;
	width: 18px;
}
.favorite-compare__check input:checked + i::after {
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	content: "";
	height: 10px;
	left: 5px;
	position: absolute;
	top: 1px;
	transform: rotate(45deg);
	width: 5px;
}
.favorite-compare__check input:focus-visible + i {
	outline: 2px solid #53a3e4;
	outline-offset: 2px;
}

/* Pasek na górze kafelka */
.flat-tile.has-compare .flat-tile__compare {
	align-self: stretch;
	background-color: #f5f9fc;
	justify-content: flex-end;
	padding: 20px 32px 0;
	transition: background-color .3s, color .3s;
}
.flat-tile.is-compared .flat-tile__compare {
	background-color: #53a3e4;
	color: #fff;
	padding-bottom: 20px;
}

/* Lista */
.favorite-flats__list .flat-row__compare {
	font-size: 13px;
	gap: 6px;
	margin-top: 6px;
}
.favorite-flats__list tr.is-compared td {
	background-color: #eaf4fd;
}

/* Przycisk Porównaj */
.favorite-compare__bar {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 60px 0 20px;
}
.favorite-compare__bar[hidden] {
	display: none;
}
.favorite-compare__open {
	align-items: center;
	background-color: #53a3e4;
	border: 0;
	border-radius: 40px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: 700 22px/1 Lato, sans-serif;
	gap: 60px;
	padding: 16px 40px;
	transition: background-color .3s, opacity .3s;
}
.favorite-compare__open:hover:not(:disabled) {
	background-color: #02589d;
}
.favorite-compare__open:disabled {
	cursor: not-allowed;
	opacity: .45;
}
.favorite-compare__hint {
	color: #53a3e4;
	font: 400 15px/1.4 Lato, sans-serif;
	margin: 0;
	text-align: center;
}
.favorite-compare__hint.is-warning {
	color: #c90c0f;
}

/* Widok porównania */
.favorite-compare {
	padding: 0 40px;
}
.favorite-compare[hidden],
.flats__space[hidden] {
	display: none;
}
.favorite-compare.is-loading .favorite-compare__content {
	opacity: .4;
	pointer-events: none;
}
.favorite-compare__toolbar {
	display: flex;
	justify-content: space-between;
	margin-bottom: 48px;
}
.favorite-compare__back {
	border: 1px solid #02589d;
	border-radius: 6px;
	color: #02589d;
	font: 700 16px/1 Lato, sans-serif;
	min-width: 165px;
	padding: 12px 30px;
	text-align: center;
}
.favorite-compare__back:hover {
	background-color: #02589d;
	color: #fff;
}
.favorite-compare__pdf--top {
	background-color: #02589d;
	border: 1px solid #02589d;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font: 700 16px/1 Lato, sans-serif;
	min-width: 165px;
	padding: 12px 30px;
}
.favorite-compare__pdf--top:hover:not(:disabled) {
	background-color: #53a3e4;
	border-color: #53a3e4;
}
.favorite-compare__pdf:disabled {
	cursor: progress;
	opacity: .6;
}
.favorite-compare__bar--pdf {
	padding-top: 50px;
}
.favorite-compare__empty {
	color: #02589d;
	padding: 40px 0;
	text-align: center;
}
.favorite-compare__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.flats .favorite-compare__table {
	border-collapse: collapse;
	min-width: calc(200px + var(--compare-cols, 3) * 240px);
	table-layout: fixed;
	width: 100%;
}
.flats .favorite-compare__table th,
.flats .favorite-compare__table td {
	border: 0;
	color: #02589d;
	font: 400 16px/1.4 Lato, sans-serif;
	padding: 14px 20px;
	text-align: center;
	vertical-align: middle;
}
.flats .favorite-compare__table .favorite-compare__label {
	background-color: #fff;
	font-weight: 700;
	left: 0;
	padding-left: 0;
	position: sticky;
	text-align: left;
	width: 22%;
	z-index: 1;
}
.flats .favorite-compare__table thead .favorite-compare__label {
	background-color: transparent;
}
.flats .favorite-compare__table tbody tr {
	border-top: 1px solid #02589d;
}
.flats .favorite-compare__table tbody tr:last-child {
	border-bottom: 1px solid #02589d;
}
.flats .favorite-compare__table td,
.favorite-compare__flat {
	background-color: #f5f9fc;
	border-left: 1px solid #fff !important;
}

/* Nagłówek kolumny */
.favorite-compare__flat {
	padding: 26px 26px 20px !important;
	vertical-align: top !important;
}
.favorite-compare__flat-head {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 20px;
	text-align: left;
}
.favorite-compare__flat-head h4 {
	color: #02589d;
	font: 800 22px/1.15 "Bricolage Grotesque", sans-serif;
	margin: 0;
}
.favorite-compare__flat-head h4 span {
	color: #53a3e4;
}
.favorite-compare__remove {
	background: none;
	border: 0;
	color: #02589d;
	cursor: pointer;
	flex: 0 0 auto;
	line-height: 0;
	padding: 4px;
}
.favorite-compare__remove:hover {
	color: #c90c0f;
}
.favorite-compare__plan {
	display: block;
}
.favorite-compare__plan img {
	height: 260px;
	mix-blend-mode: multiply;
	object-fit: contain;
	width: 100%;
}

/* Wiersze */
.flats .favorite-compare__table td a.flat-svg-lightbox {
	display: block;
}
/* Rysunki (położenie, rzut kondygnacji, przekrój): równa szerokość = szerokość położenia budynku, wysokość z proporcji. */
.flats .favorite-compare__table td img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 320px;
	mix-blend-mode: multiply;
	width: 100%;
}
.flats .favorite-compare__row--status .flat-tile__status {
	color: #02589d;
	display: inline-block;
	padding-left: 26px;
}
.flats .favorite-compare__row--status .flat-tile__status::before {
	height: 12px;
	width: 12px;
}
.flats .favorite-compare__row--spaces span,
.flats .favorite-compare__table .flat-outside-spaces__item {
	display: block;
	white-space: nowrap;
}
.flats .favorite-compare__row--spaces em,
.flats .favorite-compare__table .flat-outside-spaces__area {
	color: #53a3e4;
	font-style: normal;
}
.flats .favorite-compare__table .flat-outside-spaces__label {
	color: #02589d;
}
.flats .favorite-compare__table .flat-outside-spaces__item--garden .flat-outside-spaces__label {
	color: #66a13e;
}
.flats .favorite-compare__row--price_m td {
	font: 400 30px/1.2 "Bricolage Grotesque", sans-serif;
}
.flats .favorite-compare__row--price td {
	color: #c90c0f;
	font: 400 32px/1.2 "Bricolage Grotesque", sans-serif;
}

@media (max-width: 991px) {
	.favorite-compare {
		padding: 0 20px;
	}
	.favorite-compare__toolbar {
		margin-bottom: 24px;
	}
	.flats .favorite-compare__table {
		min-width: calc(110px + var(--compare-cols, 3) * 180px);
	}
	.flats .favorite-compare__table .favorite-compare__label {
		font-size: 14px;
		padding-right: 10px;
		width: 110px;
	}
	.favorite-compare__flat-head h4 {
		font-size: 18px;
	}
	.favorite-compare__plan img {
		height: 180px;
	}
	.flats .favorite-compare__row--price_m td {
		font-size: 22px;
	}
	.flats .favorite-compare__row--price td {
		font-size: 24px;
	}
	.favorite-compare__open {
		font-size: 18px;
		gap: 30px;
		padding: 12px 30px;
	}
}

/* Nagłówek kolumny wyśrodkowany nad rysunkiem; X przypięty w prawym górnym rogu (nie przesuwa tytułu). */
.flats .favorite-compare__flat .favorite-compare__flat-head {
	display: block;
	padding: 0 30px;
	position: relative;
	text-align: center;
}
.flats .favorite-compare__flat .favorite-compare__flat-head h4 {
	margin: 0 auto;
	text-align: center;
	width: auto;
}
.flats .favorite-compare__flat .favorite-compare__remove {
	position: absolute;
	right: -10px;
	top: -4px;
}

/* Limit 12 mieszkań: pozostałe checkboxy wyszarzone (podpowiedź w atrybucie title). */
.favorite-compare__check.is-disabled {
	cursor: not-allowed;
	opacity: .4;
}

/* Do 12 mieszkań: kolumna etykiet stała 200 px (nie % szerokości tabeli), ciaśniejsze nagłówki kolumn. */
@media (min-width: 992px) {
	.flats .favorite-compare__table .favorite-compare__label {
		width: 200px;
	}
}
.flats .favorite-compare__table .favorite-compare__flat {
	padding: 22px 14px 18px !important;
}
.flats .favorite-compare__flat .favorite-compare__flat-head {
	padding: 0 24px;
}
.flats .favorite-compare__flat .favorite-compare__remove {
	right: -6px;
}

/* Strona ulubionych: licznik po lewej, przełącznik widoku na środku, "Usuń wszystkie" po prawej. */
@media (min-width: 992px) {
	.favorite-flats .flats__header {
		align-items: center;
		display: grid;
		gap: 20px;
		grid-template-columns: 1fr auto 1fr;
	}
	.favorite-flats .flats__header .favorite-flats__views {
		justify-self: center;
	}
	.favorite-flats .flats__header .favorite-flats__actions {
		justify-self: end;
	}
}

/* Porównanie: przewijanie przeciąganiem + ciemnoniebieski pasek przewijania. */
.flats .favorite-compare__scroll.is-draggable {
	cursor: grab;
}
.flats .favorite-compare__scroll.is-draggable a,
.flats .favorite-compare__scroll.is-draggable img {
	-webkit-user-drag: none;
}
.flats .favorite-compare__scroll.is-dragging,
.flats .favorite-compare__scroll.is-dragging a {
	cursor: grabbing;
	user-select: none;
}
.flats .favorite-compare__scroll {
	padding-bottom: 6px;
	scrollbar-color: #02589d #dde8f2;
	scrollbar-width: auto;
}
.flats .favorite-compare__scroll::-webkit-scrollbar {
	height: 12px;
}
.flats .favorite-compare__scroll::-webkit-scrollbar-track {
	background: #dde8f2;
	border-radius: 6px;
}
.flats .favorite-compare__scroll::-webkit-scrollbar-thumb {
	background: #02589d;
	border-radius: 6px;
}

/* Mobile: pomieszczenia i balkony łamią się w kolumnie (wcześniej nowrap wychodził na sąsiednią kolumnę). */
@media (max-width: 991px) {
	.flats .favorite-compare__row--spaces span,
	.flats .favorite-compare__table .flat-outside-spaces__item {
		font-size: 14px;
		line-height: 1.35;
		margin-bottom: 4px;
		white-space: normal;
	}
}
/* iOS Safari zamienia ceny (np. "1 110 885") na linki telefoniczne - bez podkreślenia i zmiany koloru. */
.flats .favorite-compare__table a[x-apple-data-detectors],
.flats .favorite-compare__table a[href^="tel:"] {
	color: inherit !important;
	font: inherit !important;
	pointer-events: none;
	text-decoration: none !important;
}
/* Mobile: kolumna etykiet (Status, Położenie budynku...) przewija się w poziomie razem z mieszkaniami (bez przyklejenia). */
@media (max-width: 991px) {
	.flats .favorite-compare__table .favorite-compare__label {
		position: static;
	}
}
/* Lista na mobile: checkbox "porównaj" na początku wiersza (kolumna z sercem jest tam ukryta). */
.favorite-flats__list .flat-row__compare--mobile {
	display: none;
}
@media (max-width: 991px) {
	.favorite-flats__list .flat-row__compare--mobile {
		display: inline-flex;
		margin-right: 10px;
		vertical-align: middle;
	}
	.favorite-flats__list .flat-row__compare--mobile span {
		clip: rect(0 0 0 0);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}
	.favorite-flats__list .flat-row__compare--mobile i {
		height: 20px;
		width: 20px;
	}
	.favorite-flats__list .flat-row__compare--mobile input:checked + i::after {
		left: 6px;
		top: 2px;
	}
}
