/**
 * AGS Interactive Map: isolated Phase 2D component styles.
 */

.ags-interactive-map {
	--ags-map-bg: #0b1423;
	--ags-map-panel: #111d2d;
	--ags-map-panel-strong: #172438;
	--ags-map-cream: #f4edda;
	--ags-map-muted: #c7c0ae;
	--ags-map-gold: #c9a962;
	--ags-map-gold-light: #ead59b;
	--ags-map-border: rgba(201, 169, 98, 0.34);
	--ags-map-focus: #fff2ad;
	position: relative;
	color: var(--ags-map-cream);
	background:
		radial-gradient(circle at 80% 0%, rgba(201, 169, 98, 0.1), transparent 30rem),
		var(--ags-map-bg);
	border: 1px solid var(--ags-map-border);
	border-radius: 18px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.ags-interactive-map *,
.ags-interactive-map *::before,
.ags-interactive-map *::after {
	box-sizing: border-box;
}

.ags-interactive-map [hidden] {
	display: none !important;
}

.ags-interactive-map button,
.ags-interactive-map input {
	font: inherit;
}

.ags-interactive-map button,
.ags-interactive-map a {
	-webkit-tap-highlight-color: transparent;
}

.ags-interactive-map :where(button, a, input):focus-visible {
	outline: 3px solid var(--ags-map-focus);
	outline-offset: 3px;
}

.ags-interactive-map__header {
	max-width: 880px;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) 1.75rem;
}

.ags-interactive-map__phase,
.ags-map-detail__eyebrow {
	margin: 0 0 0.65rem;
	color: var(--ags-map-gold-light);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ags-interactive-map__title {
	margin: 0;
	color: var(--ags-map-cream);
	font-size: clamp(2rem, 5vw, 3.8rem);
	line-height: 1.05;
}

.ags-interactive-map__intro {
	max-width: 760px;
	margin: 1.25rem 0 0;
	color: var(--ags-map-muted);
	font-size: clamp(1rem, 2vw, 1.18rem);
	line-height: 1.75;
}

.ags-interactive-map__scope {
	max-width: 760px;
	margin: 1.25rem 0 0;
	padding-left: 1rem;
	color: var(--ags-map-gold-light);
	border-left: 2px solid var(--ags-map-gold);
	font-size: 0.95rem;
	line-height: 1.6;
}

.ags-interactive-map__region-note {
	max-width: 820px;
	margin: 0.9rem 0 0;
	color: var(--ags-map-muted);
	font-size: 0.82rem;
	line-height: 1.55;
}

.ags-map-filters {
	margin: 0 clamp(1rem, 4vw, 3rem) 1.25rem;
	padding: clamp(1rem, 3vw, 1.5rem);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--ags-map-border);
	border-radius: 14px;
}

.ags-map-search label,
.ags-map-filter-group legend {
	color: var(--ags-map-cream);
	font-size: 0.9rem;
	font-weight: 700;
}

.ags-map-search input {
	width: 100%;
	margin-top: 0.55rem;
	padding: 0.85rem 1rem;
	color: #17202d;
	background: #fffdf7;
	border: 2px solid transparent;
	border-radius: 9px;
}

.ags-map-search input::placeholder {
	color: #62646a;
}

.ags-map-filter-group {
	min-width: 0;
	margin: 1.2rem 0 0;
	padding: 0;
	border: 0;
}

.ags-map-filter-group__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.65rem;
}

.ags-map-filter {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0.55rem 0.8rem;
	color: var(--ags-map-cream);
	background: #172438;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.86rem;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.ags-map-filter:hover,
.ags-map-filter:has(input:checked),
.ags-map-filter--all.is-active {
	color: #111827;
	background: var(--ags-map-gold-light);
	border-color: var(--ags-map-gold-light);
}

.ags-map-filter--wonder {
	border-color: var(--ags-map-gold);
}

.ags-map-filter input {
	width: 1rem;
	height: 1rem;
	margin: 0 0.45rem 0 0;
	accent-color: #765a18;
}

.ags-map-filter__count {
	display: inline-grid;
	place-items: center;
	min-width: 1.65rem;
	height: 1.65rem;
	margin-left: 0.45rem;
	padding: 0 0.35rem;
	color: var(--ags-map-gold-light);
	background: rgba(0, 0, 0, 0.24);
	border-radius: 999px;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.ags-map-filter:has(input:checked) .ags-map-filter__count,
.ags-map-filter--all.is-active .ags-map-filter__count {
	color: #111827;
	background: rgba(255, 255, 255, 0.42);
}

.ags-map-filters__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
}

.ags-map-button,
.ags-map-reset,
.ags-map-location-card__open,
.ags-map-panel__navigation button {
	min-height: 42px;
	padding: 0.65rem 1rem;
	border-radius: 7px;
	font-weight: 700;
}

.ags-map-button,
.ags-map-location-card__open {
	color: #111827;
	background: var(--ags-map-gold);
	border: 1px solid var(--ags-map-gold);
	cursor: pointer;
}

.ags-map-reset {
	display: inline-flex;
	align-items: center;
	color: var(--ags-map-gold-light);
}

.ags-map-status {
	padding: 0 clamp(1rem, 4vw, 3rem) 0.75rem;
}

.ags-map-status p {
	margin: 0;
	color: var(--ags-map-muted);
	font-weight: 700;
}

.ags-map-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 1rem;
	padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.ags-map-shell {
	position: relative;
	min-width: 0;
}

.ags-map-toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 0.45rem;
	position: relative;
	margin-bottom: 0.5rem;
	z-index: 5;
}

.ags-map-toolbar button,
.ags-map-panel__close {
	min-width: 42px;
	min-height: 42px;
	padding: 0.4rem 0.7rem;
	color: var(--ags-map-cream);
	background: rgba(11, 20, 35, 0.94);
	border: 1px solid var(--ags-map-border);
	border-radius: 7px;
	cursor: pointer;
	font-weight: 700;
}

.ags-map-instructions {
	margin: 0 0 0.55rem;
	color: var(--ags-map-muted);
	font-size: 0.82rem;
}

.ags-map-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 1;
	min-height: 340px;
	background: #152b3a;
	border: 1px solid var(--ags-map-border);
	border-radius: 12px;
	overflow: hidden;
	isolation: isolate;
}

.ags-map-stage {
	position: absolute;
	inset: 0;
	transform: translate(
		calc(50% - var(--map-center-x, 50%)),
		calc(50% - var(--map-center-y, 50%))
	) scale(var(--map-zoom, 1));
	transform-origin: var(--map-center-x, 50%) var(--map-center-y, 50%);
	transition: transform 260ms ease;
}

.ags-map-base,
.ags-map-markers {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ags-map-markers {
	pointer-events: none;
}

.ags-map-base__sea {
	fill: #173246;
}

.ags-map-base__grid {
	fill: none;
	stroke: rgba(235, 219, 179, 0.09);
	stroke-width: 1;
	stroke-dasharray: 5 8;
}

.ags-map-base__land {
	fill: #4b4b42;
	stroke: rgba(234, 213, 155, 0.33);
	stroke-width: 2;
}

.ags-map-base__labels {
	fill: rgba(244, 237, 218, 0.58);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.ags-map-marker {
	display: grid;
	place-items: center;
	position: absolute;
	left: var(--marker-x);
	top: var(--marker-y);
	width: 24px;
	height: 24px;
	padding: 0;
	color: #101827;
	background: var(--ags-map-cream);
	border: 3px solid #172438;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	pointer-events: auto;
	transform: translate(
		calc(-50% + var(--marker-offset-x, 0px)),
		calc(-50% + var(--marker-offset-y, 0px))
	) scale(var(--marker-scale, 1));
	z-index: 2;
}

.ags-map-marker:hover,
.ags-map-marker[aria-pressed="true"] {
	background: #fff;
	border-color: var(--ags-map-gold-light);
	z-index: 4;
}

.ags-map-marker--featured {
	width: 27px;
	height: 27px;
	color: #201805;
	background: #f3df9f;
	border-color: var(--ags-map-gold);
	z-index: 3;
}

.ags-map-marker--wonder {
	width: 31px;
	height: 31px;
	color: #191407;
	background: var(--ags-map-gold);
	border-color: #fff0bd;
	z-index: 3;
}

.ags-map-marker--area,
.ags-map-marker--landscape,
.ags-map-marker--mountain,
.ags-map-marker--cave,
.ags-map-marker--oracle,
.ags-map-marker--island {
	border-radius: 6px;
}

.ags-map-marker--mountain {
	border-radius: 50% 50% 5px 5px;
}

.ags-map-marker--cave,
.ags-map-marker--oracle {
	box-shadow: 0 0 0 3px rgba(234, 213, 155, 0.42), 0 4px 10px rgba(0, 0, 0, 0.45);
}

.ags-map-marker__symbol {
	font-size: 0.8rem;
	line-height: 1;
}

.ags-map-marker__label {
	position: absolute;
	left: 50%;
	top: calc(100% + 4px);
	width: max-content;
	max-width: 120px;
	padding: 0.18rem 0.35rem;
	color: #fffdf4;
	background: rgba(8, 15, 27, 0.88);
	border-radius: 3px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
	transform: translateX(-50%);
}

.ags-map-panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	align-self: stretch;
	position: sticky;
	top: 1rem;
	width: min(370px, 32vw);
	min-height: min(560px, calc(100dvh - 2rem));
	max-height: min(1100px, calc(100dvh - 2rem));
	color: var(--ags-map-cream);
	background: var(--ags-map-panel);
	border: 1px solid var(--ags-map-border);
	border-radius: 12px;
	overflow: hidden;
}

.ags-map-panel__bar,
.ags-map-panel__navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	background: var(--ags-map-panel-strong);
	border-bottom: 1px solid var(--ags-map-border);
}

.ags-map-panel__bar p {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ags-map-panel__close {
	font-size: 1.4rem;
	line-height: 1;
}

.ags-map-panel__content {
	min-height: 0;
	max-height: none;
	padding: 1.15rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ags-map-panel__navigation {
	border-top: 1px solid var(--ags-map-border);
	border-bottom: 0;
}

.ags-map-panel__navigation button {
	color: var(--ags-map-cream);
	background: transparent;
	border: 1px solid var(--ags-map-border);
	cursor: pointer;
}

.ags-map-panel__navigation button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ags-map-detail__header h3 {
	margin: 0;
	color: var(--ags-map-cream);
	font-size: 1.8rem;
}

.ags-map-detail__names,
.ags-map-detail__region,
.ags-map-location-card__names,
.ags-map-location-card__region {
	color: var(--ags-map-muted);
	font-size: 0.86rem;
	line-height: 1.5;
}

.ags-map-detail__names {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.8rem;
	margin: 0.55rem 0 0;
}

.ags-map-detail__region {
	margin: 0.4rem 0 0;
}

.ags-map-detail__badges,
.ags-map-location-card__badges,
.ags-map-location-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.8rem;
}

.ags-map-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.5rem;
	color: var(--ags-map-cream);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
}

.ags-map-badge--wonder {
	color: #1a1509;
	background: var(--ags-map-gold-light);
	border-color: var(--ags-map-gold-light);
}

.ags-map-badge--featured {
	color: #fff5ce;
	background: rgba(195, 151, 48, 0.18);
	border-color: var(--ags-map-gold);
}

.ags-map-detail__wonder {
	margin: 1rem 0;
	padding: 1rem;
	background: linear-gradient(135deg, rgba(201, 169, 98, 0.18), rgba(201, 169, 98, 0.04));
	border: 1px solid var(--ags-map-gold);
	border-radius: 9px;
}

.ags-map-detail__wonder p,
.ags-map-detail__wonder h4 {
	margin: 0;
}

.ags-map-detail__wonder p:first-child {
	color: var(--ags-map-gold-light);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ags-map-detail__wonder h4 {
	margin-top: 0.4rem;
	color: var(--ags-map-cream);
	font-size: 1.12rem;
}

.ags-map-detail__wonder h4 + p {
	margin-top: 0.4rem;
	color: var(--ags-map-muted);
	font-size: 0.82rem;
}

.ags-map-detail__intro,
.ags-map-detail__section p,
.ags-map-detail__locked p {
	color: var(--ags-map-muted);
	line-height: 1.65;
}

.ags-map-detail__intro {
	font-size: 1.02rem;
	color: var(--ags-map-cream);
}

.ags-map-detail__disclosure {
	margin-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ags-map-detail__disclosure summary {
	padding-top: 1rem;
	color: var(--ags-map-gold-light);
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
}

.ags-map-detail__disclosure .ags-map-detail__section {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.ags-map-detail__section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ags-map-detail__section h4,
.ags-map-detail__section p {
	margin: 0;
}

.ags-map-detail__section h4 {
	color: var(--ags-map-gold-light);
	font-size: 0.92rem;
}

.ags-map-detail__section p {
	margin-top: 0.35rem;
	font-size: 0.92rem;
}

.ags-map-detail__section--warning {
	padding: 1rem;
	background: rgba(201, 169, 98, 0.08);
	border: 1px solid rgba(201, 169, 98, 0.35);
	border-radius: 8px;
}

.ags-map-detail__section--fact {
	padding: 1rem;
	background: rgba(201, 169, 98, 0.06);
	border: 1px solid var(--ags-map-gold);
	border-radius: 8px;
}

.ags-map-warning-layer {
	margin-top: 1rem;
	padding-top: 0.15rem;
}

.ags-map-detail__locked {
	margin-top: 1rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.045);
	border: 1px dashed var(--ags-map-border);
	border-radius: 8px;
}

.ags-map-detail__locked strong {
	color: var(--ags-map-gold-light);
}

.ags-map-detail__locked p {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
}

.ags-map-detail__links {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
}

.ags-map-detail__links a {
	color: var(--ags-map-gold-light);
}

.ags-map-results {
	padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
	background: rgba(0, 0, 0, 0.13);
	border-top: 1px solid var(--ags-map-border);
}

.ags-map-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 clamp(1rem, 4vw, 3rem) 1rem;
	padding: 0.75rem 1rem;
	color: var(--ags-map-muted);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--ags-map-border);
	border-radius: 9px;
	font-size: 0.86rem;
}

.ags-map-breadcrumbs a {
	color: var(--ags-map-gold-light);
	font-weight: 700;
}

.ags-map-search {
	position: relative;
}

.ags-map-search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 0.35rem);
	z-index: 20;
	max-height: 360px;
	padding: 0.65rem;
	background: #111d2d;
	border: 1px solid var(--ags-map-gold);
	border-radius: 9px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
	overflow-y: auto;
}

.ags-map-search-results > p {
	margin: 0.2rem 0.35rem 0.55rem;
	color: var(--ags-map-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ags-map-search-results [role="listbox"] {
	display: grid;
	gap: 0.35rem;
}

.ags-map-search-results [role="option"] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 0.7rem 0.8rem;
	color: var(--ags-map-cream);
	text-align: left;
	background: var(--ags-map-panel-strong);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 7px;
	cursor: pointer;
}

.ags-map-search-results [role="option"] span {
	color: var(--ags-map-muted);
	font-size: 0.75rem;
}

.ags-map-search-results__empty {
	padding: 0.75rem;
	color: var(--ags-map-muted);
}

.ags-map-region-heading {
	min-height: 112px;
	padding: 0 0 1rem;
}

.ags-map-region-heading button {
	min-height: 42px;
	padding: 0.55rem 0.8rem;
	color: var(--ags-map-gold-light);
	background: transparent;
	border: 1px solid var(--ags-map-border);
	border-radius: 7px;
	cursor: pointer;
	font-weight: 700;
}

.ags-map-region-heading h2 {
	margin: 1rem 0 0;
	color: var(--ags-map-cream);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.ags-map-region-heading p {
	max-width: 760px;
	margin: 0.45rem 0 0;
	color: var(--ags-map-muted);
	line-height: 1.6;
}

.ags-map-region-heading .ags-map-region-heading__count {
	color: var(--ags-map-cream);
	font-weight: 700;
}

.ags-map-region-heading .ags-map-region-heading__filter {
	color: var(--ags-map-gold-light);
}

.ags-map-region-heading__about {
	max-width: 75ch;
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--ags-map-border);
}

.ags-map-region-heading__about summary {
	min-height: 44px;
	color: var(--ags-map-gold-light);
	cursor: pointer;
	font-weight: 700;
	line-height: 44px;
}

.ags-map-region-heading__about p {
	max-width: 75ch;
	font-size: 1rem;
	line-height: 1.75;
}

.ags-map-region path {
	fill: rgba(201, 169, 98, 0.16);
	stroke: rgba(244, 237, 218, 0.78);
	stroke-width: 3;
	stroke-dasharray: 8 5;
	transition: fill 180ms ease, opacity 180ms ease, stroke-width 180ms ease;
}

.ags-map-region:hover path,
.ags-map-region:focus-visible path {
	fill: rgba(234, 213, 155, 0.36);
	stroke: #fff2ad;
	stroke-width: 6;
}

.ags-map-region.is-selected path {
	fill: rgba(201, 169, 98, 0.28);
	stroke: var(--ags-map-gold-light);
	stroke-width: 5;
	stroke-dasharray: none;
}

.ags-interactive-map.has-region .ags-map-region:not(.is-selected) {
	opacity: 0;
	pointer-events: none;
}

.ags-map-region.is-filtered-out,
.ags-map-region-label.is-filtered-out,
.ags-region-card.is-filtered-out {
	opacity: 0.28;
}

.ags-map-region.is-filtered-out,
.ags-map-region-label.is-filtered-out {
	pointer-events: none;
}

.ags-map-region-labels {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ags-map-region-label {
	display: grid;
	gap: 0.1rem;
	position: absolute;
	left: var(--region-label-x);
	top: var(--region-label-y);
	max-width: 130px;
	padding: 0.35rem 0.45rem;
	color: #fffdf4;
	text-align: center;
	text-decoration: none;
	background: rgba(8, 15, 27, 0.9);
	border: 1px solid var(--ags-map-gold);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	font-size: 0.67rem;
	line-height: 1.15;
	transform: translate(-50%, -50%);
	pointer-events: auto;
}

.ags-map-region-label span {
	color: var(--ags-map-gold-light);
	font-size: 0.62rem;
}

.ags-interactive-map.has-region .ags-map-region-labels {
	opacity: 0;
	pointer-events: none;
}

.ags-interactive-map.has-region .ags-map-region-label {
	pointer-events: none;
}

.ags-region-directory {
	padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
	background: rgba(0, 0, 0, 0.13);
	border-top: 1px solid var(--ags-map-border);
}

.ags-region-directory__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.35rem;
}

.ags-region-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem;
	background: var(--ags-map-panel);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
}

.ags-region-card > p {
	flex: 1 1 auto;
}

.ags-region-card__footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin-top: auto;
	padding-top: 1rem;
}

.ags-region-card h3 {
	margin: 0;
	color: var(--ags-map-cream);
	font-size: 1.08rem;
}

.ags-region-card__mobile-name {
	display: none;
}

.ags-region-card .ags-region-card__count {
	align-self: flex-start;
	display: inline-flex;
	margin: 0;
	padding: 0.25rem 0.5rem;
	color: #171305;
	background: var(--ags-map-gold-light);
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
}

.ags-region-card__explore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 0.85rem;
	padding: 0.6rem 0.85rem;
	color: #111827;
	background: var(--ags-map-gold);
	border: 1px solid var(--ags-map-gold);
	border-radius: 7px;
	font-weight: 700;
	text-decoration: none;
}

.ags-region-card__expanded {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ags-region-card__expanded h4 {
	margin: 0;
	color: var(--ags-map-gold-light);
	font-family: Georgia, 'Times New Roman', serif;
}

.ags-region-card > p,
.ags-region-card details p {
	color: var(--ags-map-muted);
	line-height: 1.55;
}

.ags-region-card details {
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ags-region-card summary {
	color: var(--ags-map-gold-light);
	cursor: pointer;
	font-weight: 700;
}

.ags-region-card__locations article {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ags-region-card__locations h3,
.ags-region-card__locations p {
	margin: 0;
}

.ags-region-card__locations h3 {
	color: var(--ags-map-cream);
	font-size: 0.95rem;
}

.ags-region-card__locations p {
	margin-top: 0.3rem;
	font-size: 0.82rem;
}

.ags-map-results__header {
	max-width: 720px;
}

.ags-map-results__header h2 {
	margin: 0;
	color: var(--ags-map-cream);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ags-map-results__header p {
	margin: 0.5rem 0 0;
	color: var(--ags-map-muted);
}

.ags-map-empty {
	margin: 1.25rem 0 0;
	padding: 1rem;
	color: var(--ags-map-cream);
	background: rgba(201, 169, 98, 0.08);
	border: 1px solid var(--ags-map-border);
	border-radius: 8px;
}

.ags-map-results__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.35rem;
}

.ags-map-location-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.15rem 1.15rem 1.5rem;
	background: var(--ags-map-panel);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
}

.ags-map-location-card--wonder {
	border-color: var(--ags-map-gold);
	box-shadow: inset 0 3px 0 var(--ags-map-gold);
}

.ags-map-location-card--featured {
	border-color: rgba(220, 181, 86, 0.62);
}

.ags-map-location-card h3 {
	margin: 0.8rem 0 0;
	color: var(--ags-map-cream);
	font-size: 1.28rem;
}

.ags-map-location-card p {
	color: var(--ags-map-muted);
	line-height: 1.6;
}

.ags-map-location-card__names,
.ags-map-location-card__region {
	margin: 0.35rem 0 0 !important;
}

.ags-map-location-card__open {
	align-self: flex-start;
	min-height: 44px;
	margin-top: 0.875rem;
}

.ags-map-location-card__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: auto;
	padding-top: 1.5rem;
}

.ags-map-location-card__footer .ags-map-location-card__type,
.ags-map-location-card__footer .ags-map-location-card__region {
	margin-top: 0 !important;
	margin-bottom: 0;
}

@media (max-width: 1050px) {
	.ags-map-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ags-map-panel {
		width: min(330px, 36vw);
	}

	.ags-region-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ags-interactive-map {
		border-radius: 10px;
	}

	.ags-map-layout {
		display: block;
	}

	.ags-map-viewport {
		height: clamp(320px, 92vw, 430px);
		min-height: 0;
		aspect-ratio: auto;
	}

	.ags-map-base,
	.ags-map-markers {
		width: 100%;
		max-width: none;
		left: 0;
	}

	.ags-map-marker__label {
		display: none;
	}

	.ags-map-region-labels {
		display: none;
	}

	.ags-region-directory__grid {
		grid-template-columns: 1fr;
	}

	.ags-region-card__full-name {
		display: none;
	}

	.ags-region-card__mobile-name {
		display: inline;
	}

	.ags-region-card__explore {
		width: 100%;
	}

	.ags-region-card > p {
		flex: 0 1 auto;
	}

	.ags-region-card__footer,
	.ags-map-location-card__footer {
		margin-top: 0;
	}

	.ags-map-panel {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000;
		width: 100%;
		min-height: 0;
		height: auto;
		max-height: min(82vh, 720px);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
	}

	.ags-map-panel__content {
		max-height: calc(min(82vh, 720px) - 126px);
	}

	.ags-map-results__grid {
		grid-template-columns: 1fr;
	}

	.ags-map-location-card {
		min-height: 0;
	}

	.ags-map-location-card__footer {
		padding-top: 1.5rem;
	}

	.ags-map-location-card__open {
		align-self: stretch;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.ags-interactive-map__header {
		padding-inline: 1rem;
	}

	.ags-map-filters,
	.ags-map-layout,
	.ags-map-results,
	.ags-map-status {
		margin-inline: 0;
		padding-left: 0.8rem;
		padding-right: 0.8rem;
	}

	.ags-map-filter-group__options {
		gap: 0.4rem;
	}

	.ags-map-filter {
		font-size: 0.78rem;
	}

	.ags-map-viewport {
		height: clamp(320px, 92vw, 430px);
	}
}

@media (min-width: 761px) and (max-height: 700px) {
	.ags-map-panel {
		min-height: min(420px, calc(100dvh - 2rem));
		max-height: calc(100dvh - 2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ags-interactive-map *,
	.ags-interactive-map *::before,
	.ags-interactive-map *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.ags-map-filters,
	.ags-map-layout,
	.ags-map-status,
	.ags-map-location-card__open {
		display: none !important;
	}

	.ags-interactive-map,
	.ags-map-results,
	.ags-map-location-card {
		color: #111;
		background: #fff;
		box-shadow: none;
	}

	.ags-map-results__grid {
		grid-template-columns: 1fr 1fr;
	}
}
