.f7-ydm-map-wrap {
	position: relative;
	width: 100%;
	margin: 1em 0;
	container-type: inline-size;
	container-name: f7ydm;
}

.f7-ydm-map-json {
	display: none !important;
}

.f7-ydm-map-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

/* Узкий контейнер (<800px): мобильный лейаут по умолчанию */
.f7-ydm-aside--desktop {
	display: none;
}

@container f7ydm (min-width: 800px) {
	.f7-ydm-map-row {
		flex-direction: row;
		gap: 16px;
		align-items: stretch;
	}

	.f7-ydm-map-main {
		flex: 3 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
	}

	.f7-ydm-aside--desktop {
		flex: 1 1 0;
		min-width: 0;
		max-width: 33.333%;
		display: flex;
		flex-direction: column;
	}

	.f7-ydm-mobile-list {
		display: none !important;
	}

	.f7-ydm-map-scrollshield {
		display: none !important;
	}
}

.f7-ydm-map-wrap--layout-desktop .f7-ydm-map-row {
	flex-direction: row;
	gap: 16px;
	align-items: stretch;
}

.f7-ydm-map-wrap--layout-desktop .f7-ydm-map-main {
	flex: 3 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.f7-ydm-map-wrap--layout-desktop .f7-ydm-aside--desktop {
	flex: 1 1 0;
	min-width: 0;
	max-width: 33.333%;
	display: flex;
	flex-direction: column;
}

.f7-ydm-map-wrap--layout-desktop .f7-ydm-mobile-list {
	display: none !important;
}

.f7-ydm-map-wrap--layout-desktop .f7-ydm-map-scrollshield {
	display: none !important;
}

.f7-ydm-map-main {
	position: relative;
	min-width: 0;
}

.f7-ydm-map-canvas {
	width: 100%;
	height: var(--f7-ydm-map-height, 420px);
	min-height: 240px;
	background: #e8eef5;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.f7-ydm-map-canvas > * {
	width: 100%;
	height: 100%;
}

.f7-ydm-map-scrollshield {
	position: absolute;
	inset: 0;
	z-index: 25;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px 14px;
	border: 0;
	border-radius: 6px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.42);
	color: #3d424a;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-y;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.f7-ydm-map-scrollshield:hover,
.f7-ydm-map-scrollshield:focus {
	background: rgba(255, 255, 255, 0.52);
	color: #1a1c20;
}

.f7-ydm-map-scrollshield:focus-visible {
	outline: 2px solid #fc3f1e;
	outline-offset: -2px;
}

.f7-ydm-map-scrollshield--dismissed {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.f7-ydm-map-scrollshield__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 200px;
	text-align: center;
	pointer-events: none;
}

.f7-ydm-map-scrollshield__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5c616b;
	opacity: 0.92;
}

.f7-ydm-map-scrollshield__svg {
	display: block;
}

.f7-ydm-map-scrollshield__text {
	font-size: 12px;
	line-height: 1.35;
	font-weight: 500;
	color: #4a4f59;
	letter-spacing: 0.01em;
}

.f7-ydm-aside-scroll {
	height: var(--f7-ydm-map-height, 420px);
	min-height: 240px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #dfe3ea;
	border-radius: 6px;
	background: #fafbfc;
	-webkit-overflow-scrolling: touch;
}

.f7-ydm-marker-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.f7-ydm-marker-list__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #e8ecf2;
}

.f7-ydm-marker-list__item:last-child {
	border-bottom: 0;
}

.f7-ydm-marker-list__thumb {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #e8ecf2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.f7-ydm-marker-list__thumb img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
}

.f7-ydm-marker-list__thumb:focus {
	outline: 2px solid #fc3f1e;
	outline-offset: 2px;
}

.f7-ydm-marker-list__col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.f7-ydm-marker-list__head {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
}

.f7-ydm-marker-list__body {
	flex: 1;
	min-width: 0;
}

.f7-ydm-marker-list__expand.f7-ydm-row-expand {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: #f0f2f6;
	color: #2a2c33;
	cursor: pointer;
}

.f7-ydm-marker-list__expand.f7-ydm-row-expand:hover,
.f7-ydm-marker-list__expand.f7-ydm-row-expand:focus {
	background: #e4e8ef;
	color: #fc3f1e;
}

.f7-ydm-marker-list__expand.f7-ydm-row-expand:focus-visible {
	outline: 2px solid #fc3f1e;
	outline-offset: 2px;
}

.f7-ydm-marker-list__panel {
	width: 100%;
	box-sizing: border-box;
}

.f7-ydm-marker-list__title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.35;
	color: #1a1c20;
	cursor: pointer;
}

.f7-ydm-marker-list__title:hover,
.f7-ydm-marker-list__addr:hover {
	color: #fc3f1e;
}

.f7-ydm-marker-list__addr {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.4;
	color: #4a4f59;
	cursor: pointer;
}

.f7-ydm-marker-list__detail {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #fc3f1e;
	text-decoration: none;
}

.f7-ydm-marker-list__detail:hover,
.f7-ydm-marker-list__detail:focus {
	text-decoration: underline;
}

.f7-ydm-mobile-list {
	margin-top: 10px;
	border: 1px solid #dfe3ea;
	border-radius: 6px;
	overflow: hidden;
	background: #fafbfc;
}

.f7-ydm-mob-item {
	border-bottom: 1px solid #e8ecf2;
}

.f7-ydm-mob-item:last-child {
	border-bottom: 0;
}

.f7-ydm-mob-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: #fff;
}

.f7-ydm-mob-thumb {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #e8ecf2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.f7-ydm-mob-thumb img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
}

.f7-ydm-mob-thumb--empty {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #e8ecf2;
}

.f7-ydm-mob-title {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	color: #1a1c20;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-title {
	font-size: 12px;
	line-height: 1.35;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-thumb + .f7-ydm-mob-title,
.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-thumb--empty + .f7-ydm-mob-title {
	margin-left: 6px;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-title.f7-ydm-mob-map-jump {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-title.f7-ydm-mob-map-jump:active {
	color: #fc3f1e;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-title.f7-ydm-mob-map-jump:focus-visible {
	outline: 2px solid #fc3f1e;
	outline-offset: 2px;
	border-radius: 4px;
}

.f7-ydm-mob-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #f0f2f6;
	color: #2a2c33;
	cursor: pointer;
	text-decoration: none;
}

.f7-ydm-mob-icon:hover,
.f7-ydm-mob-icon:focus {
	background: #e4e8ef;
	color: #fc3f1e;
}

.f7-ydm-mob-icon--disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-icon {
	background: transparent;
	box-shadow: none;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-icon:hover,
.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-icon:focus {
	background: transparent;
	color: #fc3f1e;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-icon:focus-visible {
	outline: 2px solid #fc3f1e;
	outline-offset: 2px;
	border-radius: 4px;
}

.f7-ydm-svg-icon {
	display: block;
}

.f7-ydm-row-expand[aria-expanded='true'] .f7-ydm-svg-chevron {
	transform: rotate(180deg);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.f7-ydm-row-expand .f7-ydm-svg-chevron {
	transition: transform 0.2s ease;
}

.f7-ydm-mob-panel {
	padding: 12px 14px 14px;
	background: #fafbfc;
	font-size: 14px;
	line-height: 1.45;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-panel {
	font-size: 12px;
	line-height: 1.45;
}

.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-panel .f7-ydm-marker-list__route,
.f7-ydm-map-wrap--layout-mobile .f7-ydm-mob-panel .f7-ydm-marker-list__detail {
	font-size: 12px;
}

.f7-ydm-mob-detail {
	margin-bottom: 8px;
}

.f7-ydm-mob-detail:last-child {
	margin-bottom: 0;
}

.f7-ydm-mob-detail-label {
	font-weight: 600;
	color: #5c616b;
	margin-right: 4px;
}

.f7-ydm-marker-list__route {
	font-size: 13px;
	font-weight: 500;
	color: #fc3f1e;
	text-decoration: none;
}

.f7-ydm-marker-list__route:hover {
	text-decoration: underline;
}

.f7-ydm-marker-root img {
	display: block;
	max-width: 56px;
	height: auto;
	cursor: pointer;
}

.f7-ydm-dot {
	display: block;
	width: 16px;
	height: 16px;
	background: #e53935;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.f7-ydm-balloon-panel {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 30;
	max-width: 360px;
	margin: 0 auto;
	padding: 12px 14px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 1.45;
}

.f7-ydm-balloon-title {
	font-weight: 600;
	margin-bottom: 8px;
}

.f7-ydm-balloon-phone,
.f7-ydm-balloon-hours {
	margin-top: 6px;
}

.f7-ydm-balloon-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.f7-ydm-balloon-route {
	margin: 10px 0 0;
}

.f7-ydm-balloon-route .f7-ydm-marker-list__route {
	font-size: 13px;
}

.f7-ydm-balloon-thumb {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.f7-ydm-balloon-thumb img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.f7-ydm-balloon-thumb:focus {
	outline: 2px solid #fc3f1e;
	outline-offset: 2px;
}

.f7-ydm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.f7-ydm-modal[hidden] {
	display: none !important;
}

.f7-ydm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 24, 0.72);
	cursor: pointer;
}

.f7-ydm-modal__box {
	position: relative;
	z-index: 1;
	max-width: min(96vw, 1100px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.f7-ydm-modal__img {
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
	user-select: none;
	-webkit-user-drag: none;
	touch-action: pan-x pan-y;
}

.f7-ydm-modal__close,
.f7-ydm-modal__prev,
.f7-ydm-modal__next {
	position: absolute;
	z-index: 2;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.9);
	color: #2a2c33;
	line-height: 0;
	width: 30px;
	height: 30px;
	min-height: 30px;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.f7-ydm-modal__close:hover,
.f7-ydm-modal__close:focus,
.f7-ydm-modal__prev:hover,
.f7-ydm-modal__prev:focus,
.f7-ydm-modal__next:hover,
.f7-ydm-modal__next:focus {
	background: #fff;
	color: #fc3f1e;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.f7-ydm-modal__close:focus-visible,
.f7-ydm-modal__prev:focus-visible,
.f7-ydm-modal__next:focus-visible {
	outline: 2px solid #fc3f1e;
	outline-offset: 2px;
}

.f7-ydm-modal__close svg,
.f7-ydm-modal__prev svg,
.f7-ydm-modal__next svg {
	display: block;
	flex-shrink: 0;
}

.f7-ydm-modal__close {
	top: 4px;
	right: 4px;
}

.f7-ydm-modal__prev {
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
}

.f7-ydm-modal__next {
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
}

body.f7-ydm-modal-open {
	overflow: hidden;
}

.f7-ydm-error {
	color: #b32d2e;
	margin: 0.5em 0;
}

.f7-ydm-marker-card {
	max-width: 640px;
	margin: 1em 0;
	padding: 12px 14px;
	border: 1px solid #e2e6ec;
	border-radius: 8px;
	background: #fff;
}

.f7-ydm-m-title {
	font-weight: 600;
	font-size: 1.1em;
	margin-bottom: 6px;
}

.f7-ydm-m-address,
.f7-ydm-m-coords,
.f7-ydm-m-phone1,
.f7-ydm-m-phone2,
.f7-ydm-m-hours,
.f7-ydm-m-email {
	margin: 4px 0;
}

.f7-ydm-m-detail {
	margin: 10px 0 0;
}

.f7-ydm-m-detail-link {
	font-weight: 500;
	color: #fc3f1e;
	text-decoration: none;
}

.f7-ydm-m-detail-link:hover {
	text-decoration: underline;
}

.f7-ydm-m-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.f7-ydm-m-gallery-item img {
	display: block;
	border-radius: 4px;
}

.f7-ydm-m-route {
	margin: 10px 0 0;
}

.f7-ydm-route-link {
	font-size: 13px;
}
