/* Full-screen map modal (mobile-first). */

.pursue-places-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	flex-direction: column;
}

.pursue-places-modal.is-open {
	display: flex;
	align-items: stretch;
	justify-content: stretch;
}

.pursue-places-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.pursue-places-modal__shell {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	margin: 0;
	background: #fff;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

/* Tablet / desktop: near full-viewport map (still responsive). */
@media (min-width: 768px) {
	.pursue-places-modal.is-open {
		align-items: center;
		justify-content: center;
		padding: 0.75rem;
		box-sizing: border-box;
	}

	.pursue-places-modal__shell {
		flex: 0 1 auto;
		width: min(96vw, 100rem);
		height: min(92vh, calc(100vh - 1.5rem));
		max-width: calc(100vw - 1.5rem);
		max-height: calc(100vh - 1.5rem);
		margin: 0;
		border-radius: 0.75rem;
		overflow: hidden;
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	}
}

/* Large desktops: use a bit more width cap so ultrawide still feels huge. */
@media (min-width: 1280px) {
	.pursue-places-modal__shell {
		width: min(94vw, 120rem);
		height: min(90vh, calc(100vh - 1.5rem));
	}
}

.pursue-places-modal__toolbar {
	flex-shrink: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0.375rem 0.5rem;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.pursue-places-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0.375rem;
	background: transparent;
	color: #0f172a;
	font-size: 2.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pursue-places-modal__close:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.pursue-places-modal__close:focus {
	outline: 2px solid #0f172a;
	outline-offset: 2px;
}

.pursue-places-modal__frame {
	flex: 1;
	width: 100%;
	min-height: 0;
	border: 0;
	background: #e2e8f0;
}

body.pursue-places-modal-open {
	overflow: hidden;
}
