/* RMR Trip Match — plugin-only styles. Uses theme tokens (--rb-space-*, rb-btn, Elementor fields).
   rmr-mockups/ is reference HTML only; never enqueued on the live site. */

.rmr-pyt .rmr-geocode-error {
	margin: 0 0 1rem;
	padding: 12px 16px;
	background: #fff0f3;
	border: 1px solid #e5577a;
	border-radius: 10px;
	color: #8a1f3a;
	font-size: 0.92rem;
}

/* Hide map, VT widget, route stage until a saved route has coordinates */
body.rmr-pyt-editing-route .rmr-pyt-stage-wrap,
body.rmr-pyt-editing-route #rmr-matches-section,
body.rmr-pyt-editing-route .elementor-widget-voxel-toolkit-route-planner {
	display: none !important;
}

.rmr-plan-form__row--submit .elementor-field-type-submit {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.directions__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.directions__head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.rmr-pyt-map-pending .elementor-widget-voxel-toolkit-route-planner,
body.rmr-pyt-map-pending [data-rmr-vt-shell],
body.rmr-pyt-map-pending .rmr-pyt-stage-wrap,
body.rmr-pyt-map-pending [data-rmr-route-stage],
body.rmr-pyt-map-pending #rmr-matches-section {
	display: none !important;
}

/* Saved route: one loader over the map slot; hide map + directions until ready. */
body.rmr-pyt-map-loading .vt-route-map,
body.rmr-route-single.rmr-pyt-map-loading .vt-route-map {
	visibility: hidden;
}

body.rmr-pyt-map-loading .vt-route-loading,
body.rmr-route-single.rmr-pyt-map-loading .vt-route-loading {
	display: none !important;
}

body.rmr-pyt-map-loading [data-rmr-directions],
body.rmr-route-single.rmr-pyt-map-loading [data-rmr-directions],
body.rmr-pyt-map-loading .vt-route-directions-panel,
body.rmr-route-single.rmr-pyt-map-loading .vt-route-directions-panel {
	display: none !important;
}

body.rmr-pyt-map-loading [data-rmr-map-slot],
body.rmr-route-single.rmr-pyt-map-loading [data-rmr-map-slot],
body.rmr-pyt-map-loading .vt-route-planner-wrapper,
body.rmr-route-single.rmr-pyt-map-loading .vt-route-planner-wrapper {
	position: relative;
	min-height: 480px;
}

@media (max-width: 640px) {
	body.rmr-pyt-map-loading [data-rmr-map-slot],
	body.rmr-route-single.rmr-pyt-map-loading [data-rmr-map-slot],
	body.rmr-pyt-map-loading .vt-route-planner-wrapper,
	body.rmr-route-single.rmr-pyt-map-loading .vt-route-planner-wrapper {
		min-height: 320px;
	}
}

.rmr-map-slot-loader {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #f3f4f6;
	border-radius: inherit;
	pointer-events: none;
}

.rmr-map-slot-loader__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e5e7eb;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: rmr-map-slot-spin 0.8s linear infinite;
}

.rmr-map-slot-loader__text {
	font-size: 14px;
	color: #6b7280;
}

@keyframes rmr-map-slot-spin {
	to {
		transform: rotate(360deg);
	}
}

.rmr-planner-error {
	background: #fff1ee;
	border-left: 3px solid #c25a2d;
	padding: 12px 16px;
	margin: 0 0 16px;
	border-radius: 6px;
	color: #7a1f1f;
	font-size: 0.92rem;
}

.rmr-pyt-share-controls {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--rb-space-2, 0.5rem);
}

.rmr-pyt-share-controls__notice {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--rb-text-muted, #64748b);
	max-width: 28rem;
}

.rmr-pyt-share-controls__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rb-space-2, 0.5rem);
	align-items: center;
}

.rmr-pyt-share-controls__revoke {
	color: var(--rb-danger, #b91c1c);
}

.rmr-pyt-share-controls--compact {
	width: 100%;
}

.rmr-pyt-share-controls--compact .rmr-pyt-share-controls__notice {
	font-size: 0.75rem;
	max-width: none;
}

.rmr-trip-card__actions-secondary .rmr-pyt-share-controls {
	margin-bottom: var(--rb-space-2, 0.5rem);
}

.rmr-pyt-shared-route-notice,
.rmr-pyt-guest-login-notice {
	background: #f0f4ff;
	display: flex;
    justify-content: center;
}

.rmr-pyt-shared-route-notice--relocating {
	visibility: hidden;
	position: absolute;
	pointer-events: none;
}

body.rmr-pyt-shared-view .rmr-pyt-hidden-on-share {
	display: none !important;
}

.rmr-pyt-shared-route-notice p,
.rmr-pyt-guest-login-notice p {
	margin: 0;
	max-width: var(--rb-max-screen-width);
    width: 100%;
    display: inline-block;
    text-align: center;
	padding: var(--rb-space-xs) var(--rb-space-xl);
}

.rmr-pyt-shared-route-notice a,
.rmr-pyt-guest-login-notice a {
	font-weight: 600;
}

.rmr-pyt-map-slot .map {
	min-height: 280px;
}

/* Codewattz map — min height only after a route is saved (not on empty planner). */
body:not(.rmr-pyt-map-pending) .rmr-pyt .vt-route-planner-wrapper,
body:not(.rmr-pyt-map-pending) .rmr-pyt .vt-route-map {
	min-height: 480px;
}

@media (max-width: 640px) {
	body:not(.rmr-pyt-map-pending) .rmr-pyt .vt-route-planner-wrapper,
	body:not(.rmr-pyt-map-pending) .rmr-pyt .vt-route-map {
		min-height: 320px;
	}
}

body:not(.rmr-pyt-map-pending) .rmr-pyt .vt-route-planner-wrapper {
	border-radius: var(--rb-radius-m, 0.75rem);
	overflow: hidden;
}

/* Card surfaces use theme .rb-card (shadow, border, radius). Layout-only overrides below. */
.rmr-pyt .rb-card.rmr-pyt-map-slot,
.rmr-pyt .rb-card.match-card,
.rmr-pyt a.rb-card.match-card,
.rmr-pyt a.card.match-card,
#rmr-route-match a.rb-card.match-card,
#rmr-route-match a.card.match-card,
.rmr-pyt a.rb-card.rmr-card,
a.rb-card.rmr-card {
	padding: 0;
	overflow: hidden;
}

/* Legacy mockup class: same surface as .rb-card until markup is refreshed */
.rmr-pyt a.card.match-card:not(.rb-card),
#rmr-route-match a.card.match-card:not(.rb-card) {
	background: var(--e-global-color-6b70364);
	border-radius: var(--rb-radius-m);
	box-shadow: var(--rb-shadow-md);
	border: 1px solid var(--e-global-color-28aa42f);
	transition: var(--rb-transition-default);
}

.rmr-pyt a.rb-card.match-card:hover,
.rmr-pyt a.card.match-card:hover,
#rmr-route-match a.rb-card.match-card:hover,
#rmr-route-match a.card.match-card:hover,
.rmr-pyt a.rb-card.rmr-card:hover,
a.rb-card.rmr-card:hover {
	background: var(--e-global-color-6b70364);
	color: inherit;
}

.rmr-pyt a.rb-card.match-card:hover h4,
.rmr-pyt a.card.match-card:hover h4,
#rmr-route-match a.rb-card.match-card:hover h4,
#rmr-route-match a.card.match-card:hover h4,
.rmr-pyt a.rb-card.rmr-card:hover h4,
a.rb-card.rmr-card:hover h4 {
	color: inherit;
}

.rmr-pyt-elementor-stage {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 28px;
	margin-top: 28px;
}

@media (max-width: 960px) {
	.rmr-pyt-elementor-stage {
		grid-template-columns: 1fr;
	}
}

.plan-hero--saved {
	padding: 40px 0 28px;
}

.plan-hero--saved h1 {
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	max-width: none;
}

.plan-hero--saved h1 em {
	display: none;
}

/* Trip summary sidebar card */
.rmr-pyt .rmr-trip-summary {
	margin-bottom: var(--rb-space-s, 1rem);
}

.rmr-pyt .rmr-trip-summary .summary-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--rb-space-xs, 0.64rem);
	margin-top: var(--rb-space-xs, 0.64rem);
}

.rmr-pyt .rmr-trip-summary .summary-stats div {
	text-align: center;
}

.rmr-pyt .rmr-trip-summary .summary-stats b {
	display: block;
	font-size: var(--rb-text-l, 1.25rem);
	font-weight: 700;
}

.rmr-pyt .rmr-trip-summary .summary-stats small {
	font-size: var(--rb-text-xs, 0.79rem);
	color: var(--e-global-color-text, #5a6b87);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.rmr-pyt .rmr-trip-summary .callout {
	margin-top: var(--rb-space-xs, 0.64rem);
	padding: var(--rb-space-xs, 0.64rem);
	background: var(--e-global-color-28aa42f, #e9ecf9);
	border-left: 3px solid var(--e-global-color-primary, #2447ff);
	border-radius: var(--rb-radius-xs, 0.25rem);
	font-size: var(--rb-text-s, 0.89rem);
}

#rmr-trip-summary {
	margin-bottom: var(--rb-space-s, 1rem);
}

/* Match result cards (JS renders .match-card; works in .rmr-pyt or #rmr-route-match) */
.rmr-pyt .rmr-route-match__grid,
.rmr-pyt .match-grid,
#rmr-route-match.rmr-route-match__grid,
#rmr-route-match {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--rb-space-s, 1rem);
}

.rmr-pyt .match-card,
#rmr-route-match .match-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

/* Product type from products_category (roofbox vs roof-rack) */
.rmr-pyt .match-card--roof-rack .match-card__stats li:nth-child(2),
#rmr-route-match .match-card--roof-rack .match-card__stats li:nth-child(2) {
	font-weight: 600;
}

.rmr-pyt .match-card__img,
#rmr-route-match .match-card__img {
	aspect-ratio: 4 / 3;
	background-color: var(--e-global-color-6b70364, #eef1f5);
	position: relative;
	overflow: hidden;
}

.rmr-pyt .match-card__img--photo,
#rmr-route-match .match-card__img--photo {
	background-color: var(--e-global-color-6b70364, #eef1f5);
}

.rmr-pyt .match-card__photo,
#rmr-route-match .match-card__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rmr-pyt .match-card__body,
#rmr-route-match .match-card__body {
	padding: var(--rb-space-xs, 0.64rem) var(--rb-space-s, 1rem);
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-2xs, 0.5rem);
	flex: 1;
}

.rmr-pyt .fit-badge,
#rmr-route-match .fit-badge {
	position: absolute;
	top: var(--rb-space-xs, 0.64rem);
	left: var(--rb-space-xs, 0.64rem);
	padding: 0.25rem 0.55rem;
	border-radius: var(--rb-radius-full, 999rem);
	font-size: var(--rb-text-xs, 0.72rem);
	font-weight: 700;
	background: #fff;
	color: var(--e-global-color-primary, #0a1a3b);
	box-shadow: var(--rb-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
}

.rmr-pyt .fit-badge.is-perfect,
#rmr-route-match .fit-badge.is-perfect { background: #d4e8ff; }
.rmr-pyt .fit-badge.is-strong,
#rmr-route-match .fit-badge.is-strong  { background: #d8f3df; }
.rmr-pyt .fit-badge.is-good,
#rmr-route-match .fit-badge.is-good    { background: #fff3d6; }
.rmr-pyt .fit-badge.is-possible,
#rmr-route-match .fit-badge.is-possible { background: #ffe2d6; }

.rmr-pyt .match-card__title,
#rmr-route-match .match-card__title {
	margin: 0;
	font-size: var(--rb-text-m, 1rem);
	line-height: 1.3;
}

.rmr-pyt .match-card__stats,
#rmr-route-match .match-card__stats {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.8rem;
	font-size: var(--rb-text-s, 0.85rem);
	color: var(--e-global-color-text, #5a6b7a);
}

.rmr-pyt .match-card__foot,
#rmr-route-match .match-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: auto;
	padding-top: var(--rb-space-2xs, 0.5rem);
}

.rmr-pyt .match-card__price b,
#rmr-route-match .match-card__price b {
	font-size: var(--rb-text-l, 1.15rem);
	font-weight: 800;
	color: var(--e-global-color-primary, #0a1a3b);
}

.rmr-pyt .match-card__total,
#rmr-route-match .match-card__total {
	font-weight: 700;
	color: var(--e-global-color-primary, #0a1a3b);
}

.rmr-pyt .match-card--booked,
#rmr-route-match .match-card--booked {
	outline: 2px solid var(--e-global-color-accent, #e85d4c);
	outline-offset: 2px;
	box-shadow: var(--rb-shadow-l, 0 10px 24px rgba(10, 26, 59, 0.12));
}

.rmr-pyt .match-card--booked .fit-badge.is-booked,
#rmr-route-match .match-card--booked .fit-badge.is-booked {
	background: var(--e-global-color-accent, #e85d4c);
	color: var(--e-global-color-6b70364, #fff);
}

.rmr-pyt .match-card--locked,
#rmr-route-match .match-card--locked {
	opacity: 0.72;
	cursor: default;
	pointer-events: none;
	box-shadow: none;
}

.rmr-pyt .match-card--locked:hover,
#rmr-route-match .match-card--locked:hover {
	transform: none;
}

.rmr-pyt .match-card__locked-note,
#rmr-route-match .match-card__locked-note {
	margin: 0 0 0.35rem;
	font-size: var(--rb-text-xs, 0.78rem);
	color: var(--e-global-color-text, #5a6b7a);
	line-height: 1.35;
}

.rmr-matches-booked-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--rb-radius-m, 10px);
	background: #ecfdf3;
	border: 1px solid #86efac;
}

.rmr-matches-booked-banner p {
	margin: 0;
	flex: 1 1 12rem;
	font-size: var(--rb-text-s, 0.9rem);
	line-height: 1.4;
}

.rmr-matches-booked-banner__dates {
	font-weight: 600;
}

.rmr-pill--booked {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: var(--rb-radius-full, 999px);
	font-size: var(--rb-text-xs, 0.75rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #16a34a;
	color: #fff;
}

.rmr-pyt .score-bars,
#rmr-route-match .score-bars {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: var(--rb-text-xs, 0.78rem);
}

.rmr-pyt .score-bar,
#rmr-route-match .score-bar {
	display: grid;
	grid-template-columns: 4.5rem 1fr 2.25rem;
	align-items: center;
	gap: 0.5rem 0.65rem;
}

.rmr-pyt .score-bar__value,
#rmr-route-match .score-bar__value {
	white-space: nowrap;
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--e-global-color-text, #334155);
}

.rmr-pyt .score-bar__track,
#rmr-route-match .score-bar__track {
	height: 4px;
	background: var(--e-global-color-38b03de, #e6eaef);
	border-radius: var(--rb-radius-full, 999rem);
	overflow: hidden;
}

.rmr-pyt .score-bar__fill,
#rmr-route-match .score-bar__fill {
	height: 100%;
	background: var(--e-global-color-secondary, #2447ff);
	border-radius: inherit;
}

/* Listing image placeholders (no thumbnail) */
.rmr-pyt .ph,
#rmr-route-match .ph {
	display: grid;
	place-items: center;
	position: relative;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
}

.rmr-pyt .ph::after,
#rmr-route-match .ph::after {
	content: attr(data-label);
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.25);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.7rem;
	backdrop-filter: blur(6px);
}

.rmr-pyt .ph::before,
#rmr-route-match .ph::before {
	content: attr(data-icon);
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 2.6rem;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
	text-transform: none;
	letter-spacing: normal;
}

.rmr-pyt .ph-1, #rmr-route-match .ph-1 { background: linear-gradient(135deg, #1a2742 0%, #2a3a5e 100%); }
.rmr-pyt .ph-2, #rmr-route-match .ph-2 { background: linear-gradient(135deg, #2447ff 0%, #4a6aff 100%); }
.rmr-pyt .ph-3, #rmr-route-match .ph-3 { background: linear-gradient(135deg, #e5577a 0%, #c44260 100%); }
.rmr-pyt .ph-4, #rmr-route-match .ph-4 { background: linear-gradient(135deg, #4ab47e 0%, #2a9d6e 100%); }
.rmr-pyt .ph-5, #rmr-route-match .ph-5 { background: linear-gradient(135deg, #ffd23f 0%, #e8b820 100%); color: var(--e-global-color-primary, #0a1a3b); }
.rmr-pyt .ph-5::after, #rmr-route-match .ph-5::after { background: rgba(0, 0, 0, 0.15); color: var(--e-global-color-primary, #0a1a3b); }
.rmr-pyt .ph-6, #rmr-route-match .ph-6 { background: linear-gradient(135deg, #c5cdf0 0%, #8a99d0 100%); color: var(--e-global-color-primary, #0a1a3b); }
.rmr-pyt .ph-6::after, #rmr-route-match .ph-6::after { background: rgba(0, 0, 0, 0.12); color: var(--e-global-color-primary, #0a1a3b); }

@media (max-width: 640px) {
	.rmr-pyt .rmr-route-match__grid,
	.rmr-pyt .match-grid,
	#rmr-route-match.rmr-route-match__grid,
	#rmr-route-match {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Planner form only

/* Beat theme grids that target `.rb-hero form > div` */
.rb-hero #rmr-plan-form > .elementor-form-fields-wrapper,
#rmr-plan-form > .elementor-form-fields-wrapper {
	display: flex !important;
	flex-direction: column;
	grid-template-columns: unset !important;
	gap: var(--rb-space-xs, 0.64rem);
	width: 100%;
}

.rb-hero #rmr-plan-form .rmr-plan-form__row,
#rmr-plan-form .rmr-plan-form__row {
	width: 100%;
	align-items: start;
}

/* Plan form chrome — surface from .rb-card */
#rmr-plan-form.rmr-plan-form {
	display: block;
	margin-top: var(--rb-space-s, 1rem);
}

#rmr-plan-form .rmr-plan-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--rb-space-xs, 0.64rem);
	align-items: start;
}

#rmr-plan-form .rmr-plan-form__row--route {
	grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr);
}

#rmr-plan-form .rmr-plan-form__row--trip {
	grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
	align-items: end;
}

#rmr-plan-form .rmr-plan-form__row--stops {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

#rmr-plan-form .rmr-plan-form__stop-field {
	width: 100%;
	position: relative;
}

#rmr-plan-form .rmr-plan-form__stop-field > input[name="rs_route_stops[]"] {
	display: none;
}

#rmr-plan-form .rmr-plan-form__move-buttons {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-self: stretch;
}

#rmr-plan-form [data-rmr-stops-row] > [data-rmr-stop-field]:only-child .rmr-plan-form__move-buttons,
#rmr-plan-form .rmr-plan-form__move-buttons[hidden] {
	display: none;
}

#rmr-plan-form .rmr-plan-form__move-stop {
	flex: 1 1 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 21px;
	width: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--e-global-color-28aa42f, #e4e7ef);
	border-radius: 8px;
	background: #fff;
	color: var(--e-global-color-text, #5a6578);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	#rmr-plan-form .rmr-plan-form__move-stop {
		width: 48px;
		min-height: 22px;
	}
}

#rmr-plan-form .rmr-plan-form__move-stop:hover:not(:disabled) {
	border-color: var(--e-global-color-accent, #2447ff);
	color: var(--e-global-color-accent, #2447ff);
}

#rmr-plan-form .rmr-plan-form__move-stop:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

#rmr-plan-form .rmr-plan-form__move-stop span {
	pointer-events: none;
}

#rmr-plan-form .rmr-plan-form__stop-field .elementor-field-group {
	width: 100%;
	min-width: 0;
}

#rmr-plan-form .rmr-plan-form__stop-control {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

#rmr-plan-form .rmr-plan-form__stop-control .elementor-field {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
}

#rmr-plan-form .rmr-plan-form__remove-stop {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	margin: 0;
	padding: 0 14px;
	min-height: 46px;
	border: 1px solid var(--e-global-color-28aa42f, #e4e7ef);
	border-radius: 8px;
	background: #fff;
	color: var(--e-global-color-text, #5a6578);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
}

#rmr-plan-form .rmr-plan-form__remove-stop:hover {
	border-color: #e5577a;
	color: #8a1f3a;
	background: #fff8fa;
}

#rmr-plan-form .rmr-plan-form__row--stops > .elementor-field-group {
	width: 100%;
}

#rmr-plan-form .rmr-plan-form__actions .rmr-plan-form__action-buttons {
	display: flex;
	flex-flow: row wrap;
	gap: 10px;
	align-items: center;
}

#rmr-plan-form .rmr-plan-form__row--submit {
	grid-template-columns: auto;
	justify-content: flex-start;
}

#rmr-plan-form .elementor-field-group {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

#rmr-plan-form .elementor-field-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
	text-transform: none;
}

#rmr-plan-form .elementor-field-group.elementor-field-type-submit,
#rmr-plan-form .rmr-plan-form__actions {
	align-self: end;
}

#rmr-plan-form .rb-btn {
	white-space: nowrap;
	min-height: 46px;
}

.rmr-stop-hiddens {
	display: none;
}

/* Legacy wrapper — hiddens now live inside each stop field. */

@media (max-width: 767px) {
	#rmr-plan-form .rmr-plan-form__row--route,
	#rmr-plan-form .rmr-plan-form__row--trip,
	#rmr-plan-form .rmr-plan-form__row--stops {
		grid-template-columns: 1fr;
	}

	/* flex-wrap rows do not need grid-column override */
}

/* -------------------------------------------------------------------------
   Route match sidebar form (#rmr-route-match-form)
------------------------------------------------------------------------- */

#rmr-route-match-form[data-rmr-disabled] {
	display: none !important;
}

.rb-hero #rmr-route-match-form > .elementor-form-fields-wrapper.rmr-route-match-form__stack,
#rmr-route-match-form > .elementor-form-fields-wrapper.rmr-route-match-form__stack {
	display: flex !important;
	flex-direction: column;
	grid-template-columns: unset !important;
	gap: var(--rb-space-s, 1rem);
	width: 100%;
}

#rmr-route-match-form .rmr-match-form-card {
	margin: 0;
	max-width: 100%;
	overflow-x: clip;
}

#rmr-route-match-form .rmr-match-form-card:has(.rmr-trip-date-picker.is-open) {
	overflow: visible;
	z-index: 5;
}

#rmr-route-match-form .rmr-route-match-form__dates > .elementor-field-group:has(.rmr-trip-date-picker.is-open) {
	position: relative;
	z-index: 6;
}

/* Trip row: pickup + drop-off inline, car full width */
#rmr-route-match-form .rmr-route-match-form__row--trip {
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-xs, 0.64rem);
}

#rmr-route-match-form .rmr-route-match-form__dates {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: var(--rb-space-xs, 0.64rem);
	width: 100%;
	max-width: 100%;
}

#rmr-route-match-form .rmr-route-match-form__dates > .elementor-field-group {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

#rmr-route-match-form .rmr-route-match-form__row--trip > .elementor-field-group:last-child {
	flex: 1 1 100%;
	width: 100%;
}

#rmr-route-match-form .elementor-field-group {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

/* Shared field chrome — planner hero + trip sidebar */
#rmr-plan-form .elementor-field-textual,
#rmr-plan-form .elementor-field.elementor-field-textual,
#rmr-route-match-form .elementor-field-textual,
#rmr-route-match-form .elementor-field.elementor-field-textual {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 0.75rem;
	color: #1e293b;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.75rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#rmr-plan-form .elementor-field-textual:focus,
#rmr-plan-form .elementor-field.elementor-field-textual:focus,
#rmr-route-match-form .elementor-field-textual:focus,
#rmr-route-match-form .elementor-field.elementor-field-textual:focus {
	outline: none;
	border-color: #1e1a52;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(30, 26, 82, 0.1);
}

#rmr-plan-form .elementor-select-wrapper,
#rmr-plan-form .elementor-select-wrapper select,
#rmr-route-match-form .elementor-select-wrapper,
#rmr-route-match-form .elementor-select-wrapper select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

#rmr-route-match-form .elementor-field-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
	text-transform: none;
}

/* CSS chevron — Elementor eicons may not load on shortcode-only pages */
#rmr-plan-form .elementor-field-group .elementor-select-wrapper::before,
#rmr-route-match-form .elementor-field-group .elementor-select-wrapper::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	font-family: inherit;
	font-size: inherit;
	text-shadow: none;
	inset-block-start: 42%;
	inset-inline-end: 14px;
	transform: rotate(45deg);
	opacity: 0.55;
	pointer-events: none;
}

/* Voxel-style trip date pickers (Pikaday) */
.rmr-trip-date-picker {
	position: relative;
	width: 100%;
}

.rmr-trip-date-picker .rmr-trip-date-trigger {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 44px;
	padding: 0.62rem 2.35rem 0.62rem 0.85rem;
	border: 1px solid var(--rb-input-border, rgba(15, 23, 42, 0.14));
	border-radius: 10px;
	background: var(--ts-shade-6, #fff);
	color: var(--ts-shade-1, #0f172a);
	text-align: start;
	cursor: pointer;
	font: inherit;
	line-height: 1.35;
	position: relative;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rmr-trip-date-picker .rmr-trip-date-trigger:hover,
.rmr-trip-date-picker.is-open .rmr-trip-date-trigger {
	border-color: var(--rb-input-border-focus, rgba(36, 71, 255, 0.45));
	box-shadow: 0 0 0 3px rgba(36, 71, 255, 0.08);
}

.rmr-trip-date-picker .rmr-trip-date-trigger .ts-filter-text {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--ts-shade-3, #64748b);
	font-size: inherit;
}

.rmr-trip-date-picker .rmr-trip-date-trigger.ts-filled .ts-filter-text {
	color: var(--ts-shade-1, #0f172a);
}

.rmr-trip-date-picker .rmr-trip-date-icon {
	flex: 0 0 1.1rem;
	width: 1.1rem;
	height: 1.1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.82;
}

.rmr-trip-date-picker .rmr-trip-date-trigger .ts-down-icon {
	position: absolute;
	inset-inline-end: 0.85rem;
	top: 50%;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: -0.28rem;
	border: solid var(--ts-shade-3, #64748b);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	pointer-events: none;
	opacity: 0.65;
}

.rmr-trip-date-popup {
	position: absolute;
	z-index: 120;
	top: calc(100% + 0.35rem);
	inset-inline-start: 0;
	min-width: min(100%, 20rem);
	background: var(--ts-shade-6, #fff);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
	padding: 0.85rem 0.75rem 0.75rem;
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.rmr-trip-date-popup--floating {
	position: fixed;
	top: auto;
	inset-inline-start: auto;
}

.rmr-trip-date-popup .ts-booking-date {
	min-height: 17rem;
}

.rmr-trip-date-popup .pika-single {
	width: 100% !important;
	box-shadow: none;
	border: 0;
}

.rmr-trip-date-popup .pika-lendar {
	width: 100%;
}

#rmr-plan-form .rmr-trip-date-picker,
#rmr-route-match-form .rmr-trip-date-picker {
	max-width: 100%;
}

#rmr-route-match-form .rmr-route-match-form__dates .rmr-trip-date-picker {
	min-width: 0;
}

#rmr-route-match-form .elementor-field-group:has(.rmr-trip-date-picker) {
	overflow: visible;
}

/* Date fields — iOS Safari needs a wrapper + visible icon (native indicator is unreliable) */
.rmr-date-field {
	--rmr-date-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
}

#rmr-plan-form .elementor-field-group:has(.rmr-date-field),
#rmr-route-match-form .elementor-field-group:has(.rmr-date-field) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.rmr-date-field .rmr-date-input,
.rmr-date-field input[type="date"] {
	display: block;
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	padding-inline-end: 2.75rem !important;
	-webkit-appearance: none;
	appearance: none;
}

.rmr-date-field__icon {
	position: absolute;
	inset-inline-end: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.15rem;
	height: 1.15rem;
	pointer-events: none;
	z-index: 1;
	background: var(--rmr-date-icon) center / contain no-repeat;
	opacity: 0.72;
}

/* Transparent tap target over the icon — opens the native picker on iOS */
.rmr-date-field input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	inset-inline-end: 0;
	top: 0;
	width: 2.75rem;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
	-webkit-appearance: none;
}

.rmr-date-field input[type="date"]::-webkit-date-and-time-value {
	text-align: start;
	min-width: 0;
	margin: 0;
}

.rmr-date-field input[type="date"]::-webkit-datetime-edit {
	overflow: hidden;
	min-width: 0;
	max-width: 100%;
	padding: 0;
}

.rmr-date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
	min-width: 0;
	padding: 0;
}

/* Radius: slider + mi readout on one line, hint below, button full width after */
#rmr-route-match-form .rmr-route-match-form__slider-row {
	display: flex;
	align-items: center;
	gap: var(--rb-space-xs, 0.64rem);
}

#rmr-route-match-form .rmr-route-match-form__slider-row input[type="range"] {
	flex: 1;
	min-width: 0;
}

#rmr-route-match-form .rmr-radius-output {
	flex: 0 0 auto;
	font-size: var(--rb-text-m, 1rem);
	font-weight: 700;
	white-space: nowrap;
	color: var(--e-global-color-primary, #0a1a3b);
}

#rmr-route-match-form .rmr-radius-hint {
	display: block;
	margin-top: var(--rb-space-xs, 0.64rem);
	color: var(--e-global-color-text, #5a6b87);
	font-size: var(--rb-text-xs, 0.79rem);
	line-height: 1.4;
}

#rmr-route-match-form .elementor-field-type-submit {
	margin: 0;
}

#rmr-route-match-form .rmr-route-match-form__submit {
	width: 100%;
}

#rmr-route-match-form .rmr-route-match-form__actions {
	display: flex;
	flex-flow: row wrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

#rmr-route-match-form .rmr-route-match-form__actions .rmr-trip-save-status {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 4px;
}

#rmr-route-match-form .rmr-route-match-form__actions .rb-btn {
	flex: 1 1 calc(50% - 5px);
	min-width: 9.5rem;
	width: auto;
	margin: 0;
}

#rmr-route-match-form .rmr-route-match-form__actions .rmr-route-match-form__submit {
	width: auto;
	flex: 1 1 calc(50% - 5px);
}

/* Plan-your-trip — hero card must not expand past viewport (theme uses fit-content) */
body.rmr-plan-your-trip .rb-hero .search-card {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 520px) {
	#rmr-route-match-form .rmr-route-match-form__actions .rb-btn {
		flex: 1 1 100%;
	}
}

@media (max-width: 767px) {
	/* Prevent hero card / stage from forcing horizontal scroll on iPhone */
	body.rmr-plan-your-trip .rb-hero .search-card,
	body.rmr-plan-your-trip .rmr-pyt-elementor-stage,
	body.rmr-plan-your-trip #rmr-plan-form,
	body.rmr-plan-your-trip #rmr-route-match-form,
	body.rmr-plan-your-trip .matches,
	body.rmr-plan-your-trip .rmr-match-form-card {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	body.rmr-plan-your-trip .rmr-pyt-elementor-stage {
		gap: 20px;
	}

	.rmr-date-field .rmr-date-input,
	.rmr-date-field input[type="date"] {
		font-size: 16px;
	}
}

.rmr-route-match__loading,
.rmr-route-match__error,
.rmr-route-match__empty,
.rmr-route-match__hint {
	padding: var(--rb-space-s, 1rem);
	background: var(--e-global-color-6b70364, #f7f8fa);
	border: 1px dashed var(--e-global-color-accent, #c9d0d8);
	border-radius: var(--rb-radius-m, 0.75rem);
	color: var(--e-global-color-text, #4a5a6a);
}

/* Legacy Elementor embeds without mockup wrapper */

.rmr-trip-match { margin: 2rem 0; }

.rmr-trip-match__header h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.rmr-trip-match__header p  { margin: 0 0 1.25rem; color: #5a6b7a; }

.rmr-trip-match__hint,
.rmr-trip-match__loading,
.rmr-trip-match__error,
.rmr-trip-match__empty {
	padding: 1.25rem 1.5rem;
	background: #f7f8fa;
	border: 1px dashed #c9d0d8;
	border-radius: 12px;
	color: #4a5a6a;
}

.rmr-trip-match__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.rmr-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.rmr-card__img {
	width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1f5;
}
.rmr-card__img--placeholder { background: linear-gradient(135deg,#e6eaef,#cfd6df); }

.rmr-card__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; }

.rmr-card__fit {
	align-self: flex-start;
	font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	padding: .25rem .55rem; border-radius: 999px;
	background: #eef1f5; color: #0a1a3b;
}
.rmr-card__fit.is-perfect  { background: #d4e8ff; color: #0a3d7a; }
.rmr-card__fit.is-strong   { background: #d8f3df; color: #0d5a2a; }
.rmr-card__fit.is-good     { background: #fff3d6; color: #6b4a00; }
.rmr-card__fit.is-possible { background: #ffe2d6; color: #8a3a14; }
.rmr-card__fit.is-stretch  { background: #f0e2e2; color: #7a1f1f; }

.rmr-card__title { margin: 0; font-size: 1rem; line-height: 1.3; }

.rmr-card__stats {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: .35rem .8rem;
	font-size: .85rem; color: #5a6b7a;
}

.rmr-card__total { font-weight: 700; color: #0a1a3b; }

/* v2 route-match aliases (same layout as trip-match) */
.rmr-route-match { margin: 2rem 0; }
.rmr-route-match__header h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.rmr-route-match__header p  { margin: 0 0 1.25rem; color: #5a6b7a; }
.rmr-route-match__hint,
.rmr-route-match__loading,
.rmr-route-match__error,
.rmr-route-match__empty {
	padding: 1.25rem 1.5rem;
	background: #f7f8fa;
	border: 1px dashed #c9d0d8;
	border-radius: 12px;
	color: #4a5a6a;
}
.rmr-route-match__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}
.rmr-geocode-error {
	background: #fff1ee;
	border-left: 3px solid #c25a2d;
	padding: 10px 14px;
	margin: 12px 0;
	font-size: 0.92rem;
	color: #7a1f1f;
	border-radius: 6px;
}
.rmr-geocode-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	color: var(--rb-muted, #64748b);
}

/* Voxel Mapbox autocomplete dropdown on planner fields */
.rmr-pyt .rmr-geocode-input,
#rmr-plan-form .rmr-geocode-input {
	position: relative;
}

/* Search Box dropdown is portaled to document.body (escapes overflow:hidden parents) */
.rmr-searchbox-dropdown {
	z-index: 100000;
}

.rmr-pyt .ts-autocomplete-dropdown .suggestions-list,
.rmr-searchbox-dropdown .suggestions-list,
#rmr-plan-form .ts-autocomplete-dropdown .suggestions-list,
.rmr-pyt-edit-route-panel .ts-autocomplete-dropdown .suggestions-list {
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	max-height: 240px;
	overflow-y: auto;
}

.rmr-pyt .ts-autocomplete-dropdown .suggestion,
.rmr-searchbox-dropdown .suggestion,
#rmr-plan-form .ts-autocomplete-dropdown .suggestion,
.rmr-pyt-edit-route-panel .ts-autocomplete-dropdown .suggestion {
	padding: 0.65rem 0.85rem;
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.rmr-pyt .ts-autocomplete-dropdown .suggestion-title,
.rmr-searchbox-dropdown .suggestion-title,
#rmr-route-match .ts-autocomplete-dropdown .suggestion-title,
.rmr-plan-form .ts-autocomplete-dropdown .suggestion-title {
	display: block;
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #334155;
	white-space: normal;
}

.rmr-pyt .ts-autocomplete-dropdown .suggestion small,
.rmr-searchbox-dropdown .suggestion small,
#rmr-route-match .ts-autocomplete-dropdown .suggestion small,
.rmr-plan-form .ts-autocomplete-dropdown .suggestion small {
	display: block;
	margin-top: 2px;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #64748b;
}

.rmr-pyt .ts-autocomplete-dropdown .suggestion:hover,
.rmr-pyt .ts-autocomplete-dropdown .suggestion.active,
.rmr-searchbox-dropdown .suggestion:hover,
.rmr-searchbox-dropdown .suggestion.active,
#rmr-plan-form .ts-autocomplete-dropdown .suggestion:hover,
#rmr-plan-form .ts-autocomplete-dropdown .suggestion.active,
.rmr-pyt-edit-route-panel .ts-autocomplete-dropdown .suggestion:hover,
.rmr-pyt-edit-route-panel .ts-autocomplete-dropdown .suggestion.active {
	background: rgba(59, 130, 246, 0.08);
}

.rmr-pyt .rmr-geocode-input.is-resolved {
	border-color: rgba(34, 197, 94, 0.55);
}

.rmr-geocode-hint {
	color: #0d5a2a;
}

#rmr-trip-summary .elementor-field-group:has([data-rmr-trip-title]) {
	margin-top: 0.35rem;
}

/* Geocode shim — only planner inputs */
#rmr-plan-form input.is-geocoding { opacity: 0.7; }
#rmr-plan-form input.is-resolved  { border-color: #0d5a2a; }

@media (max-width: 640px) {
	.rmr-trip-match__grid,
	.rmr-route-match__grid {
		grid-template-columns: 1fr;
	}
}

/* Route directions list (below map) */
.directions__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px 0;
}

.directions__head h3 {
	margin: 0;
}

.directions__list {
	padding: 8px 0;
	max-height: 360px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.dir-row {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	padding: 12px 22px;
	border-bottom: 1px solid var(--e-global-color-28aa42f, #e4e7ef);
	align-items: center;
}

.dir-row:last-child {
	border-bottom: 0;
}

.dir-row[data-rmr-lat] {
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(36, 71, 255, 0.12);
	touch-action: manipulation;
}

.dir-row[data-rmr-lat]:hover,
.dir-row[data-rmr-lat]:focus-visible,
.dir-row.is-active,
.vt-waypoint-item.is-active {
	background: var(--e-global-color-6b70364, #f7f8fa);
}

.dir-row__num {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--e-global-color-28aa42f, #e9ecf9);
	display: grid;
	place-items: center;
	font-weight: 800;
	color: var(--e-global-color-primary, #0a1a3b);
	font-size: 0.85rem;
}

.dir-row__text {
	font-size: 0.92rem;
}

.dir-row__text small {
	color: var(--e-global-color-text, #5a6b87);
}

.dir-row__meta {
	font-size: 0.82rem;
	color: var(--e-global-color-text, #5a6b87);
	text-align: right;
}

@media (max-width: 640px) {
	.dir-row {
		grid-template-columns: 30px 1fr;
		padding: 10px 16px;
	}

	.dir-row__meta {
		grid-column: 2;
		text-align: left;
		font-size: 0.78rem;
		margin-top: 2px;
	}
}

/* Match refresh feedback (car / dates / radius changes) */

.rmr-anchor-target {
	scroll-margin-top: 5rem;
}

#rmr-matches-section {
	scroll-margin-top: 5rem;
}

.matches__head{
	margin-bottom: var(--rb-space-s, 1rem);
}
.matches__head [data-rmr-matches-title] {
	margin-block-end: var(--rb-space-2xs, 0.5rem);
	margin-block-start: 0;
}
.rmr-matches-updated-notice {
	margin: 0 0 1rem;
	padding: 10px 14px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--e-global-color-primary, #1a2b4a);
	background: color-mix(in srgb, var(--e-global-color-accent, #f5c518) 22%, #fff);
	border: 1px solid color-mix(in srgb, var(--e-global-color-accent, #f5c518) 55%, transparent);
	border-radius: 10px;
}

#rmr-matches-section.rmr-matches-section--pulse {
	animation: rmr-matches-pulse 1.1s ease-out;
}

@keyframes rmr-matches-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--e-global-color-accent, #f5c518) 45%, transparent); }
	70% { box-shadow: 0 0 0 12px transparent; }
	100% { box-shadow: none; }
}

.rmr-trip-save-status {
	margin: 0;
	padding: 10px 14px;
	font-size: 0.85rem;
	line-height: 1.45;
	border-radius: 8px;
	color: var(--e-global-color-text, #5a6578);
}

.rmr-trip-save-status.is-dirty {
	background: color-mix(in srgb, #e8a317 18%, #fff);
	border: 1px solid color-mix(in srgb, #e8a317 40%, transparent);
	color: #6b4a00;
	font-weight: 600;
}

.rmr-trip-save-status.is-saved {
	background: color-mix(in srgb, #22a559 16%, #fff);
	border: 1px solid color-mix(in srgb, #22a559 35%, transparent);
	color: #0d5a2a;
	font-weight: 600;
}

.rmr-trip-save-status.is-error {
	background: #fff0f3;
	border: 1px solid #e5577a;
	color: #8a1f3a;
	font-weight: 600;
}

.rmr-trip-save-hint {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: var(--e-global-color-text, #5a6578);
	line-height: 1.45;
}

/* My Trips — matches rmr-mockups/my-trips.html */
.rmr-my-trips {
	--rmr-navy: var(--e-global-color-primary, #0a1a3b);
	--rmr-coral: #e5577a;
	--rmr-action: #2447ff;
	--rmr-cloud: var(--e-global-color-38b03de, #f6f7fb);
	--rmr-line: var(--e-global-color-28aa42f, #e4e7ef);
	--rmr-mute: var(--e-global-color-text, #5a6b87);
	--rmr-peri-2: #e9ecf9;
	--rmr-amber: #e8a52b;
	--rmr-radius: 14px;
	--rmr-radius-s: 10px;
	--rmr-radius-xs: 8px;
}

.rmr-my-trips__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.rmr-my-trips__head h1 {
	margin: 0 0 6px;
	font-size: clamp(1.75rem, 3vw, 2rem);
	color: var(--rmr-navy);
}

.rmr-my-trips__head p {
	margin: 0;
	color: var(--rmr-mute);
	max-width: 42rem;
}

.rmr-my-trips__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid var(--rmr-line);
	margin-bottom: 20px;
}

.rmr-my-trips__tab {
	padding: 12px 18px;
	font-weight: 600;
	color: var(--rmr-mute);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	text-decoration: none;
	font-size: 0.92rem;
}

.rmr-my-trips__tab.is-active {
	color: var(--rmr-navy);
	border-bottom-color: var(--rmr-coral);
}

.rmr-my-trips__cards {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rmr-my-trips__empty {
	color: var(--rmr-mute);
	margin: 0 0 24px;
}

/* Trip card — map | main content | side; actions sit under main on desktop */
.rmr-trip-card {
	background: #fff;
	border: 1px solid var(--rmr-line);
	border-radius: var(--rmr-radius);
	overflow: hidden;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 240px;
	grid-template-areas:
		"map main side"
		"map actions side";
	align-items: stretch;
}

.rmr-trip-card__map {
	grid-area: map;
	position: relative;
	min-height: 200px;
	display: block;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 40%, rgba(36, 71, 255, 0.12) 0%, transparent 40%),
		linear-gradient(135deg, #e8eef4 0%, #c8d4e2 100%);
}

.rmr-trip-card__body {
	grid-area: main;
}

.rmr-trip-card__side {
	grid-area: side;
}

.rmr-trip-card__map--has-tiles {
	background: var(--rmr-line, #e2e8f0);
}

.rmr-trip-card__map-tiles,
.rmr-trip-card__map img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.rmr-trip-card__map-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #dce6f2 0%, #eef2f7 55%, #e2eaf4 100%);
}

.rmr-trip-card__body {
	padding: 20px 22px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.rmr-trip-card__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.rmr-trip-card__title h3 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.25;
}

.rmr-trip-card__title h3 a {
	color: var(--rmr-navy);
	text-decoration: none;
}

.rmr-trip-card__title h3 a:hover {
	text-decoration: underline;
}

.rmr-trip-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.9rem;
	color: var(--rmr-mute);
}

.rmr-trip-card__meta b {
	color: var(--rmr-navy);
}

.rmr-trip-card__stops {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.86rem;
	color: var(--rmr-mute);
}

.rmr-trip-card__stops-more {
	font-size: inherit;
	font-weight: 600;
	color: var(--rmr-navy);
	text-decoration: none;
	border-bottom: 1px dashed var(--rmr-line, #c5ced8);
}

.rmr-trip-card__stops-more:hover {
	color: var(--rmr-coral);
	border-bottom-color: currentColor;
}

.rmr-trip-card__arrow {
	color: var(--rmr-coral);
	flex-shrink: 0;
}

.rmr-trip-card__partners {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid var(--rmr-line, #e4e7ef);
	border-radius: 8px;
	background: var(--rmr-cloud, #f6f7fb);
}

.rmr-trip-card__partners-label {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--rmr-navy);
}

.rmr-trip-card__partners-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rmr-trip-card__partners-note {
	margin: 0;
	font-size: 0.72rem;
	color: var(--rmr-mute);
}

/* Ghost rb-btn is transparent in the theme — legible on card surfaces. */
.rmr-trip-card__partners .rmr-trip-card__partner-link,
.rmr-trip-card__actions :is(a.rb-btn, button.rb-btn).ghost {
	background: #fff;
	background-image: none;
	color: #0a1a3b;
	border: 1px solid var(--rmr-line, #e4e7ef);
	box-shadow: none;
	transform: none;
}

@media (hover: hover) {
	.rmr-trip-card__partners .rmr-trip-card__partner-link:hover,
	.rmr-trip-card__actions :is(a.rb-btn, button.rb-btn).ghost:hover {
		background: var(--rmr-cloud, #f6f7fb);
		background-image: none;
		color: #0a1a3b;
		border-color: #0a1a3b;
		box-shadow: none;
		transform: none;
	}
}

.rmr-trip-card__actions {
	grid-area: actions;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 22px 20px;
	min-width: 0;
}

.rmr-trip-card__actions-primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.rmr-trip-card__view {
	flex-shrink: 0;
}

.rmr-trip-card__actions-secondary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin-left: auto;
}

button.rmr-trip-card__link {
	appearance: none;
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rmr-navy);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

button.rmr-trip-card__link:hover {
	color: var(--rmr-amber);
	background: none;
	box-shadow: none;
}

button.rmr-trip-card__link:focus-visible, button.rmr-trip-card__link:focus {
	outline: 2px solid var(--rmr-navy);
	outline-offset: 2px;
	background: none;
	box-shadow: none;
}

button.rmr-trip-card__link--danger {
	color: #b42318;
}

button.rmr-trip-card__link--danger:hover {
	color: #912018;
}

.rmr-trip-card--removing {
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.rmr-trip-card__side {
	background: var(--rmr-cloud);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	border-left: 1px solid var(--rmr-line);
}

.rmr-trip-card__booking-status {
	font-size: 0.82rem;
	color: var(--rmr-mute);
	line-height: 1.45;
}

.rmr-trip-card__booking-status b {
	display: block;
	color: var(--rmr-navy);
	font-size: 1rem;
	margin-bottom: 2px;
}

.rmr-trip-card__warning {
	padding: 8px 10px;
	font-size: 0.82rem;
	border-radius: var(--rmr-radius-xs);
	line-height: 1.4;
}

.rmr-trip-card__warning--amber {
	background: rgba(232, 165, 43, 0.15);
	border-left: 3px solid var(--rmr-amber);
	color: #6b4a00;
}

.rmr-trip-card__warning--tip {
	background: rgba(36, 71, 255, 0.1);
	border-left: 3px solid var(--rmr-action);
	color: #1f2c5e;
}

.rmr-trip-card__find {
	margin-top: 4px;
	align-self: flex-start;
}

/* Pills — base + modifiers (usable outside .rmr-my-trips, e.g. match cards, listings) */
.rmr-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.2;
	background: #fff;
	color: var(--rmr-navy, var(--e-global-color-primary, #0a1a3b));
	border: 1px solid var(--rmr-line, #e4e7ef);
}

.rmr-pill--coral {
	background: var(--rmr-coral, var(--e-global-color-accent, #e5577a));
	color: #fff;
	border-color: transparent;
}

.rmr-pill--soft {
	background: var(--rmr-peri-2, var(--e-global-color-38b03de, #e9ecf9));
	color: var(--rmr-navy, var(--e-global-color-primary, #0a1a3b));
	border-color: transparent;
}

/* Season summary */
.rmr-my-trips__season {
	padding: 24px !important;
	margin-top: 24px;
}

.rmr-my-trips__season-head h2 {
	margin: 0 0 14px;
	font-size: 1.2rem;
	color: var(--rmr-navy);
}

.rmr-my-trips__season-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.rmr-my-trips__season-grid b {
	display: block;
	font-size: 1.8rem;
	color: var(--rmr-navy);
	line-height: 1.1;
	margin-bottom: 4px;
}

.rmr-my-trips__season-grid small {
	color: var(--rmr-mute);
	font-size: 0.85rem;
}

@media (max-width: 960px) {
	.rmr-trip-card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"map"
			"main"
			"side"
			"actions";
	}

	.rmr-trip-card__map {
		min-height: 180px;
		aspect-ratio: 16 / 9;
	}

	.rmr-trip-card__side {
		border-left: 0;
		border-top: 1px solid var(--rmr-line);
	}

	.rmr-trip-card__actions {
		padding: 14px 22px 20px;
		border-top: 1px solid var(--rmr-line);
		background: #fff;
	}
}

@media (max-width: 640px) {
	.rmr-my-trips__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.rmr-my-trips__tabs::-webkit-scrollbar {
		display: none;
	}

	.rmr-my-trips__tab {
		flex: 0 0 auto;
		padding: 10px 14px;
		font-size: 0.88rem;
		white-space: nowrap;
	}

	.rmr-trip-card__title {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.rmr-trip-card__title h3 {
		font-size: 1.05rem;
	}

	.rmr-trip-card__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.rmr-trip-card__stops {
		font-size: 0.82rem;
		line-height: 1.45;
	}

	.rmr-trip-card__partners {
		padding: 10px;
	}

	.rmr-trip-card__partners-links {
		flex-direction: column;
	}

	.rmr-trip-card__partners .rmr-trip-card__partner-link {
		width: 100%;
		justify-content: center;
	}

	.rmr-trip-card__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 14px 16px 16px;
	}

	.rmr-trip-card__actions-primary,
	.rmr-trip-card__actions-secondary {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-left: 0;
		width: 100%;
	}

	.rmr-trip-card__actions-primary :is(a.rb-btn, button.rb-btn) {
		flex: 1 1 auto;
		min-width: 0;
		justify-content: center;
	}

	.rmr-trip-card__view {
		flex: 1 1 100%;
		width: 100%;
	}

	.rmr-trip-card__actions-secondary {
		justify-content: flex-start;
		gap: 8px 14px;
		padding-top: 8px;
		border-top: 1px solid var(--rmr-line);
	}

	.rmr-trip-card__link {
		padding: 6px 0;
	}

	.rmr-trip-card__find {
		align-self: stretch;
		justify-content: center;
		width: 100%;
	}
}

@media (max-width: 520px) {
	.rmr-trip-card__body,
	.rmr-trip-card__side {
		padding: 16px;
	}

	.rmr-my-trips__season-grid {
		grid-template-columns: 1fr;
	}
}

/* My Garage page wrapper (picker UI: garage-picker.css + picker-tiles.css) */
.rmr-my-garage {
	--rmr-navy: var(--e-global-color-primary, #0a1a3b);
	--rmr-coral: #e5577a;
	--rmr-mute: var(--e-global-color-text, #5a6b87);
	--rmr-line: var(--e-global-color-28aa42f, #e4e7ef);
}

.rmr-my-garage--picker .rmr-garage {
	max-width: none;
}

.rmr-my-garage__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.rmr-my-garage__head h1 {
	margin: 0 0 6px;
	font-size: clamp(1.75rem, 3vw, 2rem);
	color: var(--rmr-navy);
}

.rmr-my-garage__head p {
	color: var(--rmr-mute);
	margin: 0;
}

.rmr-pyt-vehicle__saved {
	margin: 0 0 6px;
	color: var(--e-global-color-primary, #0a1a3b);
}

.rmr-pyt-vehicle__empty {
	margin: 0 0 6px;
	color: var(--e-global-color-text, #5a6b87);
	font-size: 0.92rem;
}

.rmr-pyt-vehicle__link {
	margin: 0;
	font-size: 0.92rem;
}

.rmr-pyt-vehicle__hint {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--e-global-color-text, #5a6b87);
}

.rmr-pyt-vehicle__cascade {
	display: grid;
	gap: 10px;
	margin-top: 4px;
}

.rmr-pyt-vehicle__cascade .elementor-field-group {
	margin: 0;
}

.rmr-pyt-vehicle__cascade small {
	font-weight: 400;
	color: var(--e-global-color-text, #5a6b87);
}

.rmr-pyt-edit-route-panel {
	padding-top: 0;
	padding-bottom: var(--rb-space-l, 1.5rem);
}

.rmr-pyt-editing-route .plan-hero--editing {
	padding-top: 0;
}

/* Plan Your Trip: edit mode — location form only, hide map/matches chrome */
body.rmr-pyt-editing-route.rmr-plan-your-trip .elementor-widget-voxel-toolkit-route-planner,
body.rmr-pyt-editing-route.rmr-plan-your-trip .elementor-widget-shortcode:has(.rmr-route-match),
body.rmr-pyt-editing-route.rmr-plan-your-trip #rmr-matches-section {
	display: none !important;
}

/* Stay22 + GetYourGuide on plan-your-trip */
.rmr-travel-partners {
	margin: 2.5rem 0;
	padding-top: 2rem;
	border-top: 1px solid var(--rmr-line, #e4e7ef);
}

.rmr-travel-partners__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 1.25rem;
}

.rmr-travel-partners__panel {
	background: #fff;
	border: 1px solid var(--rmr-line, #e4e7ef);
	border-radius: var(--rmr-radius, 12px);
	padding: 1.25rem;
}

#where-to-stay,
#things-to-do {
	scroll-margin-top: 5rem;
}

.rmr-travel-partners__panel h3 {
	margin: 0 0 0.35rem;
	font-size: var(--rb-text-xl);
}

.rmr-travel-partners__lead {
	margin: 0 0 1rem;
	color: var(--rmr-mute, #5a6b7a);
	font-size: 0.92rem;
}

.rmr-partner-embed {
	position: relative;
	min-height: 320px;
}

.rmr-partner-embed__status {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--rmr-mute, #5a6b7a);
}

.rmr-partner-embed__status--loading {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 1.5rem;
	text-align: center;
	border: 1px dashed var(--rmr-line, #e4e7ef);
	border-radius: 8px;
	background: var(--rmr-cloud, #f6f7fb);
}

.rmr-partner-embed__status--loading::before {
	content: '';
	width: 18px;
	height: 18px;
	border: 2px solid var(--rmr-line, #d5dce6);
	border-top-color: var(--rmr-navy, #0a1a3b);
	border-radius: 50%;
	animation: rmr-partner-spin 0.8s linear infinite;
	flex-shrink: 0;
}

.rmr-partner-embed__status--fallback {
	padding: 1rem 1.1rem;
	border: 1px solid #f0c36d;
	border-radius: 8px;
	background: #fff8e6;
	color: #5c4a1f;
}

.rmr-partner-embed.is-loading .rmr-partner-embed__content {
	min-height: 460px;
}

.rmr-partner-embed.is-ready .rmr-partner-embed__status--loading,
.rmr-partner-embed.is-fallback .rmr-partner-embed__status--loading {
	display: none;
}

.rmr-partner-embed.is-fallback .rmr-partner-embed__content {
	display: none;
}

.rmr-partner-embed__open {
	display: none;
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
}

.rmr-partner-embed.is-fallback .rmr-partner-embed__open {
	display: block;
}

.rmr-partner-embed__open a {
	color: var(--rmr-navy, #0a1a3b);
}

@keyframes rmr-partner-spin {
	to {
		transform: rotate(360deg);
	}
}

.rmr-stay22-widget {
	border: 0;
	border-radius: 8px;
	max-width: 100%;
}

.rmr-gyg-widget {
	min-height: 320px;
}

@media (max-width: 900px) {
	.rmr-travel-partners__grid {
		grid-template-columns: 1fr;
	}
}

.rmr-trip-date-notice {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #f0c36d;
	border-radius: 8px;
	background: #fff8e6;
	color: #5c4a1f;
}

.rmr-trip-date-notice p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
}
