/* ==========================================================================
   Hadrian Home — design system
   Tokens below are carried over from the reference design:
   near-black ink, warm clay accent, hairline borders, near-square corners,
   single display/body typeface (Hanken Grotesk), uppercase nav/button labels.
   ========================================================================== */

:root {
  --ink-900: #16161a;
  --ink-800: #23232a;
  --ink-700: #35353d;
  --ink-600: #4e4e57;

  --gray-600: #63636b;
  --gray-500: #85858d;
  --gray-400: #a2a2aa;
  --gray-300: #c6c6cc;
  --gray-200: #e4e4e8;

  --paper: #ffffff;
  --paper-dim: #f5f5f6;

  --line-200: #ececef;
  --line-300: #dddde1;

  --clay-700: #7e4632;
  --clay-600: #93513b;
  --clay-500: #a65d46;
  --clay-300: #c99c8b;
  --clay-100: #efe3dd;
  --clay-50: #f7f0ec;

  --accent-500: var(--clay-500);
  --accent-hover: var(--clay-600);
  --accent-wash: var(--clay-50);

  --brand: var(--ink-900);
  --brand-hover: var(--ink-700);
  --brand-contrast: var(--paper);

  --bg-page: var(--paper);
  --surface-card: var(--paper);
  --surface-sunken: var(--paper-dim);

  --text-primary: var(--ink-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --text-link: var(--clay-600);

  --border-subtle: var(--line-200);
  --border-strong: var(--line-300);

  --font-display:
    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-sans: var(--font-display);

  --r-sm: 2px;
  --container-pad: 24px;
  --container-max: 1200px;
  --nav-height: 78px;
}

@media (min-width: 780px) {
  :root {
    --container-pad: 32px;
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--text-link);
}
a:hover {
  color: var(--accent-hover);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink-900);
}
@media (max-width: 780px) {
  /* Tighter than the desktop default (browser/font-metric line-height) —
     at mobile's smaller heading sizes, that default reads as too loose
     between wrapped lines. Same breakpoint as this file's own base
     mobile/desktop split (--container-pad above). */
  h1,
  h2,
  h3 {
    line-height: 1.15;
  }
}
p {
  margin: 0 0 16px;
}
button {
  font-family: inherit;
}

.rpr-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.rpr-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.rpr-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
}
.rpr-skip-link:focus {
  left: 12px;
  top: 12px;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/*
 * Slow (800ms), subtle hover-zoom on browsable photo content site-wide —
 * property listing cards, blog cards, and the single-property gallery
 * bento. Deliberately NOT applied to hero banners (.rpr-home-hero-slide-img,
 * .rpr-hero-photo-img, .rpr-promo-hero-img), the
 * bottom CTA background (.rpr-photo-cta-img), the gallery lightbox's full
 * view (.rpr-lightbox-img), or logos — none of those are "browse a photo"
 * contexts. Each target's existing wrapper already has overflow:hidden
 * (needed for its own rounded corners), so the scale clips cleanly instead
 * of bleeding past the card's edge.
 */
.rpr-listing-card .rpr-thumb img,
.rpr-blog-card .rpr-thumb img,
.rpr-gallery-cell img {
  transition: transform 800ms ease;
}
.rpr-listing-card:hover .rpr-thumb img,
.rpr-blog-card:hover .rpr-thumb img,
.rpr-gallery-cell:hover img {
  transform: scale(1.05);
}

/* ---------- Buttons ---------- */
.rpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-sm);
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}
.rpr-btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 12px;
}
.rpr-btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
}
.rpr-btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-contrast);
}
.rpr-btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
}
.rpr-btn-outline:hover {
  background: var(--paper-dim);
  color: var(--ink-900);
}
.rpr-btn-on-dark {
  background: #fff;
  color: var(--ink-900);
}
.rpr-btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Header / nav ---------- */
.rpr-header {
  position: relative;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border-strong);
}
.rpr-navwrap {
  position: relative;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rpr-brand {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  max-width: calc(100vw - 90px);
  overflow: hidden;
}
.rpr-brand-text:not(.rpr-brand-text-stacked) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpr-brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1.05;
}
.rpr-brand-text-stacked {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}
.rpr-brand img {
  max-height: 44px;
  width: auto;
}

.rpr-navlinks {
  /* flex:1 + min-width:0 (not absolute-positioned centering) so a longer
     translation shrinks/scrolls within its own middle segment instead of
     overlapping .rpr-brand or .rpr-nav-right, which are independently
     positioned and have no awareness of this element's actual width —
     confirmed live with the Portuguese menu, whose longer labels pushed a
     true-centered (position:absolute; left:50%) nav bar's right edge into
     the language switcher/Apply Now button. overflow-x is a last-resort
     safety valve, not the primary fix — it only engages if a language's
     labels are too long to fit even after this element has claimed all
     available space between the brand and the right-side controls.
     Centering itself now lives on .rpr-navlinks-list below, NOT here as
     justify-content — a flex container that's both `justify-content:
     center` AND `overflow-x:auto` has a well-known bug: when content is
     wider than the box, the browser still centers it around the midpoint,
     so part of the overflow spills to the LEFT of the scrollable origin
     (scrollLeft:0) where standard LTR scrolling can never reach it —
     confirmed live with Russian (scrollWidth 668px in a 655px box, first
     item's own left edge sitting 13px to the left of this container's own
     edge, its first letter permanently clipped). `width:fit-content` +
     `margin:0 auto` on the inner list avoids this: those auto margins
     center it exactly like justify-content does while there's room, but
     resolve to 0 instead of negative once content is wider than the
     container — so it degrades to flush-left-and-scrollable, starting
     from the TRUE beginning of the content, instead of clipping it. */
  flex: 1 1 auto;
  min-width: 0;
  height: var(--nav-height);
  overflow-x: auto;
  scrollbar-width: none;
}
.rpr-navlinks::-webkit-scrollbar {
  display: none;
}
.rpr-navlinks-list {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  width: fit-content;
  margin: 0 auto;
  height: 100%;
  list-style: none;
  padding: 0;
}
.rpr-navlinks li {
  list-style: none;
  flex-shrink: 0;
}
.rpr-navlinks a {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.rpr-navlinks a:hover,
.rpr-navlinks .current-menu-item > a,
.rpr-navlinks .current_page_item > a {
  color: var(--accent-500);
  border-bottom-color: var(--accent-500);
}

/* Dropdown (e.g. "Guest Resources" parent + its 6 children) — the
   dropdown panel is `position:fixed`, not `absolute`, and positioned by
   JS (assets/js/main.js) from the trigger's own bounding rect: .rpr-
   navlinks has `overflow-x:auto` (see its own comment above) for long
   translated labels, which would otherwise clip an absolutely-positioned
   panel even when nothing is actually scrolling. */
.rpr-navlinks li.menu-item-has-children > a {
  gap: 4px;
}
/* The chevron itself is a real Lucide icon (rpr_nav_menu_dropdown_chevron(),
   inc/setup.php — appended via the nav_menu_item_title filter, rendered as
   inline SVG by lucide.createIcons() same as everywhere else in the theme),
   not a CSS pseudo-element — matches the language switcher's own icon. */
.rpr-navlinks .rpr-nav-chevron {
  flex-shrink: 0;
  color: currentColor;
}
.rpr-navlinks .sub-menu {
  position: fixed;
  display: none;
  min-width: 200px;
  list-style: none;
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 8px;
  z-index: 200;
}
.rpr-navlinks .sub-menu.is-open {
  display: block;
}
.rpr-navlinks .sub-menu li {
  list-style: none;
}
.rpr-navlinks .sub-menu a {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: none;
  border-radius: 6px;
  white-space: nowrap;
}
.rpr-navlinks .sub-menu a:hover,
.rpr-navlinks .sub-menu .current-menu-item > a {
  background: var(--paper-dim);
  color: var(--accent-500);
}

.rpr-nav-right {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Language switcher */
.rpr-lang {
  position: relative;
}
.rpr-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.rpr-lang-current-flag {
  font-size: 16px;
  line-height: 1;
}
.rpr-lang-current-code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.rpr-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 180px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 40;
}
.rpr-lang-dropdown[hidden] {
  display: none;
}
.rpr-lang-option {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
}
.rpr-lang-option:last-child {
  border-bottom: none;
}
.rpr-lang-option:hover {
  background: var(--paper-dim);
  color: var(--accent-500);
}
.rpr-lang-option.is-active {
  color: var(--accent-500);
  font-weight: 600;
}
.rpr-lang-flag {
  font-size: 18px;
  line-height: 1;
}

.rpr-hamburger {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.rpr-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-900);
}

.rpr-mobile-menu[hidden] {
  display: none;
}
.rpr-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.rpr-mobile-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  padding: 0;
}
.rpr-mobile-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  height: 100%;
  width: min(320px, 82vw);
  background: var(--surface-card);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow-y: auto;
}
.rpr-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rpr-mobile-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.rpr-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rpr-mobile-links a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: none;
  padding: 15px 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.rpr-mobile-links li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rpr-mobile-links .rpr-nav-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 160ms ease;
}
.rpr-mobile-links li.menu-item-has-children.is-open .rpr-nav-chevron {
  transform: rotate(180deg);
}
.rpr-mobile-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.rpr-mobile-links li.menu-item-has-children.is-open .sub-menu {
  display: block;
}
.rpr-mobile-links .sub-menu a {
  padding-left: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
/* Pinned to the bottom of the drawer (margin-top:auto in a flex column)
   regardless of how many nav links sit above it. */
.rpr-mobile-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  .rpr-navlinks,
  .rpr-nav-right {
    display: none;
  }
  .rpr-hamburger {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.rpr-hero {
  position: relative;
  padding: 72px 0 56px;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
}
.rpr-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 48px);
  max-width: 900px;
}
.rpr-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
}
.rpr-hero-dark {
  background: var(--ink-900);
  color: #fff;
  padding: 64px 0;
}
.rpr-hero-dark h1 {
  color: #fff;
}

/* Photo hero: real image + dark scrim, used when a stock/featured photo is available */
.rpr-hero-photo {
  position: relative;
  padding: 64px 0;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.rpr-hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rpr-hero-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 20, 15, 0.15) 0%,
    rgba(23, 20, 15, 0.55) 100%
  );
  z-index: 1;
}
.rpr-hero-photo-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.rpr-hero-photo-content .rpr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rpr-hero-photo h1 {
  color: #fff;
}
/* Same small uppercase label treatment as the Guest-Resources-family
   hero's own title (.rpr-hero-photo span.rpr-hero-photo-title below) —
   kept as a real <h1> here (unlike that shared banner) since this genuinely
   is Partner With Us's own page title, just styled to match. Currently the
   only other <h1 class="rpr-hero-photo-title"> in the theme. */
.rpr-hero-photo h1.rpr-hero-photo-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* When hero-photo.php is called with `heading_tag: 'span'` (the shared
   Guest-Resources-family banner, template-parts/guest-resources-header.php
   — its title is identical across 6 pages, so it's demoted to a plain
   label rather than any of their real <h1>s) — small uppercase label
   styling instead of full heading size/weight. */
.rpr-hero-photo span.rpr-hero-photo-title {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.rpr-hero-photo-title-upper {
  margin: 0;
}
.rpr-hero-divider {
  width: 340px;
  max-width: 80%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
}
.rpr-hero-photo p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

/* ---------- Homepage hero + search bar ---------- */
/*
 * A single crossfade carousel: slide 1 is the site's own Hero (photo +
 * heading/subheading/CTA), slides 2+ are one per `promotion` post — sharing
 * .rpr-home-hero-scrim/-content so both slide types read as one continuous
 * design instead of two stitched-together sections. Every slide has
 * exactly one background photo (.rpr-home-hero-slide-img) — the hero used
 * to internally crossfade between 3 stock photos on its own, but now that
 * it's one slide among several in a carousel that already auto-advances,
 * that inner animation was redundant; simplified to match every other
 * slide's single-photo shape.
 *
 * All slides stack in the same box (position:absolute, inset:0) and
 * crossfade via opacity — assets/js/main.js's makeFadeCarousel() toggles
 * .is-active (auto-advancing on a timer, or via the prev/next arrows),
 * rather than the scroll-snap/horizontal-slide mechanic used elsewhere in
 * this theme (testimonials, neighborhood tiles) — a deliberate difference
 * for this one carousel, not an oversight.
 */
.rpr-home-hero {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  height: min(70vh, 560px);
  min-height: 340px;
  color: #fff;
  background: var(--ink-900);
}
.rpr-home-hero-track {
  position: absolute;
  inset: 0;
  /* Hints to the browser that this element handles horizontal gestures
     itself (assets/js/main.js's pointer-based swipe detection) rather than
     the page's own vertical scroll/zoom touch handling fighting it. */
  touch-action: pan-y;
}
.rpr-home-hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms ease,
    visibility 0s linear 900ms;
  z-index: 0;
}
.rpr-home-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease;
  z-index: 1;
}
.rpr-home-hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rpr-home-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 20, 15, 0.15) 0%,
    rgba(23, 20, 15, 0.42) 100%
  );
  z-index: 1;
}
.rpr-home-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  max-width: 960px;
}
@media (max-width: 900px) {
  .rpr-home-hero-content {
    max-width: 85vw;
  }
}
.rpr-home-hero-content .rpr-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  padding: 8px 12px;
}
.rpr-home-hero-content h1,
.rpr-home-hero-content h2 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.2;
}
.rpr-home-hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 700;
  max-width: 640px;
  margin: 18px auto 0;
}
.rpr-home-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  opacity: 0.8;
}
.rpr-home-hero-prev {
  left: 32px;
}
.rpr-home-hero-next {
  right: 32px;
}
@media (max-width: 780px) {
  /* Swipe/drag (assets/js/main.js) handles navigation on touch devices —
     the round arrow buttons mainly just add visual clutter over the photo
     at this width. */
  .rpr-home-hero-nav {
    display: none;
  }
}

.rpr-searchbar-wrap {
  position: relative;
  z-index: 20;
}
/*
 * Reuses the Listings page's own .rpr-filter-dropdown fields (style.css
 * further down) inside this card — same Areas/Amenities/Room Types filters,
 * same generic dropdown-toggle JS (assets/js/main.js) — but rendered as ONE
 * seamless bar (no gaps, hairline dividers between segments) rather than
 * the Listings page's own separated pill style, to match this page's own
 * reference design. There is deliberately no free-text search field here —
 * just the filter dropdowns + a Search button, which GET-submits straight
 * to the Listings page. Checkbox changes do NOT auto-submit here
 * (data-rpr-no-autosubmit on the <form> in front-page.php) — unlike the
 * Listings page's live-filtering, this bar only ever redirects there, so it
 * waits for a deliberate "Search" click instead of navigating away the
 * instant a box is checked.
 */
.rpr-searchbar {
  width: fit-content;
  max-width: 100%;
  margin: -38px auto 0;
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.rpr-searchbar .rpr-filter-dropdown {
  border-right: 1px solid var(--border-subtle);
}
.rpr-searchbar .rpr-filter-dropdown-toggle {
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 20px;
  white-space: nowrap;
}
.rpr-searchbar > button[type="submit"] {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--brand-contrast);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 26px;
  border-radius: var(--r-sm);
}

/*
 * .rpr-container sets its own z-index:1, so every section's container is
 * its own stacking context — later sibling sections would otherwise paint
 * over this one's dropdown popovers (Areas/Amenities/Room Types) regardless
 * of their own z-index, since that z-index is trapped inside this context
 * and can't outrank a *later* sibling container. Lift this one above them.
 */
/*
 * Filters trigger — hidden by default (desktop AND tablet, where the
 * dropdowns render inline); shown only below the phone breakpoint, where
 * the SAME dropdowns instead live inside a real popup, reusing this
 * theme's existing generic modal system (data-rpr-modal-open/-close,
 * assets/js/main.js — the same mechanism the booking/amenities modals
 * already use). Shared by two independent instances: the home page's
 * filter bar (#rpr-searchbar-filters-modal, front-page.php) and the
 * Listings page's own filter bar (#rpr-listings-filters-modal, page-
 * templates/template-listings.php) — same UI pattern, one shared CSS
 * block, rather than duplicating it per page. On the home page, the Search
 * button stays OUTSIDE the modal as a sibling — only the filter dropdowns
 * move into the popup.
 *
 * Each modal uses `display:contents` at desktop/tablet rather than a
 * "static/block, strip the chrome" override — `display:contents` makes the
 * wrapper's own box disappear for layout purposes while its children (the
 * dropdown divs, once .rpr-modal-panel is also `display:contents`) become
 * direct flex-items of their real parent bar again, landing in exactly the
 * same position they'd occupy if this wrapper didn't exist — so neither
 * bar's inline layout needs any other change.
 *
 * The two `display:contents` overrides target each modal's ID specifically
 * (not just the shared .rpr-filters-modal class) — the base .rpr-modal/
 * .rpr-modal[hidden] rules live later in this file and have EQUAL
 * specificity to a same-shape class selector, so a same-specificity
 * override earlier in the file loses the cascade regardless of how correct
 * it looks; an ID selector always wins regardless of source order. (This is
 * exactly the bug that made the desktop bar disappear entirely the first
 * time this was built with class-only selectors.)
 *
 * The collapse point is deliberately phone-only (600px), not the
 * tablet-portrait breakpoint used elsewhere in this file (860px) — tablet
 * should show the same inline bar as desktop, only phones get the popup.
 */
.rpr-filters-trigger {
  display: none;
  position: relative; /* anchors .rpr-filters-count */
}
/*
 * Count badge — shows how many filter checkboxes (inside this trigger's
 * own popup) are currently checked, so the icon-only trigger still
 * communicates active filters even though the dropdowns themselves are
 * hidden inside the popup at this width. Updated live by assets/js/
 * main.js; hidden via the [hidden] attribute (not display:none here)
 * so JS only has to toggle one property.
 */
.rpr-filters-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 600px) {
  .rpr-filters-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    height: 58px;
    background: var(--surface-card);
    border: none;
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
  }
  /* Shares one row with the Search button (no dropdowns visible here —
     they're inside the popup this trigger opens) instead of each wrapping
     onto its own line. */
  .rpr-searchbar > button[type="submit"] {
    flex: 1 1 auto;
    height: 58px;
  }
  /* Inside the popup (phones only): stacked full-width rows instead of
     the inline bar's horizontal divider style. */
  #rpr-searchbar-filters-modal .rpr-filter-dropdown,
  #rpr-listings-filters-modal .rpr-filter-dropdown {
    border-bottom: 1px solid var(--border-subtle);
  }
  #rpr-searchbar-filters-modal .rpr-filter-dropdown-toggle,
  #rpr-listings-filters-modal .rpr-filter-dropdown-toggle {
    width: 100%;
  }
  #rpr-searchbar-filters-modal .rpr-filter-dropdown-panel,
  #rpr-listings-filters-modal .rpr-filter-dropdown-panel {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    margin-top: 8px;
  }
  .rpr-filters-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
  }
  .rpr-filters-apply {
    width: 100%;
  }
}

/*
 * Between phone and the width where the bar fits on one line (~710px, per
 * live measurement — the 3 filter dropdowns plus the Search button no
 * longer share a row below that), the button wraps onto its own row (see
 * the unconditional flex-wrap: wrap above). Match it to full width and to
 * the filter row's own rendered height (58px, live-measured from
 * .rpr-filter-dropdown-toggle's padding) so the two rows read as one
 * continuous bar instead of a short button floating under a taller row.
 * Scoped to 601-710px only — at 600px and below, the dropdowns are inside
 * the Filters popup instead (see the 600px block above), so the button
 * shares a row with the Filters trigger there rather than wrapping alone.
 */
@media (min-width: 601px) and (max-width: 710px) {
  .rpr-searchbar > button[type="submit"] {
    flex: 1 1 100%;
    height: 58px;
  }
}

@media (min-width: 601px) {
  #rpr-searchbar-filters-modal,
  #rpr-listings-filters-modal {
    display: contents;
  }
  #rpr-searchbar-filters-modal[hidden],
  #rpr-listings-filters-modal[hidden] {
    display: contents;
  }
  .rpr-filters-modal .rpr-modal-panel,
  .rpr-filters-modal .rpr-filters-modal-footer {
    display: contents;
  }
  .rpr-filters-modal .rpr-modal-backdrop,
  .rpr-filters-modal .rpr-modal-header,
  .rpr-filters-modal .rpr-filters-apply {
    display: none;
  }
}

/*
 * .rpr-search-option-row: shared option-button styling for simple popover
 * lists — currently just the Listings page's sort dropdown
 * (page-templates/template-listings.php, wrapped in its own
 * .rpr-filter-dropdown-panel).
 */
.rpr-search-option-row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.rpr-search-option-row:last-child {
  border-bottom: none;
}
.rpr-search-option-row:hover {
  background: var(--surface-sunken);
}
.rpr-search-option-row.is-active {
  color: var(--accent-500);
  font-weight: 700;
}

/* ---------- "Our Story" split section (Home) ---------- */
/*
 * Left column: small tracked-out eyebrow (.rpr-meta, reused as-is — the
 * theme's existing generic caption style) + a big bold heading. Right
 * column: one or two body paragraphs. A hairline rule across the top of
 * the whole section separates it from the search bar above.
 */
.rpr-story-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 44px;
}
.rpr-story-split-label .rpr-meta {
  display: block;
  margin-bottom: 12px;
}
.rpr-story-split-body {
  padding-top: 4px;
}
.rpr-story-split-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.rpr-story-split-body p:last-child {
  margin-bottom: 0;
}
@media (max-width: 780px) {
  .rpr-story-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Testimonials + rating badge (Home) ---------- */
.rpr-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--clay-50);
  border: 1px solid var(--clay-100);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
a.rpr-rating-badge:hover {
  background: var(--clay-100);
}
.rpr-rating-badge-arrow {
  transition: transform 160ms ease;
}
a.rpr-rating-badge:hover .rpr-rating-badge-arrow {
  transform: translateX(3px);
}
.rpr-rating-badge-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
}
.rpr-rating-badge-count {
  font-size: 13.5px;
  color: var(--accent-500);
  font-weight: 600;
}
.rpr-testimonial-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-card);
}
.rpr-testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent-500);
}
.rpr-testimonial-quote {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-900);
  margin: 0;
  /* Collapsed by default — assets/js/main.js only reveals the "Show
     more"/"Show less" toggle below when this clamp is actually cutting
     something off (scrollHeight > clientHeight), so a short quote that
     already fits within 4 lines never shows a toggle at all. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.rpr-testimonial-quote.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.rpr-testimonial-quote-toggle {
  align-self: flex-start;
  /* .rpr-testimonial-card is a column flexbox with its own 18px `gap`
     between children — too much air between the quote and a small text
     link that belongs right underneath it, so this pulls it back up. */
  margin-top: -10px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-500);
  cursor: pointer;
}
.rpr-testimonial-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}
.rpr-testimonial-name {
  font-size: 13.5px;
  font-weight: 700;
}
.rpr-testimonial-location {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.rpr-testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-500);
}

/* ---------- Reviews page (page-templates/template-reviews.php) — a
   static grid of every published testimonial, same card as Home's
   carousel, just no track/nav ---------- */
.rpr-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .rpr-reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .rpr-reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Promotions page (page-templates/template-promotions.php) —
   every published promotion as a stacked full-width banner, same fields/
   visual language as Home's hero-carousel promo slides (front-page.php),
   just a plain vertical stack instead of a slider. ---------- */
.rpr-promo-banner-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rpr-promo-banner {
  position: relative;
  display: block;
  height: 280px;
  border-radius: var(--r-sm);
  overflow: hidden;
  text-decoration: none;
}
.rpr-promo-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.rpr-promo-banner:hover .rpr-promo-banner-img {
  transform: scale(1.05);
}
.rpr-promo-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 20, 15, 0.15) 0%,
    rgba(23, 20, 15, 0.5) 100%
  );
}
.rpr-promo-banner-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
  max-width: 640px;
}
.rpr-promo-banner-content .rpr-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
}
.rpr-promo-banner-content h3 {
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
}
.rpr-promo-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 620px) {
  .rpr-promo-banner {
    height: auto;
  }
  .rpr-promo-banner-content {
    padding: 24px;
  }
}

/* ---------- "What You Can Expect" feature grid (Home) ---------- */
.rpr-expect-section h2 {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.rpr-expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}
.rpr-expect-item {
  padding-bottom: 20px;
}
.rpr-expect-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.rpr-expect-item-head h3 {
  margin: 0;
  font-size: 16px;
}
.rpr-expect-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.rpr-expect-footnote {
  margin: 24px 0 0;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .rpr-expect-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .rpr-expect-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections ---------- */
.rpr-section {
  padding: 56px 0;
}
/*
 * Two standard reduced-top variants, replacing what used to be a
 * different one-off inline padding-top on nearly every template:
 * - rpr-section-after-hero: a section immediately below a hero band,
 *   which already provides its own visual separation above.
 * - rpr-section-top-nav: a page with no hero, opening straight into a
 *   breadcrumb or "back" link before the main heading/content.
 */
.rpr-section-after-hero {
  padding-top: 0px;
}
/*
 * position+z-index here for the same reason as .rpr-searchbar-wrap
 * above: .rpr-container sets its own z-index:1, trapping any modal/
 * popover nested inside it in that container's own stacking context.
 * Two LATER same-page elements tie into that same trap and win on DOM
 * order otherwise: the footer's .rpr-container (z-index:1) AND the
 * bottom CTA banner's .rpr-photo-cta-content (z-index:2, shared by every
 * page via template-parts/global-cta.php) — a first attempt at z-index:2
 * here just re-created the identical tie against that second one. Using
 * the same z-index:20 already established for .rpr-searchbar-wrap gives
 * real headroom above both instead of matching whatever the next
 * z-index collision happens to be.
 */
.rpr-section-top-nav {
  position: relative;
  z-index: 20;
  padding-top: 28px;
}
.rpr-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 560px) {
  .rpr-testimonials-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ---------- Cards: listings ---------- */
.rpr-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rpr-listings-layout.rpr-map-open .rpr-listing-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .rpr-listing-grid,
  .rpr-listings-layout.rpr-map-open .rpr-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .rpr-listing-grid,
  .rpr-listings-layout.rpr-map-open .rpr-listing-grid {
    grid-template-columns: 1fr;
  }
}
.rpr-listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-card);
  transition: box-shadow 160ms ease;
}
.rpr-listing-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.rpr-listing-card .rpr-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper-dim);
  overflow: hidden;
}
/*
 * A real sliding track (transform, not the old opacity-crossfade) — every
 * photo sits side by side and .rpr-card-track's own transition animates
 * between them, giving genuine slide motion rather than a fade. Position
 * is driven entirely by assets/js/main.js setting translateX(); there's
 * no per-slide "is-active" class to toggle any more.
 */
.rpr-card-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
}
.rpr-card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  /* Without this, a flex item's default min-width:auto lets its content
     (the <img>'s own intrinsic dimensions from wp_get_attachment_image())
     push it wider than the 100% flex-basis above — the visible symptom
     was a sliver of the next photo peeking through on the right edge. */
  min-width: 0;
  overflow: hidden;
}
.rpr-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rpr-card-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  margin-bottom: 0;
  pointer-events: none;
}
.rpr-card-badges-overlay .rpr-badge {
  background: rgba(255, 255, 255, 0.92);
}
/*
 * A real, continuous strip with one dot per photo (not capped at 5) —
 * .rpr-card-dots is a small fixed-width VIEWPORT (exactly enough for 5
 * dots + gaps) with overflow hidden, and .rpr-card-dots-track inside it
 * physically slides via transform (assets/js/main.js), so a longer
 * gallery's extra dots are simply clipped off rather than needing a fake
 * proportional mapping onto a fixed 5. The active dot naturally stays
 * near the middle of the viewport as the track slides underneath it.
 * 6px dot + 6px gap = 12px per dot step; 5 dots + 4 gaps = 54px viewport.
 */
.rpr-card-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 54px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 160ms ease;
}
.rpr-listing-card:hover .rpr-card-dots {
  opacity: 1;
}
.rpr-card-dots-track {
  display: flex;
  gap: 6px;
  transition: transform 250ms ease;
}
.rpr-card-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
}
.rpr-card-dot.is-active {
  background: #fff;
}
.rpr-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 160ms ease;
}
.rpr-listing-card:hover .rpr-card-nav {
  opacity: 1;
}
/* The slider no longer wraps — at either end, the corresponding arrow
   disables itself (assets/js/main.js) rather than looping back around. */
.rpr-card-nav:disabled {
  cursor: default;
}
.rpr-listing-card:hover .rpr-card-nav:disabled {
  opacity: 0.3;
}
.rpr-card-nav-prev {
  left: 10px;
}
.rpr-card-nav-next {
  right: 10px;
}
.rpr-listing-card .rpr-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--clay-50), var(--paper-dim));
}
.rpr-listing-body {
  padding: 16px 18px 18px;
}
.rpr-listing-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rpr-listing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.rpr-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--clay-50);
  color: var(--clay-700);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}
.rpr-listing-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.rpr-listing-meta {
  font-size: 13px;
  color: var(--text-secondary);
}
.rpr-listing-card .rpr-listing-meta {
  margin-top: 6px;
}
.rpr-property-subline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}
.rpr-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--clay-500);
  font-weight: 700;
}
.rpr-amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.rpr-amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- Property detail ---------- */
.rpr-btn-plain-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}
/*
 * Dynamic bento/masonry gallery: the grid template is chosen by how many
 * photos are actually visible (rpr-gallery-bento--count-1 through -5 — see
 * single-property.php, which caps the visible grid at 5 and always sends
 * every photo to the lightbox regardless of that cap), so there's never an
 * empty cell from a fixed template expecting more photos than exist.
 */
.rpr-gallery-bento {
  display: grid;
  gap: 8px;
  height: 440px;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 32px;
}
.rpr-gallery-cell {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.rpr-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rpr-gallery-bento--count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.rpr-gallery-bento--count-2 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
}
.rpr-gallery-bento--count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.rpr-gallery-bento--count-3 > .rpr-gallery-cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.rpr-gallery-bento--count-3 > .rpr-gallery-cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.rpr-gallery-bento--count-3 > .rpr-gallery-cell:nth-child(3) {
  grid-column: 1 / span 2;
  grid-row: 2;
}
/*
 * Every cell below is placed with an explicit grid-column AND grid-row —
 * relying on auto-placement for a spanning cell with no explicit column is
 * fragile: once the other cells fill row 1 across all 3 columns, the
 * browser has nowhere left to start a 2-row span in row 1 and pushes it
 * into a new implicit row instead, leaving a visible gap. Being explicit
 * sidesteps that entirely.
 */
.rpr-gallery-bento--count-4 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}
.rpr-gallery-bento--count-4 > .rpr-gallery-cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.rpr-gallery-bento--count-4 > .rpr-gallery-cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.rpr-gallery-bento--count-4 > .rpr-gallery-cell:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.rpr-gallery-bento--count-4 > .rpr-gallery-cell:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / span 2;
}
/*
 * count-5: the same big-left-cell layout as count-4, but the right side is
 * a true 2-column x 2-row grid (4 photos) instead of a 2-stack + 1 tall
 * cell — this is the standard/max bento layout; a property with more than
 * 5 photos still only ever shows these 5, with "View gallery" as the way
 * to the rest.
 */
.rpr-gallery-bento--count-5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}
.rpr-gallery-bento--count-5 > .rpr-gallery-cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.rpr-gallery-bento--count-5 > .rpr-gallery-cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.rpr-gallery-bento--count-5 > .rpr-gallery-cell:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.rpr-gallery-bento--count-5 > .rpr-gallery-cell:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}
.rpr-gallery-bento--count-5 > .rpr-gallery-cell:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}
.rpr-gallery-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  margin-bottom: 0;
}
.rpr-gallery-view-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 7px 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
.rpr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 9, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rpr-lightbox[hidden] {
  display: none;
}
.rpr-lightbox-backdrop {
  position: absolute;
  inset: 0;
}
.rpr-lightbox-stage {
  position: relative;
  z-index: 1;
}
.rpr-lightbox-img {
  display: none;
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.rpr-lightbox-img.is-active {
  display: block;
}
.rpr-lightbox-close,
.rpr-lightbox-prev,
.rpr-lightbox-next {
  position: absolute;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rpr-lightbox-close {
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
}
.rpr-lightbox-prev,
.rpr-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.rpr-lightbox-prev {
  left: 20px;
}
.rpr-lightbox-next {
  right: 20px;
}
.rpr-lightbox-counter {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
}
/*
 * Now just the Good to Know section's own spacing/icon-gap on top of the
 * shared .rpr-btn.rpr-btn-outline.rpr-btn-sm look (single-property.php) —
 * used to be a standalone plain-text link style; kept as a distinct class
 * only for this one-off margin, not for its own visual identity anymore.
 */
.rpr-more-detail-link {
  gap: 7px;
  margin-top: 22px;
}
.rpr-property-price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 28px;
}
.rpr-property-price span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
/*
 * Three grid items now (intro / sidebar / main), not two — .rpr-property-
 * intro and .rpr-property-main share column 1 as two separate rows so
 * desktop looks exactly as before, but since CSS `order` only ever
 * reorders DIRECT siblings of the same grid container, splitting the
 * title block out from the rest of the content is what lets mobile
 * (below) visually place the sidebar right after the intro instead of
 * at the very bottom, without touching source/tab order.
 */
.rpr-property-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  column-gap: 48px;
  row-gap: 0;
  align-items: start;
}
.rpr-property-intro {
  grid-column: 1;
  grid-row: 1;
}
.rpr-property-main {
  grid-column: 1;
  grid-row: 2;
}
.rpr-property-sidebar {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.rpr-property-main h2 {
  margin-top: 44px;
}
.rpr-page-content h2 {
  margin-top: 32px;
}
.rpr-page-content > p:first-of-type em {
  color: var(--text-muted);
}
.rpr-good-to-know-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.rpr-good-to-know-col .rpr-meta {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
}
.rpr-good-to-know-col p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.rpr-good-to-know-col p:last-child {
  margin-bottom: 0;
}
.rpr-property-sidebar {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 24px;
  background: var(--surface-card);
}
.rpr-amenity-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.rpr-amenity-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.rpr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rpr-modal[hidden] {
  display: none;
}
.rpr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 26, 0.6);
}
.rpr-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.rpr-modal-panel::-webkit-scrollbar {
  width: 7px;
}
.rpr-modal-panel::-webkit-scrollbar-track {
  background: transparent;
}
.rpr-modal-panel::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.rpr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.rpr-modal-header h3 {
  margin: 0;
}
.rpr-modal-close {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
}
/* ---------- "Reserve Now" popup (template-parts/booking-options-
   modal.php) — renders the Booking Options page's own .rpr-booking-
   detail-grid/.rpr-booking-detail-card markup (styling lives with that
   grid further down) from the SAME rpr_gr_booking_options repeater, so
   editing that page keeps this popup's copy AND look — including the
   side-by-side 2-column layout — in sync automatically. Just wider than
   the default modal to comfortably fit 2 full detail cards side by side;
   .rpr-booking-detail-grid's own @media (max-width: 780px) rule already
   collapses it to 1 column below that width, same as the real page. ---------- */
.rpr-booking-options-modal-panel {
  max-width: 1040px;
  /* .rpr-modal wraps this in 24px of padding on every side (see above) —
     max-height can safely go right up to that, rather than the base
     .rpr-modal-panel's more conservative 80vh, since this content is
     longer than a typical popup and was clipping into its own scrollbar
     on shorter viewports. */
  max-height: calc(100vh - 48px);
}
/*
 * Compact overrides on top of .rpr-booking-detail-card's own styling
 * (further down) — the real Booking Options page has a full page of
 * vertical room per card; this popup needs both cards' full text to fit
 * comfortably in a modal without excess scrolling, so everything here
 * scales down a step (tighter padding/type/spacing) rather than reusing
 * the page's own sizes as-is. Scoped to .rpr-booking-options-modal-panel
 * only — the real page's cards are untouched.
 */
.rpr-booking-options-modal-panel .rpr-booking-detail-grid {
  gap: 16px;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card {
  padding: 18px 20px;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card > p,
.rpr-booking-options-modal-panel .rpr-booking-detail-card li {
  font-size: 12.5px;
  line-height: 1.55;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card > p {
  margin-bottom: 10px;
}
.rpr-booking-options-modal-panel
  .rpr-booking-detail-card
  > p:has(> strong:only-child) {
  margin: 14px 0 6px;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card ul {
  margin-bottom: 10px;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card blockquote {
  padding: 10px 12px;
  margin: 10px 0;
}
.rpr-booking-options-modal-panel .rpr-booking-detail-card blockquote p {
  font-size: 12px;
}
.rpr-amenity-list-modal {
  grid-template-columns: 1fr 1fr;
}
/*
 * "All Amenities" modal groups: each group gets a small bold label (same
 * caption-over-content pattern as .rpr-good-to-know-col's own heading)
 * with a divider under it, then its own 2-column amenity list.
 */
.rpr-amenity-group {
  margin-bottom: 26px;
}
.rpr-amenity-group:last-child {
  margin-bottom: 0;
}
.rpr-amenity-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 640px) {
  .rpr-amenity-list-modal {
    grid-template-columns: 1fr;
  }
  .rpr-amenity-list {
    grid-template-columns: 1fr;
  }
}
.rpr-map-embed {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 320px;
}
.rpr-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.rpr-share-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.rpr-share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--ink-900);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.rpr-share-btn:hover {
  border-color: var(--accent-500);
  color: var(--accent-500);
}

@media (max-width: 900px) {
  .rpr-property-layout {
    grid-template-columns: 1fr;
    /* Desktop sets row-gap: 0 since .rpr-property-intro/.rpr-property-main
       share a column there and rely on their own internal margins for
       spacing — but stacked on mobile, that left zero space between
       whichever section now lands above another (e.g. the sidebar's own
       "Share this room" row butting straight into the description). */
    row-gap: 32px;
  }
  .rpr-gallery-bento {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    height: auto;
  }
  .rpr-gallery-bento > .rpr-gallery-cell {
    grid-row: auto !important;
    height: 220px;
  }
  .rpr-property-intro,
  .rpr-property-sidebar,
  .rpr-property-main {
    grid-column: 1;
    grid-row: auto;
  }
  .rpr-property-intro {
    order: 1;
  }
  .rpr-property-sidebar {
    position: static;
    order: 2;
  }
  .rpr-property-main {
    order: 3;
  }
}

/* ---------- Filter bar (Properties archive) ---------- */
.rpr-listings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.rpr-listings-layout.rpr-map-open {
  grid-template-columns: 1fr 1fr;
}
.rpr-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-strong);
}
.rpr-filter-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.rpr-filter-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.rpr-filter-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--surface-card);
}
.rpr-filter-dropdown {
  position: relative;
}
.rpr-filter-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  min-width: 150px;
  justify-content: space-between;
}
.rpr-filter-dropdown-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rpr-filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
}
.rpr-filter-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
}
.rpr-filter-check-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rpr-filter-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-500);
}
.rpr-filter-check-count {
  color: var(--text-muted);
}
.rpr-clear-all {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-500);
  text-decoration: none;
}
.rpr-listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.rpr-map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-900);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  /* Same padding/font-size as .rpr-filter-dropdown-toggle (Area/Amenities/
     Room Type) so it's the same height/size in the filter bar row. */
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}
.rpr-map-panel {
  display: none;
}
.rpr-listings-layout.rpr-map-open .rpr-map-panel {
  display: block;
  position: sticky;
  top: 24px;
  /* Matches .rpr-contact-map's own size/rounding (page-templates/
     template-contact.php) for visual consistency between the two real
     maps on the site. */
  height: 560px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
}
.rpr-map-panel iframe,
#rpr-listings-map {
  width: 100%;
  height: 100%;
  border: 0;
}
/*
 * Leaflet's own marker-cluster bubble + popup, restyled to match the
 * theme's own card/button language rather than the library's default
 * look — see assets/js/listings-map.js for the popup markup.
 */
.rpr-map-marker-popup {
  width: 180px;
  font-family: var(--font-sans);
}
.rpr-map-marker-popup img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 7px;
  display: block;
}
.rpr-map-marker-popup-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}
.rpr-map-marker-popup-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.rpr-map-marker-popup-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-500);
  margin-bottom: 8px;
}
/*
 * Leaflet's own leaflet.css sets `.leaflet-container a { color: #0078A8; }`
 * — a class+element selector that out-specifies a plain `.rpr-btn-primary`
 * class rule, which is why the button rendered as a bare blue link with no
 * background at all. Matching that specificity shape here (element + 2
 * classes) and setting color/background explicitly guarantees this wins
 * regardless of CSS load order.
 */
.rpr-map-marker-popup a.rpr-btn.rpr-btn-primary {
  width: 100%;
  height: auto;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--brand);
  color: var(--brand-contrast);
}
.rpr-map-marker-popup a.rpr-btn.rpr-btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-contrast);
}
/* Popup card: Leaflet's own 12px radius + heavy default shadow replaced
   with the theme's own sharp corner + a lighter, closer-matching shadow. */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: var(--r-sm);
  box-shadow: 0 10px 28px rgba(22, 22, 26, 0.18);
}
/*
 * !important: Leaflet's own default here is `margin: 13px 24px 13px 20px`
 * (asymmetric — 20px left, 24px right, 13px top/bottom) on the exact same
 * `.leaflet-popup-content` selector, so it ties on specificity with a
 * plain override and — since Leaflet's stylesheet loads after ours —
 * wins on load order, which is why the card never actually had even
 * padding despite the earlier attempt to set it uniformly.
 */
.leaflet-popup-content {
  margin: 12px !important;
}
/*
 * !important throughout: Leaflet's own `.leaflet-container a.leaflet-
 * popup-close-button` rule is already 2 classes + an element and loads
 * after our stylesheet, so — same as the margin/color overrides above —
 * a plain re-declaration would tie on specificity and lose to Leaflet's
 * own plain-grey-text default.
 */
.leaflet-container a.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  border-radius: 50% !important;
  background: var(--brand) !important;
  color: var(--brand-contrast) !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
  background: var(--brand-hover) !important;
  color: var(--brand-contrast) !important;
}
/*
 * Custom pin (assets/js/listings-map.js's L.divIcon) — a plain circular
 * dot in the theme's own ink color rather than Leaflet's default blue
 * teardrop marker image, so a zoomed-in, un-clustered map still reads as
 * this theme's own UI rather than a generic Leaflet demo.
 *
 * Just `.rpr-map-pin`, not a compound `.leaflet-div-icon.rpr-map-pin`:
 * passing a custom `className` to L.divIcon() REPLACES its default
 * `'leaflet-div-icon'` className rather than adding to it, so the div
 * never actually carries that class at all — a compound selector for it
 * would simply never match, leaving the pin completely unstyled (and
 * invisible, since nothing else gives it a background).
 */
.rpr-map-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(22, 22, 26, 0.45);
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(22, 22, 26, 0.15);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--ink-900);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
}

@media (max-width: 900px) {
  .rpr-listings-layout,
  .rpr-listings-layout.rpr-map-open {
    grid-template-columns: 1fr;
  }
  .rpr-listings-layout.rpr-map-open .rpr-map-panel {
    height: 400px;
    /* The map panel is the second child in the markup (listings content,
       then map) — on mobile's single-column stack that would put it below
       the cards. `order` visually moves it to the top instead, without
       touching source order (desktop's side-by-side layout doesn't use
       `order` at all, so this is mobile-only). */
    order: -1;
  }
}

/* ---------- Blog ---------- */
.rpr-blog-hero {
  padding: 56px 0 12px;
}
.rpr-blog-hero h1 {
  max-width: 720px;
  margin: 0 0 16px;
}
.rpr-blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.rpr-blog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.rpr-blog-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.rpr-blog-pill:hover,
.rpr-blog-pill.is-active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.rpr-blog-search {
  position: relative;
  width: 260px;
  max-width: 100%;
  display: flex;
  align-items: center;
}
.rpr-blog-search svg,
.rpr-blog-search i {
  position: absolute;
  left: 13px;
}
.rpr-blog-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-primary);
  background: #fff;
}

.rpr-blog-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  background: #fff;
  transition: background 180ms ease;
  margin-bottom: 32px;
}
.rpr-blog-feature:hover {
  background: var(--surface-sunken);
}
.rpr-blog-feature:hover h2 {
  color: var(--accent-500);
}
.rpr-blog-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}
.rpr-blog-feature-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rpr-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.rpr-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: background 180ms ease;
  color: inherit;
}
.rpr-blog-card:hover {
  background: var(--surface-sunken);
}
.rpr-blog-card:hover h2,
.rpr-blog-card:hover h3 {
  color: var(--accent-500);
}
.rpr-blog-card .rpr-thumb {
  aspect-ratio: 16/10;
  background: var(--paper-dim);
}
.rpr-blog-card .rpr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rpr-blog-card-body {
  padding: 20px;
}
.rpr-blog-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: 10px;
}
.rpr-blog-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 10px;
}
.rpr-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.rpr-blog-page-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rpr-blog-page-btn.is-active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.rpr-blog-page-btn:disabled {
  color: var(--border-strong);
  cursor: default;
}
.rpr-blog-empty {
  text-align: center;
  padding: 64px 24px 24px;
}
.rpr-blog-empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 10px;
}
.rpr-blog-empty-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.rpr-blog-clear-filters {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-500);
  text-decoration: underline;
}
.rpr-blog-results-loading {
  opacity: 0.5;
  pointer-events: none;
}
.rpr-listings-results-loading {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 720px) {
  .rpr-blog-feature {
    grid-template-columns: 1fr;
  }
}

/* ---------- Single blog post ---------- */
.rpr-blog-article {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 56px;
  align-items: start;
}
.rpr-blog-content h1 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.rpr-blog-content > img,
.rpr-blog-content > .wp-post-image {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 28px;
}
.rpr-blog-lead {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-900);
  margin: 0 0 30px;
}
.rpr-blog-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  scroll-margin-top: 96px;
}
.rpr-blog-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.rpr-blog-aside {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.rpr-blog-aside-section {
  padding: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.rpr-blog-aside-section:last-child {
  border-bottom: none;
}
.rpr-blog-aside-section .rpr-share-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.rpr-blog-aside-section .rpr-share-row .rpr-meta {
  text-align: left;
}
.rpr-blog-aside-section .rpr-share-row > div:last-child {
  justify-content: flex-start;
}
.rpr-article-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
}
.rpr-article-info span,
.rpr-article-info a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  text-decoration: none;
}
.rpr-article-info a:hover {
  color: var(--accent-500);
}
.rpr-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rpr-toc a {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
}
.rpr-toc a:hover {
  color: var(--accent-500);
}
.rpr-toc-num {
  color: var(--accent-500);
  font-weight: 700;
  flex-shrink: 0;
}

.rpr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.rpr-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.rpr-breadcrumb a:hover {
  color: var(--accent-500);
}
.rpr-breadcrumb-current {
  color: var(--ink-900);
  font-weight: 600;
}
.rpr-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rpr-byline > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rpr-byline-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}
.rpr-byline-role {
  font-size: 12px;
  color: var(--text-muted);
}
.rpr-blog-nextprev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  margin: 0 0 56px;
}
.rpr-blog-nextprev-card {
  display: block;
  background: #fff;
  padding: 24px 26px;
  text-decoration: none;
  transition: background 160ms ease;
}
.rpr-blog-nextprev-card:hover {
  background: var(--surface-sunken);
}
.rpr-blog-nextprev-card--next {
  text-align: right;
}
.rpr-blog-nextprev-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-900);
}

@media (max-width: 900px) {
  .rpr-blog-article {
    grid-template-columns: 1fr;
  }
  .rpr-blog-aside {
    position: static;
  }
  .rpr-blog-nextprev {
    grid-template-columns: 1fr;
  }
  .rpr-blog-nextprev-card--next {
    text-align: left;
  }
}

/* ---------- FAQ / accordion ---------- */
.rpr-faq-item {
  border-bottom: 1px solid var(--border-strong);
}
.rpr-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rpr-faq-answer {
  display: none;
  padding: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}
.rpr-faq-item.is-open .rpr-faq-answer {
  display: block;
}
.rpr-faq-item.is-open .rpr-faq-icon {
  transform: rotate(45deg);
}
.rpr-faq-icon {
  transition: transform 160ms ease;
  font-size: 18px;
}

/* ---------- Sticky sub-nav (long pages) ---------- */
.rpr-subnav {
  position: sticky;
  top: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  z-index: 10;
}
.rpr-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
}
.rpr-subnav a:hover {
  background: var(--paper-dim);
  color: var(--accent-500);
}
.rpr-subnav a.is-current {
  color: var(--accent-500);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rpr-subnav-wrap {
  max-width: var(--container-max);
  margin: -24px auto 0;
  position: relative;
  padding: 0 var(--container-pad);
  z-index: 10;
}
@media (max-width: 640px) {
  .rpr-subnav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 6px 10px;
  }
  .rpr-subnav a {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 9px 14px;
    font-size: 11.5px;
  }
  /* Right-edge fade signals there's more to scroll to — without it, a card
     with a hard-cut border reads as "that's everything" even when items
     overflow off-screen. */
  .rpr-subnav-wrap::after {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 1px;
    right: var(--container-pad);
    width: 28px;
    background: linear-gradient(to right, transparent, var(--surface-card));
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    pointer-events: none;
  }
}

/* ---------- Guest Resources / Partner: fixed tabbed sections ---------- */
.rpr-container-narrow {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/*
 * Narrow reading column (Privacy Policy, Terms, other long-form text) —
 * distinct from .rpr-container-narrow (1000px, used for tabbed sections
 * with grids/cards) since plain paragraphs read better narrower still.
 */
.rpr-container-prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.rpr-partner-why-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: center;
}
.rpr-gr-section {
  padding: 56px 0 0;
}
.rpr-gr-section-divider .rpr-container-narrow {
  border-top: 1px solid var(--border-subtle);
  padding-top: 44px;
}
.rpr-booking-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.rpr-booking-detail-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 28px;
  background: var(--surface-card);
}
.rpr-booking-detail-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
}
.rpr-booking-detail-card > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.rpr-booking-detail-card li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
/* Every <strong>-only paragraph (the "Accepted Payment & Processing
   Fees:" / "Why choose this option?" style sub-headings the wp_editor()
   content is authored with) reads as a section label, not body copy. */
.rpr-booking-detail-card > p:has(> strong:only-child) {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 20px 0 10px;
}
.rpr-booking-detail-card ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 16px;
}
.rpr-booking-detail-card li + li {
  margin-top: 6px;
}
/* The one callout worth visually setting apart (e.g. "Refundable
   Security Deposit: ...") — editors mark it with the WYSIWYG toolbar's
   own Blockquote button. */
.rpr-booking-detail-card blockquote {
  background: var(--surface-sunken);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 16px 0;
}
.rpr-booking-detail-card blockquote p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.rpr-booking-detail-card-btn {
  margin-top: 8px;
}
@media (max-width: 780px) {
  .rpr-booking-detail-grid {
    grid-template-columns: 1fr;
  }
}

.rpr-native-faq {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.rpr-native-faq summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
}
.rpr-native-faq p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 10px 0 0;
}

/* ---------- Partner: services grid ---------- */
.rpr-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rpr-service-card {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
}
.rpr-service-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rpr-service-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 640px) {
  .rpr-service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Property Rules ---------- */
/* Its own distinct hero (.rpr-rules-hero) was retired in favor of the
   shared Guest-Resources-family hero (template-parts/guest-resources-
   header.php, .rpr-hero-photo) — see that template's own doc comment. */

.rpr-rules-columns {
  columns: 2;
  column-gap: 32px;
}
.rpr-rule-category {
  break-inside: avoid;
  margin-bottom: 32px;
}
.rpr-rule-category-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rpr-rule-category-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.rpr-rule-category-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
/* .rpr-rule-items holds an admin-authored HTML blob (basic paragraphs/
   lists — see the "Items" richtext field, inc/repeater-fields.php), so
   this styles it as generic prose rather than a fixed list markup. */
.rpr-rule-items {
  padding-left: 40px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.rpr-rule-items p {
  margin: 0 0 11px;
}
.rpr-rule-items p:last-child {
  margin-bottom: 0;
}
.rpr-rule-items ul {
  margin: 0 0 11px;
  padding-left: 18px;
}
.rpr-rule-items ul > li {
  margin-bottom: 6px;
}
/* Rule items are an <ol> (see inc/demo-content.php's
   rpr_demo_build_rule_items_html() / the "Items" richtext field) —
   lettered a)/b)/c)... via a CSS counter, so it re-letters itself
   automatically however many items exist or however they're reordered,
   instead of relying on manually-typed prefixes. */
.rpr-rule-items ol {
  list-style: none;
  counter-reset: rpr-rule-item;
  margin: 0;
  padding: 0;
}
.rpr-rule-items ol > li {
  counter-increment: rpr-rule-item;
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
}
.rpr-rule-items ol > li:last-child {
  margin-bottom: 0;
}
.rpr-rule-items ol > li::before {
  content: counter(rpr-rule-item, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--text-primary);
}
.rpr-rule-items strong {
  color: var(--accent-500);
}
@media (max-width: 780px) {
  .rpr-rules-columns {
    columns: 1;
  }
}

/* ---------- Photo CTA band (Partner "Connect", used mid-page not as a hero) ---------- */
.rpr-photo-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  margin-top: 56px;
}
.rpr-photo-cta-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rpr-photo-cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 26, 0.55) 0%,
    rgba(22, 22, 26, 0.72) 100%
  );
  z-index: 1;
}
.rpr-photo-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.rpr-photo-cta-content h2 {
  color: #fff;
}
.rpr-photo-cta-content p {
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 640px) {
  .rpr-photo-cta {
    padding: 48px 24px;
  }
}

/* ---------- Contact page ---------- */
.rpr-contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.rpr-contact-note p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.rpr-contact-map {
  position: sticky;
  top: 50px;
  height: 560px;
  border-radius: 14px;
}
@media (max-width: 900px) {
  .rpr-contact-layout {
    grid-template-columns: 1fr;
  }
  .rpr-contact-map {
    position: static;
  }
}

/* ---------- Contact form ---------- */
.rpr-contact-form {
  max-width: 560px;
}
.rpr-form-row {
  margin-bottom: 18px;
}
.rpr-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.rpr-form-row input,
.rpr-form-row select,
.rpr-form-row textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.rpr-form-required {
  color: var(--accent-500);
}
.rpr-field-hp {
  position: absolute;
  left: -9999px;
}
.rpr-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  cursor: pointer;
}
.rpr-consent-row input {
  flex-shrink: 0;
  margin-top: 3px;
}
.rpr-consent-row a {
  color: var(--accent-500);
  text-decoration: underline;
}
.rpr-form-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.rpr-form-notice--success {
  background: #eaf6ee;
  color: #1e6b3a;
}
.rpr-form-notice--error {
  background: #fbeaea;
  color: #9b2c2c;
}

/* ---------- Pagination ---------- */
.rpr-pagination {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.rpr-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-900);
  font-size: 13px;
}
.rpr-pagination .page-numbers.current {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

/* ---------- CTA band ---------- */
.rpr-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Promotion detail ---------- */
.rpr-promo-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.rpr-promo-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rpr-promo-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 26, 0.35) 0%,
    rgba(22, 22, 26, 0.78) 100%
  );
  z-index: 1;
}
.rpr-promo-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 44px;
}
.rpr-promo-hero-content h1 {
  color: #fff;
  margin-top: 16px;
}
.rpr-promo-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.rpr-promo-intro {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-900);
  margin: 0 0 32px;
}
/* Steps: rpr_promo_how_it_works is now a WYSIWYG-authored <ol>; the
   01/02/03 numbering is generated by a CSS counter instead of PHP. */
.rpr-promo-steps ol {
  list-style: none;
  counter-reset: rpr-promo-step;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 20px;
  padding: 0;
}
.rpr-promo-steps li {
  counter-increment: rpr-promo-step;
  position: relative;
  padding-left: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.rpr-promo-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.rpr-promo-steps li::before {
  content: counter(rpr-promo-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-500);
}
.rpr-promo-steps li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 5px;
}

/* Terms: rpr_promo_terms is now a WYSIWYG-authored <ul>; the ✓ mark is
   generated by ::before instead of the rpr_icon('check') SVG the old
   PHP loop rendered per line. */
.rpr-promo-terms ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rpr-promo-terms li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.rpr-promo-terms li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent-500);
}
.rpr-promo-sidebar {
  position: sticky;
  top: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 28px 26px;
}
.rpr-promo-discount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.15;
  margin-bottom: 20px;
}
.rpr-promo-valid {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-secondary);
}
@media (max-width: 860px) {
  .rpr-promo-layout {
    grid-template-columns: 1fr;
  }
  .rpr-promo-sidebar {
    position: static;
  }
}

/* ---------- Footer ---------- */
.rpr-footer {
  background: var(--surface-card);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-strong);
  padding: 48px 0 12px 0;
  margin-top: auto;
}
.rpr-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 48px;
  align-items: start;
}
.rpr-footer-brand p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 14px 0 0;
  max-width: 280px;
}
.rpr-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 11px 20px;
}
.rpr-footer-menu a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}
.rpr-footer-menu a:hover {
  color: var(--accent-500);
}
.rpr-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.rpr-footer-contact span,
.rpr-footer-contact a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  text-decoration: none;
}
.rpr-footer-contact a:hover {
  color: var(--accent-500);
}
.rpr-footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}
@media (max-width: 820px) {
  .rpr-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rpr-footer-menu ul {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 11px;
  }
}

/* ---------- Utility ---------- */
.rpr-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}
.rpr-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) {
  .rpr-two-col {
    grid-template-columns: 1fr;
  }
}

.rpr-testimonial-carousel {
  position: relative;
}
.rpr-testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px;
}
.rpr-testimonial-track::-webkit-scrollbar {
  display: none;
}
.rpr-testimonial-track > .rpr-testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
}
.rpr-testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
}
.rpr-testimonial-prev {
  left: -22px;
}
.rpr-testimonial-next {
  right: -22px;
}
@media (max-width: 780px) {
  .rpr-testimonial-track > .rpr-testimonial-card {
    flex: 0 0 100%;
  }
  .rpr-testimonial-prev {
    left: -8px;
  }
  .rpr-testimonial-next {
    right: -8px;
  }
}

/* ---------- "Coming Soon" empty state — reused wherever a section has
   nothing published yet (page-templates/template-promotions.php,
   inc/blog-filter.php's genuinely-empty-blog case) ---------- */
.rpr-coming-soon-empty {
  max-width: 480px;
  margin: 8px auto 0;
  padding: 56px 32px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
}
.rpr-coming-soon-empty-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-500);
  margin-bottom: 14px;
}
.rpr-coming-soon-empty h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 10px;
}
.rpr-coming-soon-empty p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}
/* Blog's empty state sits directly under the subnav (inc/blog-filter.php),
   with no page heading above it to provide separation — Promotions still
   has its own <h1> before this card, so only the blog's own wrapper
   (.rpr-section-after-hero) gets the extra top space. */
.rpr-section-after-hero .rpr-coming-soon-empty {
  margin-top: 56px;
}
.rpr-coming-soon-empty p:last-child {
  margin-bottom: 0;
}

/* Both Load More wraps (page-templates/template-reviews.php,
   template-listings.php) carry their own inline style="display:flex" —
   needed so they read as a flex row when visible — which otherwise beats
   the [hidden] attribute's own default display:none (inline styles always
   outrank a stylesheet rule with equal or lower specificity, `hidden` or
   not). Without !important here, a page with fewer items than one page's
   worth still rendered the button, hidden attribute present but visually
   ignored. */
#rpr-reviews-load-more-wrap[hidden],
#rpr-listings-load-more-wrap[hidden] {
  display: none !important;
}
