/* =============================================================================
 * RPM Rentals Module — styles
 * Rendered by mu-plugins/rpm-rentals-module.php ([rpm_rentals]). Everything is scoped under
 * .rpm-rentals; tokens live on that root. Design: Figma file kS9R6bGjqqEls1yTdPlR5g.
 *
 * Breakpoints:  desktop >= 1024px  |  tablet 768-1023px  |  mobile < 768px
 *
 * NOTE: RentEngine's widget script sets the iframe's inline height from the listings' content height,
 * so don't put a fixed height on .rpm-frame__iframe here.
 * ========================================================================== */

.rpm-rentals {
	--rpm-navy:        #003066;
	--rpm-red:         #b5201a;
	--rpm-red-dark:    #99191a;
	--rpm-gray:        #eef1f5;
	--rpm-line:        #d5d9dd;
	--rpm-text:        #1c2433;
	--rpm-muted:       #5c6678;  /* Figma uses #6c747c / #8c939a for some text; darkened here for AA contrast on #eef1f5 / white */
	--rpm-red-tint:    #fcf5f5;

	--rpm-font:        'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--rpm-font-cond:   'Barlow Semi Condensed', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--rpm-wrap:        1170px;   /* content width at desktop */
	--rpm-gutter:      24px;

	/* Set at runtime by module.js: the bottom edge of the site header, so the sticky bar sits under it. */
	--rpm-hdr-h:       76px;
	/* Raise the mobile bottom bar if a floating widget (e.g. accessiBe) collides with it. */
	--rpm-bar-offset:  0px;

	display: block;
	font-family: var(--rpm-font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--rpm-text);
	-webkit-font-smoothing: antialiased;
	scroll-margin-top: calc(var(--rpm-hdr-h) + 8px); /* so "#rpm-rentals" links clear the sticky header */
	box-sizing: border-box;
}
.rpm-rentals *,
.rpm-rentals *::before,
.rpm-rentals *::after { box-sizing: border-box; }

/* ---- Reset Impreza / WPBakery bare-element styles inside the scope ----------------------------- */
.rpm-rentals h1,
.rpm-rentals h2,
.rpm-rentals h3,
.rpm-rentals p,
.rpm-rentals ul,
.rpm-rentals ol { margin: 0; padding: 0; }
.rpm-rentals ul,
.rpm-rentals ol { list-style: none; }
.rpm-rentals li { margin: 0; }
.rpm-rentals :where(a) { color: inherit; text-decoration: none; }
.rpm-rentals button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: inherit;
	text-align: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.rpm-rentals img { max-width: none; height: auto; border: 0; vertical-align: middle; }
.rpm-rentals .rpm-ico { display: block; flex: none; }

/* The UA [hidden] rule loses to any author "display:" below, so restore it explicitly. */
.rpm-rentals [hidden] { display: none !important; /* needed: author display rules would otherwise override [hidden] */ }

/* Visually hidden (still read by screen readers) */
.rpm-rentals .rpm-sr {
	position: absolute !important; /* needed: must win over any theme rule; element is out of flow and 1px, so it cannot affect the iframe offset */
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Focus */
.rpm-rentals :focus-visible { outline: 3px solid var(--rpm-navy); outline-offset: 2px; }
.rpm-rentals .rpm-hero :focus-visible,
.rpm-rentals .rpm-sticky :focus-visible { outline-color: #fff; }
.rpm-rentals .rpm-sr:focus,
.rpm-rentals .rpm-panel:focus { outline: none; }

/* ---- Per-area content: every area's text/links are server-rendered, CSS shows the selected one ---- */
.rpm-rentals[data-area="denver"] [data-for]:not([data-for="denver"]),
.rpm-rentals[data-area="colorado-springs"] [data-for]:not([data-for="colorado-springs"]),
.rpm-rentals[data-area="northern-colorado"] [data-for]:not([data-for="northern-colorado"]) { display: none; }

/* Full-bleed (width/margins are set by the inline script + module.js) */
.rpm-rentals .rpm-wrap {
	width: 100%;
	max-width: calc(var(--rpm-wrap) + 2 * var(--rpm-gutter));
	margin: 0 auto;
	padding: 0 var(--rpm-gutter);
}

/* ============================================================================
 * Hero (navy band)
 * ========================================================================= */
.rpm-rentals .rpm-hero { background: var(--rpm-navy); color: #fff; padding-top: 64px; }
.rpm-rentals .rpm-title {
	font: 600 42px/42px var(--rpm-font-cond);
	letter-spacing: -0.42px;
	color: #fff;
	margin: 0;
}
.rpm-rentals .rpm-intro {
	margin: 23px 0 0;
	max-width: 651px;
	font: 400 18px/28px var(--rpm-font);
	letter-spacing: -0.18px;
	color: #fff;
}

/* Region map (desktop only): all three shapes are blue, the selected area is red. Colors come off data-area so
 * they are right before any JS runs. Inactive: Northern = deep blue, Denver and Colorado Springs = lighter blue. */
.rpm-rentals .rpm-hero .rpm-wrap { position: relative; }
.rpm-rentals .rpm-map { display: none; }
.rpm-rentals .rpm-map__svg { display: block; width: 227px; height: 258px; }
.rpm-rentals .rpm-map__r { transition: fill 0.25s ease; }
.rpm-rentals .rpm-map__r { pointer-events: auto; cursor: pointer; } /* container is click-through; only the shapes take clicks */
.rpm-rentals .rpm-map__r--north { fill: #0D497D; }
.rpm-rentals .rpm-map__r--denver,
.rpm-rentals .rpm-map__r--springs { fill: #2E5D92; }
.rpm-rentals[data-area="denver"] .rpm-map__r--denver,
.rpm-rentals[data-area="colorado-springs"] .rpm-map__r--springs,
.rpm-rentals[data-area="northern-colorado"] .rpm-map__r--north { fill: #B5201A; }
/* With Northern selected, Denver (its neighbour) takes the darker blue so the red region reads clearly. */
.rpm-rentals[data-area="northern-colorado"] .rpm-map__r--denver { fill: #0D497D; }
@media (min-width: 1100px) {
	.rpm-rentals .rpm-map { display: block; position: absolute; top: -44px; right: 0; pointer-events: none; }
}
@media (min-width: 1280px) {
	.rpm-rentals .rpm-map { right: 87px; }
}
@media (prefers-reduced-motion: reduce) {
	.rpm-rentals .rpm-map__r { transition: none; }
}

/* Entry transition: the whole module fades in with a very slight upward drift on page load.
 * fill-mode is `backwards`, so no transform is left behind afterward (a lingering transform would trap the
 * fixed sticky bar / mobile bar). */
@keyframes rpm-enter {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.rpm-rentals { animation: rpm-enter 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
	.rpm-rentals { animation: none; }
}

/* Mobile-only pieces (label, segmented control, cities line) are hidden until the mobile breakpoint */
.rpm-rentals .rpm-m-label,
.rpm-rentals .rpm-seg.rpm-seg--hero,
.rpm-rentals .rpm-m-cities { display: none; }

/* ---- Tabs (desktop: name + city subline; tablet: names only) ---- */
.rpm-rentals .rpm-tabs { display: flex; gap: 6px; margin-top: 35px; }
.rpm-rentals .rpm-tab {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 4px;
	height: 64px;
	padding: 18px 40px 18px 30px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	background:
		linear-gradient(0deg, rgba(0, 48, 102, 0.2) 0%, rgba(0, 48, 102, 0) 62.5%),
		rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	transition: background-color 0.15s ease;
}
.rpm-rentals .rpm-tab:hover { background-color: rgba(255, 255, 255, 0.18); }
.rpm-rentals .rpm-tab__name { font: 600 24px/1 var(--rpm-font-cond); letter-spacing: -0.24px; }
.rpm-rentals .rpm-tab__cities { font: 500 10px/14px var(--rpm-font); letter-spacing: -0.1px; color: rgba(255, 255, 255, 0.8); }

/* Selected tab (CSS-driven off data-area, so it is right before any JS runs) */
.rpm-rentals[data-area="denver"] .rpm-tab[data-opt="denver"],
.rpm-rentals[data-area="colorado-springs"] .rpm-tab[data-opt="colorado-springs"],
.rpm-rentals[data-area="northern-colorado"] .rpm-tab[data-opt="northern-colorado"] {
	background: var(--rpm-red);
	border-color: var(--rpm-red);
	color: #fff;
}
.rpm-rentals[data-area="denver"] .rpm-tab[data-opt="denver"] .rpm-tab__cities,
.rpm-rentals[data-area="colorado-springs"] .rpm-tab[data-opt="colorado-springs"] .rpm-tab__cities,
.rpm-rentals[data-area="northern-colorado"] .rpm-tab[data-opt="northern-colorado"] .rpm-tab__cities { color: rgba(255, 255, 255, 0.92); }

/* ============================================================================
 * Apply panel — the 5px red rule is its top border, joining the selected (red) tab
 * ========================================================================= */
.rpm-rentals .rpm-apply { background: var(--rpm-gray); border-top: 5px solid var(--rpm-red); }
.rpm-rentals .rpm-apply__grid {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 19px 0 24px 13px;
}
.rpm-rentals .rpm-eyebrow {
	display: block;
	margin-bottom: 4px;
	font: 700 11px/1 var(--rpm-font);
	letter-spacing: 0.33px;
	text-transform: uppercase;
	color: var(--rpm-muted);
}
.rpm-rentals .rpm-apply__line { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.rpm-rentals .rpm-apply__name { font: 600 24px/1 var(--rpm-font-cond); letter-spacing: -0.24px; color: var(--rpm-red); }
.rpm-rentals .rpm-apply__cities { display: none; font: 500 14px/1.2 var(--rpm-font); color: var(--rpm-muted); } /* tablet only */
.rpm-rentals .rpm-apply__rule { flex: none; width: 1px; height: 44px; background: var(--rpm-line); margin:0 6px; }

.rpm-rentals .rpm-apply__opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rpm-rentals .rpm-helper {
	font: 500 11px/14px var(--rpm-font);
	letter-spacing: -0.11px;
	color: var(--rpm-muted);
	max-width: 200px;
}

/* "How applying works" trigger */
.rpm-rentals .rpm-how {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rpm-muted);
	font: 500 14px/1 var(--rpm-font);
	letter-spacing: -0.14px;
	white-space: nowrap;
}
.rpm-rentals .rpm-how:hover { color: var(--rpm-navy); }
.rpm-rentals .rpm-info__glyph { flex: none; width: 42px; height: 42px; }

/* ============================================================================
 * Buttons
 * ========================================================================= */
.rpm-rentals .rpm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
	min-height: 44px;
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: 700 14px/1.1 var(--rpm-font);
	letter-spacing: -0.28px;
	text-align: center;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rpm-rentals .rpm-btn--primary { background: var(--rpm-red); border-color: var(--rpm-red); color: #fff; }
.rpm-rentals .rpm-btn--primary:hover { background: var(--rpm-red-dark); border-color: var(--rpm-red-dark); color: #fff; }
.rpm-rentals .rpm-btn--light, .rpm-rentals .rpm-btn--ghost { background:rgba(181,32,26,0.05); border-color: var(--rpm-red); color: var(--rpm-red); }
.rpm-rentals .rpm-btn--light:hover { background:rgba(181,32,26,0.1); }
.rpm-rentals .rpm-btn--ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.rpm-rentals .rpm-btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.rpm-rentals .rpm-btn--outline { background: #fff; border: 1.5px solid var(--rpm-navy); color: var(--rpm-navy); }
.rpm-rentals .rpm-btn--outline:hover { background: var(--rpm-navy); color: #fff; }
.rpm-rentals .rpm-btn--lg { min-height: 47px; padding: 14px 24px; font-size: 16px; letter-spacing: 0; }

/* ============================================================================
 * Listings (RentEngine iframe) + empty state
 * ========================================================================= */
.rpm-rentals .rpm-listings { background: var(--rpm-gray); padding: 0 0 56px; }
.rpm-rentals .rpm-frame { min-height: 720px; background: #fff; border-radius: 8px; } /* reserved height: no layout shift while RentEngine sizes the iframe */
.rpm-rentals .rpm-frame { position: relative; }
/* Loader: while loading, the iframe is invisible (it still loads) and a spinner shows; once ready it fades in. */
.rpm-rentals .rpm-frame__iframe { display: block; width: 100%; min-height: 640px; border: 0; border-radius: 8px; background: transparent; opacity: 1; transition: opacity 0.5s ease; }
.rpm-rentals .rpm-frame[data-state="loading"] .rpm-frame__iframe { opacity: 0; pointer-events: none; transition-duration: 0.15s; }
.rpm-rentals .rpm-frame__loading {
	position: absolute; left: 0; right: 0; top: 120px; z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 0; text-align: center; font: 600 14px/1 var(--rpm-font); color: var(--rpm-muted);
	opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	pointer-events: none;
}
.rpm-rentals .rpm-frame__loading::before {
	content: ''; width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid var(--rpm-line); border-top-color: var(--rpm-red);
	animation: rpm-spin 0.8s linear infinite;
}
.rpm-rentals .rpm-frame[data-state="loading"] .rpm-frame__loading { opacity: 1; visibility: visible; transition: opacity 0.2s ease 0.1s; }
@keyframes rpm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.rpm-rentals .rpm-frame__iframe { transition: none; }
	.rpm-rentals .rpm-frame__loading::before { animation-duration: 2.4s; }
}
.rpm-rentals .rpm-frame[data-state="empty"] { display: none; }

.rpm-rentals .rpm-empty { background: #fff; border-radius: 8px; padding: 48px 24px; text-align: center; }
.rpm-rentals .rpm-empty__title { font: 600 28px/1.15 var(--rpm-font-cond); color: var(--rpm-navy); letter-spacing: -0.2px; }
.rpm-rentals .rpm-empty__body { margin-top: 10px; font: 400 16px/1.5 var(--rpm-font); color: var(--rpm-muted); }
.rpm-rentals .rpm-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.rpm-rentals[data-area="denver"] .rpm-empty [data-switch="denver"],
.rpm-rentals[data-area="colorado-springs"] .rpm-empty [data-switch="colorado-springs"],
.rpm-rentals[data-area="northern-colorado"] .rpm-empty [data-switch="northern-colorado"] { display: none; } /* offer only the OTHER two areas */
.rpm-rentals .rpm-empty__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font: 500 15px/1.3 var(--rpm-font); color: var(--rpm-muted); }
.rpm-rentals .rpm-phone-number { font-weight: 700; color: var(--rpm-navy); }
.rpm-rentals .rpm-phone-number:hover { text-decoration: underline; }
.rpm-rentals .rpm-noscript { padding: 24px; background: #fff; border-radius: 8px; color: var(--rpm-muted); }

/* ============================================================================
 * Segmented control (mobile hero + sticky bar)
 * ========================================================================= */
.rpm-rentals .rpm-seg {
	display: flex;
	align-items: stretch;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden; /* inside the hero / fixed bar only — never in the iframe's ancestor chain */
}
.rpm-rentals .rpm-seg__opt {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	transition: background-color 0.15s ease;
}
.rpm-rentals .rpm-seg__opt:hover { background: rgba(255, 255, 255, 0.12); }
.rpm-rentals[data-area="denver"] .rpm-seg__opt[data-opt="denver"],
.rpm-rentals[data-area="colorado-springs"] .rpm-seg__opt[data-opt="colorado-springs"],
.rpm-rentals[data-area="northern-colorado"] .rpm-seg__opt[data-opt="northern-colorado"] { background: var(--rpm-red); color: #fff; }
.rpm-rentals .rpm-seg--sticky .rpm-seg__opt { font: 700 14px/1 var(--rpm-font); letter-spacing: -0.28px; }
.rpm-rentals .rpm-seg--sticky .rpm-seg__opt + .rpm-seg__opt { border-left: 1px solid rgba(255, 255, 255, 0.2); } /* matches the mobile hero control and .rpm-seg outer border */

/* ============================================================================
 * Sticky bar (desktop + tablet) — fixed under the site header
 * ========================================================================= */
.rpm-rentals .rpm-sticky {
	position: fixed;
	top: var(--rpm-hdr-h);
	left: 0;
	right: 0;
	z-index: 900; /* below the header (1000); dialogs render in the top layer */
	height: 80px;
	display: flex;
	align-items: center;
	background: var(--rpm-navy);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.rpm-rentals .rpm-sticky.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rpm-rentals .rpm-sticky__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	max-width: calc(var(--rpm-wrap) + 2 * var(--rpm-gutter));
	margin: 0 auto;
	padding: 0 var(--rpm-gutter);
}
.rpm-rentals .rpm-sticky__rule { flex: none; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.2); margin:0 12px; }
.rpm-rentals .rpm-how--sticky { margin-left: 0; color: rgba(255, 255, 255, 0.85); }
.rpm-rentals .rpm-how--sticky:hover { color: #fff; }

/* ============================================================================
 * Mobile bottom bar
 * ========================================================================= */
.rpm-rentals .rpm-mbar { display: none; }

/* ============================================================================
 * Dialogs (native <dialog>): drawer + mobile sheets
 * ========================================================================= */
html.rpm-rentals-lock { overflow: hidden; }

.rpm-rentals dialog.rpm-dialog {
	padding: 0;
	border: 0;
	max-width: none;
	max-height: none;
	color: var(--rpm-text);
	font-family: var(--rpm-font);
	background: #fff;
}
.rpm-rentals dialog.rpm-dialog::backdrop { background: rgba(0, 48, 102, 0.65); }
.rpm-rentals dialog.rpm-dialog[open]::backdrop { animation: rpm-fade 0.2s ease-out; }

.rpm-rentals .rpm-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: -5px; border-radius: 6px; flex: none; }
.rpm-rentals .rpm-x:hover { background: rgba(0, 48, 102, 0.08); }

/* ---- Drawer ("How applying works") ---- */
.rpm-rentals dialog.rpm-drawer {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: auto;
	margin: 0;
	width: 480px;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
}
.rpm-rentals dialog.rpm-drawer[open] { display: flex; flex-direction: column; animation: rpm-slide-in 0.25s ease-out; }
.rpm-rentals .rpm-drawer__head { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 32px 20px; }
.rpm-rentals .rpm-drawer__titlerow { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.rpm-rentals .rpm-drawer__title { font: 600 30px/1.1 var(--rpm-font-cond); color: var(--rpm-navy); }
.rpm-rentals .rpm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 10px;
	border-radius: 20px;
	background: rgba(181, 32, 26, 0.1);
	color: var(--rpm-red);
	font: 600 13px/1.2 var(--rpm-font);
}
.rpm-rentals .rpm-drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 32px 24px; }
.rpm-rentals .rpm-steps { display: flex; flex-direction: column; gap: 22px; }
.rpm-rentals .rpm-step { display: flex; align-items: flex-start; gap: 14px; }
.rpm-rentals .rpm-step__num {
	flex: none;
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--rpm-navy);
	color: #fff;
	font: 700 15px/1 var(--rpm-font);
}
.rpm-rentals .rpm-step__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rpm-rentals .rpm-step__text h3 { font: 700 17px/1.2 var(--rpm-font); color: var(--rpm-text); }
.rpm-rentals .rpm-step__text p { font: 400 15px/21px var(--rpm-font); color: var(--rpm-muted); }
.rpm-rentals .rpm-ready { display: flex; flex-direction: column; gap: 4px; }
.rpm-rentals .rpm-ready li { display: flex; align-items: center; gap: 8px; font: 400 15px/21px var(--rpm-font); color: var(--rpm-text); }
.rpm-rentals .rpm-ready li:nth-child(2) { align-items: flex-start; }
.rpm-rentals .rpm-ready li:nth-child(2) > svg { margin-top: 2px; }
.rpm-rentals .rpm-proofwrap { display: block; margin-top: 2px; }
.rpm-rentals .rpm-proofwrap summary { display: inline; cursor: pointer; color: var(--rpm-navy); text-decoration: underline; font-size: 14px; list-style: none; }
.rpm-rentals .rpm-proofwrap summary::-webkit-details-marker { display: none; }
.rpm-rentals .rpm-proofwrap summary::after { content: '+'; text-decoration: none; display: inline-block; margin-left: 6px; font-weight: 700; }
.rpm-rentals .rpm-proofwrap[open] summary::after { content: '\2212'; }
.rpm-rentals .rpm-proofwrap summary:focus-visible { outline: 2px solid var(--rpm-navy); outline-offset: 2px; }
.rpm-rentals .rpm-proof { list-style: disc; margin: 6px 0 4px 18px; display: flex; flex-direction: column; gap: 6px; }
.rpm-rentals .rpm-proof li { display: list-item; font-size: 14px; line-height: 20px; color: var(--rpm-muted); }
.rpm-rentals .rpm-obligo { margin-top: 6px; }
.rpm-rentals .rpm-obligo a { color: var(--rpm-navy); text-decoration: underline; }
.rpm-rentals .rpm-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rpm-line); }
.rpm-rentals .rpm-legal ol { list-style: decimal; margin-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.rpm-rentals .rpm-legal li { font: 600 11px/16px var(--rpm-font); color: var(--rpm-text); }
.rpm-rentals .rpm-drawer__foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 18px 32px 22px; background: #fff; border-top: 1px solid #d5d8dd; }
.rpm-rentals .rpm-drawer__actions { display: flex; gap: 10px; }
.rpm-rentals .rpm-drawer__actions .rpm-btn { flex: 1 1 0; min-width: 0; white-space: normal; }
.rpm-rentals .rpm-drawer__phone { display: flex; align-items: center; gap: 8px; font: 500 14px/1.3 var(--rpm-font); color: var(--rpm-muted); }

/* ---- Mobile sheets ---- */
.rpm-rentals dialog.rpm-sheet {
	position: fixed;
	top: auto; right: 0; bottom: 0; left: 0;
	margin: 0;
	width: 100%;
	max-height: 92vh;
	max-height: 92dvh;
	overflow-y: auto;
	padding: 0 20px calc(24px + env(safe-area-inset-bottom));
	border-radius: 14px 14px 0 0;
	background: var(--rpm-gray);
	box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.12);
}
.rpm-rentals dialog.rpm-sheet[open] { display: block; animation: rpm-sheet-up 0.25s ease-out; }
.rpm-rentals .rpm-sheet__handle { width: 60px; height: 5px; margin: 16px auto 18px; border-radius: 3px; background: rgba(140, 147, 154, 0.5); }
.rpm-rentals .rpm-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rpm-rentals .rpm-sheet__title { font: 600 24px/1.15 var(--rpm-font-cond); color: var(--rpm-red); }
.rpm-rentals .rpm-change { display: flex; align-items: center; gap: 6px; margin: 12px 0 14px; font: 400 14px/1.2 var(--rpm-font); color: var(--rpm-muted); }
.rpm-rentals .rpm-link { font: 600 14px/1.2 var(--rpm-font); color: var(--rpm-navy); text-decoration: underline; text-underline-position: from-font; }
.rpm-rentals .rpm-link--how { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; }

.rpm-rentals .rpm-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 14px 14px 14px 16px;
	border: 1px solid #d5d8dd;
	border-radius: 10px;
	background: #fff;
}
.rpm-rentals .rpm-choice:first-of-type { margin-top: 0; }
.rpm-rentals .rpm-choice--primary { border: 2px solid var(--rpm-red); background: var(--rpm-red-tint); padding: 13px 13px 13px 15px; }
.rpm-rentals .rpm-choice__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rpm-rentals .rpm-choice__title { font: 700 16px/1.2 var(--rpm-font); color: var(--rpm-navy); }
.rpm-rentals .rpm-choice--primary .rpm-choice__title { color: var(--rpm-red); }
.rpm-rentals .rpm-choice__sub { font: 400 14px/19px var(--rpm-font); color: var(--rpm-muted); }

.rpm-rentals .rpm-radios { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.rpm-rentals .rpm-radio {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid #d5d8dd;
	border-radius: 10px;
	background: #fff;
	text-align: left;
}
.rpm-rentals .rpm-radio__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rpm-rentals .rpm-radio__name { font: 700 17px/1.2 var(--rpm-font); color: var(--rpm-navy); }
.rpm-rentals .rpm-radio__cities { font: 400 14px/19px var(--rpm-font); color: var(--rpm-muted); }
.rpm-rentals .rpm-radio .rpm-radio__on { display: none; }
.rpm-rentals[data-area="denver"] .rpm-radio[data-opt="denver"],
.rpm-rentals[data-area="colorado-springs"] .rpm-radio[data-opt="colorado-springs"],
.rpm-rentals[data-area="northern-colorado"] .rpm-radio[data-opt="northern-colorado"] { border: 2px solid var(--rpm-red); background: var(--rpm-red-tint); padding: 13px; }
.rpm-rentals[data-area="denver"] .rpm-radio[data-opt="denver"] .rpm-radio__name,
.rpm-rentals[data-area="colorado-springs"] .rpm-radio[data-opt="colorado-springs"] .rpm-radio__name,
.rpm-rentals[data-area="northern-colorado"] .rpm-radio[data-opt="northern-colorado"] .rpm-radio__name { color: var(--rpm-red); }
.rpm-rentals[data-area="denver"] .rpm-radio[data-opt="denver"] .rpm-radio__on,
.rpm-rentals[data-area="colorado-springs"] .rpm-radio[data-opt="colorado-springs"] .rpm-radio__on,
.rpm-rentals[data-area="northern-colorado"] .rpm-radio[data-opt="northern-colorado"] .rpm-radio__on { display: block; }
.rpm-rentals[data-area="denver"] .rpm-radio[data-opt="denver"] .rpm-radio__off,
.rpm-rentals[data-area="colorado-springs"] .rpm-radio[data-opt="colorado-springs"] .rpm-radio__off,
.rpm-rentals[data-area="northern-colorado"] .rpm-radio[data-opt="northern-colorado"] .rpm-radio__off { display: none; }

@keyframes rpm-fade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes rpm-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes rpm-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rpm-shimmer  { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================================
 * Desktop narrower than the 1330px design: stack each helper under its button
 * (helpers sit beside the buttons only when there is room, >= 1280px)
 * ========================================================================= */
@media (min-width: 1280px) {
	.rpm-rentals .rpm-apply__opt { flex-direction: row; align-items: center; gap: 14px; }
	.rpm-rentals .rpm-apply__opt--rpm .rpm-helper { max-width: 156px; }
	.rpm-rentals .rpm-apply__opt--own .rpm-helper { max-width: 135px; }
}

/* ============================================================================
 * Tablet 768–1023px: names-only tabs, city line moves into the apply panel,
 * buttons split the row, drawer is 440px
 * ========================================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
	.rpm-rentals { --rpm-gutter: 32px; }
	.rpm-rentals .rpm-hero { padding-top: 36px; }
	.rpm-rentals .rpm-intro { margin-top: 10px; max-width: 640px; font-size: 17px; line-height: 25px; }
	.rpm-rentals .rpm-tabs { gap: 8px; margin-top: 24px; }
	.rpm-rentals .rpm-tab { flex: 1 1 0; align-items: center; height: 58px; padding: 0 16px; }
	.rpm-rentals .rpm-tab__name { font-size: 22px; }
	.rpm-rentals .rpm-tab__cities { display: none; }

	.rpm-rentals .rpm-apply__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
		row-gap: 16px;
		align-items: start;
		padding: 24px 0;
	}
	.rpm-rentals .rpm-apply__area { grid-row: 1; grid-column: 1; }
	.rpm-rentals .rpm-apply__cities { display: inline; }
	.rpm-rentals .rpm-apply__rule { display: none; }
	.rpm-rentals .rpm-how { grid-row: 1; grid-column: 2; justify-self: end; align-self: center; }
	.rpm-rentals .rpm-how .rpm-info__glyph { width: 18px; height: 18px; }
	.rpm-rentals .rpm-apply__opt { align-items: stretch; flex-direction: column; gap: 6px; }
	.rpm-rentals .rpm-apply__opt--rpm { grid-row: 2; grid-column: 1; }
	.rpm-rentals .rpm-apply__opt--own { grid-row: 2; grid-column: 2; }
	.rpm-rentals .rpm-apply__opt .rpm-btn { width: 100%; min-height: 47px; }
	.rpm-rentals .rpm-helper { max-width: none; font-size: 12px; }

	.rpm-rentals .rpm-listings { padding-top: 0; }

	/* Sticky bar: tighter so everything fits one row; the secondary button may wrap to two lines. */
	.rpm-rentals .rpm-sticky__inner { gap: 12px; }
	.rpm-rentals .rpm-seg__opt { padding: 0 12px; }
	.rpm-rentals .rpm-seg--sticky .rpm-seg__opt { font-size: 13px; }
	.rpm-rentals .rpm-sticky__rule { display: none; }
	.rpm-rentals .rpm-sticky .rpm-btn { padding: 8px 14px; font-size: 13px; }
	.rpm-rentals .rpm-sticky .rpm-btn--ghost { white-space: normal; max-width: 150px; line-height: 1.15; }
	.rpm-rentals .rpm-how--sticky .rpm-how__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* icon-only at tablet; still read aloud */
	.rpm-rentals .rpm-how--sticky .rpm-info__glyph { width: 36px; height: 36px; }

	.rpm-rentals dialog.rpm-drawer { width: 440px; }
}

/* ============================================================================
 * Mobile < 768px: segmented control, bottom bar, sheets, full-screen "how"
 * ========================================================================= */
@media (max-width: 767px) {
	.rpm-rentals { --rpm-gutter: 20px; }
	.rpm-rentals .rpm-hero { padding: 29px 0 25px; }
	.rpm-rentals .rpm-title { font-size: 30px; line-height: 34px; letter-spacing: -0.3px; }
	.rpm-rentals .rpm-intro,
	.rpm-rentals .rpm-tabs,
	.rpm-rentals .rpm-apply,
	.rpm-rentals .rpm-sticky { display: none; }

	.rpm-rentals .rpm-m-label {
		display: block;
		margin: 12px 0 8px 2px;
		font: 700 11px/1.2 var(--rpm-font);
		letter-spacing: 1.1px;
		color: rgba(255, 255, 255, 0.75);
	}
	.rpm-rentals .rpm-seg.rpm-seg--hero { display: flex; }
	.rpm-rentals .rpm-seg--hero .rpm-seg__opt + .rpm-seg__opt { border-left: 1px solid rgba(255, 255, 255, 0.2); } /* same colour/width as .rpm-seg's outer border */
	.rpm-rentals .rpm-seg--hero .rpm-seg__opt {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0 8px;
		font: 500 16px/1 var(--rpm-font-cond);
	}
	@media (max-width: 339px) {
		.rpm-rentals .rpm-seg--hero .rpm-seg__opt { font-size: 14px; padding: 0 4px; } /* very narrow phones: keep the three names on one row */
	}
	.rpm-rentals .rpm-m-cities {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-top: 8px;
		font: 400 13px/1.3 var(--rpm-font);
		color: rgba(255, 255, 255, 0.9);
	}
	.rpm-rentals .rpm-listings { padding: 0 0 40px; }
	.rpm-rentals .rpm-frame { min-height: 560px; }

	.rpm-rentals .rpm-mbar {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		left: 0; right: 0;
		bottom: var(--rpm-bar-offset, 0px);
		z-index: 900;
		height: calc(80px + env(safe-area-inset-bottom));
		padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
		background: var(--rpm-gray);
		box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(100%);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}
	.rpm-rentals .rpm-mbar.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.rpm-rentals .rpm-mbar__apply { flex: 1 1 auto; min-height: 44px; font-size: 16px; letter-spacing: -0.32px; }
	.rpm-rentals .rpm-how--mbar { flex: none; width: 42px; height: 42px; margin: 0; color: var(--rpm-red); }

	/* "How applying works" becomes a full-screen view */
	.rpm-rentals dialog.rpm-drawer { width: 100vw; box-shadow: none; }
	.rpm-rentals dialog.rpm-drawer[open] { animation-name: rpm-sheet-up; }
	.rpm-rentals .rpm-drawer__title { font-size: 28px; }
	.rpm-rentals .rpm-drawer__head { padding: 28px 24px 18px; }
	.rpm-rentals .rpm-drawer__body { padding: 8px 24px 24px; }
	.rpm-rentals .rpm-drawer__foot { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); }
	.rpm-rentals .rpm-drawer__actions { flex-wrap: wrap; }
	.rpm-rentals .rpm-drawer__actions .rpm-btn { flex: 1 1 140px; }
}

/* Sheets are mobile-only */
@media (min-width: 768px) {
	.rpm-rentals dialog.rpm-sheet,
	.rpm-rentals dialog.rpm-sheet[open] { display: none; }
}

/* ============================================================================
 * Reduced motion
 * ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.rpm-rentals *,
	.rpm-rentals *::before,
	.rpm-rentals *::after,
	.rpm-rentals dialog.rpm-dialog[open]::backdrop {
		animation: none !important;  /* needed: must beat every component's own animation/transition */
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
