/* ==========================================================================
   NA SWOIM NIERUCHOMOŚCI — main stylesheet
   Sections: Tokens / Reset / Typography / Layout / Buttons / Forms /
   Header / Hero / Stats / Section heading / Property cards / Services /
   About / Owner CTA / Partners / Footer / Archive+Filters / Single property /
   Agent / Blog / Favorites / Utilities / Responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	/* Brand colours sampled directly from the client's real logo files
	   (sygnet.svg / logo-poziom.svg): green #5f9c71, amber #ffa000, ink #291f1f.
	   --color-primary-light is the exact logo green; --color-primary/-dark are
	   deepened tones of that same hue so button/text contrast stays accessible. */
	--color-primary: #3A6B4C;
	--color-primary-dark: #294E37;
	--color-primary-light: #5F9C71;
	--color-primary-tint: #EAF2EC;
	--color-primary-tint-2: #D8E9DE;
	--color-accent: #FFA000;
	--color-accent-dark: #DB8A00;
	--color-ink: #291F1F;
	--color-heading: #271F1E;
	--color-body: #5C645F;
	--color-muted: #8A928C;
	--color-border: #E6E9E4;
	--color-border-soft: #EEF1ED;
	--color-bg: #FFFFFF;
	--color-bg-soft: #F7F8F5;
	--color-bg-tint: #F4F7F4;
	--color-footer-bg: #17211B;
	--color-footer-text: #B9C4BC;
	--color-footer-heading: #FFFFFF;
	--color-footer-border: #263124;
	--color-white: #FFFFFF;
	--color-danger: #C6462E;
	--color-success: #3A6B4C;

	--font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 22px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 3px rgba(20, 30, 24, .07);
	--shadow-md: 0 10px 24px -6px rgba(20, 30, 24, .12);
	--shadow-lg: 0 24px 56px -12px rgba(16, 26, 20, .22);
	--shadow-card-hover: 0 20px 40px -10px rgba(20, 30, 24, .18);

	--container-width: 1256px;
	--container-pad: 24px;
	--header-height: 92px;

	--ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	font-family: var(--font-sans);
	color: var(--color-body);
	background: var(--color-bg);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-serif); color: var(--color-heading); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
::selection { background: var(--color-primary-tint-2); color: var(--color-primary-dark); }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}
.section { padding-block: 88px; }
.section--soft { background: var(--color-bg-soft); }
.section--tint { background: var(--color-primary-tint); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 12px;
}
.section-heading { font-size: 34px; margin: 0; max-width: 620px; }
.section-lead { color: var(--color-body); font-size: 16px; margin-top: 12px; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 16px 28px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
	white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-light); }
.btn-outline { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn-outline-dark { background: transparent; color: var(--color-heading); border-color: var(--color-border); }
.btn-outline-dark:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-tint); }
.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--color-primary); }
.btn-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-white);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(20,30,24,.08); border-bottom-color: var(--color-border-soft); }
.site-header__inner {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-pad);
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
/* Header/mobile-nav: icon + wordmark, sized to the ~2.3:1 height ratio measured from
   the client's original combined lockup (logo-poziom.svg) — the bird mark's neck/tail
   give it much more vertical reach than the wordmark's cap-height. The footer uses the
   wordmark alone (see .footer__brand below) — the icon lives in the favicon there. */
.site-logo { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-logo__mark { width: 68px; height: 68px; flex-shrink: 0; }
.site-logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.site-logo__wordmark-img { height: 30px; width: auto; display: block; }
/* No light-coloured export of the wordmark exists, so on dark backgrounds (footer)
   its baked-in dark fill is flipped to white with a filter — still the real artwork. */
.site-logo__wordmark-img--invert { filter: brightness(0) invert(1); }
.site-logo--custom img { height: 50px; width: auto; }

.primary-nav { display: flex; }
.primary-nav ul { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 11px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-ink);
	border-radius: var(--radius-sm);
	position: relative;
	transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav a:hover { background: var(--color-bg-soft); }
.primary-nav li.current-menu-item > a,
.primary-nav a.is-active {
	color: var(--color-primary);
	background: var(--color-primary-tint);
	font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.header-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 9px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-ink);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.header-action:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.header-action svg { width: 19px; height: 19px; }
.header-action__count {
	position: relative;
	top: -8px;
	right: 2px;
	background: var(--color-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}
.header-cta { margin-left: 6px; }
.header-cta.btn { padding: 12px 22px; font-size: 14.5px; }
.header-cta__icon { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.nav-toggle:hover { background: var(--color-bg-soft); }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(20,30,24,.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__panel {
	position: absolute;
	top: 0; right: 0;
	width: min(360px, 88vw);
	height: 100%;
	background: var(--color-white);
	padding: 20px;
	transform: translateX(100%);
	transition: transform .3s var(--ease);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-nav__close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.mobile-nav__close:hover { background: var(--color-bg-soft); }
.mobile-nav a { display: block; padding: 14px 12px; font-size: 16px; font-weight: 500; color: var(--color-ink); border-radius: var(--radius-sm); }
.mobile-nav a:hover, .mobile-nav li.current-menu-item > a { background: var(--color-primary-tint); color: var(--color-primary); }
.mobile-nav__actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-soft); display: flex; flex-direction: column; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: var(--color-white);
	overflow: hidden;
	min-height: 640px;
	display: flex;
	align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(12,20,15,.82) 0%, rgba(12,20,15,.62) 30%, rgba(12,20,15,.28) 55%, rgba(12,20,15,.15) 75%),
		linear-gradient(0deg, rgba(10,16,12,.35), rgba(10,16,12,0) 40%);
}
.hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--container-width);
	margin-inline: auto;
	padding: 90px var(--container-pad) 56px;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 40px;
	align-items: center;
}
.hero__content { max-width: 460px; }
.hero__title { font-size: 50px; color: var(--color-white); margin-bottom: 20px; line-height: 1.12; }
.hero__lead { font-size: 17px; color: rgba(255,255,255,.86); max-width: 400px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Search card */
.search-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 30px;
	color: var(--color-ink);
}
.search-card__title { font-size: 19px; margin-bottom: 20px; color: var(--color-heading); }
.search-field { margin-bottom: 16px; }
.search-field label { display: block; font-size: 13px; font-weight: 600; color: var(--color-heading); margin-bottom: 7px; }
.search-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-wrap { position: relative; }
.select-wrap select {
	width: 100%;
	appearance: none;
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 12px 38px 12px 14px;
	font-size: 14.5px;
	color: var(--color-ink);
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.select-wrap select:focus { border-color: var(--color-primary); background: var(--color-white); }
.select-wrap::after {
	content: "";
	position: absolute;
	right: 14px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--color-muted);
	border-bottom: 2px solid var(--color-muted);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
	transition: transform .2s var(--ease);
}
.select-wrap.is-open::after { transform: translateY(-35%) rotate(-135deg); }

/* Custom listbox: progressively replaces the native <select> so the open dropdown can
   actually be styled (browsers render native <option> lists themselves, unstylable). */
.visually-hidden-select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.custom-select__trigger {
	display: block;
	width: 100%;
	text-align: left;
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 12px 38px 12px 14px;
	font-family: var(--font-sans);
	font-size: 14.5px;
	color: var(--color-ink);
	cursor: pointer;
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.custom-select__trigger:hover { border-color: var(--color-primary); }
.select-wrap.is-open .custom-select__trigger,
.custom-select__trigger:focus-visible {
	border-color: var(--color-primary);
	background: var(--color-white);
	outline: none;
	box-shadow: 0 0 0 3px var(--color-primary-tint-2);
}
.custom-select__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	background: var(--color-white);
	border: 1px solid var(--color-border-soft);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	padding: 6px;
}
.custom-select__option {
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14.5px;
	color: var(--color-ink);
	cursor: pointer;
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.custom-select__option:hover,
.custom-select__option:focus {
	background: var(--color-primary-tint);
	color: var(--color-primary-dark);
	outline: none;
}
.custom-select__option.is-selected {
	background: var(--color-primary);
	color: var(--color-white);
	font-weight: 600;
}
.text-input {
	width: 100%;
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	font-size: 14.5px;
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.text-input:focus { border-color: var(--color-primary); background: var(--color-white); }
.search-card .btn-primary { margin-top: 6px; }
.search-card__advanced { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--color-primary); }
.search-card__advanced:hover { text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { background: var(--color-white); border-bottom: 1px solid var(--color-border-soft); }
.stats__grid {
	max-width: var(--container-width);
	margin-inline: auto;
	padding: 40px var(--container-pad);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.stat-item { display: flex; align-items: center; gap: 16px; }
.stat-item__icon {
	width: 52px; height: 52px;
	flex-shrink: 0;
	border-radius: 999px;
	background: linear-gradient(155deg, var(--color-primary-tint) 0%, var(--color-primary-tint-2) 100%);
	border: 1px solid rgba(31, 77, 58, .08);
	box-shadow: 0 6px 16px -8px rgba(31, 77, 58, .35);
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat-item:hover .stat-item__icon { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(31, 77, 58, .4); }
.stat-item__icon svg { width: 23px; height: 23px; stroke-width: 1.6; }
.stat-item__value { font-family: var(--font-serif); font-size: 29px; font-weight: 700; color: var(--color-heading); line-height: 1; letter-spacing: -.01em; }
.stat-item__label { font-size: 13.5px; color: var(--color-muted); margin-top: 5px; }

/* ---------- Property cards ---------- */
/* auto-fill so the grid naturally drops from 4 to 3 columns when a filters sidebar
   narrows the available width (e.g. /oferty/), instead of squeezing 4 cramped cards. */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 24px; }
.property-grid--3 { grid-template-columns: repeat(3, 1fr); }
.property-card {
	background: var(--color-white);
	border: 1px solid var(--color-border-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
	display: flex;
	flex-direction: column;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.property-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-soft); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.06); }
.property-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.badge {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 5px 11px;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
}
.badge--exclusive { background: var(--color-accent); }
.badge--transaction { background: rgba(20,30,24,.72); backdrop-filter: blur(4px); }
.property-card__fav {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 1;
	width: 34px; height: 34px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
	transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.property-card__fav:hover { transform: scale(1.08); }
.property-card__fav svg { width: 17px; height: 17px; stroke: var(--color-ink); fill: none; transition: fill .2s var(--ease), stroke .2s var(--ease); }
.property-card__fav.is-active svg,
.fav-toggle.is-active svg { fill: var(--color-accent); stroke: var(--color-accent); }
.property-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-card__title { font-family: var(--font-sans); font-size: 16.5px; font-weight: 700; color: var(--color-heading); }
.property-card__title a:hover { color: var(--color-primary); }
.property-card__location { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--color-muted); }
.property-card__location svg { width: 14px; height: 14px; flex-shrink: 0; }
.property-card__meta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; border-top: 1px solid var(--color-border-soft); font-size: 13px; color: var(--color-body); }
.property-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.property-card__meta svg { width: 15px; height: 15px; color: var(--color-muted); }
.property-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.property-card__price { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.property-card__footer > div:first-child { min-width: 0; overflow: hidden; }
.property-card__price-m2 { font-size: 12px; color: var(--color-muted); font-weight: 400; margin-left: 6px; font-family: var(--font-sans); }
.property-card__link { font-size: 13px; font-weight: 600; color: var(--color-heading); display: inline-flex; align-items: center; gap: 4px; }
.property-card__link:hover { color: var(--color-primary); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.service-item__icon {
	width: 52px; height: 52px;
	border-radius: var(--radius-md);
	background: var(--color-primary-tint);
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.service-item__icon svg { width: 25px; height: 25px; }
.service-item__title { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--color-heading); margin-bottom: 8px; }
.service-item__text { font-size: 14px; color: var(--color-body); line-height: 1.55; }

/* ---------- About ---------- */
.about { background: var(--color-bg-tint); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__text .eyebrow { margin-bottom: 12px; }
.about__title { font-size: 32px; margin-bottom: 16px; }
.about__desc { font-size: 15.5px; color: var(--color-body); margin-bottom: 24px; max-width: 480px; }
.usp-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.usp-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--color-heading); font-weight: 500; }
.usp-list__check {
	width: 22px; height: 22px;
	border-radius: 999px;
	background: var(--color-primary);
	color: var(--color-white);
	display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.usp-list__check svg { width: 12px; height: 12px; }

.about__collage { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.about__collage img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-md); }
.about__collage-main { aspect-ratio: 3/3.6; }
.about__collage-side { display: flex; flex-direction: column; gap: 16px; }
.about__collage-side img { aspect-ratio: 1/1; }

/* ---------- Owner CTA ---------- */
.owner-cta {
	background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
	border-radius: var(--radius-xl);
	padding: 56px 60px;
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.owner-cta__title { color: var(--color-white); font-size: 30px; margin-bottom: 12px; max-width: 480px; }
.owner-cta__text { color: rgba(255,255,255,.82); font-size: 15.5px; max-width: 460px; }
.owner-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.owner-cta .btn-outline { border-color: rgba(255,255,255,.4); color: var(--color-white); }
.owner-cta .btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.owner-cta .btn-accent:hover { background: var(--color-accent-dark); }

/* ---------- Partners ---------- */
.partners__eyebrow { text-align: center; display: block; }
.partners__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.partners__track {
	display: flex;
	width: max-content;
	animation: partners-marquee 26s linear infinite;
}
.partners__track:hover { animation-play-state: paused; }
.partners__row { display: flex; align-items: center; gap: 56px; flex-shrink: 0; padding-inline: 28px; opacity: .68; filter: grayscale(1); }
.partners__row img { height: 26px; width: auto; }
.partners__row span { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--color-ink); white-space: nowrap; }

@keyframes partners-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.partners__track { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 56px; }
.footer__brand .site-logo { margin-bottom: 4px; }
.footer__brand .site-logo__wordmark-img { height: 44px; }
.footer__desc { font-size: 14px; line-height: 1.7; margin: 18px 0 22px; max-width: 260px; color: var(--color-footer-text); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s var(--ease); }
.footer__social a:hover { background: var(--color-primary-light); }
.footer__social svg { width: 16px; height: 16px; color: #fff; }
.footer__heading { color: var(--color-footer-heading); font-family: var(--font-sans); font-size: 14.5px; font-weight: 700; margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 13px; }
.footer__links a { font-size: 14px; color: var(--color-footer-text); transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--color-white); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--color-footer-text); line-height: 1.5; }
.footer__contact-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--color-primary-light); }
.footer__bottom { border-top: 1px solid var(--color-footer-border); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__copyright { margin: 0; }
.footer__credit { color: rgba(255,255,255,.5); transition: color .2s var(--ease); }
.footer__credit:hover { color: rgba(255,255,255,.8); }
.footer__credit span { color: var(--color-accent); font-weight: 600; }
.footer__bottom-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__bottom-sep { color: rgba(255,255,255,.3); }
.footer__cookie-settings { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: rgba(255,255,255,.5); cursor: pointer; transition: color .2s var(--ease); }
.footer__cookie-settings:hover { color: rgba(255,255,255,.8); }

/* ---------- Cookie consent ---------- */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--color-ink); color: #fff; box-shadow: 0 -4px 24px rgba(0,0,0,.18); transform: translateY(100%); transition: transform .35s var(--ease); }
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent__inner { max-width: 1180px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-consent__text { flex: 1 1 360px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0; }
.cookie-consent__text a { color: var(--color-primary-light); text-decoration: underline; }
.cookie-consent__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-consent__link { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 14px; color: rgba(255,255,255,.75); text-decoration: underline; cursor: pointer; }
.cookie-consent__link:hover { color: #fff; }
/* .btn-outline-dark is styled for light backgrounds (dark text/border) — override for
   this banner's dark background so "Tylko niezbędne" isn't dark-on-dark. */
.cookie-consent .btn-outline-dark { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.cookie-consent .btn-outline-dark:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.cookie-consent__panel { display: none; max-width: 1180px; margin: 0 auto; padding: 0 24px 22px; }
.cookie-consent.is-expanded .cookie-consent__panel { display: block; }
.cookie-consent__category { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.cookie-consent__category-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cookie-consent__category-text p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); max-width: 640px; }
.cookie-consent__toggle { position: relative; flex-shrink: 0; margin-top: 2px; }
.cookie-consent__toggle input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.cookie-consent__toggle-track { display: block; width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.25); transition: background .2s var(--ease); }
.cookie-consent__toggle-track::before { content: ''; display: block; width: 18px; height: 18px; margin: 3px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.cookie-consent__toggle input:checked + .cookie-consent__toggle-track { background: var(--color-primary-light); }
.cookie-consent__toggle input:checked + .cookie-consent__toggle-track::before { transform: translateX(20px); }
.cookie-consent__toggle input:disabled + .cookie-consent__toggle-track { background: var(--color-primary); opacity: .6; cursor: not-allowed; }
.cookie-consent__panel-actions { display: flex; justify-content: flex-end; padding-top: 16px; }
@media (max-width: 640px) {
	.cookie-consent__inner { padding: 16px; }
	.cookie-consent__actions { width: 100%; }
	.cookie-consent__actions .btn { flex: 1 1 auto; }
}

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--color-primary); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); z-index: 999; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Logo + 6-item text nav + actions need real breathing room — switching to the mobile
   nav well before it would ever wrap/overflow (natural content width is ~1175px at
   full size), instead of fighting to fit it into every last pixel down to 1180px. */
@media (max-width: 1300px) {
	.primary-nav, .header-action span, .header-cta span { display: none; }
	.nav-toggle { display: inline-flex; }
	.mobile-nav { display: block; }
	.header-cta.btn { padding: 9px; width: 38px; height: 38px; }
	.header-cta__icon { display: block; }
}

@media (max-width: 1180px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__content { max-width: 560px; }
	.search-card { max-width: 420px; }
	.services-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
}

@media (max-width: 992px) {
	.about__grid { grid-template-columns: 1fr; gap: 40px; }
	.about__collage { order: -1; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
	.footer__brand { grid-column: 1 / -1; }
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.property-body { grid-template-columns: 1fr; }
	.property-sidebar { position: static; }
	.contact-layout { grid-template-columns: 1fr; }
	.agent-grid { grid-template-columns: repeat(2, 1fr); }

	.archive-layout { grid-template-columns: 1fr; }
	.filters-toggle-btn { display: inline-flex; }
	.filters-panel {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 90vw);
		border-radius: 0; z-index: 210; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s var(--ease);
	}
	.filters-panel.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
	.filters-panel__close { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
	.filters-panel__close:hover { background: var(--color-bg-soft); }
}

@media (max-width: 860px) {
	.hero { min-height: unset; }
	.hero__inner { padding-top: 48px; padding-bottom: 40px; }
	.hero__title { font-size: 38px; }
	.section { padding-block: 60px; }
	.section-top { align-items: flex-start; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.owner-cta { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
	.property-gallery { grid-template-columns: 1fr; }
	.property-gallery__side { display: none; }
	.agent-header { flex-direction: column; text-align: center; }
	.agent-header__contact { justify-content: center; }
}

/* ---------- Narrow container / breadcrumbs ---------- */
.container--narrow { max-width: 860px; }
.breadcrumbs { margin-bottom: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-border); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs [aria-current] { color: var(--color-heading); font-weight: 500; }

/* ---------- Blog / Poradnik ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.post-card { background: var(--color-white); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 22px; }
.post-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.post-card__title { font-family: var(--font-sans); font-size: 17px; font-weight: 700; margin: 8px 0 10px; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { font-size: 14px; color: var(--color-body); margin-bottom: 14px; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--color-muted); padding-top: 12px; border-top: 1px solid var(--color-border-soft); }

.post-single__title, .page-single .section-heading { font-size: 38px; margin: 14px 0 12px; max-width: none; }
.post-single__meta { display: flex; gap: 10px; font-size: 13.5px; color: var(--color-muted); margin-bottom: 28px; }
.post-single__thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/9; }
.post-single__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-single__content, .page-single__content { font-size: 16px; line-height: 1.8; color: var(--color-body); }
.post-single__content h2, .page-single__content h2 { font-size: 26px; margin: 36px 0 14px; }
.post-single__content h3, .page-single__content h3 { font-size: 20px; margin: 28px 0 12px; color: var(--color-heading); font-family: var(--font-sans); font-weight: 700; }
.post-single__content p, .page-single__content p { margin-bottom: 18px; }
.post-single__content ul, .page-single__content ul { margin: 0 0 18px; padding-left: 20px; list-style: disc; }
.post-single__content img, .page-single__content img { border-radius: var(--radius-md); margin: 24px 0; }
.post-single__content ol { margin: 0 0 20px; padding-left: 22px; }
.post-single__content li { margin-bottom: 7px; }
.article-lead { font-size: 19px; line-height: 1.7; color: var(--color-heading); }
.article-summary, .article-cta { margin: 28px 0; padding: 22px 24px; border-radius: var(--radius-md); background: var(--color-green-pale); border-left: 4px solid var(--color-primary); }
.article-summary strong, .article-cta strong { color: var(--color-heading); }
.article-cta p { margin: 7px 0 16px; }
.article-toc { margin: 30px 0; padding: 22px 24px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); background: #fff; }
.article-toc strong { display: block; margin-bottom: 10px; color: var(--color-heading); font-size: 18px; }
.article-toc ol { margin-bottom: 0; columns: 2; column-gap: 36px; }
.article-toc a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); }
.article-table-wrap th, .article-table-wrap td { min-width: 180px; padding: 13px 15px; border-bottom: 1px solid var(--color-border-soft); text-align: left; vertical-align: top; }
.article-table-wrap th { color: var(--color-heading); background: var(--color-green-pale); }
.article-table-wrap tr:last-child td { border-bottom: 0; }
.article-faq { margin-top: 38px; }
.article-faq details { border-bottom: 1px solid var(--color-border-soft); }
.article-faq summary { padding: 17px 4px; cursor: pointer; color: var(--color-heading); font-weight: 700; }
.article-faq details p { padding: 0 4px 17px; margin: 0; }
.article-sources { font-size: 14px; }
.article-disclaimer { padding-top: 16px; border-top: 1px solid var(--color-border-soft); color: var(--color-muted); font-size: 13px; }
.page-single__content { margin-top: 8px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--color-heading); border: 1px solid var(--color-border); }
.pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .rotate-180 { transform: rotate(180deg); }

/* ---------- Property archive (/oferty/) ---------- */
.archive-header { background: var(--color-bg-soft); padding: 40px 0 32px; border-bottom: 1px solid var(--color-border-soft); }
.archive-header .section-heading { margin-bottom: 8px; }
.archive-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; padding-block: 44px; }
.filters-panel { background: var(--color-white); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--header-height) + 20px); }
.filters-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-panel__head h2 { font-size: 17px; font-family: var(--font-sans); }
.filters-panel__close { display: none; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--color-border-soft); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group__label { display: block; font-size: 13px; font-weight: 700; color: var(--color-heading); margin-bottom: 10px; }
.filter-checkbox-list { display: flex; flex-direction: column; gap: 9px; }
.filter-checkbox-list label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--color-body); cursor: pointer; }
.filter-checkbox-list input { accent-color: var(--color-primary); width: 16px; height: 16px; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#filters-reset { width: 100%; margin-top: 4px; }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.results-toolbar__count { font-size: 14.5px; color: var(--color-body); }
.results-toolbar__count strong { color: var(--color-heading); }
.results-toolbar__actions { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { padding: 9px 11px; color: var(--color-muted); }
.view-toggle button.is-active { background: var(--color-primary-tint); color: var(--color-primary); }
#property-grid-results { position: relative; min-height: 200px; transition: opacity .2s var(--ease); }
#property-grid-results.is-loading { opacity: .5; pointer-events: none; }
.property-grid--list .property-card { flex-direction: row; }
.property-grid--list .property-card__media { width: 280px; aspect-ratio: auto; flex-shrink: 0; }
.no-results { text-align: center; padding: 60px 20px; color: var(--color-body); }
.filters-toggle-btn { display: none; }

/* ---------- Single property ---------- */
.property-hero { padding-top: 32px; }
.property-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.property-hero__title { font-size: 32px; margin-bottom: 8px; }
.property-hero__location { display: flex; align-items: center; gap: 6px; color: var(--color-muted); font-size: 15px; }
.property-hero__meta { display: flex; align-items: center; gap: 12px; }
.property-hero__price { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--color-primary); }
.property-hero__actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; color: var(--color-heading); }
.icon-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.icon-btn.is-active svg { fill: var(--color-accent); stroke: var(--color-accent); }
.property-ref { font-size: 13px; color: var(--color-muted); }

.property-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.property-gallery--single { grid-template-columns: 1fr; }
.property-gallery--single .property-gallery__main { aspect-ratio: 16/7; }
.property-gallery__main { position: relative; aspect-ratio: 4/3; }
.property-gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.property-gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.property-gallery__side > div { position: relative; overflow: hidden; }
.property-gallery__side img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.property-gallery__more { position: absolute; inset: 0; background: rgba(20,30,24,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; gap: 8px; cursor: pointer; }

.property-body { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; padding-bottom: 60px; }
.property-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 36px; }
.property-fact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.property-fact svg { color: var(--color-primary); }
.property-fact strong { font-size: 16px; color: var(--color-heading); }
.property-fact span { font-size: 12.5px; color: var(--color-muted); }
.property-section { margin-bottom: 40px; }
.property-section h2 { font-size: 22px; margin-bottom: 16px; }
.property-desc { font-size: 15.5px; line-height: 1.85; color: var(--color-body); }
.property-details-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--color-border-soft); }
.property-details-table div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--color-border-soft); font-size: 14.5px; }
.property-details-table dt { color: var(--color-muted); }
.property-details-table dd { color: var(--color-heading); font-weight: 600; margin: 0; }
.property-map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/7; background: var(--color-bg-soft); }
.property-map iframe { width: 100%; height: 100%; border: 0; }

.property-sidebar { position: sticky; top: calc(var(--header-height) + 20px); display: flex; flex-direction: column; gap: 20px; }
.agent-card { background: var(--color-white); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.agent-card__photo { width: 92px; height: 92px; border-radius: 999px; overflow: hidden; margin: 0 auto 14px; }
.agent-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-card__name { font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
.agent-card__role { font-size: 13px; color: var(--color-muted); margin-bottom: 16px; }
.agent-card__actions { display: flex; flex-direction: column; gap: 10px; }

.inquiry-form { background: var(--color-white); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); padding: 24px; }
.inquiry-form h3 { font-size: 17px; margin-bottom: 16px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--color-heading); margin-bottom: 6px; }
.form-field textarea.text-input { resize: vertical; min-height: 96px; }
.form-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--color-muted); margin: 14px 0; }
.form-consent input { margin-top: 3px; accent-color: var(--color-primary); }
.form-note { font-size: 12px; color: var(--color-muted); margin-top: 10px; }
.form-success { background: var(--color-primary-tint); color: var(--color-primary-dark); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
.form-error { background: #fbe9e7; color: #a4362a; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }

.similar-properties { padding-top: 20px; border-top: 1px solid var(--color-border-soft); }

/* ---------- Agent pages ---------- */
.agent-header { display: flex; gap: 28px; align-items: center; padding-block: 44px; }
.agent-header__photo { width: 140px; height: 140px; border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; }
.agent-header__photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-header__name { font-size: 30px; margin-bottom: 6px; }
.agent-header__role { color: var(--color-primary); font-weight: 600; margin-bottom: 14px; }
.agent-header__contact { display: flex; gap: 12px; flex-wrap: wrap; }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-member { text-align: center; }
.team-member__photo { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact page ---------- */
.contact-page__heading { max-width: 640px; margin-bottom: 36px; }
.contact-page__lead { max-width: none; }
.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"details form"
		"map form";
	gap: 32px 48px;
	align-items: start;
}
.contact-details { grid-area: details; min-width: 0; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 32px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--color-primary-tint); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: 14.5px; color: var(--color-heading); margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: 14px; color: var(--color-body); }
.contact-info-item__content { min-width: 0; overflow-wrap: anywhere; }
.contact-info-item__content > span, .contact-info-item__content > a { display: block; }
.contact-page__social { margin-bottom: 0; }
.contact-form-card { grid-area: form; min-width: 0; width: 100%; background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 32px; }
.contact-form-card__title { font-size: 20px; margin-bottom: 18px; }
.contact-map { grid-area: map; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; background: var(--color-bg-soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 992px) {
	.contact-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"details"
			"form"
			"map";
		gap: 40px;
	}
	.contact-map { aspect-ratio: 16/7; }
}

@media (max-width: 640px) {
	.contact-page__heading { margin-bottom: 24px; }
	.contact-layout { gap: 32px; }
	.contact-info-list { gap: 14px; margin: 20px 0 24px; }
	.contact-info-item { gap: 12px; }
	.contact-info-item__icon { width: 40px; height: 40px; }
	.contact-form-card { padding: 20px; border-radius: var(--radius-md); }
	.contact-map { aspect-ratio: 4/3; border-radius: var(--radius-md); }
}

/* ---------- Account: login / register / dashboard ---------- */
.account-section { padding-top: 32px; }
.auth-card { max-width: 440px; margin: 32px auto 0; background: var(--color-white); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px; }
.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.social-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
	font-size: 14.5px; font-weight: 600; color: var(--color-ink); background: var(--color-white);
	transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.social-btn:hover { background: var(--color-bg-soft); transform: translateY(-1px); }
.social-btn--google:hover { border-color: #4285F4; }
.social-btn--meta { }
.social-btn--meta:hover { border-color: #1877F2; color: #1877F2; }
.social-btn--awnex:hover { border-color: var(--color-primary); color: var(--color-primary); }
/* Markup here comes from the AWNEX ID Connect plugin's own [awnexid_login_button]
   shortcode, not this theme — only nudging width/centering, not reskinning its button. */
.social-login__awnex-plugin { width: 100%; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--color-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border-soft); }
.auth-tabs { display: flex; background: var(--color-bg-soft); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--color-muted); text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease); }
.auth-tab.is-active { background: var(--color-white); color: var(--color-primary); box-shadow: var(--shadow-sm); }
.auth-panel.is-active { animation: naswoim-fade-in .2s var(--ease); }
@keyframes naswoim-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.auth-form .btn-link { display: block; text-align: center; margin-top: 12px; }

.password-strength { margin-top: 8px; }
.password-strength__bar { height: 5px; border-radius: 999px; background: var(--color-border-soft); overflow: hidden; }
.password-strength__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--color-border); transition: width .2s var(--ease), background-color .2s var(--ease); }
.password-strength[data-level="weak"] .password-strength__bar span { background: var(--color-danger); }
.password-strength[data-level="medium"] .password-strength__bar span { background: var(--color-accent); }
.password-strength[data-level="strong"] .password-strength__bar span { background: var(--color-primary); }
.password-strength__hint { font-size: 12px; color: var(--color-muted); margin-top: 6px; }

.account-dashboard__header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--color-border-soft); margin-bottom: 32px; }
.account-dashboard__avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--color-primary-tint); color: var(--color-primary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.account-dashboard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-dashboard__welcome { font-size: 13px; color: var(--color-muted); margin-bottom: 2px; }
.account-dashboard__name { font-size: 24px; margin-bottom: 4px; }
.account-dashboard__email { font-size: 13.5px; color: var(--color-muted); }
.account-dashboard__logout { margin-left: auto; }
.account-dashboard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.account-dashboard__tile { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.account-dashboard__tile:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.account-dashboard__tile svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.account-dashboard__tile strong { display: block; font-size: 14.5px; color: var(--color-heading); margin-bottom: 3px; }
.account-dashboard__tile span { font-size: 12.5px; color: var(--color-muted); }
.account-dashboard__edit { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 28px; }
.account-dashboard__edit h2 { font-size: 19px; margin-bottom: 18px; }

/* ---------- Favourites page ---------- */
.favorites-empty { text-align: center; padding: 70px 20px; color: var(--color-body); }
.favorites-empty svg { color: var(--color-border); margin: 0 auto 18px; width: 56px; height: 56px; }

/* ---------- Submit property form ---------- */
.submit-form-card { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 36px; max-width: 780px; margin-inline: auto; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.file-drop { border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: 24px; text-align: center; font-size: 13.5px; color: var(--color-muted); }

@media (max-width: 640px) {
	:root { --header-height: 76px; }
	.site-logo__mark { width: 52px; height: 52px; }
	.site-logo__wordmark-img { height: 23px; }
	.footer__brand .site-logo__wordmark-img { height: 34px; }
	.site-logo--custom img { height: 44px; }
	.header-action { padding: 8px; }
	.hero__title { font-size: 30px; }
	.hero__lead { font-size: 15px; }
	.hero__actions .btn { flex: 1 1 auto; }
	.search-card { padding: 22px; }
	.search-field-row { grid-template-columns: 1fr 1fr; }
	.property-grid, .services-grid { grid-template-columns: 1fr; }
	.section-heading { font-size: 26px; }
	.stats__grid { grid-template-columns: 1fr 1fr; padding-block: 28px; }
	.stat-item__value { font-size: 22px; }
	.owner-cta__title { font-size: 24px; }
	.footer__grid { grid-template-columns: 1fr; }
	.partners__row { gap: 28px; }
	.blog-grid, .agent-grid { grid-template-columns: 1fr; }
	.property-facts { grid-template-columns: repeat(2, 1fr); }
	.property-details-table { grid-template-columns: 1fr; }
	.form-grid-2 { grid-template-columns: 1fr; }
	.property-hero__top { flex-direction: column; }
	.results-toolbar { flex-direction: column; align-items: flex-start; }
	.account-dashboard__grid { grid-template-columns: 1fr; }
	.account-dashboard__header { flex-direction: column; align-items: flex-start; }
	.account-dashboard__logout { margin-left: 0; }
	.auth-card { padding: 24px; }
	.article-toc ol { columns: 1; }
	.article-summary, .article-cta, .article-toc { padding: 18px; }
}
