/*
 * Erudit Properties — front-end styles.
 * Self-contained, no dependencies, no icon font. Inherits the theme's font and colour.
 * Brand colour comes from --erp-accent (Properties > Settings), width from --erp-max.
 */

:root {
	--erp-accent: #8c6d1f;
	--erp-on-accent: #fff;
	--erp-max: 1400px;
	--erp-ink: #1f2937;
	--erp-muted: #6b7280;
	--erp-line: #e5e7eb;
	--erp-soft: #f6f7f9;
	--erp-card: #fff;
	--erp-radius: 5px;
	--erp-radius-s: 4px;
	--erp-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
	--erp-shadow-h: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 30px rgba(16, 24, 40, .12);
	--erp-gold: #d4a72c;
	--erp-ring: 0 0 0 3px color-mix(in srgb, var(--erp-accent) 30%, transparent);
}

/* ------------------------------------------------------------------ container */
/* Own padded container: left/right padding 15px on desktop, 5px on mobile. */
.erp-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--erp-max);
	margin-inline: auto;
	padding-inline: 15px;
	padding-block: 12px;
	color: var(--erp-ink);
	font-size: 16px;
	line-height: 1.55;
}
.erp-wrap *,
.erp-wrap *::before,
.erp-wrap *::after { box-sizing: border-box; }
.erp-wrap > :first-child { margin-top: 0; }
.erp-wrap > :last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.erp-wrap { padding-inline: 5px; }
}
/* A wrap nested in another wrap must not add padding twice. */
.erp-wrap .erp-wrap { padding-inline: 0; padding-block: 0; max-width: none; }

.erp-wrap img { max-width: 100%; height: auto; }
.erp-wrap h1, .erp-wrap h2, .erp-wrap h3, .erp-wrap p, .erp-wrap ul, .erp-wrap dl, .erp-wrap dd { margin: 0; padding: 0; }
.erp-wrap ul { list-style: none; }
.erp-wrap a { text-underline-offset: 3px; }

.erp-i { flex: none; vertical-align: -.2em; }
.erp-wrap .screen-reader-text,
.erp-lightbox .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); margin: -1px; white-space: nowrap;
}
.erp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ buttons */
.erp-wrap .erp-btn,
.erp-wrap .erp-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; margin: 0;
	border: 1px solid var(--erp-accent); border-radius: var(--erp-radius-s);
	background: var(--erp-accent); color: var(--erp-on-accent);
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
	text-decoration: none; text-align: center; cursor: pointer;
	transition: filter .15s, box-shadow .15s, transform .15s, background-color .15s;
}
.erp-wrap .erp-btn:hover,
.erp-wrap .erp-button:hover { filter: brightness(.92); color: var(--erp-on-accent); text-decoration: none; }
.erp-wrap .erp-btn:focus-visible,
.erp-wrap .erp-button:focus-visible { outline: none; box-shadow: var(--erp-ring); }
.erp-wrap .erp-btn:active { transform: translateY(1px); }
.erp-wrap .erp-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.erp-wrap .erp-btn--block { width: 100%; }
.erp-wrap .erp-btn--ghost { background: #fff; color: var(--erp-ink); border-color: #d1d5db; }
.erp-wrap .erp-btn--ghost:hover { background: var(--erp-soft); color: var(--erp-ink); filter: none; }
.erp-wrap .erp-btn--light { background: rgba(255, 255, 255, .96); color: var(--erp-ink); border-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.erp-wrap .erp-btn--light:hover { background: #fff; color: var(--erp-ink); filter: none; }
.erp-wrap .erp-btn--wa { color: #0b7a3b; border-color: #b7e4c7; background: #f2fbf5; }
.erp-wrap .erp-btn--wa:hover { background: #e3f6ea; color: #0b7a3b; }

/* ------------------------------------------------------------------ form controls */
.erp-wrap .erp-field { margin: 0; min-width: 0; }
.erp-wrap .erp-field > label,
.erp-wrap .erp-field > legend,
.erp-wrap fieldset.erp-field > legend {
	display: block; margin: 0 0 6px; padding: 0;
	font-size: 13px; font-weight: 600; color: var(--erp-muted); text-align: start; letter-spacing: .01em;
}
.erp-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.erp-wrap select,
.erp-wrap textarea {
	display: block; width: 100%; max-width: 100%; margin: 0;
	min-height: 46px; padding: 10px 14px;
	border: 1px solid #d1d5db; border-radius: var(--erp-radius-s);
	background-color: #fff; color: var(--erp-ink);
	font: inherit; font-size: 15px; line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.erp-wrap textarea { min-height: 110px; resize: vertical; }
.erp-wrap select {
	appearance: none; -webkit-appearance: none; padding-inline-end: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
[dir="rtl"] .erp-wrap select { background-position: left 12px center; }
.erp-wrap input:focus,
.erp-wrap select:focus,
.erp-wrap textarea:focus { outline: none; border-color: var(--erp-accent); box-shadow: var(--erp-ring); }
.erp-wrap input::placeholder, .erp-wrap textarea::placeholder { color: #9ca3af; opacity: 1; }
.erp-wrap input[type="file"] {
	display: block; width: 100%; padding: 14px; border: 2px dashed #cfd4dc; border-radius: var(--erp-radius-s);
	background: var(--erp-soft); color: var(--erp-muted); font: inherit; font-size: 14px; cursor: pointer;
}
.erp-wrap input[type="file"]::file-selector-button {
	margin-inline-end: 12px; padding: 8px 14px; border: 0; border-radius: 5px;
	background: var(--erp-accent); color: var(--erp-on-accent); font: inherit; font-weight: 600; cursor: pointer;
}
/* Checkboxes/radios: normal size, brand colour (never stretched by theme or WP defaults). */
.erp-wrap input[type="checkbox"],
.erp-wrap input[type="radio"] {
	appearance: auto; -webkit-appearance: auto;
	width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none;
	accent-color: var(--erp-accent); cursor: pointer;
}
.erp-wrap .erp-check,
.erp-wrap .erp-field > label.erp-check,
.erp-wrap .erp-submit .erp-field > label.erp-check {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px;
	border: 1px solid var(--erp-line); border-radius: 5px; background: #fff;
	font-size: 14px; font-weight: 500; color: var(--erp-ink); line-height: 1.3; text-align: start; cursor: pointer; letter-spacing: 0;
	transition: border-color .15s, background-color .15s;
}
.erp-wrap .erp-check:hover { border-color: var(--erp-accent); }
.erp-wrap .erp-check:has(input:checked) { border-color: var(--erp-accent); background: color-mix(in srgb, var(--erp-accent) 8%, #fff); }

/* ------------------------------------------------------------------ search form */
.erp-wrap .erp-search {
	display: grid; gap: 14px 12px; align-items: end;
	margin: 0 0 24px; padding: 18px;
	background: var(--erp-card); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); box-shadow: var(--erp-shadow);
}
.erp-wrap .erp-search--horizontal { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.erp-wrap .erp-search--vertical { grid-template-columns: 1fr; }
.erp-wrap .erp-search .erp-tabs-wrap,
.erp-wrap .erp-search .erp-tabs,
.erp-wrap .erp-search .erp-field--features { grid-column: 1 / -1; }
.erp-wrap .erp-search .erp-tabs-wrap { min-width: 0; }
.erp-wrap .erp-tabs-arrow { display: none; }
.erp-wrap .erp-search--horizontal .erp-field--keyword,
.erp-wrap .erp-search--horizontal .erp-field--price,
.erp-wrap .erp-search--horizontal .erp-field--size { grid-column: span 2; }
.erp-wrap .erp-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.erp-wrap .erp-search .erp-field--submit .erp-btn { min-height: 46px; }

.erp-wrap .erp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.erp-wrap .erp-tab { position: relative; display: inline-flex; flex: none; margin: 0; cursor: pointer; }
.erp-wrap .erp-tab input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.erp-wrap .erp-tab span {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border: 1px solid #d1d5db; border-radius: 5px;
	background: #fff; color: var(--erp-ink); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.erp-wrap .erp-tab:hover span { border-color: var(--erp-accent); }
.erp-wrap .erp-tab input:checked + span { background: var(--erp-accent); border-color: var(--erp-accent); color: var(--erp-on-accent); box-shadow: 0 2px 8px color-mix(in srgb, var(--erp-accent) 35%, transparent); }
.erp-wrap .erp-tab input:focus-visible + span { box-shadow: var(--erp-ring); }
.erp-wrap .erp-range select, .erp-wrap .erp-range input { min-width: 0; }
/* Phones: ONE swipeable row (never wraps, never cut off: edge-to-edge strip, snap points, soft fades show there is more). */
@media (max-width: 700px) {
	.erp-wrap .erp-search .erp-tabs {
		flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none;
		-webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
		margin: -2px -12px 2px; padding: 4px 12px 6px; width: calc(100% + 24px);
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
	}
	.erp-wrap .erp-search .erp-tabs::-webkit-scrollbar { display: none; }
	.erp-wrap .erp-tab { scroll-snap-align: center; }
	.erp-wrap .erp-tab span { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 22px; }
}

.erp-wrap fieldset.erp-field--features,
.erp-wrap .erp-search fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.erp-wrap .erp-field--features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.erp-wrap .erp-field--features > legend { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ toolbar */
.erp-wrap .erp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.erp-wrap .erp-summary { font-size: 15px; font-weight: 600; color: var(--erp-ink); margin: 0; }
.erp-wrap .erp-toolbar__tools { display: flex; align-items: center; gap: 10px; }
.erp-wrap .erp-sort select { min-height: 40px; padding-block: 6px; font-size: 14px; width: auto; min-width: 190px; }
.erp-wrap .erp-view { display: inline-flex; border: 1px solid #d1d5db; border-radius: var(--erp-radius-s); overflow: hidden; background: #fff; }
.erp-wrap .erp-view__btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 38px; color: var(--erp-muted); text-decoration: none; transition: background-color .15s, color .15s; }
.erp-wrap .erp-view__btn + .erp-view__btn { border-inline-start: 1px solid #d1d5db; }
.erp-wrap .erp-view__btn:hover { background: var(--erp-soft); color: var(--erp-ink); }
.erp-wrap .erp-view__btn.is-active { background: var(--erp-accent); color: var(--erp-on-accent); }
.erp-wrap .erp-view__btn:focus-visible { outline: none; box-shadow: inset var(--erp-ring); }

.erp-results { transition: opacity .15s; }
.erp-results.is-loading { opacity: .45; pointer-events: none; }
.erp-wrap .erp-empty { padding: 40px 16px; text-align: center; color: var(--erp-muted); background: var(--erp-soft); border-radius: var(--erp-radius); }

/* ------------------------------------------------------------------ grid of cards */
.erp-wrap .erp-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.erp-wrap .erp-grid--grid.erp-cols-2,
	.erp-wrap .erp-grid--grid.erp-cols-3,
	.erp-wrap .erp-grid--grid.erp-cols-4,
	.erp-wrap .erp-grid--grid.erp-cols-5,
	.erp-wrap .erp-grid--grid.erp-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.erp-wrap .erp-grid--grid.erp-cols-3,
	.erp-wrap .erp-grid--grid.erp-cols-4,
	.erp-wrap .erp-grid--grid.erp-cols-5,
	.erp-wrap .erp-grid--grid.erp-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
	.erp-wrap .erp-grid--grid.erp-cols-4,
	.erp-wrap .erp-grid--grid.erp-cols-5,
	.erp-wrap .erp-grid--grid.erp-cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
	.erp-wrap .erp-grid--grid.erp-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.erp-wrap .erp-grid--grid.erp-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.erp-wrap .erp-grid--list { gap: 16px; }

/* ------------------------------------------------------------------ card (erd5 design) */
.erp-wrap .erp-card {
	--erp-soft: #f3eddd; --erp-soft-ink: #705817;
	position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0;
	background: var(--erp-card); color: var(--erp-ink); border-radius: var(--erp-radius);
	overflow: hidden; box-shadow: var(--erp-shadow); text-align: left;
	transition: box-shadow .2s, transform .2s;
}
.erp-wrap .erp-card:hover { box-shadow: var(--erp-shadow-h); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .erp-wrap .erp-card, .erp-wrap .erp-btn { transition: none; } .erp-wrap .erp-card:hover { transform: none; } }

/* photos: native scroll-snap (smooth, one full photo per view, no layout shift) */
.erp-wrap .erp-card__media { position: relative; overflow: hidden; background: #e5e7eb; }
.erp-wrap .erp-slides { display: flex; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.erp-wrap .erp-slides::-webkit-scrollbar { display: none; }
.erp-wrap .erp-slide { position: relative; display: block; flex: 0 0 100%; width: 100%; aspect-ratio: 496 / 320; scroll-snap-align: start; scroll-snap-stop: always; background: #e5e7eb; }
.erp-wrap .erp-card__img { display: block; width: 100%; max-width: none; height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: cover; }
.erp-wrap .erp-card__img:not([src]) { visibility: hidden; }
.erp-wrap .erp-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b4bac5; }
@media (prefers-reduced-motion: reduce) { .erp-wrap .erp-slides { scroll-behavior: auto; } }

.erp-wrap .erp-dots { position: absolute; z-index: 3; inset-inline-end: 12px; bottom: 8px; display: flex; gap: 0; }
.erp-wrap .erp-dot { position: relative; width: 16px; height: 16px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; box-shadow: none; }
.erp-wrap .erp-dot::after { content: ""; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: .2s; }
.erp-wrap .erp-dot.is-on::after { background: #fff; transform: scale(1.2); }
.erp-wrap .erp-nav {
	position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--erp-ink); box-shadow: none;
	cursor: pointer; opacity: 0; transform: translateY(-50%); appearance: none; -webkit-appearance: none; transition: opacity .2s;
}
.erp-wrap .erp-nav--prev { inset-inline-start: 10px; }
.erp-wrap .erp-nav--next { inset-inline-end: 10px; }
.erp-wrap .erp-card__media:hover .erp-nav, .erp-wrap .erp-nav:focus-visible { opacity: 1; }
@media (hover: none) { .erp-wrap .erp-nav { display: none; } }

/* badges (Featured + visible status/label terms) and the heart sit on the photo */
.erp-wrap .erp-badges { position: absolute; z-index: 2; top: 10px; inset-inline: 10px 80px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.erp-wrap .erp-badge {
	display: inline-block; padding: 4px 10px; border-radius: 4px; background: rgba(17, 24, 39, .78); color: #fff;
	font-size: 11.5px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; white-space: nowrap;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.erp-wrap .erp-badge--featured { background: var(--erp-gold); color: #1f1700; }
.erp-wrap .erp-views {
	position: absolute; z-index: 3; inset-inline-end: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
	border-radius: 999px; background: rgba(17, 24, 39, .72); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4; pointer-events: none;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.erp-wrap .erp-views svg { width: 11px; height: 11px; flex: none; }
/* property code (fave_property_id) on the photo, bottom-left */
.erp-wrap .erp-card__code {
	position: absolute; z-index: 3; inset-inline-start: 10px; bottom: 8px; display: inline-flex; align-items: center; max-width: calc(100% - 20px); padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; background: rgba(17, 24, 39, .82); color: #fff; font-size: 11.5px; font-weight: 700;
	letter-spacing: .03em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.erp-wrap .erp-card__media:has(.erp-dots) .erp-card__code { max-width: calc(100% - 68px); }
.erp-wrap .erp-card__code::before { content: "ID"; margin-inline-end: 5px; padding-inline-end: 5px; border-inline-end: 1px solid rgba(255, 255, 255, .45); color: var(--erp-gold); font-weight: 800; letter-spacing: .08em; }
.erp-wrap .erp-sh__side .erp-views svg { width: 16px; height: 16px; }
.erp-wrap .erp-sh__side .erp-views { gap: 6px; position: static; inset: auto; background: var(--erp-soft); color: var(--erp-soft-ink); padding: 8px 14px; font-size: 14px; font-weight: 700; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* price pill + type tag */
.erp-wrap .erp-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 0; }
.erp-wrap .erp-card__price {
	display: inline-block; margin: 0; padding: 7px 13px; background: var(--erp-soft); color: var(--erp-soft-ink);
	font-size: 18px; font-weight: 800; line-height: 1; border-radius: 0 6px 6px 0; box-shadow: 0 2px 7px rgba(0, 0, 0, .10);
}
.erp-wrap .erp-card__tag {
	display: inline-block; margin: 0 0 0 auto; padding: 6px 12px; background: var(--erp-soft); color: var(--erp-soft-ink);
	font-size: 12px; font-weight: 800; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; border-radius: 6px 0 0 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .10);
}

.erp-wrap .erp-card__body { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 10px 16px 11px; }
.erp-wrap .erp-card__title { margin: 0; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--erp-ink); }
.erp-wrap .erp-card__title a {
	color: inherit; text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.erp-wrap .erp-card__title a:hover { color: var(--erp-accent); }
.erp-wrap .erp-card__address { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--erp-muted); font-size: 13px; line-height: 1.4; }
.erp-wrap .erp-card__address svg { width: 14px; height: 14px; margin-top: 2px; color: var(--erp-accent); }

/* facts: generic list (floor plans etc.) and the card's 2-column dashed grid */
.erp-wrap .erp-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #374151; font-size: 14px; font-weight: 500; }
.erp-wrap .erp-facts li { display: inline-flex; align-items: center; gap: 6px; }
.erp-wrap .erp-facts svg { color: var(--erp-accent); }
.erp-wrap .erp-facts--plain { gap: 4px 14px; }
.erp-wrap .erp-card .erp-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 0; }
.erp-wrap .erp-card .erp-facts li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 0; border-bottom: 1px dashed #d1d5db; font-size: 13px; min-width: 0; }
.erp-wrap .erp-card .erp-facts li:nth-last-child(-n+2) { border-bottom: 0; }
.erp-wrap .erp-card .erp-facts li:nth-child(odd):last-child { grid-column: 1 / -1; }
.erp-wrap .erp-card .erp-facts small { flex: 1; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--erp-muted); }
.erp-wrap .erp-card .erp-facts b { font-weight: 700; color: var(--erp-ink); white-space: nowrap; }

.erp-wrap .erp-card__more,
.erp-wrap .erp-card__more:visited,
.erp-wrap .erp-card__more:hover,
.erp-wrap .erp-card__more:focus { color: #fff; text-decoration: none; }
.erp-wrap .erp-card__more {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 38px; margin-top: auto; padding: 0 16px;
	border: 1px solid var(--erp-accent); border-radius: 4px; background: var(--erp-accent);
	font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; transition: filter .15s;
}
.erp-wrap .erp-card__more:hover { filter: brightness(.92); }
.erp-wrap .erp-card__more svg { transition: transform .15s; }
.erp-wrap .erp-card__more:hover svg { transform: translateX(3px); }
.erp-wrap .erp-card__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 8px 16px;
	border-top: 1px solid var(--erp-line); font-size: 12.5px; font-weight: 600; color: #374151;
}
.erp-wrap .erp-card__agent, .erp-wrap .erp-card__time { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.erp-wrap .erp-card__time { color: var(--erp-muted); font-weight: 500; }
.erp-wrap .erp-card__foot svg { width: 14px; height: 14px; color: var(--erp-accent); }

/* list view (desktop): one wide card per row, photo on the left */
@media (min-width: 720px) {
	.erp-wrap .erp-card--list { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "media meta" "media body" "media foot"; }
	.erp-wrap .erp-card--list .erp-card__media { grid-area: media; min-height: 100%; }
	.erp-wrap .erp-card--list .erp-slides, .erp-wrap .erp-card--list .erp-slide { height: 100%; }
	.erp-wrap .erp-card--list .erp-slide { aspect-ratio: auto; min-height: 250px; }
	.erp-wrap .erp-card--list .erp-card__meta { grid-area: meta; padding-top: 18px; }
	.erp-wrap .erp-card--list .erp-card__body { grid-area: body; padding: 12px 20px 14px; }
	.erp-wrap .erp-card--list .erp-card__foot { grid-area: foot; padding-inline: 20px; }
	.erp-wrap .erp-card--list .erp-card__title { font-size: 18px; }
	.erp-wrap .erp-card--list .erp-card__more { width: auto; align-self: flex-start; min-width: 170px; }
}
@media (min-width: 720px) and (max-width: 900px) {
	.erp-wrap .erp-card--list { grid-template-columns: 250px minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ pagination */
.erp-wrap .erp-pagination { margin: 28px 0 8px; }
.erp-wrap .erp-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.erp-wrap .erp-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid #d1d5db; border-radius: var(--erp-radius-s); background: #fff; color: var(--erp-ink);
	font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.erp-wrap .erp-pagination a.page-numbers:hover { border-color: var(--erp-accent); color: var(--erp-accent); }
.erp-wrap .erp-pagination .page-numbers.current { background: var(--erp-accent); border-color: var(--erp-accent); color: var(--erp-on-accent); }
.erp-wrap .erp-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ------------------------------------------------------------------ archive */
.erp-wrap .erp-archive-head { margin: 0 0 22px; }
.erp-wrap .erp-archive-title { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; color: var(--erp-ink); }
.erp-wrap .erp-archive-desc { color: var(--erp-muted); max-width: 70ch; }

/* ------------------------------------------------------------------ single property */
.erp-wrap.erp-single { padding-block: 20px 40px; transform: none !important; }
.erp-wrap .erp-sh { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin: 0 0 20px; }
.erp-wrap .erp-sh__main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.erp-wrap .erp-sh__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.erp-wrap .erp-sh__title { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; font-weight: 800; color: var(--erp-ink); letter-spacing: -.01em; }
.erp-wrap .erp-sh__address { display: flex; align-items: flex-start; gap: 8px; color: var(--erp-muted); font-size: 16px; }
.erp-wrap .erp-sh__address svg { margin-top: 3px; color: var(--erp-accent); }
.erp-wrap .erp-sh__side { display: flex; align-items: center; gap: 12px; }
.erp-wrap .erp-sh__price { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--erp-accent); line-height: 1.1; white-space: nowrap; }

.erp-wrap .erp-sp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1000px) {
	.erp-wrap .erp-sp-layout { grid-template-columns: minmax(0, 1fr) 360px; }
	.erp-wrap .erp-sp-side {
		position: sticky; top: var(--erp-stick, calc(var(--wsa-header-h, 70px) + 16px)); align-self: start;
		max-height: calc(100vh - var(--erp-stick, 86px) - 16px); max-height: calc(100dvh - var(--erp-stick, 86px) - 16px);
		overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
	}
}
.erp-wrap .erp-sp-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* gallery mosaic */
.erp-wrap .erp-gallery {
	position: relative; display: grid; gap: 8px; border-radius: var(--erp-radius); overflow: hidden;
	grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); height: clamp(260px, 38vw, 480px);
}
.erp-wrap .erp-gallery__item { position: relative; display: block; overflow: hidden; background: #e9ecf1; min-width: 0; min-height: 0; }
.erp-wrap .erp-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .2s; }
.erp-wrap .erp-gallery__item:hover img { transform: scale(1.04); filter: brightness(.94); }
.erp-wrap .erp-gallery__item:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--erp-accent); }
.erp-wrap .erp-gallery__item.is-main { grid-column: 1 / 3; grid-row: 1 / 3; }
.erp-wrap .erp-gallery--n1 .is-main { grid-column: 1 / -1; }
.erp-wrap .erp-gallery--n2 .is-main { grid-column: 1 / 3; }
.erp-wrap .erp-gallery--n2 .erp-gallery__item:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 3; }
.erp-wrap .erp-gallery--n3 .erp-gallery__item:nth-child(2),
.erp-wrap .erp-gallery--n3 .erp-gallery__item:nth-child(3) { grid-column: 3 / 5; }
.erp-wrap .erp-gallery--n4 .erp-gallery__item:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.erp-wrap .erp-gallery__more {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: rgba(17, 24, 39, .55); color: #fff; font-size: 20px; font-weight: 700; pointer-events: none;
}
.erp-wrap .erp-gallery__all { position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 14px; }
.erp-wrap .erp-gallery__extra[hidden] { display: none; }
.erp-wrap .erp-gallery__item:nth-child(n+6) { display: none; }
.erp-wrap .erp-gallery__hint, .erp-wrap .erp-gallery__count { display: none; }
/* Phones: a swipeable slideshow (native scroll-snap: no JS needed to move, no layout shift, images load lazily as you swipe). */
@media (max-width: 700px) {
	.erp-wrap .erp-gallery {
		margin-inline: -5px; width: calc(100% + 10px); max-width: none;
		display: flex; gap: 0; height: min(500px, 125vw); grid-template-columns: none; grid-template-rows: none;
		overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.erp-wrap .erp-gallery::-webkit-scrollbar { display: none; }
	.erp-wrap .erp-gallery .erp-gallery__item,
	.erp-wrap .erp-gallery .erp-gallery__item:nth-child(n+6) { display: block; flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; grid-column: auto; grid-row: auto; }
	.erp-wrap .erp-gallery--n1 .erp-gallery__item { flex-basis: 100%; }
	.erp-wrap .erp-gallery .erp-gallery__item img { height: 100%; }
	.erp-wrap .erp-gallery__more, .erp-wrap .erp-gallery__all { display: none; }
	.erp-wrap .erp-gallery__count {
		position: sticky; display: inline-flex; align-items: center; gap: 6px; flex: none; align-self: flex-end;
		inset-inline-end: 10px; margin-inline-start: -86px; margin-bottom: 12px; margin-inline-end: 10px; width: 76px; justify-content: center;
		padding: 5px 8px; border-radius: 4px; background: rgba(17, 24, 39, .72); color: #fff; font-size: 13px; font-weight: 700; z-index: 2;
	}
	.erp-wrap .erp-gallery__hint {
		position: sticky; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 8px; flex: none; align-self: flex-end;
		margin-inline-start: -100%; margin-bottom: 12px; width: max-content; max-width: 70%;
		padding: 7px 12px; border-radius: 4px; background: rgba(17, 24, 39, .74); color: #fff; font-size: 13px; font-weight: 600; z-index: 2;
		pointer-events: none; transition: opacity .35s; animation: erp-nudge 1.6s ease-in-out 3;
	}
	.erp-wrap .erp-gallery.is-touched .erp-gallery__hint { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .erp-wrap .erp-gallery__hint { animation: none; } }

/* stats bar */
.erp-wrap .erp-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; overflow: hidden;
	background: var(--erp-line); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); box-shadow: var(--erp-shadow);
}
.erp-wrap .erp-stats__item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; background: #fff; text-align: center; }
.erp-wrap .erp-stats__item svg { color: var(--erp-accent); margin-bottom: 4px; }
.erp-wrap .erp-stats__item strong { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--erp-ink); }
.erp-wrap .erp-stats__item span { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--erp-muted); }

/* sections */
.erp-wrap .erp-section { padding: 24px; background: var(--erp-card); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); box-shadow: var(--erp-shadow); }
.erp-wrap .erp-section > h2 {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px;
	margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--erp-line);
	font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--erp-ink);
}
.erp-wrap .erp-updated { font-size: 13px; font-weight: 500; color: var(--erp-muted); }
.erp-wrap .erp-desc__body { font-size: 16px; line-height: 1.75; color: #374151; overflow-wrap: anywhere; }
.erp-wrap .erp-desc__body > * + * { margin-top: 1em; }
.erp-wrap .erp-desc__body iframe, .erp-wrap .erp-desc__body video, .erp-wrap .erp-desc__body table { max-width: 100%; }
.erp-wrap .erp-desc__body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--erp-radius-s); }
.erp-wrap .erp-desc__body ul, .erp-wrap .erp-desc__body ol { padding-inline-start: 1.4em; }
.erp-wrap .erp-desc__body ul { list-style: disc; }
.erp-wrap .erp-desc__body ol { list-style: decimal; }

.erp-wrap .erp-dl { display: grid; grid-template-columns: 1fr; gap: 0 36px; }
@media (min-width: 700px) { .erp-wrap .erp-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.erp-wrap .erp-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eef0f3; }
.erp-wrap .erp-dl dt { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--erp-ink); }
.erp-wrap .erp-dl dt svg { color: var(--erp-accent); flex: none; }
.erp-wrap .erp-dl dd { color: #4b5563; text-align: end; overflow-wrap: anywhere; }
.erp-wrap .erp-dl dd a { color: var(--erp-accent); text-decoration: none; }
.erp-wrap .erp-dl dd a:hover { text-decoration: underline; }

.erp-wrap .erp-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.erp-wrap .erp-tags li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #374151; }
.erp-wrap .erp-tags svg { color: #fff; background: var(--erp-accent); border-radius: 5px; padding: 3px; width: 22px; height: 22px; flex: none; }

.erp-wrap .erp-video, .erp-wrap .erp-map iframe { display: block; width: 100%; border: 0; border-radius: var(--erp-radius-s); }
.erp-wrap .erp-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 12px; }
.erp-wrap .erp-video iframe, .erp-wrap .erp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.erp-wrap .erp-yt { position: absolute; inset: 0; display: block; background: #000; }
.erp-wrap .erp-yt img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }
.erp-wrap .erp-yt__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(0, 0, 0, .68); color: #fff; transition: transform .2s, background-color .2s; }
.erp-wrap .erp-yt__play svg { width: 28px; height: 28px; margin-inline-start: 3px; }
.erp-wrap .erp-yt:hover .erp-yt__play, .erp-wrap .erp-yt:focus-visible .erp-yt__play { background: #e11d48; transform: scale(1.08); }
.erp-wrap .erp-yt:focus-visible { outline: 3px solid var(--erp-accent); outline-offset: -3px; }
.erp-wrap .erp-map iframe { height: 360px; }
.erp-wrap .erp-map__box { position: relative; }
.erp-wrap .erp-map__box iframe { pointer-events: none; }
.erp-wrap .erp-map__box.is-active iframe { pointer-events: auto; }
.erp-wrap .erp-map__activate {
	position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 0 0 14px; margin: 0;
	border: 0; border-radius: var(--erp-radius-s); background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.erp-wrap .erp-map__activate > * { pointer-events: none; background: rgba(17, 24, 39, .78); }
.erp-wrap .erp-map__activate svg { box-sizing: content-box; padding: 8px 0 8px 12px; border-radius: 4px 0 0 4px; }
.erp-wrap .erp-map__activate span { padding: 8px 12px 8px 0; border-radius: 0 4px 4px 0; line-height: 1.2; }
.erp-wrap .erp-map__box.is-active .erp-map__activate { display: none; }
@media (max-width: 700px) { .erp-wrap .erp-map iframe { height: 280px; } }
.erp-wrap .erp-map p { margin-top: 10px; font-size: 14px; }
.erp-wrap .erp-plan + .erp-plan { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--erp-line); }
.erp-wrap .erp-plan h3 { margin: 0 0 10px; font-size: 17px; }
.erp-wrap .erp-plan img { display: block; border-radius: var(--erp-radius-s); margin-bottom: 10px; }
.erp-wrap .erp-plan .erp-facts { margin-bottom: 8px; }

.erp-wrap .erp-similar { background: transparent; border: 0; box-shadow: none; padding: 0; }
.erp-wrap .erp-similar > h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
.erp-wrap .erp-sp-main .erp-grid--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.erp-wrap.erp-single > .erp-similar { margin-top: 32px; }

/* contact card */
.erp-wrap .erp-contact { padding: 22px; background: var(--erp-card); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); box-shadow: var(--erp-shadow); }
.erp-wrap .erp-contact__agent { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--erp-line); }
.erp-wrap .erp-contact__avatar {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: 5px;
	background: color-mix(in srgb, var(--erp-accent) 14%, #fff); color: var(--erp-accent);
}
.erp-wrap .erp-contact__name { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--erp-ink); }
.erp-wrap .erp-contact__ref { display: block; margin-top: 2px; font-size: 13px; color: var(--erp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.erp-wrap .erp-form { display: grid; gap: 12px; }
.erp-wrap .erp-form textarea { min-height: 96px; }
.erp-wrap .erp-form__status { min-height: 0; margin: 0; font-size: 14px; font-weight: 600; }
.erp-wrap .erp-form__status:empty { display: none; }
.erp-wrap .erp-form__status.is-ok { color: #0f7a3a; padding: 10px 12px; background: #ecfdf3; border: 1px solid #b7ebc9; border-radius: 5px; }
.erp-wrap .erp-form__status.is-err { color: #b42318; padding: 10px 12px; background: #fef3f2; border: 1px solid #fecdca; border-radius: 5px; }
.erp-wrap .erp-form.is-busy button { opacity: .65; pointer-events: none; }
.erp-wrap .erp-contact__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.erp-wrap .erp-contact__quick .erp-btn:only-child { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ notices */
.erp-wrap .erp-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--erp-radius-s); border: 1px solid; font-size: 15px; }
.erp-wrap .erp-notice ul { padding-inline-start: 1.2em; list-style: disc; }
.erp-wrap .erp-notice--ok { color: #0f5132; background: #ecfdf3; border-color: #b7ebc9; }
.erp-wrap .erp-notice--err { color: #8a1c13; background: #fef3f2; border-color: #fecdca; }
.erp-wrap .erp-notice a { color: inherit; font-weight: 700; }

/* ------------------------------------------------------------------ submit form */
.erp-wrap .erp-submit { display: grid; gap: 20px; }
.erp-wrap .erp-submit fieldset {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 18px; align-items: start;
	margin: 0; padding: 22px; min-width: 0;
	background: var(--erp-card); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); box-shadow: var(--erp-shadow);
}
.erp-wrap .erp-submit legend {
	float: left; width: 100%; margin: 0 0 4px; padding: 0; font-size: 20px; font-weight: 800; color: var(--erp-ink); line-height: 1.3;
}
.erp-wrap .erp-submit legend + * { clear: both; }
.erp-wrap .erp-submit .erp-wide { grid-column: 1 / -1; }
.erp-wrap .erp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.erp-wrap .erp-hint { margin: 8px 0 0; font-size: 13px; color: var(--erp-muted); }
.erp-wrap .erp-submit__actions { display: flex; gap: 12px; align-items: center; }
.erp-wrap .erp-my { margin-top: 28px; padding: 22px; background: var(--erp-card); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); box-shadow: var(--erp-shadow); }
.erp-wrap .erp-my h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.erp-wrap .erp-my li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.erp-wrap .erp-my li:last-child { border-bottom: 0; }
.erp-wrap .erp-my a { color: var(--erp-accent); font-weight: 700; }

/* ------------------------------------------------------------------ lightbox (appended to <body>) */
.erp-lightbox {
	position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center;
	background: rgba(8, 10, 14, .94); box-sizing: border-box; padding: 56px 64px;
	animation: erp-fade .15s ease;
}
.erp-lightbox * { box-sizing: border-box; }
@keyframes erp-fade { from { opacity: 0; } to { opacity: 1; } }
.erp-lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.erp-lightbox__btn {
	position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; margin: 0;
	border: 0; border-radius: 5px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .15s;
}
.erp-lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.erp-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.erp-lightbox__btn--close { top: 12px; inset-inline-end: 12px; }
.erp-lightbox__btn--prev { top: 50%; inset-inline-start: 10px; transform: translateY(-50%); }
.erp-lightbox__btn--next { top: 50%; inset-inline-end: 10px; transform: translateY(-50%); }
.erp-lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #d1d5db; font-size: 14px; font-weight: 600; }
@media (max-width: 600px) {
	.erp-lightbox { padding: 56px 6px; }
	.erp-lightbox__btn--prev, .erp-lightbox__btn--next { top: auto; bottom: 8px; transform: none; }
	.erp-lightbox__btn--prev { inset-inline-start: 10px; }
	.erp-lightbox__btn--next { inset-inline-end: 10px; }
}
html.erp-noscroll { overflow: hidden; }

/* ------------------------------------------------------------------ mobile refinements */
@media (max-width: 600px) {
	.erp-wrap .erp-search { padding: 14px 12px; }
	.erp-wrap .erp-search--horizontal { grid-template-columns: 1fr 1fr; }
	.erp-wrap .erp-search--horizontal .erp-field--keyword,
	.erp-wrap .erp-search--horizontal .erp-field--price,
	.erp-wrap .erp-search--horizontal .erp-field--size,
	.erp-wrap .erp-search--horizontal .erp-field--submit { grid-column: 1 / -1; }
	.erp-wrap .erp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.erp-wrap .erp-section { padding: 18px 14px; }
	.erp-wrap .erp-contact { padding: 18px 14px; }
	.erp-wrap .erp-submit fieldset { padding: 16px 12px; }
	.erp-wrap .erp-sh__side { width: 100%; justify-content: space-between; }
	.erp-wrap .erp-toolbar__tools { width: 100%; justify-content: space-between; }
	.erp-wrap .erp-sort { flex: 1; }
	.erp-wrap .erp-sort select { width: 100%; min-width: 0; }
	.erp-wrap .erp-dl dd { text-align: end; }
}
@media print {
	.erp-wrap .erp-sp-side, .erp-wrap .erp-search, .erp-wrap .erp-gallery__all { display: none; }
}

/* ------------------------------------------------------------------ documents */
.erp-wrap .erp-doclist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 11px 0; border-bottom: 1px solid #eef0f3; }
.erp-wrap .erp-doclist li:last-child { border-bottom: 0; }
.erp-wrap .erp-doclist__title, .erp-wrap .erp-doclist__link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.erp-wrap .erp-doclist__title svg { color: var(--erp-accent); }
.erp-wrap .erp-doclist__title span { overflow-wrap: anywhere; font-weight: 600; }
.erp-wrap .erp-doclist__link { color: var(--erp-accent); font-weight: 700; text-decoration: none; }
.erp-wrap .erp-doclist__link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ fixed contact bar (phones only) */
.erp-wrap .erp-contact__avatar { overflow: hidden; border-radius: var(--erp-radius-s); }
.erp-wrap .erp-contact__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.erp-wrap .erp-mbar { display: none; }
@media (max-width: 700px) {
	.erp-wrap .erp-mbar {
		position: fixed; z-index: 9990; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff;
		border-top: 1px solid var(--erp-line); box-shadow: 0 -4px 16px rgba(16, 24, 40, .12);
	}
	.erp-wrap .erp-mbar__agent { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
	.erp-wrap .erp-mbar__avatar {
		display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; overflow: hidden;
		border-radius: var(--erp-radius-s); background: color-mix(in srgb, var(--erp-accent) 14%, #fff); color: var(--erp-accent);
	}
	.erp-wrap .erp-mbar__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.erp-wrap .erp-mbar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--erp-ink); }
	.erp-wrap .erp-mbar__btn {
		display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; padding: 0;
		border: 1.5px solid var(--erp-accent); border-radius: var(--erp-radius-s); background: #fff; color: var(--erp-accent); text-decoration: none;
	}
	.erp-wrap .erp-mbar__btn--primary { background: var(--erp-accent); color: var(--erp-on-accent); }
	.erp-wrap .erp-mbar__btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
	.erp-wrap .erp-mbar__btn:active { filter: brightness(.9); }
}
@media print { .erp-wrap .erp-mbar { display: none; } }
/* The fixed bar must never hide the end of the page (footer included): the whole page gets the bar's height as room. */
@media (max-width: 700px) {
	body:has(.erp-mbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@supports not selector(:has(*)) { @media (max-width: 700px) { .erp-wrap.erp-single { padding-bottom: 88px; } } }

.erp-wrap .erp-sh__sec { margin: 2px 0 0; color: var(--erp-muted); font-size: 15px; font-weight: 600; text-decoration: line-through; }
.erp-wrap .erp-plan--file img { max-width: 100%; height: auto; }
.erp-wrap .erp-submit [hidden] { display: none !important; }

/* ------------------------------------------------------------------ [erp_cities] tiles ("Royal Gold Gallery") */
.erp-m1-section, #site-content .hentry .erp-m1-section { width: 100%; max-width: 100%; padding: 5px 0; background: #fff; box-sizing: border-box; contain: layout style; }
.erp-m1-section *, .erp-m1-section *::before, .erp-m1-section *::after { box-sizing: border-box; }
.erp-cities { display: grid; width: 100%; gap: 12px; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.erp-cities--c1 { grid-template-columns: minmax(0, 1fr); }
.erp-cities--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.erp-cities--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.erp-cities--c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.erp-cities--c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .erp-cities--c4, .erp-cities--c5, .erp-cities--c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
	.erp-cities.erp-cities:not(.erp-cities--c1) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
}
.erp-cities .erp-city,
.erp-cities .erp-city:visited,
.erp-cities .erp-city:hover,
.erp-cities .erp-city:focus {
	position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 0; text-align: center; text-decoration: none;
	overflow: hidden; isolation: isolate; background: #141418; color: #fff; border: 1px solid rgba(212, 175, 55, .45); box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
	transition: transform .4s cubic-bezier(.165, .84, .44, 1), box-shadow .4s ease;
}
.erp-cities .erp-city img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .65s cubic-bezier(.165, .84, .44, 1); }
.erp-cities .erp-city::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(11, 11, 14, .25) 0%, rgba(11, 11, 14, .85) 100%); pointer-events: none; }
.erp-cities .erp-city::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 0; pointer-events: none; transition: inset .35s ease, border-color .35s ease; }
.erp-cities .erp-city:focus-visible { outline: 3px solid #d4af37; outline-offset: 2px; }
@media (hover: hover) {
	.erp-cities .erp-city:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(140, 109, 31, .22); }
	.erp-cities .erp-city:hover img { transform: scale(1.08); }
	.erp-cities .erp-city:hover::after { inset: 7px; border-color: #d4af37; }
	.erp-cities .erp-city:hover .erp-city__arrow { transform: translateX(4px); }
}
.erp-cities .erp-city__txt { display: flex; flex-direction: column; gap: 8px; padding: 20px; z-index: 2; }
.erp-cities .erp-city__name { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; color: #fff; letter-spacing: .02em; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.erp-cities .erp-city__count {
	display: inline-flex; align-items: center; justify-content: center; align-self: center; gap: 6px; padding: 5px 12px; border-radius: 2px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; line-height: 1.4;
	color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); background: linear-gradient(135deg, #d4af37 0%, #8c6d1f 100%);
}
.erp-cities .erp-city__arrow { flex: none; width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.165, .84, .44, 1); }
.erp-cities .erp-city--empty { opacity: .92; }
@media (max-width: 768px) {
	.erp-cities .erp-city::after { inset: 6px; }
	.erp-cities .erp-city__txt { padding: 12px; gap: 6px; }
	.erp-cities .erp-city__name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .erp-cities .erp-city, .erp-cities .erp-city img, .erp-cities .erp-city::after, .erp-cities .erp-city__arrow { transition: none; } }

/* ------------------------------------------------------------------ v0.4.1: single page heading + phone layout */
.erp-sh .erp-sh__main h1 { font-size: 19px; }

/* Phones: ONE flat layer (no boxes inside boxes). Order: gallery edge to edge, heading, stats, details. */
@media (max-width: 700px) {
	.erp-wrap.erp-single { display: flex; flex-direction: column; gap: 0; padding-inline: 7px; padding-top: 0; }
	.erp-wrap.erp-single .erp-sp-layout,
	.erp-wrap.erp-single .erp-sp-main { display: contents; }
	.erp-wrap.erp-single .erp-gallery { order: -3; margin-inline: -7px; width: calc(100% + 14px); border-radius: 0; }
	.erp-wrap.erp-single .erp-sh { order: -2; margin: 0; }
	.erp-wrap.erp-single .erp-stats { order: -1; }

	/* Flat sections: white page, thin dividers, no card borders / shadows / rounded boxes. */
	.erp-wrap.erp-single .erp-sh,
	.erp-wrap.erp-single .erp-stats,
	.erp-wrap.erp-single .erp-section,
	.erp-wrap.erp-single .erp-contact { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
	.erp-wrap.erp-single .erp-section,
	.erp-wrap.erp-single .erp-contact { padding: 20px 7px; border-top: 1px solid var(--erp-line); }
	.erp-wrap.erp-single .erp-similar { border-top: 0; padding-inline: 0; }
	.erp-wrap.erp-single .erp-stats { gap: 0; background: transparent; border-top: 1px solid var(--erp-line); }
	.erp-wrap.erp-single .erp-stats__item { background: transparent; }

	.erp-wrap .erp-sh { display: block; padding: 14px 7px 12px; position: static; }
	.erp-wrap .erp-sh__main { gap: 8px; }
	.erp-wrap .erp-sh__badges { gap: 6px; margin: 0; }
	.erp-wrap .erp-sh .erp-sh__title { font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.005em; text-wrap: balance; }
	.erp-wrap .erp-sh__address { font-size: 14px; line-height: 1.4; gap: 6px; }
	.erp-wrap .erp-sh__address svg { margin-top: 2px; flex: none; }
	.erp-wrap .erp-sh__side { margin-top: 10px; padding-top: 0; border-top: 0; align-items: center; }
	.erp-wrap .erp-sh__price { font-size: 26px; letter-spacing: -.01em; }
	.erp-wrap .erp-sh__sec { margin: 0; font-size: 13px; }

	/* Search tabs "elevator": a row that clearly continues past the edge. */
	.erp-wrap .erp-search { overflow-x: clip; }
	.erp-wrap .erp-tabs-wrap { --erp-sp: 19px; position: relative; margin: 0 calc(-1 * var(--erp-sp)); }
}
@media (max-width: 600px) {
	.erp-wrap .erp-tabs-wrap { --erp-sp: 13px; }
}
@media (max-width: 700px) {
	.erp-wrap .erp-tabs-wrap .erp-tabs { margin: 0; width: 100%; padding: 6px 40px 8px var(--erp-sp); -webkit-mask-image: none; mask-image: none; scroll-padding-inline: var(--erp-sp); }
	.erp-wrap .erp-tabs-wrap::before,
	.erp-wrap .erp-tabs-wrap::after {
		content: ""; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s;
	}
	.erp-wrap .erp-tabs-wrap::before { left: 0; background: linear-gradient(to right, var(--erp-card, #fff) 20%, transparent); }
	.erp-wrap .erp-tabs-wrap::after { right: 0; background: linear-gradient(to left, var(--erp-card, #fff) 20%, transparent); }
	.erp-wrap .erp-tabs-wrap.has-left::before,
	.erp-wrap .erp-tabs-wrap.has-right::after { opacity: 1; }
	.erp-wrap .erp-tabs-arrow {
		position: absolute; top: 50%; z-index: 3; width: 30px; height: 30px; margin-top: -17px; padding: 0; border: 1px solid var(--erp-line); border-radius: 50%;
		background: #fff; color: var(--erp-accent); box-shadow: 0 2px 8px rgba(16, 24, 40, .18); display: none; align-items: center; justify-content: center; cursor: pointer;
	}
	.erp-wrap .erp-tabs-arrow--r { right: 6px; }
	.erp-wrap .erp-tabs-arrow--l { left: 6px; }
	.erp-wrap .erp-tabs-wrap.has-right .erp-tabs-arrow--r,
	.erp-wrap .erp-tabs-wrap.has-left .erp-tabs-arrow--l { display: inline-flex; }
	.erp-wrap .erp-tabs-wrap.is-nudging .erp-tabs-arrow--r { animation: erp-nudge 1.1s ease-in-out 2; }

	/* Customer CSS (single page, phones) */
	/* NOTE: a transform on this element would turn it into the containing block of the fixed contact bar (the bar would stick to the page bottom), so it is always neutralised. */
	#site-content .erp-single-page .erp-single { padding-top: 0; padding-left: 7px; padding-right: 7px; transform: none !important; }
	.erp-single .erp-sp-main .erp-gallery { border-radius: 0; }
	.erp-single .erp-sp-main .erp-map { padding: 5px; }
	.erp-single .erp-sp-main .erp-desc { padding-left: 7px; padding-right: 7px; }
	.erp-single .erp-sp-main .erp-details { padding-left: 7px; }
	.erp-single .erp-sp-main .erp-additional { padding-left: 7px; padding-right: 7px; }
	#erp-contact-form { padding-left: 7px; padding-right: 7px; }
}
@keyframes erp-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .erp-wrap .erp-tabs-wrap.is-nudging .erp-tabs-arrow--r { animation: none; } }

/* A transform on the page wrapper turns it into the containing block of the fixed contact bar (the bar would sit at the page bottom instead of the screen bottom). Always off; :is() gives this rule ID-level weight. */
:is(#site-content, body) .erp-single-page .erp-wrap.erp-single.erp-single,
:is(#site-content, body) .erp-wrap.erp-single.erp-single.erp-single { transform: none !important; }

/* ------------------------------------------------------------------ v0.4.3: [erp_selected] "Prona te Perzgjedhura" */
.erp-wrap .erp-sel { padding-block: 8px 4px; }
.erp-wrap .erp-sel__head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 28px; text-align: center; }
.erp-wrap .erp-sel__orn { display: block; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #8c6d1f, #f3d67a, #8c6d1f); box-shadow: 0 0 14px rgba(212, 175, 55, .45); }
.erp-wrap .erp-sel__title { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--erp-ink); text-wrap: balance; }
.erp-wrap .erp-sel__sub { max-width: 620px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--erp-muted); }
.erp-wrap .erp-sel__more { display: flex; justify-content: center; margin: 32px 0 0; }
.erp-wrap .erp-sel__btn,
.erp-wrap .erp-sel__btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 8px 0 22px; border-radius: 999px; text-decoration: none;
	background: linear-gradient(135deg, #d4af37 0%, #8c6d1f 100%); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
	box-shadow: 0 8px 18px rgba(140, 109, 31, .28), inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: transform .3s cubic-bezier(.165, .84, .44, 1), box-shadow .3s ease;
}
.erp-wrap .erp-sel__n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .26); font-size: 12px; font-weight: 800; }
.erp-wrap .erp-sel__arrow { flex: none; width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: #fff; stroke: #8c6d1f; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.165, .84, .44, 1); }
.erp-wrap .erp-sel__btn:hover, .erp-wrap .erp-sel__btn:focus-visible { color: #fff; }
.erp-wrap .erp-sel__btn:focus-visible { outline: 3px solid #d4af37; outline-offset: 3px; }
@media (hover: hover) {
	.erp-wrap .erp-sel__btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(140, 109, 31, .36), inset 0 1px 0 rgba(255, 255, 255, .25); }
	.erp-wrap .erp-sel__btn:hover .erp-sel__arrow { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .erp-wrap .erp-sel__btn, .erp-wrap .erp-sel__arrow { transition: none; } }

/* ------------------------------------------------------------------ v0.4.3: phones (<=700px) */
@media (max-width: 700px) {
	/* Search tabs: 3px corners with a touch of gold (All / For Rent / For Sale / ...). */
	.erp-wrap .erp-tab span { border-radius: 3px; border-color: rgba(212, 175, 55, .55); background: linear-gradient(180deg, #fffdf6, #faf3dc); }
	.erp-wrap .erp-tab input:checked + span { background: var(--erp-accent); border-color: var(--erp-accent); }
	/* Customer CSS: results/pages inside a WordPress page go edge to edge; card text keeps 10px. */
	#site-content .hentry .erp-wrap { padding-left: 0; padding-right: 0; }
	.erp-grid--grid .erp-card--grid .erp-card__body { padding-left: 10px; padding-right: 10px; }
	.erp-wrap .erp-sel__head { margin-bottom: 20px; padding-inline: 10px; }
	.erp-wrap .erp-sel__more { padding-inline: 10px; }
	.erp-wrap .erp-sel__btn { width: auto; max-width: 100%; justify-content: center; gap: 8px; padding: 0 8px 0 16px; font-size: clamp(12.5px, 3.9vw, 14px); white-space: nowrap; }
}
@media (max-width: 700px) {
	#site-content .hentry .erp-m1-section, .erp-m1-section { padding-top: 3px; padding-bottom: 3px; }
}

/* ------------------------------------------------------------------ property form (v0.5) */
.erp-wrap .erp-submit__title { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: var(--erp-ink); line-height: 1.2; }
.erp-wrap .erp-submit__lead { margin: -8px 0 4px; color: var(--erp-muted); font-size: 15px; }
.erp-wrap .erp-submit legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.erp-wrap .erp-submit legend small { flex-basis: 100%; margin-left: 40px; font-size: 13px; font-weight: 500; color: var(--erp-muted); }
.erp-wrap .erp-step {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--erp-accent); color: var(--erp-on-accent); font-size: 14px; font-weight: 800;
}
.erp-wrap .erp-submit .erp-field > label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--erp-ink); }
.erp-wrap .erp-submit .erp-field input[type="text"],
.erp-wrap .erp-submit .erp-field select,
.erp-wrap .erp-submit .erp-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; }
.erp-wrap .erp-submit .erp-field input[type="file"] { width: 100%; padding: 14px; border: 1.5px dashed var(--erp-line); border-radius: var(--erp-radius-s); background: #fafafa; box-sizing: border-box; }
.erp-wrap .erp-submit .erp-hint { display: block; }
.erp-wrap .erp-submit__actions .erp-btn { min-height: 50px; padding-inline: 28px; font-size: 16px; }
@media (max-width: 700px) { .erp-wrap .erp-submit legend small { margin-left: 0; } }

/* WhatsApp = brand green glyph everywhere (contact card button too) */
.erp-wrap .erp-btn--wa .erp-i--whatsapp { color: #25d366; }
.erp-wrap .erp-btn--wa { color: #0b6b36; }

.erp-wrap .erp-pstat { margin: 0 0 14px; padding: 12px 16px; border: 1px solid #ead9a0; border-left: 4px solid #8c6d1f; border-radius: var(--erp-radius-s); background: #fcf9ee; font-size: 14px; line-height: 1.5; }
.erp-wrap .erp-pstat__t { display: block; margin-bottom: 4px; }
.erp-wrap .erp-pstat ul { margin: 0; padding: 0; list-style: none; }
.erp-wrap .erp-pstat li { margin: 0; padding-inline-start: 22px; position: relative; }
.erp-wrap .erp-pstat li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 700; }
.erp-wrap .erp-pstat li.is-on::before { content: "\2713"; color: #15803d; }
.erp-wrap .erp-pstat li.is-off::before { content: "\2013"; color: #6b7280; }
.erp-wrap .erp-pstat__l { margin: 8px 0 0; color: #4b5563; font-size: 13px; }
