/**
 * Каталог: режим «Карта» — раскладка как у Авито. Обычный CSS (без Tailwind),
 * подключается только на каталоге из inc/properties/catalog-map.php.
 *
 * Режим включается классом ho-map-mode на <html> (ставит assets/js/catalog-map.js).
 * ≥768px: слева карточки (2 колонки на широком экране, 1 на средней ширине),
 *         справа липкая карта под шапкой; сайдбар фильтров — выдвижной панелью.
 * <768px: карта на весь экран под шапкой, сверху — «Фильтры» и «Список / Карта»,
 *         мини-карточка объекта — шторкой снизу.
 * --ho-map-top — низ фиксированной шапки, --ho-map-bar — высота тулбара на телефоне (JS).
 */

/* ——— Кнопки переключателя вида ——— */
.ho-catalog-view__btn.ho-catalog-view__btn--map,
.ho-catalog-view__btn.ho-catalog-view__btn--back {
	width: auto;
	padding: 0 0.7rem 0 0.6rem;
	gap: 0.4rem;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.ho-catalog-view__btn.ho-catalog-view__btn--back,
.ho-catalog-view__btn.ho-catalog-view__btn--back[hidden] {
	display: none;
}

/* ——— Контейнер карты ——— */
.ho-catalog-map {
	display: none;
	position: relative;
	/* Свой слой: панели Leaflet (z-index до 1000) не залезают на шапку и панель фильтров. */
	isolation: isolate;
	z-index: 0;
}

html.ho-map-mode .ho-catalog-map {
	display: block;
}

.ho-catalog-map__canvas {
	position: relative;
	height: calc(100vh - var(--ho-map-top, 80px) - 1.5rem);
	height: calc(100svh - var(--ho-map-top, 80px) - 1.5rem);
	min-height: 420px;
	border: 1px solid rgba(201, 168, 76, 0.22);
	border-radius: 16px;
	overflow: hidden;
	background: #0c111c;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ho-catalog-map .leaflet-container {
	font-family: inherit;
	background: #0c111c;
	color: #fff;
}

/* Подложка OSM приглушена под тёмный сайт — тот же приём, что у карты на странице объекта (grayscale). */
.ho-catalog-map .ho-map-tiles {
	filter: grayscale(0.92) brightness(0.72) contrast(1.08);
}

.ho-catalog-map__canvas::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 401;
	pointer-events: none;
	box-shadow: inset 0 0 60px rgba(12, 17, 28, 0.55);
	border-radius: inherit;
}

/* ——— Раскладка «список + карта» (≥768px) ——— */
html.ho-map-mode .ho-catalog-page__layout {
	display: block;
}

@media (min-width: 768px) {
	html.ho-map-mode .ho-catalog-page > .max-w-7xl {
		max-width: 1760px;
	}

	html.ho-map-mode .ho-catalog-page__main {
		display: grid;
		grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
		column-gap: 1.5rem;
		align-items: start;
	}

	html.ho-map-mode .ho-catalog-page__main > * {
		grid-column: 1;
		grid-row: 2;
	}

	html.ho-map-mode .ho-catalog-page__main > .ho-catalog-list {
		grid-row: 1;
	}

	html.ho-map-mode .ho-catalog-page__main > .ho-catalog-map {
		grid-column: 2;
		grid-row: 1 / span 2;
		position: sticky;
		top: calc(var(--ho-map-top, 80px) + 0.75rem);
		z-index: 1;
	}

	/* Тулбар списка («Фильтры», «Объекты · N», вид) липкий — всегда под рукой. */
	html.ho-map-mode .ho-catalog-list > .ho-catalog-toolbar {
		position: sticky;
		top: var(--ho-map-top, 64px);
		z-index: 5;
		margin-bottom: 1rem;
		padding-top: 0.75rem;
		background: #151d2e;
	}

	/* Контент шире бокса шапки — подложить шапке фон на всю ширину. */
	html.ho-map-mode .site-nav {
		background: rgba(16, 24, 40, 0.96);
		backdrop-filter: blur(12px);
	}

	/* Карточки плотнее: 2 колонки, когда колонка списка шире ~540px, иначе 1. */
	html.ho-map-mode #ho-catalog-results {
		grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
		gap: 1rem;
	}

	html.ho-map-mode .ho-catalog-toolbar {
		flex-wrap: wrap;
	}
}

/* Связь списка и карты: карточка, на чью точку навели/кликнули. */
.ho-property-card.is-map-hover,
.ho-property-card.is-map-active {
	outline: 1.5px solid rgba(201, 168, 76, 0.75);
	outline-offset: 3px;
	border-radius: 14px;
}

.ho-property-card.is-map-active {
	outline-color: #c9a84c;
	box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.12), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

/* ——— Фильтры в режиме карты: кнопка и выдвижная панель на любой ширине ——— */
/* Строка над списком, как у Авито: «Фильтры N» и сброс ↺ слева, переключатель вида справа. */
html.ho-map-mode .ho-catalog-toolbar {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

html.ho-map-mode .ho-catalog-filters__trigger {
	order: 0;
}

html.ho-map-mode .ho-catalog-map-reset {
	order: 1;
}

html.ho-map-mode .ho-catalog-toolbar .ho-catalog-view {
	order: 2;
	margin-left: auto;
}

/* «Фильтры» — главная кнопка сайта: золотая. */
html.ho-map-mode .ho-catalog-filters__trigger {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: auto;
	height: 2.75rem;
	margin: 0;
	padding: 0 1.1rem;
	border-radius: 0.75rem;
	border: 0;
	background: #c9a84c;
	color: #101828;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	backdrop-filter: none;
	box-shadow: 0 8px 20px -10px rgba(201, 168, 76, 0.6);
	transition: background 0.2s ease, transform 0.2s ease;
}

html.ho-map-mode .ho-catalog-filters__trigger:hover {
	background: #e2c97e;
	transform: translateY(-1px);
}

html.ho-map-mode .ho-catalog-filters__trigger .ho-catalog-filters__badge {
	min-width: 1.4rem;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: #101828;
	color: #e8d5a3;
	font-size: 0.78rem;
	font-weight: 600;
	text-align: center;
}

html.ho-map-mode .ho-catalog-filters__trigger .ho-catalog-filters__badge[hidden] {
	display: none;
}

/* Круглый сброс фильтров — только в режиме карты и только при активных фильтрах. */
.ho-catalog-map-reset {
	display: none;
}

html.ho-map-mode .ho-catalog-map-reset:not([hidden]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(201, 168, 76, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.03);
	color: #e8d5a3;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}

html.ho-map-mode .ho-catalog-map-reset:hover {
	background: rgba(201, 168, 76, 0.14);
	border-color: #c9a84c;
	transform: rotate(-60deg);
}

/* На <1024px панель уже выдвижная (main.css), здесь — то же для десктопа, слева. */
@media (min-width: 1024px) {
	html.ho-map-mode .ho-catalog-filters__overlay {
		position: fixed;
		inset: 0;
		z-index: 60;
		background: rgba(8, 12, 22, 0.72);
		backdrop-filter: blur(2px);
	}

	html.ho-map-mode .ho-catalog-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 70;
		width: min(400px, calc(100vw - 2rem));
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 0;
		overflow: hidden;
		border-right: 1px solid rgba(148, 163, 184, 0.18);
		background: #151d2e;
		box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
		transform: translateX(-102%);
		transition: transform 0.28s ease;
		overscroll-behavior: contain;
	}

	html.ho-map-mode .ho-catalog-filters.is-open .ho-catalog-sidebar {
		transform: translateX(0);
	}

	html.ho-map-mode .ho-catalog-sidebar__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		padding: 1.25rem 1.25rem 1rem;
		border-bottom: 1px solid rgba(148, 163, 184, 0.16);
	}

	html.ho-map-mode .ho-catalog-filters__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2rem;
		height: 2rem;
		border-radius: 0.5rem;
		border: 1px solid rgba(148, 163, 184, 0.22);
		background: transparent;
		color: rgba(226, 232, 240, 0.75);
		cursor: pointer;
	}

	html.ho-map-mode .ho-catalog-sidebar__widgets {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 1rem 1.25rem 1.25rem;
	}

	html.ho-map-mode .ho-catalog-sidebar__foot {
		display: block;
		flex: 0 0 auto;
		padding: 0.9rem 1.25rem 1rem;
		border-top: 1px solid rgba(148, 163, 184, 0.16);
		background: #151d2e;
	}

	html.ho-map-mode .ho-catalog-filters__apply {
		width: 100%;
		padding: 0.85rem 1rem;
		border-radius: 0.75rem;
		border: 0;
		background: var(--ho-gold, #d4af6e);
		color: #151d2e;
		font-size: 0.95rem;
		font-weight: 500;
		cursor: pointer;
	}

}

/* Панель фильтров в режиме карты на любой ширине: целиком в окне, прокрутка — только внутри. */
html.ho-map-mode .ho-catalog-sidebar {
	max-width: 100vw;
	box-sizing: border-box;
}

html.ho-map-mode .ho-catalog-sidebar__head,
html.ho-map-mode .ho-catalog-sidebar__foot {
	flex-shrink: 0;
}

html.ho-map-mode .ho-catalog-sidebar__widgets {
	min-height: 0;
	overscroll-behavior: contain;
}

html.ho-map-mode body.ho-no-scroll {
	overflow: hidden;
}

/* ——— Телефон: карта на весь экран под шапкой ——— */
@media (max-width: 767px) {
	html.ho-map-mode,
	html.ho-map-mode body {
		overflow: hidden;
	}

	html.ho-map-mode .ho-catalog-toolbar {
		position: fixed;
		top: var(--ho-map-top, 64px);
		left: 0;
		right: 0;
		z-index: 45;
		margin: 0;
		padding: 0.55rem 1rem;
		background: #0c111c;
		border-bottom: 1px solid rgba(201, 168, 76, 0.18);
	}

	html.ho-map-mode .ho-catalog-filters__trigger {
		height: 2.5rem;
		padding: 0 0.9rem;
	}

	html.ho-map-mode .ho-catalog-map-reset:not([hidden]) {
		width: 2.5rem;
		height: 2.5rem;
	}

	/* Панель фильтров в режиме карты — на весь экран. */
	html.ho-map-mode .ho-catalog-sidebar {
		top: 0;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		border-radius: 0;
		border: 0;
	}

	html.ho-map-mode .ho-catalog-sidebar__head::before {
		display: none;
	}

	/* Переключатель «Список / Карта»: иконки сетки и списка уступают место кнопке «Список». */
	html.ho-map-mode .ho-catalog-view [data-catalog-view] {
		display: none;
	}

	html.ho-map-mode .ho-catalog-view__btn.ho-catalog-view__btn--back[hidden] {
		display: inline-flex;
	}

	html.ho-map-mode .ho-catalog-page__main > :not(.ho-catalog-list):not(.ho-catalog-map),
	html.ho-map-mode .ho-catalog-list > :not(.ho-catalog-toolbar) {
		display: none !important;
	}

	html.ho-map-mode .ho-catalog-map {
		position: fixed;
		top: calc(var(--ho-map-top, 64px) + var(--ho-map-bar, 56px));
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
	}

	html.ho-map-mode .ho-catalog-map__canvas {
		height: 100%;
		min-height: 0;
		border: 0;
		border-radius: 0;
	}
}

/* ——— Легенда, подсказка, пустое состояние, шторка ——— */
.ho-catalog-map__legend {
	position: absolute;
	left: 0.6rem;
	bottom: 0.6rem;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.9rem;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(12, 17, 28, 0.85);
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(226, 232, 240, 0.75);
	pointer-events: none;
}

.ho-catalog-map__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.ho-catalog-map__legend-dot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: #111827;
	border: 1.5px solid #c9a84c;
}

.ho-catalog-map__legend-dot--approx {
	border-style: dashed;
	opacity: 0.75;
}

@media (max-width: 767px) {
	.ho-catalog-map__legend {
		bottom: 1.4rem;
		max-width: calc(100% - 1.2rem);
	}
}

.ho-catalog-map__hint {
	position: absolute;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	border-radius: inherit;
	background: rgba(12, 17, 28, 0.55);
	color: #fff;
	font-size: 1rem;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.ho-catalog-map__hint.is-visible {
	opacity: 1;
}

.ho-catalog-map__empty {
	position: absolute;
	top: 1rem;
	left: 50%;
	z-index: 1050;
	transform: translateX(-50%);
	margin: 0;
	padding: 0.65rem 1.1rem;
	border: 1px solid rgba(201, 168, 76, 0.35);
	border-radius: 999px;
	background: rgba(12, 17, 28, 0.92);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	font-weight: 300;
	white-space: nowrap;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ho-catalog-map__empty[hidden],
.ho-catalog-map__sheet[hidden] {
	display: none;
}

/* Мини-карточка снизу (телефон). */
.ho-catalog-map__sheet {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: calc(0.75rem + env(safe-area-inset-bottom));
	z-index: 1200;
	border: 1px solid rgba(201, 168, 76, 0.3);
	border-radius: 14px;
	overflow: hidden;
	background: #121a2a;
	color: #fff;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);
	animation: ho-map-sheet-in 0.22s ease-out;
}

@keyframes ho-map-sheet-in {
	from {
		transform: translateY(16px);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

.ho-map-card--sheet {
	position: relative;
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr);
	font-size: 0.875rem;
	line-height: 1.4;
}

.ho-map-card--sheet .ho-map-card__media {
	aspect-ratio: auto;
	height: 100%;
	min-height: 8rem;
}

.ho-map-card--sheet .ho-map-card__body {
	padding: 0.75rem 2.4rem 0.8rem 0.85rem;
}

.ho-map-card--sheet p {
	margin: 0;
}

.ho-map-card--sheet .ho-map-card__title a,
.ho-map-card--sheet .ho-map-card__more {
	text-decoration: none;
}

.ho-map-card--sheet .ho-map-card__more {
	color: #c9a84c;
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.ho-map-card__close {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	z-index: 2;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.25rem;
	line-height: 2rem;
	cursor: pointer;
}

/* ——— Точки-плашки с ценой ——— */
.ho-map-pin-wrap,
.ho-map-cluster-wrap {
	background: none;
	border: 0;
}

.ho-map-pin {
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	transform: translate(-50%, calc(-100% - 7px));
	padding: 0.32rem 0.6rem;
	border: 1.5px solid #c9a84c;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* «Хвостик» плашки, указывает на точку. */
.ho-map-pin::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 9px;
	height: 9px;
	transform: translateX(-50%) rotate(45deg);
	background: inherit;
	border-right: 1.5px solid #c9a84c;
	border-bottom: 1.5px solid #c9a84c;
}

.ho-map-pin:hover,
.ho-map-pin.is-hover,
.leaflet-marker-icon:focus-visible .ho-map-pin {
	transform: translate(-50%, calc(-100% - 9px));
	background: #2a2414;
	border-color: #e2c97e;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(201, 168, 76, 0.3);
}

.ho-map-pin.is-active {
	background: #c9a84c;
	color: #101828;
	border-color: #e2c97e;
}

.ho-map-pin.is-active::after {
	border-color: #e2c97e;
}

/* Расположение примерное — по центру района: пунктир и полупрозрачность. */
.ho-map-pin--approx {
	border-style: dashed;
	background: rgba(17, 24, 39, 0.78);
	color: rgba(255, 255, 255, 0.85);
}

.ho-map-pin--approx::after {
	display: none;
}

.ho-map-pin--approx.is-active {
	background: #c9a84c;
	color: #101828;
}

/* Без цены («по запросу») — круглая точка без суммы. */
.ho-map-pin--dot {
	width: 14px;
	height: 14px;
	padding: 0;
	transform: translate(-50%, -50%);
}

.ho-map-pin--dot::after {
	display: none;
}

.ho-map-pin--dot:hover,
.ho-map-pin--dot.is-hover {
	transform: translate(-50%, -50%) scale(1.25);
}

/* ——— Кластеры: «N от X млн ₽» ——— */
.ho-map-cluster {
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	transform: translate(-50%, -50%);
	padding: 0.4rem 0.75rem;
	border: 1.5px solid #c9a84c;
	border-radius: 999px;
	background: linear-gradient(180deg, #1c2539, #0c111c);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.16), 0 8px 22px rgba(0, 0, 0, 0.55);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ho-map-cluster b {
	color: #e8d5a3;
	font-size: 0.875rem;
	font-weight: 700;
}

.ho-map-cluster:hover,
.ho-map-cluster.is-hover {
	transform: translate(-50%, -50%) scale(1.06);
	background: linear-gradient(180deg, #3a3020, #1a160c);
	box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.3), 0 10px 26px rgba(0, 0, 0, 0.6);
}

.ho-map-cluster.is-active {
	background: #c9a84c;
	color: #101828;
}

.ho-map-cluster.is-active b {
	color: #101828;
}

/* ——— Мини-карточка (popup) ——— */
.ho-map-popup .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #121a2a;
	color: #fff;
	border: 1px solid rgba(201, 168, 76, 0.3);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.ho-map-popup .leaflet-popup-content {
	margin: 0;
	width: 280px !important;
	max-width: calc(100vw - 72px);
	line-height: 1.4;
	font-size: 0.875rem;
}

.ho-map-popup .leaflet-popup-tip {
	background: #121a2a;
	border: 1px solid rgba(201, 168, 76, 0.3);
	box-shadow: none;
}

.ho-map-popup a.leaflet-popup-close-button {
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(12, 17, 28, 0.75);
	color: #fff;
	font: 18px/28px sans-serif;
	text-align: center;
	backdrop-filter: blur(4px);
}

.ho-map-popup a.leaflet-popup-close-button:hover {
	color: #e2c97e;
	background: rgba(12, 17, 28, 0.9);
}

.ho-map-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: #0c111c;
	overflow: hidden;
}

.ho-map-card__media.is-broken {
	background: linear-gradient(135deg, #1c2539, #0c111c);
}

.ho-map-card__media.is-broken img {
	visibility: hidden;
}

.ho-map-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ho-map-card__media:hover img {
	transform: scale(1.04);
}

.ho-map-card__body {
	padding: 0.85rem 1rem 0.95rem;
}

.ho-map-card .ho-map-card__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
}

.ho-map-card__title a,
.ho-map-popup .leaflet-popup-content a.ho-map-card__title-link {
	color: inherit;
	text-decoration: none;
}

.ho-map-card__title a:hover {
	color: #e2c97e;
}

.ho-map-popup .leaflet-popup-content p {
	margin: 0;
}

.ho-map-card .ho-map-card__location {
	color: rgba(226, 232, 240, 0.65);
	font-size: 0.8125rem;
	font-weight: 300;
}

.ho-map-card .ho-map-card__approx {
	margin-top: 0.35rem;
	padding-left: 0.55rem;
	border-left: 2px dashed rgba(201, 168, 76, 0.6);
	color: rgba(232, 213, 163, 0.85);
	font-size: 0.75rem;
	font-weight: 300;
}

.ho-map-card__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.7rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ho-map-card__price {
	color: #e8d5a3;
	font-size: 1.05rem;
	font-weight: 600;
	white-space: nowrap;
}

.ho-map-card__price.is-request {
	font-size: 0.875rem;
	font-weight: 400;
	color: rgba(232, 213, 163, 0.85);
}

.ho-map-popup .leaflet-popup-content a.ho-map-card__more {
	color: #c9a84c;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.ho-map-popup .leaflet-popup-content a.ho-map-card__more:hover {
	color: #e2c97e;
}

/* ——— Элементы управления Leaflet под тёмную тему ——— */
.ho-catalog-map .leaflet-bar {
	border: 1px solid rgba(201, 168, 76, 0.3);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.ho-catalog-map .leaflet-bar a {
	width: 34px;
	height: 34px;
	line-height: 34px;
	background: rgba(12, 17, 28, 0.92);
	color: #e8d5a3;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ho-catalog-map .leaflet-bar a:hover,
.ho-catalog-map .leaflet-bar a:focus-visible {
	background: #1a2336;
	color: #fff;
}

.ho-catalog-map .leaflet-bar a.leaflet-disabled {
	background: rgba(12, 17, 28, 0.8);
	color: rgba(255, 255, 255, 0.25);
}

.ho-map-ctrl {
	display: flex;
	gap: 0;
	border: 1px solid rgba(201, 168, 76, 0.3);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(12, 17, 28, 0.92);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.ho-map-ctrl__btn {
	padding: 0.5rem 0.8rem;
	border: 0;
	background: transparent;
	color: #e8d5a3;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ho-map-ctrl__btn + .ho-map-ctrl__btn {
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ho-map-ctrl__btn:hover,
.ho-map-ctrl__btn:focus-visible {
	background: #1a2336;
	color: #fff;
}

.ho-catalog-map .leaflet-control-attribution {
	background: rgba(12, 17, 28, 0.78);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.6875rem;
	border-top-left-radius: 6px;
}

.ho-catalog-map .leaflet-control-attribution a {
	color: #c9a84c;
}

/* Ноги «паука» у совпадающих точек. */
.ho-catalog-map .leaflet-cluster-spider-leg {
	stroke: #c9a84c;
}
