/**
 * Mohács oldal: események, térkép, lebegő doboz.
 *
 * @package duna_group_web
 */

.mohacs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 42px;
	align-items: start;
}

.mohacs-content-card {
	padding: 42px;
}

.mohacs-content-card .mohacs-subtitle {
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 28px;
	color: var(--blue);
	font-weight: 700;
}

.mohacs-content-card .rich-content,
.mohacs-content-card .mohacs-copy {
	color: #435364;
	font-size: 1rem;
	line-height: 1.8;
}

.mohacs-content-card .mohacs-copy p {
	margin: 0 0 18px;
}

.mohacs-content-card .mohacs-copy h3 {
	margin: 26px 0 14px;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 800;
	text-transform: uppercase;
	color: #203040;
}

.mohacs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 25px;
	user-select: none;
}

.mohacs-tags span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 5px 15px;
	border-radius: 5px;
	background: var(--blue-dark);
	color: #FFF;
	font-size: .85rem;
	font-weight: 400;
	line-height: 1;
}

.mohacs-events-card {
	padding: 10px;
}

.mohacs-event-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mohacs-event-item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 14px 16px;
	border-radius: 5px;
	background: #fff;
	border: 1px solid rgba(31, 61, 91, 0.10);
	position: relative;
	overflow: hidden;
}

.mohacs-event-item:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: linear-gradient(180deg, #3b7ddd 0%, #2f61d8 100%);
}

.mohacs-event-date {
	padding-left: 8px;
	text-align: left;
	line-height: 1;
	color: #203040;
}

.mohacs-event-date strong {
	display: block;
	font-size: 2rem;
	line-height: .95;
	font-weight: 800;
}

.mohacs-event-date span {
	display: block;
	margin-top: 6px;
	font-size: .88rem;
	font-weight: 700;
	text-transform: uppercase;
}

.mohacs-event-date small {
	display: block;
	margin-top: 7px;
	font-size: .8rem;
	color: #73808d;
	font-weight: 600;
}

.mohacs-event-body {
	min-width: 0;
}

.mohacs-event-title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 800;
	color: #203040;
}

.mohacs-event-location {
	margin: 0 0 7px;
	color: #607080;
	font-size: .94rem;
}

.mohacs-event-status {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: .9rem;
}

.mohacs-event-status strong {
	color: #21a453;
	font-weight: 800;
}

.mohacs-event-status span {
	color: #607080;
	font-weight: 600;
}

.mohacs-event-action {
	min-width: 132px;
}

.mohacs-event-action .post-card-link {
	width: 100%;
	min-height: 46px;
	padding: 0 20px;
	font-size: .86rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mohacs-floating-widget {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
}

.mohacs-floating-widget h3 {
	margin: 0 0 15px 0;
	font-size: 1.3rem;
	line-height: 1.3;
	font-weight: 500;
}

.mohacs-floating-widget p {
	margin: 0 0 15px 0;
	font-size: 1rem;
	line-height: 1.7;
}

.mohacs-floating-widget .post-card-link {
	width: 100%;
	font-size: .9rem;
	font-weight: 500;
	transition: all .3s;
	line-height: 1;
	margin-bottom: 5px;
	padding-left: 0;
	padding-right: 0;
}

.mohacs-floating-widget .post-card-link:hover {
	background-color: var(--blue-dark);
}

.mohacs-mobile-widget {
	display: none;
}

.mohacs-page-shell .company-popup__content {
	max-width: 100%;
}

.mohacs-page-shell .company-popup__text iframe {
	width: 100%;
	min-height: 70vh;
	border: 0;
	border-radius: 5px;
	background: #f5f7fa;
}

body.page-id-206 .company-popup__image,
body.page-id-110 .company-popup__image,
body.page-id-112 .company-popup__image {
    display: none;
}

.rich-content iframe {
    width: 100%;
    border: 1px solid var(--blue) !important;
    border-radius: 5px;
}

.mohacs-layout > section {
	min-width: 0;
}

/* A tartalom első címsora szekciócímként jelenik meg. */
.mohacs-copy > h2:first-child {
	margin: 0 0 15px;
}

.mohacs-map-slot {
	container-type: inline-size;
	width: 100%;
	max-width: 100%;
}

.mohacs-map {
	width: 100%;
	max-width: 100%;
	height: 450px;
	overflow: hidden;
	border-radius: 5px;
}

.mohacs-map__frame,
.mohacs-copy .mohacs-map iframe {
	width: 100%;
	height: 100%;
	max-width: none !important;
	max-height: none !important;
}

.mohacs-copy .mohacs-map iframe {
	display: block;
	border: 0 !important;
	border-radius: 0;
}

@container (max-width: 639px) {
	.mohacs-map {
		height: auto;
		aspect-ratio: 640 / 360;
	}

	.mohacs-map__frame {
		width: 640px;
		height: 360px;
		transform-origin: top left;
		transform: scale(calc(100cqw / 640px));
	}

	.mohacs-copy .mohacs-map iframe {
		width: 640px;
		height: 360px;
	}
}
