.cthm-map {
	--cthm-shadow: 0 22px 52px rgba(45, 36, 26, 0.22);
	position: relative;
}

.cthm-map__canvas {
	position: relative;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.cthm-map__image {
	display: block;
	width: 100%;
	height: auto;
}

.cthm-map__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cthm-map__area {
	fill: var(--cthm-fill, #36a853);
	fill-opacity: var(--cthm-fill-opacity, 0.3);
	stroke: none;
	stroke-width: 0;
	cursor: pointer;
	transition: fill 0.16s ease, fill-opacity 0.16s ease;
}

.cthm-map__area:hover,
.cthm-map__area:focus,
.cthm-map__area.is-active {
	fill: var(--cthm-hover-fill, #21863a);
	fill-opacity: var(--cthm-hover-opacity, 0.58);
	outline: none;
}

.cthm-map__tooltip {
	position: absolute;
	left: var(--cthm-tooltip-left, 16px);
	top: var(--cthm-tooltip-top, 16px);
	z-index: 5;
	width: min(318px, calc(100% - 32px));
	pointer-events: auto;
}

.cthm-map__tooltip-panel {
	--cthm-status-color: #2f6f47;
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 12px;
	padding: 14px;
	border-radius: 12px;
	background: rgba(247, 242, 238, 0.97);
	box-shadow: var(--cthm-shadow);
	backdrop-filter: blur(8px);
}

.cthm-map__tooltip-panel::after {
	content: "";
	position: absolute;
	left: calc(var(--cthm-tooltip-arrow-left, 50%) - 14px);
	width: 28px;
	height: 28px;
	background: rgba(247, 242, 238, 0.97);
	transform: rotate(45deg);
	z-index: 0;
}

.cthm-map__tooltip[data-placement="top"] .cthm-map__tooltip-panel::after {
	bottom: -8px;
}

.cthm-map__tooltip[data-placement="bottom"] .cthm-map__tooltip-panel::after {
	top: -8px;
}

.cthm-map__tooltip-content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 146px;
	gap: 12px;
	align-items: stretch;
}

.cthm-map__tooltip-main {
	display: grid;
	align-content: start;
	gap: 10px;
	min-width: 0;
}

.cthm-map__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 28px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--cthm-status-color);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.cthm-map__title {
	margin: 0;
	color: #5a4337;
	font-size: clamp(16px, 1.5vw, 22px);
	line-height: 1.02;
}

.cthm-map__disposition {
	color: #5a4337;
	font-size: clamp(13px, 1.1vw, 18px);
	font-weight: 500;
	line-height: 1.05;
}

.cthm-map__price {
	color: #2f6f47;
	font-size: clamp(13px, 1vw, 18px);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.cthm-map__tooltip-media {
	position: relative;
	z-index: 2;
	height: 100%;
	min-height: 92px;
	border-radius: 10px;
	overflow: hidden;
	background: #e9e2da;
}

.cthm-map__tooltip-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cthm-map__button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #2f6f47;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.cthm-map__button:hover,
.cthm-map__button:focus {
	background: #265b3a;
	color: #ffffff;
	transform: translateY( -1px );
}

@media (max-width: 1024px) {
	.cthm-map__tooltip {
		width: min(292px, calc(100% - 24px));
	}

	.cthm-map__tooltip-content {
		grid-template-columns: minmax(0, 1fr) 112px;
	}
}

@media (max-width: 767px) {
	.cthm-map__tooltip {
		width: min(190px, calc(100% - 16px));
	}

	.cthm-map__tooltip-panel::after {
		display: none;
	}

	.cthm-map__tooltip-media {
		min-height: 58px;
		border-radius: 8px;
	}

	.cthm-map__title {
		font-size: 12px;
	}

	.cthm-map__disposition,
	.cthm-map__price {
		font-size: 10px;
	}

	.cthm-map__badge {
		min-height: 18px;
		padding: 3px 8px;
		font-size: 10px;
	}

	.cthm-map__tooltip-panel {
		gap: 6px;
		padding: 8px;
		border-radius: 10px;
	}

	.cthm-map__tooltip-content {
		grid-template-columns: minmax(0, 1fr) 68px;
		gap: 6px;
		align-items: start;
	}

	.cthm-map__tooltip-main {
		gap: 6px;
	}

	.cthm-map__button {
		min-height: 28px;
		padding: 6px 8px;
		font-size: 9px;
		border-radius: 6px;
	}

	.cthm-map__title {
		font-size: 14px;
	}

	.cthm-map__disposition,
	.cthm-map__price {
		font-size: 11px;
	}
}

/* Hermanicky Dvur loop grid price widget: keep prices on one line and neutralize iOS auto-links. */
.elementor-548 .elementor-element.elementor-element-44e7b52 .elementor-icon-list-items,
.elementor-548 .elementor-element.elementor-element-44e7b52 .elementor-icon-list-item,
.elementor-548 .elementor-element.elementor-element-44e7b52 .elementor-icon-list-text,
.elementor-548 .elementor-element.elementor-element-44e7b52 .elementor-icon-list-item > a,
.elementor-548 .elementor-element.elementor-element-44e7b52 a[x-apple-data-detectors],
.elementor-548 .elementor-element.elementor-element-44e7b52 a[x-apple-data-detectors] * {
	white-space: nowrap;
	word-break: keep-all;
	color: inherit !important;
	text-decoration: none !important;
}

.elementor-548 .elementor-element.elementor-element-44e7b52 a,
.elementor-548 .elementor-element.elementor-element-44e7b52 a[x-apple-data-detectors] {
	pointer-events: none;
	cursor: default;
}
