/*
 * MapMagnet Discover page.
 *
 * Loaded only on /discover/, after main.css, and built entirely from the
 * design tokens defined there.
 */

.mm-dc {
	--mm-dc-header-offset: 6.5rem;
	padding-block-end: var(--mm-space-3xl);
}

.mm-dc svg {
	flex: none;
}

.mm-dc [hidden] {
	display: none !important;
}

/* --------------------------------------------------------------
   Hero
-------------------------------------------------------------- */

.mm-dc-hero {
	padding-block: var(--mm-space-3xl) calc(var(--mm-space-4xl) + var(--mm-space-xl));
	color: var(--mm-color-text-inverse);
	background:
		radial-gradient(110% 120% at 90% 0%, var(--mm-color-navy-600) 0%, transparent 60%),
		radial-gradient(60% 80% at 0% 100%, rgb(199 90 71 / 0.22) 0%, transparent 70%),
		var(--mm-color-brand-strong);
}

.mm-dc-hero__eyebrow {
	margin: 0 0 var(--mm-space-sm);
	color: var(--mm-color-terracotta-100);
	font-size: var(--mm-text-label);
	font-weight: var(--mm-weight-bold);
	letter-spacing: var(--mm-tracking-eyebrow);
	text-transform: uppercase;
}

.mm-dc-hero__title {
	max-width: 16ch;
	margin: 0;
	color: var(--mm-color-text-inverse);
	font-size: var(--mm-text-display-lg);
	line-height: var(--mm-leading-display-lg);
	letter-spacing: var(--mm-tracking-display);
	text-wrap: balance;
}

.mm-dc-hero__summary {
	max-width: 38rem;
	margin: var(--mm-space-lg) 0 0;
	color: var(--mm-color-neutral-100);
	font-size: var(--mm-text-lead);
	line-height: var(--mm-leading-lead);
}

/* Photo group: four less obvious cities, staggered (desktop only) */

.mm-dc-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: var(--mm-space-2xl);
}

.mm-dc-photos {
	display: none;
}

@media (min-width: 62rem) {
	.mm-dc-hero--photos .mm-dc-hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}

	.mm-dc-photos {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--mm-space-md);
		width: 100%;
		max-width: 27rem;
		margin: 0 0 0 auto;
		padding: 0 0 var(--mm-space-xl);
		list-style: none;
	}

	/* The right-hand column sits lower, like prints laid on a table. */
	.mm-dc-photos__item:nth-child(even) {
		transform: translateY(var(--mm-space-xl));
	}

	.mm-dc-photos__item:nth-child(1) { rotate: -2deg; }
	.mm-dc-photos__item:nth-child(2) { rotate: 1.5deg; }
	.mm-dc-photos__item:nth-child(3) { rotate: 1deg; }
	.mm-dc-photos__item:nth-child(4) { rotate: -1.5deg; }
}

.mm-dc-photos__link {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border: 4px solid rgb(255 255 255 / 0.95);
	border-radius: var(--mm-radius-md);
	overflow: hidden;
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-navy-600);
	box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.55);
	text-decoration: none;
	transition: transform var(--mm-motion-fast) var(--mm-motion-ease);
}

.mm-dc-photos__link:hover,
.mm-dc-photos__link:focus-visible {
	transform: translateY(-4px) scale(1.02);
}

.mm-dc-photos__link:focus-visible {
	outline: var(--mm-focus-width) solid var(--mm-color-focus);
	outline-offset: 3px;
}

.mm-dc-photos__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mm-dc-photos__caption {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	padding: var(--mm-space-xl) var(--mm-space-sm) var(--mm-space-xs);
	background: linear-gradient(to top, rgb(10 20 40 / 0.78), transparent);
	line-height: 1.2;
}

.mm-dc-photos__name {
	font-weight: var(--mm-weight-bold);
}

.mm-dc-photos__country {
	color: var(--mm-color-neutral-100);
	font-size: var(--mm-text-caption);
}

@media (prefers-reduced-motion: reduce) {
	.mm-dc-photos__link {
		transition: none;
	}
}

/* --------------------------------------------------------------
   Questions panel
-------------------------------------------------------------- */

.mm-dc-ask {
	position: relative;
	margin-block-start: calc(var(--mm-space-4xl) * -1);
	scroll-margin-top: var(--mm-dc-header-offset);
}

.mm-dc-ask__panel {
	overflow: hidden;
	border: var(--mm-border-width) solid var(--mm-color-border-subtle);
	border-radius: var(--mm-radius-lg);
	background-color: var(--mm-color-surface);
	box-shadow: var(--mm-shadow-overlay);
}

.mm-dc-tabs {
	display: flex;
	gap: var(--mm-space-2xs);
	padding: var(--mm-space-xs) var(--mm-space-xs) 0;
	border-block-end: var(--mm-border-width) solid var(--mm-color-border-subtle);
	background-color: var(--mm-color-surface-subtle);
	overflow-x: auto;
}

.mm-dc-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-xs);
	min-height: 3rem;
	padding: var(--mm-space-xs) var(--mm-space-lg);
	border: var(--mm-border-width) solid transparent;
	border-block-end: 0;
	border-radius: var(--mm-radius-md) var(--mm-radius-md) 0 0;
	color: var(--mm-color-text-secondary);
	background: transparent;
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body);
	font-weight: var(--mm-weight-semibold);
	white-space: nowrap;
	cursor: pointer;
}

.mm-dc-tabs__tab svg {
	width: 1.125rem;
	height: 1.125rem;
}

.mm-dc-tabs__tab:hover {
	color: var(--mm-color-brand);
}

.mm-dc-tabs__tab[aria-selected="true"] {
	position: relative;
	color: var(--mm-color-brand-strong);
	background-color: var(--mm-color-surface);
	border-color: var(--mm-color-border-subtle);
}

.mm-dc-tabs__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px;
	height: 1px;
	background-color: var(--mm-color-surface);
}

.mm-dc-form {
	display: grid;
	gap: var(--mm-space-xl);
	padding: var(--mm-space-xl);
}

.mm-dc-form + .mm-dc-form {
	border-block-start: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

.is-tabbed .mm-dc-form + .mm-dc-form {
	border-block-start: 0;
}

.mm-dc-form__title {
	margin: 0;
	font-size: var(--mm-text-heading-4);
}

.is-tabbed .mm-dc-form__title {
	display: none;
}

.mm-dc-form__intro {
	margin: 0;
	color: var(--mm-color-text-secondary);
}

.mm-dc-form__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mm-space-lg);
	align-items: end;
}

.mm-dc-form__grid--travel {
	padding-block-start: var(--mm-space-xl);
	border-block-start: var(--mm-border-width) dashed var(--mm-color-border);
}

.mm-dc-form__actions {
	display: flex;
	justify-content: flex-end;
}

.mm-dc-form__actions .mm-button {
	width: 100%;
	min-height: 3rem;
}

.mm-dc .mm-select:disabled {
	color: var(--mm-color-disabled-text);
	background-color: var(--mm-color-disabled-surface);
	cursor: not-allowed;
}

/* Mood chips */

.mm-dc-vibes {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.mm-dc-vibes__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--mm-space-xs) var(--mm-space-sm);
	margin-block-end: var(--mm-space-sm);
	padding: 0;
	color: var(--mm-color-text);
	font-size: var(--mm-text-label);
	font-weight: var(--mm-weight-semibold);
}

.mm-dc-vibes__hint {
	color: var(--mm-color-text-muted);
	font-weight: var(--mm-weight-regular);
}

.mm-dc-vibes__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs);
}

.mm-dc-chip {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.mm-dc-chip__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.mm-dc-chip__face {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-xs);
	min-height: 2.75rem;
	padding: var(--mm-space-xs) var(--mm-space-md);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-text);
	background-color: var(--mm-color-surface);
	font-weight: var(--mm-weight-semibold);
	transition:
		color var(--mm-motion-fast) var(--mm-motion-ease),
		background-color var(--mm-motion-fast) var(--mm-motion-ease),
		border-color var(--mm-motion-fast) var(--mm-motion-ease);
}

.mm-dc-chip__face svg {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--mm-color-accent);
}

.mm-dc-chip:hover .mm-dc-chip__face {
	border-color: var(--mm-color-brand);
}

.mm-dc-chip__input:checked + .mm-dc-chip__face {
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-brand);
	border-color: var(--mm-color-brand);
}

.mm-dc-chip__input:checked + .mm-dc-chip__face svg {
	color: var(--mm-color-terracotta-100);
}

.mm-dc-chip__input:focus-visible + .mm-dc-chip__face {
	outline: var(--mm-focus-width) solid var(--mm-color-focus);
	outline-offset: 2px;
}

.mm-dc-chip__input:disabled + .mm-dc-chip__face {
	color: var(--mm-color-disabled-text);
	background-color: var(--mm-color-disabled-surface);
	border-color: var(--mm-color-disabled-border);
	cursor: not-allowed;
}

.mm-dc-chip__input:disabled + .mm-dc-chip__face svg {
	color: var(--mm-color-disabled-text);
}

/* --------------------------------------------------------------
   Sections
-------------------------------------------------------------- */

.mm-dc-section {
	padding-block-start: var(--mm-space-3xl);
	scroll-margin-top: var(--mm-dc-header-offset);
}

.mm-dc-section__title {
	margin: 0;
	font-size: var(--mm-text-heading-2);
	line-height: var(--mm-leading-heading-2);
	text-wrap: balance;
}

.mm-dc-section__intro {
	margin: var(--mm-space-sm) 0 0;
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-lg);
}

/* Ideas */

.mm-dc-ideas__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mm-space-md);
	margin: var(--mm-space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.mm-dc-ideas__link {
	display: flex;
	align-items: center;
	gap: var(--mm-space-md);
	height: 100%;
	padding: var(--mm-space-lg);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	color: var(--mm-color-heading);
	background-color: var(--mm-color-surface);
	font-weight: var(--mm-weight-semibold);
	text-decoration: none;
	transition:
		border-color var(--mm-motion-fast) var(--mm-motion-ease),
		box-shadow var(--mm-motion-standard) var(--mm-motion-ease);
}

.mm-dc-ideas__link:hover {
	border-color: var(--mm-color-brand);
	box-shadow: var(--mm-shadow-raised);
}

.mm-dc-ideas__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--mm-radius-md);
	color: var(--mm-color-accent);
	background-color: var(--mm-color-accent-subtle);
}

.mm-dc-ideas__icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.mm-dc-ideas__arrow {
	width: 1.125rem;
	height: 1.125rem;
	margin-inline-start: auto;
	color: var(--mm-color-text-muted);
}

/* --------------------------------------------------------------
   Results
-------------------------------------------------------------- */

.mm-dc-results__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--mm-space-lg);
	margin-block-end: var(--mm-space-xl);
}

.mm-dc-results__answers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs);
	margin: var(--mm-space-md) 0 0;
	padding: 0;
	list-style: none;
}

.mm-dc-results__answers li {
	padding: var(--mm-space-2xs) var(--mm-space-sm);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand);
	background-color: var(--mm-color-info-surface);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-semibold);
}

.mm-dc-results__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mm-space-sm);
}

.mm-dc-tool,
.mm-dc-view__button {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-xs);
	min-height: 2.5rem;
	padding: var(--mm-space-xs) var(--mm-space-md);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	color: var(--mm-color-brand);
	background-color: var(--mm-color-surface);
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-semibold);
	text-decoration: none;
	cursor: pointer;
}

.mm-dc-tool svg,
.mm-dc-view__button svg {
	width: 1rem;
	height: 1rem;
}

.mm-dc-tool:hover,
.mm-dc-view__button:hover {
	border-color: var(--mm-color-brand);
}

.mm-dc-view {
	display: inline-flex;
}

.mm-dc-view__button:first-child {
	border-start-end-radius: 0;
	border-end-end-radius: 0;
}

.mm-dc-view__button:last-child {
	margin-inline-start: -1px;
	border-start-start-radius: 0;
	border-end-start-radius: 0;
}

.mm-dc-view__button[aria-pressed="true"] {
	position: relative;
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-brand);
	border-color: var(--mm-color-brand);
}

.mm-dc-results__empty {
	max-width: 46rem;
}

.mm-dc-results__note {
	max-width: 46rem;
	margin: var(--mm-space-2xl) 0 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

/* Cards */

.mm-dc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mm-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-dc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	background-color: var(--mm-color-surface);
	transition:
		border-color var(--mm-motion-fast) var(--mm-motion-ease),
		box-shadow var(--mm-motion-standard) var(--mm-motion-ease);
}

.mm-dc-card:hover {
	border-color: var(--mm-color-border-strong);
	box-shadow: var(--mm-shadow-raised);
}

.mm-dc-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--mm-color-surface-subtle);
}

.mm-dc-card__media--empty {
	display: grid;
	place-items: center;
	color: rgb(255 255 255 / 0.35);
	background:
		radial-gradient(90% 120% at 100% 0%, var(--mm-color-navy-600) 0%, transparent 65%),
		var(--mm-color-brand);
}

.mm-dc-card__media--empty > svg {
	width: 2.5rem;
	height: 2.5rem;
}

.mm-dc-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--mm-motion-slow) var(--mm-motion-ease);
}

.mm-dc-card:hover .mm-dc-card__image {
	transform: scale(1.03);
}

.mm-dc-card__rank {
	position: absolute;
	inset-block-start: var(--mm-space-sm);
	inset-inline-start: var(--mm-space-sm);
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand-strong);
	background-color: var(--mm-color-surface);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-bold);
	box-shadow: var(--mm-shadow-subtle);
}

.mm-dc-card__label {
	position: absolute;
	inset-block-end: var(--mm-space-sm);
	inset-inline-start: var(--mm-space-sm);
	padding: var(--mm-space-2xs) var(--mm-space-sm);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-accent);
	font-size: var(--mm-text-caption);
	font-weight: var(--mm-weight-bold);
	box-shadow: var(--mm-shadow-subtle);
}

.mm-dc-save {
	position: absolute;
	inset-block-start: var(--mm-space-sm);
	inset-inline-end: var(--mm-space-sm);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand-strong);
	background-color: rgb(255 255 255 / 0.92);
	box-shadow: var(--mm-shadow-subtle);
	cursor: pointer;
	transition: transform var(--mm-motion-fast) var(--mm-motion-ease);
}

.mm-dc-save:hover {
	transform: scale(1.06);
}

.mm-dc-save svg {
	width: 1.25rem;
	height: 1.25rem;
}

.mm-dc-save[aria-pressed="true"] {
	color: var(--mm-color-accent);
}

.mm-dc-save[aria-pressed="true"] svg {
	fill: currentColor;
}

.mm-dc-save__label,
.mm-dc .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mm-dc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--mm-space-sm);
	padding: var(--mm-space-lg);
}

.mm-dc-card__location {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-semibold);
}

.mm-dc-card__draft {
	padding: 0 var(--mm-space-xs);
	border-radius: var(--mm-radius-sm);
	color: var(--mm-color-warning);
	background-color: var(--mm-color-warning-surface);
	font-size: var(--mm-text-caption);
}

.mm-dc-card__title {
	margin: 0;
	font-size: var(--mm-text-heading-3);
	line-height: var(--mm-leading-heading-3);
}

.mm-dc-card__title a {
	color: var(--mm-color-heading);
	text-decoration: none;
}

/* Whole card is clickable through the title link. */
.mm-dc-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mm-dc-card__title a:focus-visible {
	outline: none;
}

.mm-dc-card:has(.mm-dc-card__title a:focus-visible) {
	outline: var(--mm-focus-width) solid var(--mm-color-focus);
	outline-offset: 2px;
}

.mm-dc-save,
.mm-dc-card__rank,
.mm-dc-card__label {
	z-index: 1;
}

.mm-dc-card__reasons,
.mm-dc-card__meta {
	display: grid;
	gap: var(--mm-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-dc-card__reasons li,
.mm-dc-card__meta li {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-xs);
	line-height: var(--mm-leading-body-sm);
}

.mm-dc-card__reasons svg {
	width: 1.125rem;
	height: 1.125rem;
	margin-block-start: 0.125rem;
	color: var(--mm-color-success);
}

.mm-dc-card__summary {
	margin: 0;
	color: var(--mm-color-text-secondary);
}

.mm-dc-card__highlight {
	margin: 0;
	padding-inline-start: var(--mm-space-sm);
	border-inline-start: 3px solid var(--mm-color-accent-subtle);
	color: var(--mm-color-text-secondary);
	font-family: var(--mm-font-display);
	font-size: var(--mm-text-body-lg);
	font-style: italic;
	line-height: var(--mm-leading-body-sm);
}

.mm-dc-card__meta {
	padding-block-start: var(--mm-space-sm);
	border-block-start: var(--mm-border-width) solid var(--mm-color-border-subtle);
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
}

.mm-dc-card__meta svg {
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.125rem;
	color: var(--mm-color-text-muted);
}

.mm-dc-card__caution {
	color: var(--mm-color-warning);
}

.mm-dc-card__caution svg {
	color: var(--mm-color-warning) !important;
}

.mm-dc-card__link {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin-block-start: auto;
	padding-block-start: var(--mm-space-sm);
	color: var(--mm-color-brand);
	font-weight: var(--mm-weight-bold);
	text-decoration: none;
}

.mm-dc-card__link svg {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform var(--mm-motion-fast) var(--mm-motion-ease);
}

.mm-dc-card:hover .mm-dc-card__link svg {
	transform: translateX(3px);
}

/* Less obvious picks */

.mm-dc-offbeat {
	margin-block: var(--mm-space-3xl) var(--mm-space-lg);
	padding-block-start: var(--mm-space-xl);
	border-block-start: var(--mm-border-width) solid var(--mm-color-border);
}

.mm-dc-offbeat__title {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0;
	font-size: var(--mm-text-heading-3);
	line-height: var(--mm-leading-heading-3);
}

.mm-dc-offbeat__title svg {
	width: 1.375rem;
	height: 1.375rem;
	color: var(--mm-color-accent);
}

.mm-dc-offbeat__text {
	max-width: 40rem;
	margin: var(--mm-space-xs) 0 0;
	color: var(--mm-color-text-muted);
}

/* Next step */

.mm-dc-results__next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--mm-space-sm);
	margin: var(--mm-space-2xl) 0 0;
	color: var(--mm-color-text-muted);
	text-align: center;
}

/* Map */

.mm-dc-map {
	height: clamp(24rem, 65vh, 40rem);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	overflow: hidden;
	z-index: 0;
}

.mm-dc-pin span {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 2px solid var(--mm-color-surface);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-accent);
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-bold);
	box-shadow: var(--mm-shadow-raised);
}

.mm-dc-pin__popup {
	display: grid;
	gap: var(--mm-space-2xs);
	font-family: var(--mm-font-body);
}

.mm-dc-pin__popup a {
	color: var(--mm-color-brand);
	font-size: var(--mm-text-body);
	font-weight: var(--mm-weight-bold);
}

.mm-dc-pin__popup span {
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

/* --------------------------------------------------------------
   Shortlist
-------------------------------------------------------------- */

.mm-dc-shortlist {
	position: fixed;
	inset-block-end: var(--mm-space-lg);
	inset-inline-end: var(--mm-space-lg);
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--mm-space-sm);
}

.mm-dc-shortlist__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-xs);
	min-height: 3rem;
	padding: var(--mm-space-xs) var(--mm-space-md) var(--mm-space-xs) var(--mm-space-lg);
	border: 0;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-brand-strong);
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body);
	font-weight: var(--mm-weight-semibold);
	box-shadow: var(--mm-shadow-overlay);
	cursor: pointer;
}

.mm-dc-shortlist__toggle svg {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--mm-color-terracotta-500);
	fill: currentColor;
}

.mm-dc-shortlist__toggle.is-bumped {
	animation: mm-dc-bump 360ms var(--mm-motion-ease);
}

@keyframes mm-dc-bump {
	40% {
		transform: scale(1.08);
	}
}

.mm-dc-shortlist__count {
	display: grid;
	place-items: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding-inline: var(--mm-space-xs);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand-strong);
	background-color: var(--mm-color-surface);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-bold);
}

.mm-dc-shortlist__panel {
	order: -1;
	width: min(22rem, calc(100vw - 2 * var(--mm-space-lg)));
	padding: var(--mm-space-lg);
	border: var(--mm-border-width) solid var(--mm-color-border-subtle);
	border-radius: var(--mm-radius-lg);
	background-color: var(--mm-color-surface);
	box-shadow: var(--mm-shadow-overlay);
}

.mm-dc-shortlist__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-end: var(--mm-space-md);
}

.mm-dc-shortlist__title {
	margin: 0;
	font-size: var(--mm-text-heading-4);
}

.mm-dc-shortlist__close,
.mm-dc-shortlist__remove {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-text-muted);
	background: transparent;
	cursor: pointer;
}

.mm-dc-shortlist__close:hover,
.mm-dc-shortlist__remove:hover {
	color: var(--mm-color-text);
	background-color: var(--mm-color-surface-subtle);
}

.mm-dc-shortlist__close svg,
.mm-dc-shortlist__remove svg {
	width: 1.125rem;
	height: 1.125rem;
}

.mm-dc-shortlist__list {
	display: grid;
	gap: var(--mm-space-2xs);
	max-height: 50vh;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.mm-dc-shortlist__item {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: var(--mm-space-sm);
	padding: var(--mm-space-xs) 0;
	border-block-end: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

.mm-dc-shortlist__item a {
	color: var(--mm-color-heading);
	font-weight: var(--mm-weight-bold);
	text-decoration: none;
}

.mm-dc-shortlist__item a:hover {
	text-decoration: underline;
}

.mm-dc-shortlist__country {
	grid-column: 1;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

.mm-dc-shortlist__remove {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.mm-dc-shortlist__empty,
.mm-dc-shortlist__note {
	margin: 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

.mm-dc-shortlist__note {
	margin-block-start: var(--mm-space-md);
}

/* --------------------------------------------------------------
   Smaller screens
-------------------------------------------------------------- */

@media (max-width: 64rem) {
	.mm-dc-grid,
	.mm-dc-ideas__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.mm-dc-hero {
		padding-block: var(--mm-space-2xl) calc(var(--mm-space-4xl) + var(--mm-space-md));
	}

	.mm-dc-form {
		padding: var(--mm-space-lg);
	}

	.mm-dc-form__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--mm-space-md);
	}

	.mm-dc-tabs__tab {
		flex: 1;
		justify-content: center;
		padding-inline: var(--mm-space-sm);
	}

	.mm-dc-tabs__tab svg {
		display: none;
	}

	.mm-dc-grid,
	.mm-dc-ideas__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.mm-dc-shortlist {
		inset-block-end: var(--mm-space-md);
		inset-inline-end: var(--mm-space-md);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-dc *,
	.mm-dc *::before,
	.mm-dc *::after {
		transition: none !important;
		animation: none !important;
	}
}
