:root {
	--mfb-accent: #CC0000;
	--mfb-marker-size: 44px;
}

.mfb-hotspot-wrapper {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	border-radius: 8px;
	-webkit-user-select: none;
	user-select: none;
}

.mfb-hotspot-image {
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
}

.mfb-hotspot-marker {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 10;
	line-height: 1;
}

.mfb-marker-button {
	position: relative;
	width: var(--mfb-marker-size, 44px);
	height: var(--mfb-marker-size, 44px);
	min-width: 40px;
	min-height: 40px;
	border-radius: 50%;
	background-color: var(--mfb-accent, #CC0000);
	color: #fff;
	border: 3px solid rgba(255, 255, 255, 0.92);
	font-size: 17px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	outline: none;
}

.mfb-marker-button:hover,
.mfb-marker-button:focus-visible {
	transform: scale(1.16);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.mfb-marker-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.mfb-marker-button[aria-expanded="true"] {
	transform: scale(1.18);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.mfb-marker-button::before {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background-color: var(--mfb-accent, #CC0000);
	opacity: 0.4;
	animation: mfb-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

.mfb-no-pulse .mfb-marker-button::before {
	display: none;
}

@keyframes mfb-pulse {
	0% { transform: scale(1); opacity: 0.55; }
	75% { transform: scale(2.6); opacity: 0; }
	100% { transform: scale(2.6); opacity: 0; }
}

.mfb-modal {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}

.mfb-modal.is-open {
	opacity: 1;
	pointer-events: all;
}

.mfb-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.74);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

.mfb-modal-content {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 640px;
	width: calc(100% - 40px);
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), 0 8px 20px rgba(0, 0, 0, 0.18);
	transform: translateY(24px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	outline: none;
}

.mfb-modal.is-open .mfb-modal-content {
	transform: translateY(0) scale(1);
}

.mfb-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.07);
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #444;
	transition: background 0.15s, color 0.15s;
	padding: 0;
	z-index: 2;
	outline: none;
}

.mfb-modal-close:hover {
	background: rgba(0, 0, 0, 0.14);
	color: #111;
}

.mfb-modal-close:focus-visible {
	outline: 2px solid var(--mfb-accent, #CC0000);
	outline-offset: 2px;
}

.mfb-modal-close svg {
	width: 18px;
	height: 18px;
}

.mfb-modal-image-wrap {
	overflow: hidden;
	border-radius: 14px 14px 0 0;
	line-height: 0;
	display: none;
}

.mfb-modal-image-wrap.has-image {
	display: block;
}

.mfb-modal-image {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}

.mfb-modal-body {
	padding: 28px 32px 32px;
}

.mfb-modal-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 2px solid #f0f0f0;
	padding-left: 16px;
	border-left: 5px solid var(--mfb-accent, #CC0000);
}

.mfb-modal-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	border-radius: 50%;
	background: var(--mfb-accent, #CC0000);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	flex-shrink: 0;
	font-family: inherit;
	letter-spacing: -0.02em;
}

.mfb-modal-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.28;
	color: #111;
	margin: 0;
	padding: 0;
	border: none;
	font-family: inherit;
}

.mfb-modal-description {
	color: #3c3c3c;
	font-size: 15px;
	line-height: 1.72;
	margin-bottom: 0;
}

.mfb-modal-description p {
	margin: 0 0 1em;
}

.mfb-modal-description p:last-child {
	margin-bottom: 0;
}

.mfb-modal-link {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	background: var(--mfb-accent, #CC0000);
	color: #fff !important;
	text-decoration: none !important;
	padding: 12px 22px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: filter 0.18s, transform 0.18s;
	border: none;
	cursor: pointer;
}

.mfb-modal-link.is-visible {
	display: inline-flex;
}

.mfb-modal-link:hover {
	filter: brightness(0.88);
	transform: translateY(-1px);
}

.mfb-modal-link svg {
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.mfb-modal {
		align-items: flex-end;
	}

	.mfb-modal-content {
		width: 100%;
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		max-height: 92vh;
		transform: translateY(100%);
	}

	.mfb-modal.is-open .mfb-modal-content {
		transform: translateY(0);
	}

	.mfb-modal-body {
		padding: 20px 20px 36px;
	}

	.mfb-modal-title {
		font-size: 19px;
	}

	.mfb-marker-button {
		width: 40px;
		height: 40px;
		font-size: 14px;
		border-width: 2px;
	}
}
