.emalm-location-map,
.emalm-location-map * {
	box-sizing: border-box;
}

.emalm-location-map {
	width: 100%;
	color: var(--emalm-text);
	font-family: inherit;
}

.emalm-section-header {
	max-width: 760px;
	margin-bottom: 28px;
}

.emalm-section-header h2 {
	margin: 0 0 10px;
	color: var(--emalm-text);
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.emalm-section-header p {
	margin: 0;
	color: var(--emalm-muted);
	font-size: 17px;
	line-height: 1.7;
}

.emalm-location-selector {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 16px;
}

.emalm-selector-label {
	flex: 0 0 auto;
	color: var(--emalm-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.emalm-location-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.emalm-location-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 7px 14px 7px 8px;
	border: 1px solid var(--emalm-border);
	border-radius: 999px;
	background: var(--emalm-panel);
	color: var(--emalm-text);
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	cursor: pointer;
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.emalm-location-button:hover,
.emalm-location-button:focus-visible {
	border-color: var(--emalm-primary);
	transform: translateY(-1px);
}

.emalm-location-button.is-active {
	border-color: var(--emalm-primary);
	background: var(--emalm-primary);
	color: #fff;
}

.emalm-button-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--emalm-primary) 12%, transparent);
	color: var(--emalm-primary);
	font-size: 12px;
	font-weight: 800;
}

.emalm-location-button.is-active .emalm-button-number {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.emalm-stage {
	display: grid;
	grid-template-rows: var(--emalm-height) 0fr;
	min-height: var(--emalm-height);
	border: 1px solid var(--emalm-border);
	border-radius: var(--emalm-radius);
	overflow: hidden;
	background: var(--emalm-surface);
	box-shadow: 0 24px 70px rgba(14, 38, 34, 0.12);
	transition: grid-template-rows 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.emalm-stage.is-open {
	grid-template-rows: var(--emalm-height) 1fr;
}

.emalm-map-column {
	position: relative;
	z-index: 1;
	min-width: 0;
	min-height: var(--emalm-height);
	height: var(--emalm-height);
	background: #dce8e5;
}

.emalm-map-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.emalm-map-hint {
	position: absolute;
	left: 18px;
	bottom: 18px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 36px);
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, 0.68);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 35px rgba(11, 32, 28, 0.15);
	backdrop-filter: blur(10px);
	color: var(--emalm-text);
	font-size: 13px;
	font-weight: 650;
	pointer-events: none;
}

.emalm-map-hint-icon {
	position: relative;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--emalm-primary);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--emalm-primary) 17%, transparent);
}

.emalm-detail-panel {
	position: relative;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-top: 0 solid var(--emalm-border);
	background: var(--emalm-panel);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-18px);
	scroll-margin-top: 90px;
	transition:
		opacity 260ms ease,
		transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s linear 560ms,
		border-top-width 0s linear 560ms;
}

.emalm-stage.is-open .emalm-detail-panel {
	border-top-width: 1px;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 100ms, 70ms, 0s, 0s;
}

.emalm-panel-topbar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px 13px 22px;
	border-bottom: 1px solid var(--emalm-border);
	background: color-mix(in srgb, var(--emalm-panel) 92%, transparent);
	backdrop-filter: blur(12px);
}

.emalm-panel-status {
	color: var(--emalm-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.emalm-panel-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--emalm-border);
	border-radius: 50%;
	background: var(--emalm-panel);
	color: var(--emalm-text);
	cursor: pointer;
	transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.emalm-panel-close:hover,
.emalm-panel-close:focus-visible {
	border-color: var(--emalm-primary);
	color: var(--emalm-primary);
	transform: rotate(4deg);
}

.emalm-panel-content {
	min-width: 0;
	transition: opacity 180ms ease, transform 220ms ease;
}

.emalm-detail-panel.is-switching .emalm-panel-content {
	opacity: 0;
	transform: translateY(10px);
}

.emalm-location-detail {
	display: block;
	width: 100%;
}

.emalm-detail-hero {
	position: relative;
	width: 100%;
	min-height: clamp(360px, 42vw, 560px);
	overflow: hidden;
	background: var(--emalm-primary);
}

.emalm-detail-hero > img,
.emalm-image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.emalm-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--emalm-accent) 52%, transparent), transparent 35%),
		linear-gradient(135deg, color-mix(in srgb, var(--emalm-primary) 84%, #06100e), var(--emalm-primary));
}

.emalm-image-placeholder span {
	color: rgba(255, 255, 255, 0.14);
	font-size: 150px;
	font-weight: 800;
	line-height: 1;
}

.emalm-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(5, 18, 15, 0.82), rgba(5, 18, 15, 0.02) 70%);
}

.emalm-hero-copy {
	position: absolute;
	left: 26px;
	right: 26px;
	bottom: 24px;
	z-index: 1;
	color: #fff;
}

.emalm-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	color: color-mix(in srgb, var(--emalm-accent) 70%, #fff);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.emalm-hero-copy h3 {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.emalm-detail-body {
	width: 100%;
	padding: clamp(24px, 4vw, 48px);
}

.emalm-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 24px;
}

.emalm-info-address {
	grid-column: 1 / -1;
}

.emalm-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--emalm-border);
	border-radius: calc(var(--emalm-radius) * 0.55);
	background: var(--emalm-surface);
}

.emalm-info-item > svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--emalm-primary);
}

.emalm-info-item span {
	display: block;
	margin-bottom: 4px;
	color: var(--emalm-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.emalm-info-item p {
	margin: 0;
	color: var(--emalm-text);
	font-size: 14px;
	line-height: 1.55;
}

.emalm-info-item a {
	color: inherit;
	text-decoration: none;
}

.emalm-info-item a:hover,
.emalm-info-item a:focus-visible {
	color: var(--emalm-primary);
	text-decoration: underline;
}

.emalm-rich-content {
	color: var(--emalm-muted);
	font-size: 15px;
	line-height: 1.75;
}

.emalm-rich-content > :first-child {
	margin-top: 0;
}

.emalm-rich-content > :last-child {
	margin-bottom: 0;
}

.emalm-rich-content h2,
.emalm-rich-content h3,
.emalm-rich-content h4 {
	color: var(--emalm-text);
}

.emalm-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.emalm-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--emalm-radius) * 0.48);
	object-fit: cover;
}

.emalm-primary-link,
.emalm-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	min-height: 52px;
	margin-top: 24px;
	padding: 13px 17px;
	border: 1px solid var(--emalm-primary);
	border-radius: 999px;
	background: var(--emalm-primary);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
	cursor: pointer;
	transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.emalm-primary-link svg,
.emalm-submit-button svg {
	width: 20px;
	height: 20px;
}

.emalm-primary-link:hover,
.emalm-primary-link:focus-visible,
.emalm-submit-button:hover,
.emalm-submit-button:focus-visible {
	color: #fff;
	transform: translateY(-1px);
	filter: brightness(0.94);
	box-shadow: 0 12px 28px color-mix(in srgb, var(--emalm-primary) 24%, transparent);
}

.emalm-form-card {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--emalm-border);
}

.emalm-form-heading span {
	color: var(--emalm-primary);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.emalm-form-heading h4 {
	margin: 5px 0 17px;
	color: var(--emalm-text);
	font-size: 22px;
	line-height: 1.25;
}

.emalm-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
}

.emalm-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.emalm-form-field-wide {
	grid-column: 1 / -1;
}

.emalm-form-field > span {
	color: var(--emalm-text);
	font-size: 13px;
	font-weight: 700;
}

.emalm-form-field input,
.emalm-form-field select,
.emalm-form-field textarea {
	width: 100%;
	padding: 12px 13px;
	border: 1px solid var(--emalm-border);
	border-radius: 12px;
	background: var(--emalm-surface);
	color: var(--emalm-text);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.emalm-form-field select {
	cursor: pointer;
}

.emalm-form-field textarea {
	min-height: 112px;
	resize: vertical;
}

.emalm-form-field input:focus,
.emalm-form-field select:focus,
.emalm-form-field textarea:focus {
	border-color: var(--emalm-primary);
	background: var(--emalm-panel);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--emalm-primary) 13%, transparent);
}

.emalm-form-field input[aria-invalid="true"],
.emalm-form-field select[aria-invalid="true"],
.emalm-form-field textarea[aria-invalid="true"] {
	border-color: #b42318;
}

.emalm-form-privacy {
	margin: 12px 0 0;
	color: var(--emalm-muted);
	font-size: 12px;
	line-height: 1.55;
}

.emalm-submit-button {
	border: 0;
}

.emalm-submit-button[disabled] {
	cursor: wait;
	opacity: 0.7;
}

.emalm-form-response {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
}

.emalm-form-response.is-success {
	color: #137333;
}

.emalm-form-response.is-error {
	color: #b42318;
}

.emalm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.emalm-marker-icon {
	background: transparent;
	border: 0;
}

.emalm-marker-pin {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 4px solid #fff;
	border-radius: 50% 50% 50% 12px;
	background: var(--emalm-primary);
	box-shadow: 0 8px 24px rgba(8, 35, 30, 0.3);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	transform: rotate(-45deg);
	transition: transform 180ms ease, background 180ms ease;
}

.emalm-marker-pin span {
	transform: rotate(45deg);
}

.emalm-marker-icon.is-active .emalm-marker-pin,
.emalm-marker-pin:hover {
	background: var(--emalm-accent);
	transform: rotate(-45deg) scale(1.1);
}

.emalm-location-map .leaflet-control-zoom {
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(8, 35, 30, 0.16);
}

.emalm-location-map .leaflet-control-zoom a {
	border-bottom-color: var(--emalm-border);
	background: var(--emalm-panel);
	color: var(--emalm-text);
}

.emalm-location-map .leaflet-control-zoom a:hover,
.emalm-location-map .leaflet-control-zoom a:focus {
	background: var(--emalm-primary);
	color: #fff;
}

.emalm-location-map .leaflet-control-attribution {
	font-size: 10px;
}

@media (max-width: 1024px) {
	.emalm-info-grid,
	.emalm-form-grid {
		grid-template-columns: 1fr;
	}

	.emalm-info-address,
	.emalm-form-field-wide {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.emalm-section-header {
		margin-bottom: 22px;
	}

	.emalm-section-header h2 {
		font-size: 34px;
	}

	.emalm-section-header p {
		font-size: 16px;
	}

	.emalm-location-selector {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.emalm-location-buttons {
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		padding: 2px 2px 8px;
		scrollbar-width: thin;
	}

	.emalm-location-button {
		flex: 0 0 auto;
	}

	.emalm-stage {
		border-radius: max(16px, var(--emalm-radius));
	}

	.emalm-location-detail {
		display: block;
	}

	.emalm-panel-content {
		min-width: 0;
	}

	.emalm-detail-hero {
		min-height: 260px;
	}

	.emalm-detail-body {
		padding: 22px 18px 26px;
	}

	.emalm-map-hint {
		left: 12px;
		bottom: 12px;
		max-width: calc(100% - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.emalm-stage,
	.emalm-detail-panel,
	.emalm-panel-content,
	.emalm-location-button,
	.emalm-marker-pin,
	.emalm-primary-link,
	.emalm-submit-button {
		transition: none !important;
	}
}
