/* The trip planner at /plan/. Pins, stacks and the radius marker come from
   map.css; the itinerary inside its panel is trip.css's; this is the frame,
   the two panels and what is in them, the pin popups and the map's tools.
   The brand's language: square corners, Midnight, Barrel and Redwood, Arial
   caps for labels and buttons, Georgia for titles. */

.owb-plan {
	position: relative;
	/* The window below the header: plan.js measures where the map starts. */
	height: calc(100vh - var(--owb-plan-top, 90px));
	height: calc(100dvh - var(--owb-plan-top, 90px));
	min-height: 480px;
	overflow: hidden;
	background: var(--owb-tint);
	color: var(--owb-main);
	font-size: 14px;
}

.owb-plan-canvas {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s ease;
}

.owb-plan.is-ready .owb-plan-canvas {
	opacity: 1;
}

.owb-plan .leaflet-container {
	background: var(--owb-tint);
	font: inherit;
}

.owb-plan-status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	color: var(--owb-muted);
}

.owb-plan-status[hidden] {
	display: none;
}

.owb-plan.is-placing .leaflet-container,
.owb-plan.is-placing .leaflet-interactive {
	cursor: crosshair !important;
}

/* ---------------------------------------------------------------- buttons */
/* The planner's buttons, square and in caps as the site's are: Redwood that
   flips to white, or a Midnight outline (--quiet). map.css draws the same
   class rounded for the directory; here it is ours. */

.owb-plan .owb-map-button {
	display: inline-block;
	padding: 9px 14px;
	border: 2px solid var(--owb-redwood);
	border-radius: 0;
	background: var(--owb-redwood);
	color: #fff;
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.owb-plan .owb-map-button:hover,
.owb-plan .owb-map-button:focus-visible,
.owb-plan .owb-map-button[aria-pressed="true"] {
	background: #fff;
	color: var(--owb-redwood);
}

.owb-plan .owb-map-button--quiet {
	border-color: var(--owb-main);
	background: transparent;
	color: var(--owb-main);
}

.owb-plan .owb-map-button--quiet:hover,
.owb-plan .owb-map-button--quiet:focus-visible {
	background: var(--owb-main);
	color: #fff;
}

.owb-plan .owb-map-button:disabled {
	opacity: .4;
	cursor: default;
}

/* ----------------------------------------------------------------- panels */

/* The two panels, over the map's edges. Above Leaflet's panes and controls. */
.owb-plan-panel {
	position: absolute;
	top: 12px;
	bottom: 12px;
	z-index: 1000;
	display: flex;
	box-sizing: border-box;
	width: 360px;
	max-width: calc(100% - 24px);
	flex-direction: column;
	border: 1px solid var(--owb-line);
	border-top: 3px solid var(--owb-redwood);
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 4, 41, .16);
	visibility: hidden;
}

/* Sliding only once the page has settled, so they do not slide in on load. */
.owb-plan.is-settled .owb-plan-panel {
	transition: transform .25s ease, visibility .25s;
}

.owb-plan-panel--filters {
	left: 12px;
	transform: translateX(calc(-100% - 24px));
}

/* Below the tab it folds into. */
.owb-plan-panel--trip {
	top: 52px;
	right: 12px;
	width: 340px;
	transform: translateX(calc(100% + 24px));
}

.owb-plan.is-filters-open .owb-plan-panel--filters,
.owb-plan.is-trip-open .owb-plan-panel--trip {
	transform: none;
	visibility: visible;
}

/* The map's own controls — zoom, span, attribution — clear of an open panel. */
.owb-plan .leaflet-left,
.owb-plan .leaflet-right {
	transition: left .25s ease, right .25s ease;
}

.owb-plan.is-filters-open .leaflet-left {
	left: 384px;
}

.owb-plan.is-trip-open .leaflet-right {
	right: 364px;
}

/* A phone's drawers cover the map whole; nothing to step around. */
@media (max-width: 768px) {
	.owb-plan.is-filters-open .leaflet-left {
		left: 0;
	}

	.owb-plan.is-trip-open .leaflet-right {
		right: 0;
	}
}

.owb-plan-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 12px 12px 18px;
	border-bottom: 1px solid var(--owb-line-soft);
}

.owb-plan .owb-plan-title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--owb-main);
	font-size: 22px;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
}

.owb-plan-fold {
	box-sizing: border-box;
	flex: 0 0 30px;
	width: 30px;
	min-width: 0;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--owb-line);
	border-radius: 0;
	background: #fff;
	color: var(--owb-main);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.owb-plan-fold:hover,
.owb-plan-fold:focus-visible {
	border-color: var(--owb-main);
	background: var(--owb-main);
	color: #fff;
}

.owb-plan-panel-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px 18px 18px;
}

/* "Find", over the map when its panel is folded: a square Midnight tab, as
   the itinerary's is Redwood. */
.owb-plan-toggle {
	position: absolute;
	top: 12px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 0;
	background: var(--owb-main);
	box-shadow: 0 4px 14px rgba(0, 4, 41, .22);
	color: #fff;
	font-family: var(--owb-font-secondary) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.owb-plan-toggle:hover,
.owb-plan-toggle:focus-visible {
	background: var(--owb-redwood);
}

.owb-plan-toggle--filters {
	left: 12px;
}

/* The itinerary's tab: the bubble's (bubble.css), hanging from the header's
   foot on its right edge, as on every other page. Always there; the panel
   folds into it. */
.owb-plan .owb-plan-toggle--trip {
	position: absolute;
	top: 0;
	right: max(24px, calc((100% - 1300px) / 2 + 24px));
	z-index: 1001;
}

.owb-plan.is-filters-open .owb-plan-toggle--filters {
	display: none;
}

/* ---------------------------------------------------------------- filters */

.owb-plan-filters {
	margin: 0 0 12px;
}

.owb-plan-field {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.owb-plan-field legend,
.owb-plan-label,
.owb-plan-search > label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--owb-main);
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.owb-plan-field--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

.owb-plan-field--inline legend {
	flex: 0 0 100%;
}

.owb-plan-field label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.owb-plan-field input[type="checkbox"] {
	accent-color: var(--owb-redwood);
}

.owb-plan-field--checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
}

.owb-plan input[type="date"],
.owb-plan input[type="search"],
.owb-plan input[type="number"],
.owb-plan input[type="datetime-local"],
.owb-plan input[type="text"],
.owb-plan select {
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid var(--owb-line);
	border-radius: 0;
	background: #fff;
	color: var(--owb-main);
	font: inherit;
}

.owb-plan input:focus,
.owb-plan select:focus {
	border-color: var(--owb-main);
	outline: 2px solid var(--owb-sky);
	outline-offset: 0;
}

.owb-plan-search {
	position: relative;
}

.owb-plan-search input[type="search"] {
	width: 100%;
}

.owb-plan-note {
	margin: 4px 0 0;
	color: var(--owb-muted);
	font-size: 12px;
}

.owb-plan-note:empty {
	display: none;
}

.owb-plan-suggest {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 5;
	margin: 0;
	padding: 4px 0;
	border: 1px solid var(--owb-main);
	border-top: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 4, 41, .14);
	list-style: none;
}

.owb-plan-suggest li {
	margin: 0;
	padding: 7px 10px;
	cursor: pointer;
}

.owb-plan-suggest li:hover,
.owb-plan-suggest li.is-active {
	background: var(--owb-barrel);
}

.owb-plan-suggest-group,
.owb-plan-chip-group {
	color: var(--owb-redwood);
	font-family: var(--owb-font-secondary) !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.owb-plan-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.owb-plan-chips:empty {
	display: none;
}

/* A filter in force: Sky, as an event's categories are. */
.owb-plan-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 4px 4px 4px 10px;
	border: 0;
	border-radius: 0;
	background: var(--owb-sky);
	color: var(--owb-main);
	font-size: 13px;
}

.owb-plan-chip button {
	margin: 0;
	padding: 0 6px;
	border: 0;
	background: none;
	color: var(--owb-main);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.owb-plan-chip button:hover,
.owb-plan-chip button:focus-visible {
	color: var(--owb-redwood);
}

.owb-plan .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* The Find panel: the filters pinned at the top, folding to a summary line;
   the results under them are what scrolls. */
.owb-plan-find {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.owb-plan-filterbox {
	flex: none;
	border-bottom: 1px solid var(--owb-line);
	background: #fff;
}

.owb-plan-filterbox-head {
	display: flex;
	width: 100%;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	background: var(--owb-barrel);
	color: var(--owb-main);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.owb-plan-filterbox-head::after {
	margin-left: auto;
	content: "\25B4";
	font-size: 12px;
}

.owb-plan-filterbox.is-folded .owb-plan-filterbox-head::after {
	content: "\25BE";
}

.owb-plan-filterbox-title {
	flex: none;
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.owb-plan-filterbox-summary {
	overflow: hidden;
	min-width: 0;
	color: var(--owb-muted);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Open, it says it all itself; folded, the summary does. */
.owb-plan-filterbox:not(.is-folded) .owb-plan-filterbox-summary {
	visibility: hidden;
}

/* Tall filters (every chip open) scroll inside themselves, never pushing the
   results out of the panel. */
.owb-plan-filterbox-body {
	max-height: 55vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 18px 4px;
}

.owb-plan-filterbox-body[hidden] {
	display: none;
}

.owb-plan-results-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 18px 18px;
}

.owb-plan-results-scroll .owb-plan-count {
	margin: 0;
	padding: 12px 0 6px;
	border-top: 0;
}

/* Show: two toggle buttons, apart. Each is a label over its hidden box, so
   the box is what plan.js reads and the keyboard still reaches it. */
.owb-plan-show {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.owb-plan-show legend {
	flex: 0 0 100%;
}

.owb-plan-field .owb-plan-toggle-button {
	position: relative;
	flex: 1;
	justify-content: center;
	padding: 9px 12px;
	border: 2px solid var(--owb-main);
	background: #fff;
	color: var(--owb-main);
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.owb-plan-toggle-button input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.owb-plan-toggle-button:has(input:checked) {
	background: var(--owb-main);
	color: #fff;
}

.owb-plan-toggle-button:has(input:focus-visible),
.owb-plan-chipset label:has(input:focus-visible) {
	outline: 2px solid var(--owb-sky);
	outline-offset: 2px;
}

/* Dates, on one line. */
.owb-plan-dates-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.owb-plan-dates-row label {
	flex: 1;
	min-width: 0;
}

.owb-plan-dates-row input[type="date"] {
	width: 100%;
	min-width: 0;
}

.owb-plan-dates-dash {
	flex: none;
	color: var(--owb-muted);
}

/* Events' own filters: only while events are shown. */
.owb-plan-filters:has([data-owb-type][value="event"]:not(:checked)) .owb-plan-event-terms {
	display: none;
}

.owb-plan-cats-count {
	color: var(--owb-redwood);
	letter-spacing: .06em;
}

/* Categories and tags as toggle chips: outlined, Sky once ticked. */
.owb-plan-chipset {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.owb-plan-field .owb-plan-chipset label {
	position: relative;
	padding: 5px 10px;
	border: 1px solid var(--owb-line);
	background: #fff;
	color: var(--owb-main);
	font-size: 12px;
	line-height: 1.3;
}

.owb-plan-chipset label[hidden] {
	display: none;
}

.owb-plan-chipset label:hover {
	border-color: var(--owb-main);
}

.owb-plan-chipset input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.owb-plan-chipset label:has(input:checked) {
	border-color: var(--owb-sky);
	background: var(--owb-sky);
	font-weight: 700;
}

.owb-plan-more {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--owb-redwood);
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

.owb-plan-more:hover,
.owb-plan-more:focus-visible {
	text-decoration: underline;
}

.owb-plan-more[hidden] {
	display: none;
}

/* Searching: everything, or what the map shows. */
.owb-plan-scope label {
	display: block;
	margin: 0 0 8px;
	color: var(--owb-main);
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: default;
}

.owb-plan-scope select {
	width: 100%;
	font-weight: 700;
}

.owb-plan-count {
	margin: 0 0 6px;
	padding-top: 12px;
	border-top: 1px solid var(--owb-line-soft);
	color: var(--owb-main);
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- results */

.owb-plan-results {
	margin: 0;
	padding: 0;
	list-style: none;
}

.owb-plan.is-loading .owb-plan-results {
	opacity: .5;
}

.owb-plan-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	margin: 0;
	padding: 12px 8px 12px 6px;
	border-bottom: 1px solid var(--owb-line-soft);
	border-left: 3px solid transparent;
	cursor: pointer;
}

.owb-plan-card:hover {
	background: #faf8f6;
}

.owb-plan-card.is-active {
	border-left-color: var(--owb-redwood);
	background: var(--owb-barrel);
}

.owb-plan-card-img {
	display: block;
	width: 64px;
	height: 64px;
	border: 1px solid var(--owb-line-soft);
	border-radius: 0;
	object-fit: cover;
	background: #fff;
}

.owb-plan-card-title,
.owb-plan-pop-title {
	display: block;
	margin: 4px 0 2px;
	color: var(--owb-main);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.owb-plan-card-title:hover,
.owb-plan-pop-title:hover {
	text-decoration: underline;
}

.owb-plan-card-meta,
.owb-plan-pop-meta {
	display: block;
	color: var(--owb-muted);
	font-size: 12px;
	line-height: 1.4;
}

.owb-plan-card-when {
	color: var(--owb-redwood);
	font-weight: 700;
}

.owb-plan-card-nomap {
	display: block;
	margin-top: 2px;
	color: var(--owb-muted);
	font-size: 12px;
	font-style: italic;
}

.owb-plan-card-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* The + and the heart: square icon buttons. */
.owb-plan-add,
.owb-plan .owb-fav {
	display: inline-flex;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 2px solid var(--owb-redwood);
	border-radius: 0;
	background: #fff;
	color: var(--owb-redwood);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.owb-plan-add:hover,
.owb-plan-add:focus-visible,
.owb-plan-add[aria-pressed="true"] {
	background: var(--owb-redwood);
	color: #fff;
}

.owb-plan-add[aria-pressed="true"] {
	font-size: 14px;
}

.owb-plan .owb-fav {
	border-color: var(--owb-line);
	color: var(--owb-muted);
}

.owb-plan .owb-fav:hover,
.owb-plan .owb-fav:focus-visible {
	border-color: var(--owb-main);
	color: var(--owb-main);
}

.owb-plan .owb-fav svg {
	width: 16px;
	height: 16px;
}

.owb-plan .owb-fav[aria-pressed="true"] {
	border-color: var(--owb-red);
	color: var(--owb-red);
}

.owb-plan .owb-fav[aria-pressed="true"] svg {
	fill: currentColor;
}

.owb-plan-none {
	padding: 16px 0;
	color: var(--owb-muted);
}

/* -------------------------------------------------------------- pin popup */
/* A pin's popup: the same Midnight speech bubble as the AVA card (map.css),
   not Leaflet's rounded white one. */

.owb-plan-popup .leaflet-popup-content-wrapper {
	border-radius: 0;
	background: var(--owb-main);
	box-shadow: 0 12px 32px rgba(0, 4, 41, .3);
	color: var(--owb-barrel);
}

.owb-plan-popup .leaflet-popup-tip {
	background: var(--owb-main);
	box-shadow: none;
}

.owb-plan-popup .leaflet-popup-content {
	margin: 14px 16px;
	font-size: 13px;
	line-height: 1.45;
}

.owb-plan-popup a.leaflet-popup-close-button {
	top: 6px;
	right: 6px;
	color: var(--owb-barrel);
}

.owb-plan-popup a.leaflet-popup-close-button:hover {
	color: #fff;
}

.owb-plan-popup .owb-plan-pop-title {
	margin: 6px 20px 4px 0;
	color: #fff;
	font-family: var(--owb-font-headline) !important;
	font-size: 16px;
}

.owb-plan-popup .owb-plan-pop-meta {
	color: rgba(242, 237, 233, .8);
}

.owb-plan-popup .owb-plan-badge {
	background: var(--owb-barrel);
	color: var(--owb-main);
}

.owb-plan-popup .owb-plan-badge--event {
	background: var(--owb-moss);
	color: #fff;
}

.owb-plan .owb-plan-popup .owb-map-button {
	margin-top: 10px;
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.owb-plan .owb-plan-popup .owb-map-button:hover,
.owb-plan .owb-plan-popup .owb-map-button:focus-visible,
.owb-plan .owb-plan-popup .owb-map-button[aria-pressed="true"] {
	background: #fff;
	color: var(--owb-main);
}

/* ------------------------------------------------------------- map tools */

/* Zoom: square Midnight buttons. */
.owb-plan .leaflet-bar {
	border: 0;
	border-radius: 0;
	box-shadow: 0 4px 14px rgba(0, 4, 41, .22);
}

.owb-plan .leaflet-bar a,
.owb-plan .leaflet-bar a:first-child,
.owb-plan .leaflet-bar a:last-child {
	width: 34px;
	height: 34px;
	border-bottom: 1px solid rgba(242, 237, 233, .25);
	border-radius: 0;
	background: var(--owb-main);
	color: #fff;
	line-height: 34px;
}

.owb-plan .leaflet-bar a:hover,
.owb-plan .leaflet-bar a:focus-visible {
	background: var(--owb-redwood);
	color: #fff;
}

/* The pin tool, in the map's bottom-left corner: armed, the next click on
   the map places the pin the planner finds things near. */
.owb-plan-tool {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.owb-plan-tool-button {
	display: flex;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--owb-main);
	box-shadow: 0 4px 14px rgba(0, 4, 41, .3);
	color: #fff;
	cursor: pointer;
}

.owb-plan-tool-button svg {
	width: 22px;
	height: 22px;
}

.owb-plan-tool-button:hover,
.owb-plan-tool-button:focus-visible,
.owb-plan-tool-button[aria-pressed="true"] {
	background: var(--owb-redwood);
}

.owb-plan-tool-clear,
.owb-plan-tool-say {
	padding: 8px 12px;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 4, 41, .18);
	color: var(--owb-main);
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.owb-plan-tool-clear {
	margin: 0;
	border: 0;
	cursor: pointer;
}

.owb-plan-tool-clear:hover,
.owb-plan-tool-clear:focus-visible {
	background: var(--owb-main);
	color: #fff;
}

.owb-plan-tool-clear[hidden],
.owb-plan-tool-say:empty {
	display: none;
}

/* The tip, the first time: a speech bubble above the tool, pointing down at it. */
.owb-plan-tip {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 0;
	width: 250px;
	padding: 16px 18px;
	border-radius: 0;
	background: var(--owb-main);
	box-shadow: 0 12px 32px rgba(0, 4, 41, .3);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
}

.owb-plan-tip[hidden] {
	display: none;
}

.owb-plan-tip::after {
	position: absolute;
	top: 100%;
	left: 13px;
	border: 9px solid transparent;
	border-top-color: var(--owb-main);
	content: "";
}

.owb-plan-tip p {
	margin: 0 0 12px;
	color: var(--owb-barrel);
	font-size: 14px;
}

.owb-plan-tip-ok {
	padding: 8px 14px;
	border: 2px solid #fff;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-family: var(--owb-font-secondary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}

.owb-plan-tip-ok:hover,
.owb-plan-tip-ok:focus-visible {
	background: #fff;
	color: var(--owb-main);
}

@media (prefers-reduced-motion: no-preference) {
	.owb-plan-tip:not([hidden]) {
		animation: owb-plan-tip-in .3s ease-out;
	}
}

@keyframes owb-plan-tip-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

/* A stop's number on the map, just above its pin. */
.owb-plan-stop-marker span {
	display: flex;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--owb-main);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.owb-plan-stop-marker--event span {
	background: var(--owb-gold);
}

/* A stop of the visitor's own: a hotel, a friend's. */
.owb-plan-stop-marker--custom span {
	background: var(--owb-accent);
}

/* The Start: a pin, where the route leaves from. */
.owb-plan-stop-marker--start span {
	width: 26px;
	height: 26px;
	background: var(--owb-main);
}

.owb-plan-stop-marker--start svg {
	width: 14px;
	height: 14px;
	color: #fff;
}

/* A phone: the panels are drawers, one at a time, the full height of the map. */
@media (max-width: 768px) {
	.owb-plan {
		min-height: 420px;
	}

	.owb-plan-panel,
	.owb-plan-panel--trip {
		top: 0;
		bottom: 0;
		width: min(88vw, 380px);
		max-width: none;
	}

	.owb-plan-panel--filters {
		left: 0;
	}

	/* Under its tab, which stays to fold it away. */
	.owb-plan-panel--trip {
		top: 44px;
		right: 0;
	}
}
