/* Child Theme - Custom CSS File for Buyers to Modify */

/* MZK: kwadratowe logo w nagłówku Modern 04 (wariant 2) — ustawienie szerokości ze skórki nie obejmuje tego nagłówka. */
.rh_var2_logo img {
	width: 80px;
	height: auto;
}

/* ── MZK: podstrony z bloków („O nas”, „Usługi”, „Kontakt”) ────────────────────
   Ikony: klasa bloku mzk-ico-<nazwa> (Font Awesome 5 ładowany przez skórkę). */

.entry-content {
	--mzk-primary: #0054a6;
	--mzk-accent: #1cb2ff;
	--mzk-heading: #1a1a1a;
	--mzk-text: #6b6b6b;
	--mzk-soft: #f2f7fc;
	--mzk-line: #e8eef5;
}

.entry-content .mzk-intro {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}

.entry-content .mzk-intro h2 {
	margin: 0 0 18px;
	color: var(--mzk-heading);
	font-size: 36px;
	line-height: 1.25;
}

.entry-content .mzk-lead {
	margin: 0;
	color: var(--mzk-text);
	font-size: 18px;
	line-height: 1.7;
}

.entry-content .mzk-section {
	margin-bottom: 56px;
}

.entry-content .mzk-section__title {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 14px;
	color: var(--mzk-heading);
	font-size: 26px;
}

.entry-content .mzk-section__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--mzk-accent);
}

.entry-content .mzk-section > p {
	color: var(--mzk-text);
}

/* Kolumny: równa wysokość kart */
.entry-content .mzk-cols {
	gap: 24px;
	margin-bottom: 0;
}

.entry-content .mzk-cols > .wp-block-column {
	display: flex;
}

.entry-content .mzk-cols > .wp-block-column > .wp-block-group {
	flex: 1;
}

/* Karta */
.entry-content .mzk-card {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	border: 1px solid var(--mzk-line);
	border-radius: 6px;
	background: #fff;
	transition: box-shadow .25s ease, transform .25s ease;
}

.entry-content .mzk-card > .wp-block-group__inner-container {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.entry-content .mzk-card:hover {
	box-shadow: 0 8px 26px rgba(0, 84, 166, .1);
	transform: translateY(-2px);
}

.entry-content .mzk-card h3 {
	margin: 0 0 10px;
	color: var(--mzk-heading);
	font-size: 18px;
	line-height: 1.35;
}

.entry-content .mzk-card p {
	margin: 0 0 8px;
	color: var(--mzk-text);
	font-size: 15px;
	line-height: 1.65;
}

.entry-content .mzk-card p:last-child {
	margin-bottom: 0;
}

.entry-content .mzk-card a {
	color: var(--mzk-primary);
	font-weight: 500;
}

.entry-content .mzk-card a:hover {
	color: var(--mzk-accent);
}

/* Duże karty (główne usługi) */
.entry-content .mzk-cols--main .mzk-card {
	padding: 34px 32px;
	border-color: transparent;
	background: var(--mzk-soft);
}

.entry-content .mzk-cols--main .mzk-card h3 {
	font-size: 22px;
}

.entry-content .mzk-cols--main .mzk-card p:last-child {
	margin-top: auto;
	padding-top: 14px;
}

.entry-content .mzk-cols--main .mzk-card p:last-child a::after {
	content: "\f061";
	margin-left: 8px;
	font-family: "Font Awesome 5 Free";
	font-size: 12px;
	font-weight: 900;
}

/* Ikony */
.entry-content [class*="mzk-ico-"]::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-style: normal;
	line-height: 1;
}

.entry-content .mzk-card[class*="mzk-ico-"]::before {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(28, 178, 255, .12);
	color: var(--mzk-primary);
	font-size: 21px;
}

.entry-content .mzk-cols--main .mzk-card[class*="mzk-ico-"]::before {
	width: 64px;
	height: 64px;
	background: var(--mzk-primary);
	color: #fff;
	font-size: 26px;
}

.entry-content .mzk-ico-map::before { content: "\f3c5"; }
.entry-content .mzk-ico-handshake::before { content: "\f2b5"; }
.entry-content .mzk-ico-signature::before { content: "\f573"; }
.entry-content .mzk-ico-home::before { content: "\f015"; }
.entry-content .mzk-ico-key::before { content: "\f084"; }
.entry-content .mzk-ico-chart::before { content: "\f201"; }
.entry-content .mzk-ico-camera::before { content: "\f030"; }
.entry-content .mzk-ico-broom::before { content: "\f51a"; }
.entry-content .mzk-ico-truck::before { content: "\f4df"; }
.entry-content .mzk-ico-phone::before { content: "\f879"; }
.entry-content .mzk-ico-envelope::before { content: "\f0e0"; }
.entry-content .mzk-ico-facebook::before {
	content: "\f39e";
	font-family: "Font Awesome 5 Brands";
	font-weight: 400;
}

/* Zespół */
.entry-content .mzk-person {
	padding: 24px;
	border: 1px solid var(--mzk-line);
	border-radius: 6px;
	background: #fff;
}

.entry-content .mzk-person > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: 110px 1fr;
	align-content: start;
	column-gap: 22px;
}

.entry-content .mzk-person .wp-block-image {
	grid-row: 1 / span 3;
	margin: 0;
}

.entry-content .mzk-person .wp-block-image img {
	width: 110px;
	height: 110px;
	object-fit: cover;
}

.entry-content .mzk-person h3 {
	margin: 0;
	font-size: 20px;
}

.entry-content .mzk-person h3 a {
	color: var(--mzk-heading);
}

.entry-content .mzk-person h3 a:hover {
	color: var(--mzk-primary);
}

.entry-content .mzk-person p {
	margin: 0;
	color: var(--mzk-text);
	font-size: 15px;
	line-height: 1.6;
}

.entry-content .mzk-person .mzk-person__role {
	margin: 2px 0 10px;
	color: var(--mzk-accent);
	font-size: 14px;
}

/* Obszar działania */
.entry-content ul.mzk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content ul.mzk-tags li {
	margin: 0;
	padding: 8px 16px;
	border-radius: 30px;
	background: var(--mzk-soft);
	color: var(--mzk-heading);
	font-size: 15px;
}

.entry-content ul.mzk-tags li::before {
	display: none;
}

.entry-content ul.mzk-tags li:first-child {
	background: var(--mzk-primary);
	color: #fff;
}

/* Jak pracujemy: numery z licznika kolumn */
.entry-content .mzk-steps {
	gap: 24px;
	counter-reset: mzk-step;
}

.entry-content .mzk-steps > .wp-block-column {
	position: relative;
	counter-increment: mzk-step;
}

.entry-content .mzk-steps > .wp-block-column::before {
	content: counter(mzk-step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border: 2px solid var(--mzk-accent);
	border-radius: 50%;
	color: var(--mzk-primary);
	font-size: 18px;
	font-weight: 500;
}

.entry-content .mzk-steps > .wp-block-column:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 22px;
	right: -12px;
	left: 56px;
	height: 2px;
	background: #e1ebf5;
}

.entry-content .mzk-steps h3 {
	margin: 0 0 6px;
	color: var(--mzk-heading);
	font-size: 17px;
}

.entry-content .mzk-steps p {
	margin: 0;
	color: var(--mzk-text);
	font-size: 15px;
	line-height: 1.6;
}

/* Wezwanie do kontaktu */
.entry-content .mzk-cta {
	padding: 40px 44px;
	border-radius: 8px;
	background: var(--mzk-primary);
}

.entry-content .mzk-cta > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 24px;
}

.entry-content .mzk-cta h2 {
	grid-column: 1;
	margin: 0 0 8px;
	color: #fff;
	font-size: 26px;
}

.entry-content .mzk-cta p {
	grid-column: 1;
	margin: 0;
	color: rgba(255, 255, 255, .85);
}

.entry-content .mzk-cta .wp-block-buttons {
	grid-column: 2;
	grid-row: 1 / span 2;
	gap: 12px;
	margin: 0;
}

.entry-content .mzk-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border: 2px solid #fff;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.entry-content .mzk-cta .wp-block-button[class*="mzk-ico-"]::before {
	display: none;
}

.entry-content .mzk-cta .wp-block-button[class*="mzk-ico-"] .wp-block-button__link::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
}

.entry-content .mzk-cta .mzk-ico-phone .wp-block-button__link::before { content: "\f879"; }
.entry-content .mzk-cta .mzk-ico-envelope .wp-block-button__link::before { content: "\f0e0"; }

.entry-content .mzk-btn-light .wp-block-button__link {
	background: #fff;
	color: var(--mzk-primary);
}

.entry-content .mzk-btn-light .wp-block-button__link:hover {
	border-color: var(--mzk-accent);
	background: var(--mzk-accent);
	color: #fff;
}

.entry-content .mzk-btn-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, .7);
	background: transparent;
	color: #fff;
}

.entry-content .mzk-btn-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--mzk-primary);
}

/* Kontakt: karty danych i nagłówek nad formularzem ze skórki */
.entry-content .mzk-cols--contact {
	margin-bottom: 56px;
}

.entry-content .mzk-cols--contact .mzk-card {
	align-items: center;
	text-align: center;
}

.entry-content .mzk-cols--contact .mzk-card {
	padding: 26px 16px;
}

.entry-content .mzk-cols--contact .mzk-card p {
	font-size: 14px;
}

.entry-content .mzk-section--form {
	margin-bottom: 0;
}

/* Formularz ze skórki na stronie Kontakt: cała szerokość, wyrównany do treści, pola w jednym rzędzie */
.rh_page__contact .rh_contact__form {
	flex: 1 1 100%;
	padding: 0;
}

.rh_page__contact .rh_contact__form .contact-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
}

.rh_page__contact .rh_contact__form .contact-form > * {
	grid-column: 1 / -1;
}

.rh_page__contact .rh_contact__form .contact-form > .rh_contact__input_text {
	grid-column: auto;
}

.rh_page__contact .rh_contact__form .rh_contact__submit {
	justify-self: start;
}

.rh_page__contact .rh_contact__map {
	padding: 0;
}

@media (max-width: 1023px) {
	.entry-content .mzk-steps > .wp-block-column::after {
		display: none;
	}
}

@media (max-width: 781px) {
	.entry-content .mzk-intro h2 {
		font-size: 28px;
	}

	.entry-content .mzk-lead {
		font-size: 16px;
	}

	.entry-content .mzk-person {
		padding: 20px;
	}

	.entry-content .mzk-person > .wp-block-group__inner-container {
		grid-template-columns: 80px 1fr;
	}

	.entry-content .mzk-person .wp-block-image img {
		width: 80px;
		height: 80px;
	}

	.entry-content .mzk-cta {
		padding: 30px 24px;
	}

	.entry-content .mzk-cta > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}

	.rh_page__contact .rh_contact__form .contact-form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	/* Skórka zeruje tu boczny margines formularza, a treść nad nim ma 25 px — wyrównanie. */
	.rh_page__contact .rh_contact__wrap {
		padding-right: 25px;
		padding-left: 25px;
	}

	.entry-content .mzk-cta .wp-block-buttons {
		grid-column: 1;
		grid-row: auto;
	}
}

/* MZK: biała karta treści nachodzi na baner (wcześniej robiła to wyszukiwarka, wyłączona na podstronach).
   Tylko zwykłe strony i Kontakt — inne szablony (agenci, listy ofert, porównanie) mają pod banerem inny układ. */
@media (min-width: 768px) {
	body.page-template-default .rh_banner + .rh_section.rh_wrap--topPadding,
	body.page-template-templatescontact-php .rh_banner + .rh_section.rh_wrap--topPadding {
		padding-top: 0;
	}

	body.page-template-default .rh_banner + .rh_section > .rh_page,
	body.page-template-templatescontact-php .rh_banner + .rh_section > .rh_page {
		position: relative;
		z-index: 2;
		margin-top: -25px;
	}

	/* Cień na białej karcie, nie na przezroczystym kontenerze (ten sięga aż do stopki). */
	body.page-template-default .rh_banner + .rh_section > .rh_page > .rh_blog,
	body.page-template-templatescontact-php .rh_banner + .rh_section > .rh_page > .rh_page__contact {
		box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
	}
}

@media (min-width: 1140px) {
	body.page-template-default .rh_banner + .rh_section > .rh_page,
	body.page-template-templatescontact-php .rh_banner + .rh_section > .rh_page {
		margin-top: -40px;
	}
}

/* MZK: Kupno / Wynajem (archiwum statusu oferty) — bez niebieskiego banera (zabierał miejsce).
   Tytuł strony przenosi na lewo, obok licznika ofert, js/child-custom.js. Wyszukiwarka zostaje ze swoim banerem. */
body.tax-property-status .rh_banner {
	display: none;
}

body.tax-property-status .rh_page__head .head-left {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 20px;
}

body.tax-property-status .rh_page__head .mzk-status-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	color: #1a3f6b;
}

@media (min-width: 768px) {
	body.page-template-properties-search .rh_banner .rh_banner__wrap {
		padding-bottom: 30px;
	}
}

/* MZK: pusty wynik (ikona domu z tabliczką, tekst, przyciski) — patrz realhomes_print_no_result() w functions.php. */
.mzk-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px;
	width: 100%;
	box-sizing: border-box;
}

.mzk-empty__icon {
	max-width: 100%;
	height: auto;
	margin-bottom: 24px;
}

.mzk-empty__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.3;
	color: #1a3f6b;
}

.mzk-empty__text {
	margin: 0 0 28px;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.6;
	color: #5d6b7a;
}

.mzk-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.mzk-empty__btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid #0054a6;
	border-radius: 6px;
	background: #0054a6;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.mzk-empty__btn:hover,
.mzk-empty__btn:focus {
	background: #1a3f6b;
	border-color: #1a3f6b;
	color: #fff;
}

.mzk-empty__btn--ghost {
	background: transparent;
	color: #0054a6;
}

.mzk-empty__btn--ghost:hover,
.mzk-empty__btn--ghost:focus {
	background: #0054a6;
	border-color: #0054a6;
	color: #fff;
}

/* MZK: kategorie na stronie głównej — małe karty z ikonami zamiast zdjęć (widgety rhea-property-taxonomy z klasą mzk-cat). */
.mzk-cat .rhea-property-taxonomy-widget-wrapper {
	height: auto !important;
	min-height: 0 !important;
	margin-bottom: 0 !important;
	background: #fff !important;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}

.mzk-cat .rhea-property-taxonomy-widget-wrapper:hover {
	transform: translateY(-3px);
	border-color: #0054a6;
	box-shadow: 0 8px 22px rgba(0, 84, 166, .12);
}

.mzk-cat .rhea-property-taxonomy-widget-content-overlay,
.mzk-cat .rhea-property-taxonomy-widget-wrapper::before {
	display: none !important;
}

.mzk-cat .rhea-property-taxonomy-widget-inner {
	position: static !important;
	display: flex;
	flex-direction: column;
	align-items: center !important;
	justify-content: flex-start !important;
	padding: 24px 12px 20px;
	text-align: center;
}

.mzk-cat .rhea-property-taxonomy-widget-inner::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	background-color: #0054a6;
	-webkit-mask: var(--mzk-cat-icon) center / contain no-repeat;
	mask: var(--mzk-cat-icon) center / contain no-repeat;
}

.mzk-cat .rhea-property-taxonomy-term-title {
	align-self: center !important;
	font-size: 18px !important;
	line-height: 1.3 !important;
	color: #1a3f6b !important;
}

.mzk-cat .rhea-property-taxonomy-property-counter,
.mzk-cat .rhea-property-taxonomy-property-counter * {
	color: #5d6b7a !important;
}

.mzk-cat--mieszkanie {
	--mzk-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='5' width='28' height='38' rx='2'/%3E%3Cpath d='M17 13h4M27 13h4M17 21h4M27 21h4M17 29h4M27 29h4M20 43v-8h8v8'/%3E%3C/svg%3E");
}

.mzk-cat--dom {
	--mzk-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 24 24 8l19 16'/%3E%3Cpath d='M11 21v22h26V21'/%3E%3Cpath d='M20 43V30h8v13'/%3E%3C/svg%3E");
}

.mzk-cat--dzialka {
	--mzk-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 42h40'/%3E%3Ccircle cx='32' cy='17' r='9'/%3E%3Cpath d='M32 26v16M32 33l-5-4M32 30l5-4'/%3E%3Cpath d='M8 42V30M14 42V30M20 42V30M6 33h16'/%3E%3C/svg%3E");
}

.mzk-cat--lokal {
	--mzk-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 24v19h32V24'/%3E%3Cpath d='M4 15 9 6h30l5 9c0 3-2.5 5-5.5 5S33 18 33 15c0 3-2.5 5-5.5 5S22 18 22 15c0 3-2.5 5-5.5 5S11 18 11 15c0 3-2.5 5-5.5 5S4 18 4 15z'/%3E%3Cpath d='M19 43V31h10v12'/%3E%3C/svg%3E");
}

.mzk-cat--wynajem {
	--mzk-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15' cy='24' r='9'/%3E%3Ccircle cx='15' cy='24' r='2.5'/%3E%3Cpath d='M24 24h19M36 24v8M43 24v6'/%3E%3C/svg%3E");
}
