/* Design tokens, extracted from the design prototype (SiteHeader/SiteFooter/etc.) */
:root {
  --rpr-font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --rpr-navy: #122b57;
  --rpr-blue: #1b3b77;
  --rpr-blue-dark: #12295a;

  --rpr-text: #1a1a1a;
  --rpr-text-body: #2c2c2c;
  --rpr-text-secondary: #5a6070;
  --rpr-text-tertiary: #7a808c;
  --rpr-text-faint: #8a90a0;

  --rpr-border: #e6e8ec;
  --rpr-border-strong: #d8dce4;
  --rpr-border-faint: #eceef2;
  --rpr-border-faintest: #f0f2f5;

  --rpr-bg-hover: #f4f6fa;
  --rpr-bg-hover-2: #f2f4f8;
  --rpr-bg-hover-3: #f7f8fa;
  --rpr-bg-selected: #eef1f6;

  --rpr-error: #b42318;

  --rpr-footer-bg: #eeeeee;
  --rpr-footer-text: #3a3a3a;

  --rpr-radius-pill: 999px;
  --rpr-radius-lg: 20px;
  --rpr-radius-md: 12px;
  --rpr-radius-sm: 8px;

  --rpr-header-height: 60px;
  --rpr-bottom-nav-height: 58px;

  --rpr-shadow-popover: 0 12px 32px rgba(20, 30, 60, 0.16);
  --rpr-shadow-modal: 0 24px 64px rgba(10, 18, 40, 0.32);
}

/* Breakpoint used throughout (match the prototype): 1024px — tablet and mobile share identical styling below this width */

* {
  box-sizing: border-box;
  /* Kills the default blue/gray flash Android/iOS browsers draw over a
     link/button on tap — every interactive element here already has its
     own :hover/:active/:focus-visible styling, so this flash only ever
     looks like a rendering glitch on top of it, never adds anything. */
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--rpr-font);
  color: var(--rpr-text-body);
  background: #fff;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

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

/* ---------- Loading states ----------
   Two reusable, generic components (not page-specific) for the two kinds
   of "waiting on a fetch" this site has: a short horizontal bar for a
   small recalculation inside an existing layout (price breakdown,
   calendar availability — toggled via [hidden] around the fetch, see
   property.js), and an image skeleton shimmer for listing card photos on
   the archive/home pages, which load progressively rather than being
   gated behind any fetch. */

.rpr-loading-bar {
  position: relative;
  height: 3px;
  margin: 10px 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--rpr-border-faint);
}

.rpr-loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--rpr-blue);
  animation: rpr-loading-bar-sweep 1.1s ease-in-out infinite;
}

@keyframes rpr-loading-bar-sweep {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

.rpr-img-skeleton {
  position: relative;
  overflow: hidden;
}

.rpr-img-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-100%);
  animation: rpr-img-skeleton-sweep 1.4s ease-in-out infinite;
}

.rpr-img-skeleton.is-loaded::before {
  content: none;
  animation: none;
}

@keyframes rpr-img-skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

/* Every dropdown/popover/menu on the site is toggled by adding/removing the
   `hidden` attribute (header.js etc.) rather than a class — several
   components below set their own `display` for when they're visible, which
   silently overrides the browser's built-in `[hidden]{display:none}` rule.
   This makes `hidden` win unconditionally so that pattern is always safe. */
[hidden] {
  display: none !important;
}

/* GTranslate/Google Website Translator — see footer.php's docblock. Google
   injects its own top banner iframe + pushes body down with an inline
   `top` style when a translation is active; both are suppressed since the
   header's own flag dropdown is the only UI guests see for this. */
#google_translate_element,
.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

/* ---------- Header ---------- */

.rpr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--rpr-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rpr-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 28px;
}

.rpr-header-inner.has-search-row {
  grid-template-columns: auto 1fr auto;
}

/* Below the header's own max-width (1440px — see .rpr-header-inner above),
   there's no longer slack room for the filter row's six controls to share
   the middle column with the logo/icons without wrapping unevenly. Moves
   the filter row to its own full-width row below the logo/icons row
   instead — the mobile/tablet breakpoint (≤1024px, main.css further down +
   listings.css) already hides this row entirely and replaces it with the
   mobile filter sheet, so this only has a visible effect in the
   1025-1439px desktop range. */
@media (max-width: 1439px) {
  .rpr-header-inner.has-search-row {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: space-between;
    row-gap: 14px;
  }

  .rpr-header-inner.has-search-row .rpr-header-logo-link {
    grid-row: 1;
    grid-column: 1;
  }

  .rpr-header-inner.has-search-row .rpr-hdr-icons {
    grid-row: 1;
    grid-column: 2;
  }

  .rpr-header-inner.has-search-row .rpr-hdr-search {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rpr-header-inner.has-search-row .rpr-hdr-search::-webkit-scrollbar {
    display: none;
  }

  /* Back to flexible here — the row has its own full-width line now (not
     sharing with logo/icons), so there's room for the search input to grow
     and fill it, same as it did before the fixed-width fix that was needed
     for the shared-row case at ≥1440px. */
  .rpr-header-inner.has-search-row .rpr-hdr-search input[type="text"] {
    flex: 1;
    min-width: 150px;
  }
}

.rpr-header-logo-link {
  grid-column: 1;
  justify-self: start;
  display: block;
  line-height: 0;
}

.rpr-header-logo {
  height: 18px;
  width: auto;
  display: block;
}

/* Category tabs */
.rpr-hdr-tabs {
  display: flex;
  justify-content: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rpr-hdr-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 4px 6px 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
}

.rpr-hdr-tab:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.rpr-hdr-tab.is-active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #fff;
}

.rpr-hdr-tab-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.rpr-hdr-tab.is-active .rpr-hdr-tab-icon {
  opacity: 1;
}

.rpr-hdr-tab-label {
  font-size: 13px;
  letter-spacing: 0.2px;
}

/* Mini search pill (collapsed header state) */
.rpr-hdr-mini-wrap {
  position: relative;
  justify-self: center;
  min-width: 0;
}

.rpr-hdr-mini {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--rpr-border-strong);
  border-radius: var(--rpr-radius-pill);
  box-shadow: 0 2px 8px rgba(20, 30, 60, 0.08);
  padding: 2px;
}

.rpr-hdr-mini-btn {
  border: 0;
  background: none;
  padding: 9px 16px;
  font-size: 13px;
  /* color: var(--rpr-text-secondary); */
  border-right: 1px solid var(--rpr-border);
  cursor: pointer;
  white-space: nowrap;
}

.rpr-hdr-mini-btn:hover {
  background: var(--rpr-bg-hover);
}

.rpr-hdr-mini-btn:first-child {
  /* font-weight: 600; */
  color: var(--rpr-text);
  border-radius: var(--rpr-radius-pill) 0 0 var(--rpr-radius-pill);
}

.rpr-hdr-mini-btn.rpr-hdr-mini-who {
  border-right: 0;
}

.rpr-hdr-mini-submit {
  width: 34px;
  height: 34px;
  margin: 2px 2px 2px 4px;
  border-radius: 50%;
  background: var(--rpr-blue);
  border: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.rpr-hdr-mini-submit:hover {
  background: var(--rpr-blue-dark);
}

/* Popover (desktop expanded search) */
.rpr-hdr-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  background: #fff;
  border: 1px solid var(--rpr-border);
  border-radius: var(--rpr-radius-lg);
  box-shadow: 0 24px 64px rgba(20, 30, 60, 0.22);
  width: 320px;
  max-height: 400px;
  overflow: auto;
  padding: 14px;
}

.rpr-hdr-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--rpr-text);
  padding: 4px 8px 10px;
}

.rpr-hdr-popover-row {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 8px;
  border-radius: var(--rpr-radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--rpr-text-body);
  display: block;
}

.rpr-hdr-popover-row:hover {
  background: var(--rpr-bg-hover);
}

/* Single-month calendar — shared by this popover's "when" panel and the
   homepage's own search bar (home.css's .rpr-home-cal-panel wraps this same
   markup in its own fixed-position panel); both driven by the same
   window.RPRCalendar engine in main.js. */
.rpr-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rpr-cal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e0e3ea;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rpr-cal-nav-btn:hover {
  background: var(--rpr-bg-hover);
}

.rpr-cal-month-labels {
  display: flex;
  gap: 64px;
}

.rpr-cal-month-label {
  font-size: 15px;
  font-weight: 700;
}

.rpr-cal-grids {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.rpr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px 0;
  text-align: center;
}

.rpr-cal-weekday {
  font-size: 11px;
  font-weight: 600;
  color: var(--rpr-text-faint);
  padding: 4px 0;
}

.rpr-cal-day {
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rpr-text);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.rpr-cal-day.is-empty {
  visibility: hidden;
  cursor: default;
}

.rpr-cal-day.is-past {
  color: var(--rpr-border-strong);
  cursor: default;
}

.rpr-cal-day.is-in-range {
  border-radius: 0;
  background: var(--rpr-bg-selected);
}

.rpr-cal-day.is-edge {
  background: var(--rpr-blue);
  color: #fff;
}

.rpr-cal-nights-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rpr-border-faint);
}

.rpr-cal-nights-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rpr-text-secondary);
}

.rpr-cal-nights-select {
  border: 1px solid var(--rpr-border-strong);
  border-radius: var(--rpr-radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--rpr-text);
  background: #fff;
  cursor: pointer;
}

/* ---------- Custom-styled <select> dropdown list (assets/js/main.js) ----------
   Every <select> site-wide gets this in place of its native, unstyleable
   cross-browser option list — matching the header's own "Where" panel
   (.rpr-hdr-popover-row). Appended straight to <body> and positioned via
   getBoundingClientRect() rather than living next to its <select> in the
   DOM, so z-index is the only thing that needs to out-rank the rest of the
   page (see initCustomSelects()'s own comment for why).

   The popover is the thing that's positioned/bordered; the search field
   (when present, for long lists) is a normal sibling ABOVE the scrolling
   <ul> rather than a sticky row inside it — a sticky-in-scroll-container
   row is fiddly to keep from overlapping the first option as padding/
   margin values drift, so it's avoided entirely here. */
.rpr-custom-select-popover {
  position: fixed;
  z-index: 999;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--rpr-border);
  border-radius: var(--rpr-radius-lg);
  box-shadow: var(--rpr-shadow-popover);
  font-family: var(--rpr-font);
}

.rpr-custom-select-list {
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
  box-sizing: border-box;
}

.rpr-custom-select-option {
  padding: 10px 12px;
  border-radius: var(--rpr-radius-sm);
  font-size: 14px;
  color: var(--rpr-text);
  cursor: pointer;
  /* Wraps rather than truncating — an option's full text (e.g. the
     Guidebook switcher's listing titles) should always be readable, same
     as the header notification dropdown's messages. */
  white-space: normal;
  word-break: break-word;
}

.rpr-custom-select-option:hover {
  background: var(--rpr-bg-hover);
}

.rpr-custom-select-option.is-selected {
  font-weight: 700;
  color: var(--rpr-blue);
  background: var(--rpr-bg-selected);
}

.rpr-custom-select-option[aria-disabled="true"] {
  color: var(--rpr-text-faint);
  cursor: default;
  pointer-events: none;
}

.rpr-custom-select-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--rpr-border);
  border-radius: var(--rpr-radius-sm);
  font-size: 14px;
  font-family: var(--rpr-font);
  color: var(--rpr-text);
}

.rpr-custom-select-search:focus {
  outline: none;
  border-color: var(--rpr-blue);
}

.rpr-hdr-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
}

.rpr-hdr-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #9aa1ae;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
}

.rpr-hdr-scrim {
  position: fixed;
  inset: 0;
  /* Below .rpr-header's z-index (50), not above it. .rpr-header is
     `position: fixed` with its own z-index, which makes it a self-contained
     stacking context — any z-index set on something *inside* it (e.g. the
     account/language dropdowns) only ranks within that context, capped at
     "50" from the document's point of view, so a scrim at 99 would sit on
     top of the whole header — including the very dropdown it's meant to
     help close — and swallow every click inside it. Page content below the
     header has no competing z-index, so 45 is still comfortably above it. */
  z-index: 45;
}

/* Full inline search row (Listings page, desktop) */
.rpr-hdr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: stretch;
  flex-wrap: wrap;
}

.rpr-hdr-search input[type="text"] {
  /* Fixed, not flexible — a growing search input was what made this row too
     wide to fit back in the shared top row with the logo/icons, forcing a
     wrap. Fixed width keeps the row's total width predictable, so it fits
     in that row (and only wraps if the viewport is genuinely too narrow). */
  flex: 0 0 180px;
  border: 1px solid var(--rpr-border-strong);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}

.rpr-hdr-search input[type="text"]:focus {
  border-color: var(--rpr-blue);
}

.rpr-hdr-search select {
  border: 1px solid var(--rpr-border-strong);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: #fff;
  cursor: pointer;
}

.rpr-hdr-search-price {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rpr-border-strong);
  border-radius: 20px;
  padding: 6px 12px;
  white-space: nowrap;
  background: #fff;
  font-size: 12px;
  color: var(--rpr-text-secondary);
}

.rpr-hdr-search-price input[type="range"] {
  width: 80px;
  accent-color: var(--rpr-navy);
}

.rpr-hdr-map-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rpr-border-strong);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--rpr-text-body);
  white-space: nowrap;
}

.rpr-hdr-map-toggle:hover {
  background: var(--rpr-bg-hover-2);
}

/* Icon buttons (search/lang/menu) */
.rpr-hdr-icons {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* On pages where header.php renders BOTH the Where/When/Who mini pill and a
   dedicated search icon (search_icon_only mode, e.g. single-listing.php),
   the icon only replaces the pill on mobile — on desktop only the pill
   shows, matching the prototype's narrow-only showSearchIcon condition. */
#rpr-search-icon-btn {
  display: none;
}

.rpr-hdr-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: #fff;
}

.rpr-hdr-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rpr-hdr-dropdown {
  position: absolute;
  top: 46px;
  right: 56px;
  width: 200px;
  background: #fff;
  border: 1px solid var(--rpr-border);
  border-radius: var(--rpr-radius-md);
  box-shadow: var(--rpr-shadow-popover);
  padding: 6px;
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow: auto;
  z-index: 60;
}

.rpr-hdr-dropdown.rpr-hdr-dropdown-edge {
  right: 0;
}

.rpr-hdr-lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rpr-text-body);
  background: transparent;
  border: 0;
  border-radius: var(--rpr-radius-sm);
  cursor: pointer;
  text-align: left;
}

.rpr-hdr-lang-row:hover {
  background: var(--rpr-bg-hover-2);
}

.rpr-hdr-lang-row.is-active {
  font-weight: 700;
  color: var(--rpr-blue);
  background: var(--rpr-bg-selected);
}

.rpr-hdr-lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}

/* The language dropdown now has two buttons (notif-btn, menu-btn) to its
   right instead of one — the shared .rpr-hdr-dropdown base's right:56px
   still serves #rpr-notif-dropdown correctly (only menu-btn is right of
   it), so this is a one-off bump rather than a change to the shared rule. */
#rpr-lang-dropdown {
  right: 104px;
}

#rpr-notif-btn {
  position: relative;
}

.rpr-hdr-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--rpr-radius-pill);
  background: #e0393e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--rpr-navy);
}

.rpr-hdr-notif-dropdown {
  width: 320px;
  padding: 0;
}

.rpr-hdr-notif-header {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rpr-text);
  border-bottom: 1px solid var(--rpr-border);
}

.rpr-hdr-notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.rpr-hdr-notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--rpr-text-faint);
}

.rpr-hdr-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rpr-border);
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    max-height 0.15s ease;
}

.rpr-hdr-notif-item:last-child {
  border-bottom: 0;
}

.rpr-hdr-notif-item:hover {
  background: var(--rpr-bg-hover);
}

.rpr-hdr-notif-item.is-unread {
  background: var(--rpr-bg-hover-2);
}

.rpr-hdr-notif-item.is-removing {
  opacity: 0;
  pointer-events: none;
}

.rpr-hdr-notif-remove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: -2px -4px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rpr-text-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.rpr-hdr-notif-remove:hover {
  background: var(--rpr-bg-hover);
  color: var(--rpr-text-body);
}

.rpr-hdr-notif-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--rpr-text-faint);
}

.rpr-hdr-notif-item-pending .rpr-hdr-notif-dot,
.rpr-hdr-notif-item-payment_needed .rpr-hdr-notif-dot,
.rpr-hdr-notif-item-awaiting_confirmation .rpr-hdr-notif-dot {
  background: #c89000;
}

.rpr-hdr-notif-item-confirmed .rpr-hdr-notif-dot {
  background: #1b7a4a;
}

.rpr-hdr-notif-item-cancelled .rpr-hdr-notif-dot {
  background: #b3344a;
}

.rpr-hdr-notif-body {
  min-width: 0;
  flex: 1 1 auto;
}

.rpr-hdr-notif-message {
  font-size: 13px;
  color: var(--rpr-text-body);
  line-height: 1.4;
}

.rpr-hdr-notif-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--rpr-text-faint);
}

.rpr-hdr-account-menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 250px;
  background: #fff;
  border: 1px solid var(--rpr-border);
  border-radius: 14px;
  box-shadow: var(--rpr-shadow-popover);
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.rpr-hdr-account-menu a,
.rpr-hdr-account-menu button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rpr-text);
  text-decoration: none;
  border-radius: var(--rpr-radius-sm);
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.rpr-hdr-account-menu a:hover,
.rpr-hdr-account-menu button:hover {
  background: var(--rpr-bg-hover-2);
}

.rpr-hdr-account-menu .rpr-hdr-menu-divider {
  height: 1px;
  background: var(--rpr-border-faint);
  margin: 6px 4px;
}

.rpr-hdr-account-menu button:not(.rpr-hdr-menu-item-strong) {
  color: var(--rpr-text-body);
  font-weight: 400;
}

/* Mobile full-screen search sheet */
.rpr-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  display: none;
  flex-direction: column;
}

.rpr-search-sheet.is-open {
  display: flex;
}

.rpr-search-sheet-header {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--rpr-border-faint);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.rpr-search-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rpr-text);
}

.rpr-search-sheet-close {
  position: absolute;
  right: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--rpr-bg-hover-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rpr-search-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.rpr-search-sheet-section {
  border: 1px solid var(--rpr-border);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.rpr-search-sheet-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.rpr-search-sheet-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rpr-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rpr-search-sheet-section-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--rpr-text);
}

.rpr-search-sheet-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rpr-border-faint);
}

.rpr-btn-text {
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--rpr-text);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
}

.rpr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rpr-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.rpr-btn-primary:hover {
  background: var(--rpr-blue-dark);
}

/* Login / signup modal */
.rpr-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 22, 42, 0.55);
  display: none;
  place-items: start center;
  overflow-y: auto;
  padding: 24px;
}

.rpr-auth-overlay.is-open {
  display: grid;
}

.rpr-auth-modal {
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--rpr-shadow-modal);
  overflow: hidden;
}

.rpr-auth-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rpr-border-faint);
}

.rpr-auth-modal-close {
  position: absolute;
  left: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rpr-auth-modal-close:hover {
  background: var(--rpr-bg-hover-2);
}

.rpr-auth-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--rpr-text);
}

.rpr-auth-modal-body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
}

.rpr-auth-modal-logo {
  height: 64px;
  width: auto;
  align-self: center;
  margin-bottom: 14px;
}

.rpr-auth-modal-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--rpr-text);
  text-align: center;
  margin-bottom: 20px;
}

.rpr-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpr-auth-form input {
  border: 1px solid var(--rpr-border-strong);
  border-radius: 10px;
  padding: 14px 15px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  color: var(--rpr-text);
}

.rpr-auth-form input:focus {
  border-color: var(--rpr-navy);
}

.rpr-auth-error {
  font-size: 12px;
  color: var(--rpr-error);
}

.rpr-auth-forgot-link {
  align-self: flex-end;
  margin-top: -6px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rpr-navy);
  cursor: pointer;
}

.rpr-auth-success {
  font-size: 13px;
  line-height: 1.5;
  color: #1b7a4a;
}

.rpr-auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--rpr-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--rpr-text);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.rpr-auth-google-btn:hover {
  background: #f7f7f7;
}

.rpr-auth-verify-banner {
  background: #fdf6ea;
  border: 1px solid #f0ddb0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpr-auth-verify-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8a6d1f;
}

.rpr-auth-verify-banner button {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rpr-navy);
  cursor: pointer;
  text-decoration: underline;
}

.rpr-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.rpr-auth-divider span:not(.rpr-auth-divider-label) {
  flex: 1;
  height: 1px;
  background: var(--rpr-border);
}

.rpr-auth-divider-label {
  font-size: 12px;
  color: var(--rpr-text-faint);
}

.rpr-auth-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--rpr-text-secondary);
}

.rpr-auth-switch button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rpr-blue);
  cursor: pointer;
  text-decoration: underline;
}

.rpr-auth-success {
  background: #eef3fb;
  border: 1px solid #d3e0f4;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpr-auth-success-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rpr-navy);
}

.rpr-auth-success-sub {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
}

/* Bottom mobile nav */
.rpr-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--rpr-border);
  display: none;
  align-items: stretch;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}

.rpr-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  padding: 6px 8px;
  flex: 1;
  color: var(--rpr-text-tertiary);
  font-weight: 500;
}

.rpr-bottom-nav-item.is-active {
  color: var(--rpr-blue);
  font-weight: 700;
}

.rpr-bottom-nav-label {
  font-size: 11px;
}

/* body.rpr-has-bottom-nav {
  padding-bottom: calc(
    var(--rpr-bottom-nav-height) + env(safe-area-inset-bottom, 0px)
  );
} */

/* ---------- Responsive header/footer ---------- */

@media (max-width: 1024px) {
  :root {
    --rpr-header-height: 50px;
  }

  .rpr-header-inner {
    padding: 10px 14px !important;
  }
  #rpr-search-icon-btn {
    display: grid !important;
  }
  .rpr-hdr-mini-wrap.rpr-hdr-mini-wrap-hide-mobile {
    display: none !important;
  }
  .rpr-hdr-tabs {
    /* CSS, not JS, hides this at tablet/mobile widths — initHeaderCollapse()'s
       apply() (main.js) only runs after the page has already painted once,
       so relying on it alone meant the desktop tabs flashed visible for a
       moment on every load before JS caught up and hid them. This rule makes
       tablet/mobile correct from the very first paint; apply() still owns
       the scroll-collapse behavior on desktop viewports. */
    display: none !important;
    gap: 18px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .rpr-hdr-tabs::-webkit-scrollbar {
    display: none;
  }
  .rpr-hdr-dropdown {
    /* Base rule's `right: 56px` is calibrated for desktop, where it clears
       the hamburger/account-menu button sitting after the language button
       in .rpr-hdr-icons — that button is display:none on mobile
       (.rpr-hdr-menu-btn below), making the language button the rightmost
       icon, so the dropdown needs to anchor flush under it instead. */
    right: 0 !important;
    width: 220px !important;
    max-width: calc(100vw - 28px) !important;
  }
  .rpr-hdr-account-menu {
    width: calc(100vw - 32px) !important;
    max-width: 250px !important;
  }
  .rpr-header-logo {
    height: 14px !important;
  }
  .rpr-hdr-icons {
    gap: 8px !important;
  }
  .rpr-hdr-icon-btn {
    width: 30px !important;
    height: 30px !important;
  }
  .rpr-hdr-mini-wrap {
    width: 100% !important;
  }
  .rpr-hdr-mini {
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .rpr-hdr-mini::-webkit-scrollbar {
    display: none;
  }
  .rpr-hdr-mini-btn {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
  .rpr-hdr-mini-who {
    padding-right: 12px !important;
  }
  .rpr-bottom-nav {
    display: flex !important;
  }
  .rpr-hdr-menu-btn {
    display: none !important;
  }
  body.rpr-has-bottom-nav {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  .rpr-ftr-grid {
    grid-template-columns: 1fr !important;
    padding: 40px 20px 24px !important;
  }
  .rpr-ftr-bottom-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
  .rpr-ftr-bottom-wrap {
    padding: 20px 20px calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .rpr-ftr-social {
    order: -1;
  }

  /* Bigger tap targets for the calendar specifically inside the mobile
     full-screen search sheet — the desktop popover's calendar is untouched. */
  #rpr-search-sheet .rpr-cal-grid {
    gap: 4px 0;
  }

  #rpr-search-sheet .rpr-cal-day {
    padding: 13px 0;
    font-size: 15px;
  }

  #rpr-search-sheet .rpr-cal-weekday {
    font-size: 12px;
  }

  #rpr-search-sheet .rpr-cal-nav-btn {
    width: 40px;
    height: 40px;
  }

  #rpr-search-sheet .rpr-cal-month-label {
    font-size: 16px;
  }
}

/* Footer grid gets its own tablet-only layout — 2 rows x 3 columns (brand
   column spans the full first row, Explore/Support/Account share the
   second row as one column each) — rather than the single-column mobile
   stack above or the 4-across desktop row below. Scoped with min-width so
   it doesn't touch true mobile (≤680px), which keeps the single-column
   rule from the merged block above; !important matches that rule's own
   specificity so this still wins within its narrower range. */
@media (min-width: 681px) and (max-width: 1024px) {
  /* Header is a bit taller on tablet than phone (65px vs. the merged
     block's 50px) — listings.css's sticky tablet map reads this same
     variable for its `top` offset, so it stays in sync automatically. */
  :root {
    --rpr-header-height: 65px;
  }

  .rpr-ftr-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .rpr-ftr-grid > .rpr-ftr-col:first-child {
    grid-column: 1 / -1 !important;
  }

  /* Bottom bar also gets its own tablet-only row — currency left,
     copyright centered, social right — instead of the stacked single
     column mobile keeps above. */
  .rpr-ftr-bottom-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
  }
  .rpr-ftr-locale {
    grid-column: 1 !important;
    justify-self: start !important;
  }
  .rpr-ftr-copyright {
    grid-column: 2 !important;
    justify-self: center !important;
    text-align: center !important;
  }
  .rpr-ftr-social {
    grid-column: 3 !important;
    justify-self: end !important;
    order: 0 !important;
  }
}

/* ---------- Footer ---------- */

.rpr-footer {
  background: var(--rpr-footer-bg);
  color: var(--rpr-text-body);
}

.rpr-ftr-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 28px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.rpr-ftr-col h4 {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rpr-ftr-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rpr-ftr-links a {
  font-size: 15px;
  color: var(--rpr-text-body);
  text-decoration: none;
}

.rpr-ftr-links a:hover {
  color: var(--rpr-blue);
}

.rpr-ftr-logo {
  height: 18px;
  display: block;
}

.rpr-ftr-tagline {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 240px;
  color: var(--rpr-footer-text);
}

.rpr-ftr-bottom-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 28px 40px;
}

.rpr-ftr-bottom-inner {
  border-top: 1px solid #d9d9d9;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rpr-ftr-locale {
  position: relative;
  /* Low while closed — only needs to clear its own flex siblings here
     (.rpr-ftr-copyright/.rpr-ftr-social, both un-positioned), not a high
     global value that would also make the always-visible button itself
     outrank the sticky-bottom bars (checkout's collapsible price details
     at 50, the listing page's mobile price bar/sheet at 40, the bottom nav
     at 40) wherever the footer happens to scroll into the same screen
     region as one of those. */
  z-index: 2;
}

/* ...but while the dropdown is actually OPEN, it's an active floating
   popover and *should* win over passive background chrome like a sticky
   bottom bar — capping it at the low value above made it render (and
   receive clicks) *behind* those bars instead, since a child's z-index
   can never rank higher than the stacking context its parent caps it at.
   Toggled via the `hidden` attribute, same convention as every other
   dropdown on the site (see the [hidden] rule up top) — not a class, so
   this keys off that directly rather than needing a JS change. */
.rpr-ftr-locale:has(#rpr-currency-dropdown:not([hidden])) {
  z-index: 60;
}

.rpr-ftr-locale-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--rpr-text-body);
  padding: 4px 0;
}

.rpr-ftr-dropdown {
  position: absolute;
  bottom: 38px;
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: var(--rpr-shadow-popover);
  padding: 6px;
  /* Shown/hidden via the `hidden` attribute (main.js's shared toggle()),
     same convention as every other dropdown/popover on the site — not an
     `.is-open` class, which nothing here ever actually adds. */
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.rpr-ftr-dropdown button {
  text-align: left;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rpr-text-body);
  background: transparent;
  border: 0;
  border-radius: var(--rpr-radius-sm);
  cursor: pointer;
}

.rpr-ftr-dropdown button:hover {
  background: #f4f4f4;
}

.rpr-ftr-dropdown button.is-active {
  font-weight: 700;
  color: var(--rpr-blue);
  background: var(--rpr-bg-selected);
}

.rpr-ftr-currency-symbol {
  display: inline-block;
  min-width: 22px;
  color: var(--rpr-text-faint);
}

.rpr-ftr-dropdown button.is-active .rpr-ftr-currency-symbol {
  color: inherit;
}

.rpr-ftr-copyright {
  font-size: 15px;
  color: var(--rpr-footer-text);
}

.rpr-ftr-social {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rpr-blue);
}
