.theatre-map {
	margin: 3rem auto 4rem;
	max-width: 980px;
}

.theatre-map__frame {
	isolation: isolate;
	overflow: hidden;
	border-radius: 8px;
	background: #f5efe2;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.theatre-map__canvas {
	position: relative;
	width: 100%;
}

.theatre-map__image {
	display: block;
	width: 100%;
	height: auto;
	filter: sepia(0.08) contrast(1.02);
}

.theatre-map__title {
	position: absolute;
	top: clamp(1rem, 4vw, 2.5rem);
	right: clamp(1rem, 4vw, 3rem);
	max-width: min(42ch, 48%);
	color: #fff;
	text-align: right;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.theatre-map__title strong,
.theatre-map__title span {
	display: block;
}

.theatre-map__title strong {
	font-size: clamp(1.45rem, 4.2vw, 2.8rem);
	line-height: 1.05;
}

.theatre-map__title span {
	margin-top: 0.35rem;
	font-size: clamp(0.85rem, 2.2vw, 1.3rem);
	font-weight: 700;
}

.theatre-map__marker {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 36px;
	padding: 0.38rem 0.62rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #26343d;
	font: inherit;
	font-size: clamp(0.7rem, 1.5vw, 0.9rem);
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theatre-map__marker i {
	color: #b9432f;
	font-size: 1rem;
}

.theatre-map__marker:hover,
.theatre-map__marker:focus-visible {
	background: #26343d;
	color: #fff;
	transform: translate(-50%, -50%) scale(1.04);
	outline: none;
}

.theatre-map__marker:hover i,
.theatre-map__marker:focus-visible i {
	color: #f2c15d;
}

.theatre-map__marker--marais {
	left: 27.6%;
	top: 34.1%;
}

.theatre-map__marker--bourgogne {
	left: 27.1%;
	top: 55.3%;
}

.theatre-map__marker--petit-bourbon {
	left: 55.5%;
	top: 69.1%;
}

.theatre-map__marker--palais-royal {
	left: 41.8%;
	top: 74.5%;
}

.theatre-map__marker--guenegaud {
	left: 76.6%;
	top: 72.2%;
}

.theatre-modal[hidden] {
	display: none;
}

.theatre-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.theatre-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
}

.theatre-modal__panel {
	position: relative;
	z-index: 1;
	overflow: auto;
	width: min(92vw, 620px);
	max-height: min(86vh, 760px);
	padding: clamp(1.2rem, 4vw, 2rem);
	border-radius: 8px;
	background: #fff;
	color: #27323a;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.theatre-modal__close {
	position: sticky;
	top: 0;
	float: right;
	display: inline-grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	margin: -0.4rem -0.4rem 0.5rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #26343d;
	color: #fff;
	cursor: pointer;
}

.theatre-modal__close:focus-visible {
	outline: 3px solid #f2c15d;
	outline-offset: 2px;
}

.theatre-modal__content h3 {
	margin-top: 0;
	color: #26343d;
	font-size: clamp(1.45rem, 4vw, 2rem);
	line-height: 1.15;
}

.theatre-modal__content p {
	color: inherit;
}

html[data-theme="dark"] .theatre-modal__content h3 {
	color: #26343d;
}

html[data-theme="dark"] .theatre-modal__content p {
	color: #27323a;
}

.theatre-modal__content img {
	display: block;
	width: min(100%, 260px);
	height: auto;
	margin: 1rem auto;
	border-radius: 6px;
}

body.theatre-modal-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.theatre-map {
		margin: 2rem auto 3rem;
	}

	.theatre-map__frame {
		overflow-x: auto;
		border-radius: 0;
		box-shadow: none;
		scroll-snap-type: x mandatory;
	}

	.theatre-map__image {
		width: 100%;
	}

	.theatre-map__canvas {
		width: 760px;
		max-width: none;
	}

	.theatre-map__marker:hover,
	.theatre-map__marker:focus-visible {
		transform: translate(-50%, -50%) scale(1.02);
	}
}

@media (max-width: 460px) {
	.theatre-map__title {
		left: 1rem;
		right: auto;
		max-width: 58%;
		text-align: left;
	}

	.theatre-map__marker {
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
		padding: 0.45rem 0.58rem;
	}
}
