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

.mm-pl svg {
	flex: none;
}

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

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

.mm-pl-hero {
	padding-block: var(--mm-space-3xl) calc(var(--mm-space-4xl) + var(--mm-space-lg));
	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-pl-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-pl-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-pl-hero__summary {
	max-width: 40rem;
	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);
}

/* --------------------------------------------------------------
   App shell
-------------------------------------------------------------- */

.mm-pl-app-wrap {
	position: relative;
	margin-block-start: calc(var(--mm-space-4xl) * -1);
}

.mm-pl-app {
	min-height: 20rem;
	padding: var(--mm-space-xl);
	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-pl-saved {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-xs);
	max-width: 46rem;
	margin: var(--mm-space-md) 0 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-saved svg {
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.2rem;
}

/* Type */

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

.mm-pl-h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--mm-space-sm);
	margin: 0 0 var(--mm-space-md);
	font-size: var(--mm-text-heading-4);
	line-height: var(--mm-leading-heading-4);
}

.mm-pl-h3 .mm-pl-muted {
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-regular);
}

.mm-pl-h4,
.mm-pl-h5 {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0 0 var(--mm-space-sm);
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body);
	font-weight: var(--mm-weight-bold);
	color: var(--mm-color-heading);
}

.mm-pl-h5 {
	margin-block-start: var(--mm-space-lg);
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
	letter-spacing: var(--mm-tracking-label);
	text-transform: uppercase;
}

.mm-pl-h4 svg,
.mm-pl-h5 svg {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--mm-color-accent);
}

.mm-pl-muted {
	color: var(--mm-color-text-muted);
}

p.mm-pl-muted {
	margin: 0;
}

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

.mm-pl-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Bars, links and small buttons */

.mm-pl-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mm-space-md);
	margin-block-end: var(--mm-space-lg);
}

.mm-pl-bar--wrap {
	align-items: flex-start;
}

.mm-pl-bar--wrap .mm-pl-h3 {
	margin: 0;
}

.mm-pl-link,
.mm-pl-inline {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-xs);
	padding: 0;
	border: 0;
	color: var(--mm-color-brand);
	background: none;
	font: inherit;
	font-weight: var(--mm-weight-bold);
	text-decoration: none;
	cursor: pointer;
}

.mm-pl-inline {
	display: inline;
	text-decoration: underline;
}

.mm-pl-link:hover {
	color: var(--mm-color-accent);
}

.mm-pl-link svg {
	width: 1.125rem;
	height: 1.125rem;
}

.mm-pl-tool,
.mm-pl-chip {
	display: inline-flex;
	align-items: center;
	justify-content: 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;
	white-space: nowrap;
	cursor: pointer;
	list-style: none;
}

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

.mm-pl-tool svg,
.mm-pl-chip svg {
	width: 1rem;
	height: 1rem;
}

.mm-pl-tool--danger {
	color: var(--mm-color-text-muted);
}

.mm-pl-tool--danger:hover {
	color: var(--mm-color-error);
	border-color: var(--mm-color-error-border);
}

.mm-pl-chip {
	border-radius: var(--mm-radius-pill);
}

.mm-pl-chip svg {
	color: var(--mm-color-accent);
}

.mm-pl-pill {
	display: inline-flex;
	align-self: flex-start;
	justify-self: start;
	padding: var(--mm-space-2xs) var(--mm-space-sm);
	border-radius: var(--mm-radius-pill);
	font-size: var(--mm-text-caption);
	font-weight: var(--mm-weight-bold);
	color: var(--mm-color-info);
	background-color: var(--mm-color-info-surface);
}

.mm-pl-pill--soon {
	color: var(--mm-color-accent-strong);
	background-color: var(--mm-color-accent-subtle);
}

.mm-pl-pill--now {
	color: var(--mm-color-success);
	background-color: var(--mm-color-success-surface);
}

.mm-pl-pill--past,
.mm-pl-pill--muted {
	color: var(--mm-color-text-muted);
	background-color: var(--mm-color-surface-subtle);
}

.mm-pl-badge {
	display: inline-block;
	margin-block-end: var(--mm-space-xs);
	padding: 0 var(--mm-space-xs);
	border-radius: var(--mm-radius-sm);
	color: var(--mm-color-success);
	background-color: var(--mm-color-success-surface);
	font-size: var(--mm-text-caption);
	font-weight: var(--mm-weight-bold);
}

.mm-pl-count {
	display: grid;
	place-items: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding-inline: 0.375rem;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand);
	background-color: var(--mm-color-info-surface);
	font-size: var(--mm-text-caption);
	font-weight: var(--mm-weight-bold);
}

/* Cards and layout helpers */

.mm-pl-card {
	padding: var(--mm-space-lg);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	background-color: var(--mm-color-surface);
}

.mm-pl-card + .mm-pl-card,
.mm-pl-card + .mm-pl-tabs {
	margin-block-start: var(--mm-space-lg);
}

.mm-pl-card--soft {
	border-color: var(--mm-color-border-subtle);
	background-color: var(--mm-color-page);
}

.mm-pl-card--soft p {
	margin: 0 0 var(--mm-space-sm);
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-card--narrow {
	max-width: 40rem;
}

.mm-pl-two {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--mm-space-lg);
	align-items: start;
}

.mm-pl-two > .mm-pl-card + .mm-pl-card {
	margin: 0;
}

.mm-pl-stack {
	display: grid;
	gap: var(--mm-space-lg);
}

.mm-pl-stack > .mm-pl-card + .mm-pl-card {
	margin: 0;
}

.mm-pl-empty {
	display: grid;
	justify-items: center;
	gap: var(--mm-space-sm);
	padding: var(--mm-space-2xl) var(--mm-space-lg);
	border: var(--mm-border-width) dashed var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	color: var(--mm-color-text-secondary);
	text-align: center;
}

.mm-pl-empty > svg {
	width: 2rem;
	height: 2rem;
	color: var(--mm-color-accent);
}

.mm-pl-empty p {
	max-width: 32rem;
	margin: 0;
}

/* Forms */

.mm-pl-form {
	display: grid;
	gap: var(--mm-space-lg);
}

.mm-pl-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mm-space-md);
}

.mm-pl-grid__full {
	grid-column: 1 / -1;
}

.mm-pl-grid__pair {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--mm-space-sm);
}

.mm-pl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-sm);
}

.mm-pl-error {
	margin: 0;
	color: var(--mm-color-error);
	font-weight: var(--mm-weight-semibold);
}

.mm-pl-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-sm);
	margin-block-start: var(--mm-space-lg);
}

.mm-pl-inline-form .mm-input {
	flex: 1 1 14rem;
}

.mm-pl-inline-form .mm-select {
	flex: 0 1 11rem;
}

/* --------------------------------------------------------------
   Trip list
-------------------------------------------------------------- */

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

.mm-pl-start__intro p {
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-lg);
}

.mm-pl-hint {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	color: var(--mm-color-text-secondary);
}

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

.mm-pl-shortlist {
	margin-block-end: var(--mm-space-xl);
}

.mm-pl-shortlist__title {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0 0 var(--mm-space-sm);
	font-weight: var(--mm-weight-bold);
}

.mm-pl-shortlist__title svg {
	width: 1rem;
	height: 1rem;
	color: var(--mm-color-accent);
	fill: currentColor;
}

.mm-pl-shortlist ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-trips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: var(--mm-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-trips--past {
	opacity: 0.75;
}

.mm-pl-trip__link {
	display: grid;
	gap: var(--mm-space-xs);
	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-text);
	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-pl-trip__link:hover {
	border-color: var(--mm-color-brand);
	box-shadow: var(--mm-shadow-raised);
}

.mm-pl-trip__name {
	margin-block: var(--mm-space-xs) var(--mm-space-2xs);
	color: var(--mm-color-heading);
	font-family: var(--mm-font-display);
	font-size: var(--mm-text-heading-4);
	font-weight: var(--mm-weight-semibold);
	line-height: var(--mm-leading-heading-4);
}

.mm-pl-trip__meta {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-trip__meta svg {
	width: 1rem;
	height: 1rem;
	color: var(--mm-color-text-muted);
}

.mm-pl-progress {
	display: grid;
	gap: var(--mm-space-2xs);
	margin-block-start: var(--mm-space-sm);
}

.mm-pl-progress__bar {
	height: 0.375rem;
	border-radius: var(--mm-radius-pill);
	background-color: var(--mm-color-surface-subtle);
	overflow: hidden;
}

.mm-pl-progress__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background-color: var(--mm-color-success);
}

.mm-pl-progress__text {
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-caption);
}

.mm-pl-restore {
	margin-block-start: var(--mm-space-xl);
	padding-block-start: var(--mm-space-lg);
	border-block-start: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

.mm-pl-restore .mm-pl-link {
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-semibold);
}

/* --------------------------------------------------------------
   Trip header and tabs
-------------------------------------------------------------- */

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

.mm-pl-head__main {
	display: grid;
	gap: var(--mm-space-sm);
}

.mm-pl-head__title {
	margin: 0;
	font-size: var(--mm-text-heading-2);
	line-height: var(--mm-leading-heading-2);
}

.mm-pl-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs) var(--mm-space-lg);
	margin: 0;
	padding: 0;
	color: var(--mm-color-text-secondary);
	list-style: none;
}

.mm-pl-head__meta li {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
}

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

.mm-pl-head__meta a {
	color: inherit;
	font-weight: var(--mm-weight-semibold);
}

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

.mm-pl-menu {
	position: relative;
}

.mm-pl-menu summary::-webkit-details-marker {
	display: none;
}

.mm-pl-menu__list {
	position: absolute;
	inset-inline-end: 0;
	inset-block-start: calc(100% + var(--mm-space-xs));
	z-index: 20;
	display: grid;
	min-width: 17rem;
	padding: var(--mm-space-xs);
	border: var(--mm-border-width) solid var(--mm-color-border-subtle);
	border-radius: var(--mm-radius-md);
	background-color: var(--mm-color-surface);
	box-shadow: var(--mm-shadow-overlay);
}

.mm-pl-menu__list button {
	display: flex;
	align-items: center;
	gap: var(--mm-space-sm);
	padding: var(--mm-space-sm);
	border: 0;
	border-radius: var(--mm-radius-sm);
	color: var(--mm-color-text);
	background: none;
	font: inherit;
	font-size: var(--mm-text-body-sm);
	text-align: start;
	cursor: pointer;
}

.mm-pl-menu__list button:hover {
	background-color: var(--mm-color-surface-subtle);
}

.mm-pl-menu__list svg {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--mm-color-brand);
}

.mm-pl-tabs {
	display: flex;
	gap: var(--mm-space-2xs);
	margin-block-end: var(--mm-space-xl);
	border-block-end: var(--mm-border-width) solid var(--mm-color-border);
	overflow-x: auto;
	scrollbar-width: thin;
}

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

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

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

.mm-pl-tabs__tab[aria-selected="true"] {
	color: var(--mm-color-brand-strong);
	border-block-end-color: var(--mm-color-accent);
}

/* --------------------------------------------------------------
   Overview
-------------------------------------------------------------- */

.mm-pl-overview {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: var(--mm-space-lg);
	align-items: start;
}

.mm-pl-side {
	display: grid;
	gap: var(--mm-space-md);
}

.mm-pl-side > .mm-pl-card + .mm-pl-card {
	margin: 0;
}

.mm-pl-needs {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-need {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--mm-space-md);
	align-items: start;
	padding-block: var(--mm-space-md);
	border-block-end: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

.mm-pl-need:last-child {
	border-block-end: 0;
}

.mm-pl-need__icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand);
	background-color: var(--mm-color-surface-subtle);
}

.mm-pl-need__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.mm-pl-need.is-done .mm-pl-need__icon {
	color: var(--mm-color-success);
	background-color: var(--mm-color-success-surface);
}

.mm-pl-need__body {
	display: grid;
	gap: var(--mm-space-2xs);
}

.mm-pl-need__body > span {
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-need.is-done .mm-pl-need__body > span {
	color: var(--mm-color-success);
}

.mm-pl-need__hint {
	margin: var(--mm-space-2xs) 0 0;
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-providers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs);
	margin-block-start: var(--mm-space-xs);
}

.mm-pl-provider {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-2xs);
	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);
	text-decoration: none;
}

.mm-pl-provider.mm-pl-provider--guide {
	color: var(--mm-color-accent-strong);
	background-color: var(--mm-color-accent-subtle);
}

.mm-pl-provider:hover {
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-brand);
}

.mm-pl-provider svg {
	width: 0.8125rem;
	height: 0.8125rem;
}

.mm-pl-glance dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mm-space-sm);
	margin: 0;
}

.mm-pl-glance dt {
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-caption);
}

.mm-pl-glance dd {
	margin: 0;
	color: var(--mm-color-heading);
	font-family: var(--mm-font-display);
	font-size: var(--mm-text-heading-4);
	font-weight: var(--mm-weight-semibold);
}

.mm-pl-event {
	display: flex;
	gap: var(--mm-space-xs);
}

.mm-pl-event svg {
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.2rem;
	color: var(--mm-color-accent);
}

.mm-pl-steps {
	display: grid;
	gap: var(--mm-space-xs);
	margin: 0 0 var(--mm-space-md);
	padding-inline-start: 0;
	list-style: none;
	font-size: var(--mm-text-body-sm);
}

.mm-pl-steps strong {
	display: inline-block;
	min-width: 4.5rem;
	color: var(--mm-color-heading);
}

.mm-pl-facts {
	display: grid;
	gap: var(--mm-space-xs);
	margin: 0 0 var(--mm-space-md);
	padding: 0;
	list-style: none;
	font-size: var(--mm-text-body-sm);
}

.mm-pl-facts span {
	display: block;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-caption);
}

/* --------------------------------------------------------------
   Bookings
-------------------------------------------------------------- */

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

.mm-pl-bookings {
	display: grid;
	gap: var(--mm-space-md);
	margin: var(--mm-space-lg) 0 0;
	padding: 0;
	list-style: none;
}

.mm-pl-booking {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--mm-space-md);
	padding: var(--mm-space-lg);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
}

.mm-pl-booking__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-pl-booking__icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.mm-pl-booking__type {
	margin: 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-caption);
	font-weight: var(--mm-weight-bold);
	letter-spacing: var(--mm-tracking-label);
	text-transform: uppercase;
}

.mm-pl-booking__title {
	margin: var(--mm-space-2xs) 0 var(--mm-space-sm);
	font-family: var(--mm-font-body);
	font-size: var(--mm-text-body-lg);
	font-weight: var(--mm-weight-bold);
}

.mm-pl-booking__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs) var(--mm-space-lg);
	margin: 0;
	padding: 0;
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
	list-style: none;
}

.mm-pl-booking__meta li {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-xs);
}

.mm-pl-booking__meta svg {
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.15rem;
	color: var(--mm-color-text-muted);
}

.mm-pl-booking__notes {
	margin: var(--mm-space-sm) 0 0;
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
	white-space: pre-wrap;
}

.mm-pl-booking__actions {
	display: flex;
	gap: var(--mm-space-xs);
	align-items: flex-start;
}

.mm-pl-booking__actions .mm-pl-tool {
	padding-inline: var(--mm-space-sm);
}

.mm-pl-booking-form {
	margin-block-start: var(--mm-space-lg);
	border-color: var(--mm-color-brand);
	box-shadow: var(--mm-shadow-raised);
}

.mm-pl-total {
	margin: var(--mm-space-lg) 0 0;
	text-align: end;
}

/* --------------------------------------------------------------
   Day by day
-------------------------------------------------------------- */

.mm-pl-days {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: var(--mm-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-day {
	display: flex;
	flex-direction: column;
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	overflow: hidden;
}

.mm-pl-day__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--mm-space-sm);
	padding: var(--mm-space-sm) var(--mm-space-md);
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-brand);
}

.mm-pl-day__num {
	font-family: var(--mm-font-display);
	font-size: var(--mm-text-heading-4);
	font-weight: var(--mm-weight-semibold);
}

.mm-pl-day__date {
	color: var(--mm-color-neutral-100);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-day__list {
	display: grid;
	flex: 1;
	align-content: start;
	gap: var(--mm-space-2xs);
	margin: 0;
	padding: var(--mm-space-sm) var(--mm-space-md);
	list-style: none;
}

.mm-pl-day__booking {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-xs);
	padding: var(--mm-space-xs) var(--mm-space-sm);
	border-radius: var(--mm-radius-sm);
	background-color: var(--mm-color-accent-subtle);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-day__booking svg {
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.15rem;
	color: var(--mm-color-accent);
}

.mm-pl-day__empty {
	padding-block: var(--mm-space-xs);
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
	font-style: italic;
}

.mm-pl-day__add {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs);
	padding: var(--mm-space-sm) var(--mm-space-md);
	border-block-start: var(--mm-border-width) solid var(--mm-color-border-subtle);
	background-color: var(--mm-color-page);
}

.mm-pl-day__add .mm-select,
.mm-pl-day__add .mm-input {
	flex: 1 1 8rem;
	min-height: 2.5rem;
	font-size: var(--mm-text-body-sm);
}

.mm-pl-unscheduled {
	margin-block-start: var(--mm-space-xl);
}

/* Places (saved ideas) */

.mm-pl-places {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-place {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mm-space-xs) var(--mm-space-sm);
	padding-block: var(--mm-space-xs);
	border-block-end: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

.mm-pl-day .mm-pl-place {
	border: 0;
	padding-block: var(--mm-space-2xs);
}

.mm-pl-place__icon svg {
	width: 1rem;
	height: 1rem;
	color: var(--mm-color-text-muted);
}

.mm-pl-place__title {
	flex: 1 1 8rem;
	min-width: 0;
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-semibold);
}

.mm-pl-place__title a {
	color: inherit;
}

.mm-pl-place.is-done .mm-pl-place__title {
	color: var(--mm-color-text-muted);
	text-decoration: line-through;
}

.mm-pl-place .mm-pl-tool {
	min-height: 2rem;
	padding: var(--mm-space-2xs) var(--mm-space-xs);
}

.mm-pl-day-select {
	flex: 0 1 12rem;
	min-height: 2.25rem;
	font-size: var(--mm-text-body-sm);
}

.mm-pl-check {
	display: inline-flex;
	cursor: pointer;
}

.mm-pl-check input,
.mm-pl-check-row input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--mm-color-success);
	cursor: pointer;
}

/* Ideas from the guide */

.mm-pl-guide-ideas {
	display: grid;
	gap: var(--mm-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-gidea {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--mm-space-md);
	align-items: start;
	padding: var(--mm-space-sm);
	border-radius: var(--mm-radius-sm);
	background-color: var(--mm-color-surface);
}

.mm-pl-gidea strong {
	font-size: var(--mm-text-body-sm);
}

.mm-pl-gidea p {
	display: -webkit-box;
	margin: var(--mm-space-2xs) 0 0 !important;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: var(--mm-text-caption) !important;
}

.mm-pl-save {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-2xs);
	min-height: 2.25rem;
	padding: var(--mm-space-2xs) var(--mm-space-sm);
	border: var(--mm-border-width) solid var(--mm-color-brand);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-brand);
	background: var(--mm-color-surface);
	font: inherit;
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-semibold);
	cursor: pointer;
}

.mm-pl-save svg {
	width: 1rem;
	height: 1rem;
}

.mm-pl-save.is-saved {
	color: var(--mm-color-success);
	border-color: var(--mm-color-success-border);
	background-color: var(--mm-color-success-surface);
}

/* Checklist and notes */

.mm-pl-checklist {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-checklist li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mm-space-sm);
	padding-block: var(--mm-space-2xs);
	border-block-end: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

.mm-pl-check-row {
	display: flex;
	flex: 1;
	align-items: center;
	gap: var(--mm-space-sm);
	min-height: 2.5rem;
	cursor: pointer;
}

.mm-pl-checklist li.is-done span {
	color: var(--mm-color-text-muted);
	text-decoration: line-through;
}

.mm-pl-checklist .mm-pl-tool {
	min-height: 2rem;
	padding: var(--mm-space-2xs) var(--mm-space-xs);
	border-color: transparent;
}

.mm-pl-notes {
	width: 100%;
	min-height: 10rem;
	resize: vertical;
}

.mm-pl-notes__status {
	margin-block-start: var(--mm-space-xs) !important;
	font-size: var(--mm-text-caption);
}

.mm-pl-tips {
	display: grid;
	gap: var(--mm-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-tips li {
	display: grid;
	gap: var(--mm-space-xs);
}

.mm-pl-tips strong {
	font-size: var(--mm-text-body-sm);
}

.mm-pl-tips p {
	margin: var(--mm-space-2xs) 0 0 !important;
}

.mm-pl-tips .mm-pl-tool {
	justify-self: start;
	min-height: 2.25rem;
}

.mm-pl-tips .mm-pl-muted {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-2xs);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-tips .mm-pl-muted svg {
	width: 1rem;
	height: 1rem;
	color: var(--mm-color-success);
}

/* --------------------------------------------------------------
   Travel services and disclosure
-------------------------------------------------------------- */

.mm-pl-services {
	padding-block: var(--mm-space-3xl);
}

.mm-pl-services__title {
	margin: 0 0 var(--mm-space-lg);
	font-size: var(--mm-text-heading-3);
}

.mm-pl-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: var(--mm-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pl-service {
	display: flex;
	align-items: flex-start;
	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-text);
	background-color: var(--mm-color-surface);
	text-decoration: none;
}

.mm-pl-service:hover {
	border-color: var(--mm-color-brand);
}

.mm-pl-service strong {
	display: block;
	color: var(--mm-color-heading);
}

.mm-pl-service span span {
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
}

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

.mm-pl-service__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.mm-pl-foot {
	padding-block-end: var(--mm-space-3xl);
}

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

/* Toast */

.mm-pl-toast {
	position: fixed;
	inset-block-end: var(--mm-space-lg);
	inset-inline-start: 50%;
	z-index: 100;
	padding: var(--mm-space-sm) var(--mm-space-lg);
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-text-inverse);
	background-color: var(--mm-color-brand-strong);
	box-shadow: var(--mm-shadow-overlay);
	font-weight: var(--mm-weight-semibold);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 1rem);
	transition:
		opacity var(--mm-motion-standard) var(--mm-motion-ease),
		transform var(--mm-motion-standard) var(--mm-motion-ease);
}

.mm-pl-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* --------------------------------------------------------------
   Print: only the trip summary
-------------------------------------------------------------- */

.mm-pl-print {
	display: none;
}

@media print {
	body.mm-pl-printing .site > *:not(.site-main),
	body.mm-pl-printing .mm-pl > *:not(.mm-pl-print) {
		display: none !important;
	}

	body.mm-pl-printing .mm-pl-print {
		display: block;
		color: #000;
		font-family: var(--mm-font-body);
		font-size: 11pt;
	}

	.mm-pl-print h1 {
		margin: 0 0 4pt;
		font-size: 22pt;
	}

	.mm-pl-print h2 {
		margin: 16pt 0 6pt;
		padding-block-end: 3pt;
		border-block-end: 1px solid #999;
		font-size: 14pt;
	}

	.mm-pl-print h3 {
		margin: 10pt 0 3pt;
		font-family: var(--mm-font-body);
		font-size: 11pt;
	}

	.mm-pl-print table {
		width: 100%;
		border-collapse: collapse;
	}

	.mm-pl-print th,
	.mm-pl-print td {
		padding: 4pt 6pt 4pt 0;
		border-block-end: 1px solid #ddd;
		text-align: start;
		vertical-align: top;
	}

	.mm-pl-print th {
		width: 28%;
	}

	.mm-pl-print__checks {
		padding: 0;
		list-style: none;
	}

	.mm-pl-print__foot {
		margin-block-start: 20pt;
		color: #666;
		font-size: 9pt;
	}
}

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

@media (max-width: 64rem) {
	.mm-pl-overview,
	.mm-pl-two,
	.mm-pl-start {
		grid-template-columns: minmax(0, 1fr);
	}
}

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

	.mm-pl-app {
		padding: var(--mm-space-md);
		border-radius: var(--mm-radius-md);
	}

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

	.mm-pl-card {
		padding: var(--mm-space-md);
	}

	.mm-pl-need {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.mm-pl-need > .mm-pl-tool {
		grid-column: 2;
		justify-self: start;
	}

	.mm-pl-booking {
		grid-template-columns: auto minmax(0, 1fr);
		padding: var(--mm-space-md);
	}

	.mm-pl-booking__actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}

	.mm-pl-tabs__tab {
		padding-inline: var(--mm-space-sm);
	}

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

@media (prefers-reduced-motion: reduce) {
	.mm-pl *,
	.mm-pl-toast {
		transition: none !important;
	}
}

/* --------------------------------------------------------------
   Planner page flow (start, trips, compact hero)
-------------------------------------------------------------- */

/* Inside a trip or the new-trip form: a slim band instead of the
   welcome, so the trip itself starts near the top of the screen. */
.mm-pl--inside .mm-pl-hero {
	padding-block: var(--mm-space-xl) calc(var(--mm-space-4xl) + var(--mm-space-sm));
}

.mm-pl--inside .mm-pl-hero__eyebrow {
	margin: 0;
}

.mm-pl--inside .mm-pl-hero__title,
.mm-pl--inside .mm-pl-hero__summary,
.mm-pl--inside .mm-pl-services {
	display: none;
}

/* "Plan another trip", under the trip cards */
.mm-pl-start--again {
	margin-block-start: var(--mm-space-2xl);
	padding-block-start: var(--mm-space-2xl);
	border-block-start: var(--mm-border-width) solid var(--mm-color-border-subtle);
}

/* How it works (first visit) */
.mm-pl-how {
	display: grid;
	gap: var(--mm-space-md);
	margin: var(--mm-space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.mm-pl-how__step {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-md);
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
	line-height: 1.5;
}

.mm-pl-how__step strong {
	display: block;
	color: var(--mm-color-heading);
	font-size: var(--mm-text-body);
}

.mm-pl-how__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--mm-radius-pill);
	color: var(--mm-color-accent);
	background-color: var(--mm-color-accent-subtle);
}

.mm-pl-how__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Delete button on each trip card */
.mm-pl-trip {
	position: relative;
}

.mm-pl-trip__delete {
	position: absolute;
	inset-block-start: var(--mm-space-md);
	inset-inline-end: var(--mm-space-md);
	opacity: 0.7;
}

.mm-pl-trip__delete:hover,
.mm-pl-trip__delete:focus-visible {
	opacity: 1;
}

/* Day-by-day "add" row: saved ideas on their own line */
.mm-pl-day__add .mm-select {
	flex: 1 1 100%;
}

.mm-pl-day__add .mm-input {
	flex: 1 1 0;
	min-width: 0;
}

/* More travel services: all five in one row on wide screens */
@media (min-width: 75rem) {
	.mm-pl-services__grid {
		grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	}
}

/* --------------------------------------------------------------
   Send to your phone / open a sent trip
-------------------------------------------------------------- */

.mm-pl-send {
	display: grid;
	grid-template-columns: 16rem minmax(0, 1fr);
	gap: var(--mm-space-xl);
	align-items: start;
	margin-block-end: var(--mm-space-xl);
}

.mm-pl-send__qr {
	padding: var(--mm-space-xs);
	border: var(--mm-border-width) solid var(--mm-color-border);
	border-radius: var(--mm-radius-md);
	background-color: #fff;
}

.mm-pl-send__qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.mm-pl-send__wait,
.mm-pl-send__note {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0;
	color: var(--mm-color-text-secondary);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-send__wait {
	justify-content: center;
	min-height: 10rem;
}

.mm-pl-send__wait svg {
	animation: mm-pl-spin 1s linear infinite;
}

@keyframes mm-pl-spin {
	to {
		transform: rotate(360deg);
	}
}

.mm-pl-send__note svg,
.mm-pl-send__warn svg,
.mm-pl-import__eyebrow svg,
.mm-pl-saved__note svg {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
}

.mm-pl-send__steps {
	margin: var(--mm-space-sm) 0 var(--mm-space-lg);
	padding-inline-start: 1.25rem;
	color: var(--mm-color-text-secondary);
}

.mm-pl-send__steps li + li {
	margin-block-start: var(--mm-space-2xs);
}

.mm-pl-send__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mm-space-sm);
	margin-block: var(--mm-space-lg);
}

.mm-pl-send__warn {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-xs);
	margin: 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

.mm-pl-send__warn svg {
	margin-block-start: 0.15rem;
	color: var(--mm-color-accent);
}

.mm-pl-import__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0 0 var(--mm-space-xs);
	color: var(--mm-color-accent);
	font-size: var(--mm-text-body-sm);
	font-weight: var(--mm-weight-bold);
}

.mm-pl-import__counts {
	color: var(--mm-color-text-secondary);
}

.mm-pl-saved__note {
	display: flex;
	align-items: center;
	gap: var(--mm-space-xs);
	margin: 0;
	color: var(--mm-color-text-muted);
	font-size: var(--mm-text-body-sm);
}

@media (max-width: 48rem) {
	.mm-pl-send {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mm-pl-send--phone {
	grid-template-columns: minmax(0, 1fr);
}

@media (prefers-reduced-motion: reduce) {
	.mm-pl-send__wait svg {
		animation: none;
	}
}

/* New trip from a guide itinerary: "Includes our itinerary…" */
.mm-pl-note {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-space-sm);
	margin: 0 0 var(--mm-space-lg);
	padding: var(--mm-space-sm) var(--mm-space-md);
	border-radius: var(--mm-radius-md);
	color: var(--mm-color-success);
	background-color: var(--mm-color-success-surface);
	font-size: var(--mm-text-body-sm);
	line-height: var(--mm-leading-body-sm);
}

.mm-pl-note svg {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-block-start: 0.15rem;
}
