/* PropGlen App V3 — Batch 01 (Home + Search). Namespace: --rv-v3-* / #rv-app-v3-root */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  /* Exact cmap. Sinhala and Tamil are excluded so WebKit does not paint .notdef. */
  unicode-range: U+000D, U+0020-007E, U+00A0-00AC, U+00AE-00FF, U+0102, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* Noto Sans Sinhala 2.006 — OFL, script subset. Latin stays on Plus Jakarta Sans. */
@font-face {
  font-family: "Noto Sans Sinhala";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sinhala.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0D81-0DF4, U+1CF2, U+200C-200D, U+25CC, U+111E1-111F4;
}

/* Noto Sans Tamil 2.004 — OFL, script subset. Latin stays on Plus Jakarta Sans. */
@font-face {
  font-family: "Noto Sans Tamil";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-tamil.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

:root {
  --rv-v3-green: #0a9d6a;
  --rv-v3-green-strong: #088a5c;
  --rv-v3-ink: #0f1426;
  --rv-v3-muted: #5b6478;
  --rv-v3-line: rgba(15, 20, 38, 0.08);
  --rv-v3-soft: #f3f6f4;
  --rv-v3-stage: #f7f8f7;
  --rv-v3-white: #ffffff;
  --rv-v3-danger: #e11d48;
  --rv-v3-font: "Plus Jakarta Sans", "Noto Sans Sinhala", "Noto Sans Tamil", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Sinhala Sangam MN", "Tamil Sangam MN", "Sinhala MN", "Tamil MN",
    "Hiragino Sans", sans-serif;
  --rv-v3-header-h: 48px;
  --rv-v3-tabs-h: 46px;
  --rv-v3-radius: 14px;
  --rv-v3-radius-md: 12px;
  --rv-v3-radius-sm: 10px;
  --rv-v3-radius-pill: 999px;
  --rv-v3-control-min: 44px;
  --rv-v3-space-1: 4px;
  --rv-v3-space-2: 8px;
  --rv-v3-space-3: 12px;
  --rv-v3-space-4: 16px;
  --rv-v3-space-5: 24px;
  --rv-v3-shadow-card: 0 1px 2px rgba(15, 20, 38, 0.04), 0 4px 14px rgba(15, 20, 38, 0.06);
  --rv-v3-shadow-soft: 0 2px 10px rgba(15, 20, 38, 0.1);
  --rv-v3-shadow-sheet: 0 8px 28px rgba(15, 20, 38, 0.14);
  --rv-v3-focus-ring: 0 0 0 3px rgba(10, 157, 106, 0.28);
  --rv-v3-content-max: 40rem;
  --rv-v3-card-media-h: 196px;
  --rv-v3-safe-top: env(safe-area-inset-top, 0px);
  /*
   * Bottom-inset policy (v61):
   * PRIMARY TABS / FIXED ACTIONS → no safe-bottom pad (v56)
   * SCROLLING ROUTES → no route-wide safe/max footer slab
   * SHEETS → local max(base, safe) on sheet foot only
   * FLOATING MAP CONTROLS → base + safe
   * VIEWER slide → black local control clearance may retain safe
   */
  --rv-v3-safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Shared floating chrome (Detail now; Viewer/Gallery later) */
  --rv-v3-float-hit: 44px;
  --rv-v3-float-visual: 36px;
  --rv-v3-float-icon: 18px;
  /* Detail metadata icon accents (restrained) */
  --rv-v3-meta-location: #0a9d6a;
  --rv-v3-meta-fresh: #088a5c;
  --rv-v3-meta-listed: #5b6478;
}

/* Script face first so ZWJ clusters shape in that font. Latin still matches Plus Jakarta Sans. */
html[lang="si"] {
  --rv-v3-font: "Noto Sans Sinhala", "Plus Jakarta Sans", "Noto Sans Tamil", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Sinhala Sangam MN", "Tamil Sangam MN", "Sinhala MN", "Tamil MN", sans-serif;
}

html[lang="ta"] {
  --rv-v3-font: "Noto Sans Tamil", "Plus Jakarta Sans", "Noto Sans Sinhala", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Tamil Sangam MN", "Sinhala Sangam MN", "Tamil MN", "Sinhala MN", sans-serif;
}

html.rv-v3-booting,
html.rv-v3-standalone {
  /* v69: large/full viewport shell (not short 100dvh) */
  height: 100%;
  height: 100vh;
  height: 100lvh;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: manipulation;
  box-sizing: border-box;
}

html.rv-v3-standalone,
html.rv-v3-standalone body,
html.rv-v3-booting body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  /* v59: stage fallback (not hard white) so edge pixels match chrome */
  background: var(--rv-v3-stage);
  color: var(--rv-v3-ink);
  font-family: var(--rv-v3-font);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  overflow-x: hidden;
  touch-action: manipulation;
  box-sizing: border-box;
}

html.rv-v3-standalone body,
html.rv-v3-booting body {
  /* v69: match large viewport; demote short 100dvh fill */
  height: 100%;
  height: 100vh;
  height: 100lvh;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  overflow: hidden;
  overflow-x: hidden;
}

/*
 * Route-edge underlay ownership (v59 Viewer + Gallery).
 * Body is outside #rv-app-v3-root; :has() paints html/body from root is-*
 * (Safari 15.4+ / current iPhone standalone). CSS-only; no JS body toggle.
 *
 * Primary tabs + Detail + secondary browsing routes with persistent nav → stage fallback.
 * Gallery → white. Viewer → black.
 */
html.rv-v3-standalone:has(#rv-app-v3-root.is-viewer),
html.rv-v3-standalone:has(#rv-app-v3-root.is-viewer) body,
html.rv-v3-booting:has(#rv-app-v3-root.is-viewer) body {
  background: #000;
}

#rv-app-v3-root.is-viewer {
  background: #000;
}

#rv-app-v3-root.is-viewer .rv-v3-stage {
  background: #000;
}

html.rv-v3-standalone:has(#rv-app-v3-root.is-gallery),
html.rv-v3-standalone:has(#rv-app-v3-root.is-gallery) body,
html.rv-v3-booting:has(#rv-app-v3-root.is-gallery) body {
  background: var(--rv-v3-white);
}

#rv-app-v3-root.is-gallery {
  background: var(--rv-v3-white);
}

.rv-v3-boot {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  color: var(--rv-v3-muted);
  font-family: var(--rv-v3-font);
  box-sizing: border-box;
  background: var(--rv-v3-white);
}

/*
 * V86 final simple boot — sole branded startup surface.
 * iOS apple-touch-startup-image is plain white only.
 * Pin 60px + tagline; group centered; static (no animation).
 */
.rv-v3-boot__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(300px, 92vw);
}

.rv-v3-boot__mark {
  width: 60px;
  height: 60px;
  display: block;
  flex: 0 0 auto;
}

.rv-v3-boot__tagline {
  margin: 0;
  font-family: var(--rv-v3-font);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
  color: #5b6478;
}

/* Single startup surface: cover shell until Shell.markReady() removes boot. */
html.rv-v3-booting #rv-app-v3-boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  background: var(--rv-v3-white);
  box-sizing: border-box;
}

html.rv-v3-booting #rv-app-v3-root {
  /* Mount under boot overlay; do not expose empty chrome/skeleton flash. */
  visibility: hidden;
  pointer-events: none;
}

html.rv-v3-ready #rv-app-v3-root {
  visibility: visible;
  pointer-events: auto;
}

.rv-v3-denied {
  max-width: 420px;
  margin: 48px auto;
  padding: 24px;
  font-family: var(--rv-v3-font);
  color: var(--rv-v3-ink);
}

.rv-v3-denied a {
  color: var(--rv-v3-green-strong);
}

#rv-app-v3-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  /* v69: large/full viewport height (not short inset→dvh chain) */
  height: 100vh;
  height: 100lvh;
  max-height: 100vh;
  max-height: 100lvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--rv-v3-stage);
  color: var(--rv-v3-ink);
  font-family: var(--rv-v3-font);
  z-index: 1;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: manipulation;
}

/* Leaflet owns map gestures; keep page-level no-zoom from fighting Map */
#rv-app-v3-root .leaflet-container {
  touch-action: none;
}

#rv-app-v3-root .rv-v3-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#rv-app-v3-root .rv-v3-header {
  flex: 0 0 auto;
  padding: calc(6px + var(--rv-v3-safe-top)) 16px 6px;
  border-bottom: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
  min-height: calc(var(--rv-v3-header-h) + var(--rv-v3-safe-top));
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

#rv-app-v3-root .rv-v3-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  width: 100%;
}

#rv-app-v3-root .rv-v3-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--rv-v3-ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-header__brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: 0 0 auto;
}

/* Home brand row: mark + name + tagline (same-line when space allows) */
#rv-app-v3-root .rv-v3-header__brand-cluster {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
  min-width: 0;
  line-height: 1.15;
}

#rv-app-v3-root .rv-v3-header__brand-name {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-header__tagline {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rv-v3-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Narrow phones: tagline under brand name inside the cluster */
@media (max-width: 360px) {
  #rv-app-v3-root .rv-v3-header__brand-cluster {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  #rv-app-v3-root .rv-v3-header__tagline {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

#rv-app-v3-root .rv-v3-header__search-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-header__search-title strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-header__search-title span {
  font-size: 0.78rem;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-stage {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  background: var(--rv-v3-stage);
}

#rv-app-v3-root .rv-v3-stage.rv-v3-settle {
  animation: rv-v3-settle 80ms ease-out;
}

/* One shell-level Android update notice. Absent unless the native checker mounts it. */
#rv-app-v3-root .rv-v3-update {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  background: #f3faf6;
  border-bottom: 1px solid rgba(10, 157, 106, 0.2);
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-update[hidden] {
  display: none !important;
}

#rv-app-v3-root .rv-v3-update--required {
  background: #fff7f8;
  border-bottom-color: rgba(225, 29, 72, 0.28);
}

#rv-app-v3-root .rv-v3-update__copy {
  flex: 1 1 auto;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-update__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-update__body {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-update__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-update__go,
#rv-app-v3-root .rv-v3-update__later {
  appearance: none;
  border-radius: var(--rv-v3-radius-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-update__go {
  border: 0;
  background: var(--rv-v3-green);
  color: #fff;
}

#rv-app-v3-root .rv-v3-update__later {
  border: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
}

#rv-app-v3-root.is-viewer .rv-v3-update,
#rv-app-v3-root.is-gallery .rv-v3-update {
  display: none;
}

@keyframes rv-v3-settle {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-stage.rv-v3-settle {
    animation: none;
  }
}

#rv-app-v3-root .rv-v3-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  min-height: 0;
  height: auto;
  /* v71: safe-bottom breathing now that v69 shell covers full height */
  padding: 1px 4px max(8px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-stage);
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7385;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 2px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-height: 46px;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-tab__label {
  display: block;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
}

#rv-app-v3-root .rv-v3-tab__icon {
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}

#rv-app-v3-root .rv-v3-tab__icon .rv-v3-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.85;
}

#rv-app-v3-root .rv-v3-tab__icon .rv-v3-tab__mark {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-tab:active:not(.is-pending) .rv-v3-tab__icon {
  transform: scale(0.97);
  background: rgba(10, 157, 106, 0.06);
}

#rv-app-v3-root .rv-v3-tab.is-active {
  color: var(--rv-v3-green-strong);
  position: relative;
  font-weight: 700;
}

#rv-app-v3-root .rv-v3-tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28%;
  right: 28%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--rv-v3-green-strong);
  opacity: 0.72;
}

#rv-app-v3-root .rv-v3-tab.is-active .rv-v3-tab__icon {
  background: rgba(10, 157, 106, 0.12);
}

#rv-app-v3-root .rv-v3-tab.is-active .rv-v3-icon {
  stroke-width: 2.05;
}

#rv-app-v3-root .rv-v3-tab.is-active:active:not(.is-pending) .rv-v3-tab__icon {
  transform: scale(0.97);
  background: rgba(10, 157, 106, 0.18);
}

#rv-app-v3-root .rv-v3-tab.is-pending {
  opacity: 0.42;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-tab__icon {
    transition: none;
  }
  #rv-app-v3-root .rv-v3-tab:active:not(.is-pending) .rv-v3-tab__icon,
  #rv-app-v3-root .rv-v3-tab.is-active:active:not(.is-pending) .rv-v3-tab__icon {
    transform: none;
  }
}

/* Home */
#rv-app-v3-root .rv-v3-home {
  padding-bottom: 28px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-home__hero {
  position: relative;
  margin: 10px 16px 6px;
  min-height: 160px;
  height: 160px;
  border-radius: var(--rv-v3-radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.22) 0%, rgba(12, 18, 34, 0.55) 55%, rgba(12, 18, 34, 0.72) 100%),
    var(--rv-v3-hero, none) center 36% / cover no-repeat,
    var(--rv-v3-soft);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: var(--rv-v3-shadow-card);
}

@media (max-width: 340px) {
  #rv-app-v3-root .rv-v3-home__hero {
    min-height: 150px;
    height: 150px;
    padding: 10px;
  }
}

#rv-app-v3-root .rv-v3-home__search {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 8px 22px rgba(12, 18, 34, 0.18);
}

#rv-app-v3-root .rv-v3-home__search-icon {
  color: var(--rv-v3-green-strong);
  flex: 0 0 auto;
}

/* Premium AI Search entry on Home hero — routes into Search (no interpret on Home). */
#rv-app-v3-root .rv-v3-home__ai-entry {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-home__ai-card {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 250, 0.97) 55%, rgba(244, 248, 246, 0.95) 100%);
  color: var(--rv-v3-ink);
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  font: inherit;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 14px 36px rgba(10, 16, 28, 0.28);
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  min-width: 0;
  transition: transform 120ms ease, box-shadow 160ms ease;
}

#rv-app-v3-root .rv-v3-home__ai-card:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring), 0 14px 36px rgba(10, 16, 28, 0.28);
}

#rv-app-v3-root .rv-v3-home__ai-card:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 8px 22px rgba(10, 16, 28, 0.22);
}

#rv-app-v3-root .rv-v3-home__ai-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-home__ai-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 157, 106, 0.18);
  background: rgba(10, 157, 106, 0.12);
  color: var(--rv-v3-green-strong);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

#rv-app-v3-root .rv-v3-home__ai-title {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--rv-v3-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-home__ai-lead {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--rv-v3-muted);
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-home__ai-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 5px 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 38, 0.1);
  background: var(--rv-v3-white);
  box-shadow: 0 1px 0 rgba(15, 20, 38, 0.03);
  box-sizing: border-box;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-home__ai-field-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(91, 100, 120, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-home__ai-field-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--rv-v3-green-strong);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(8, 138, 92, 0.22);
}

#rv-app-v3-root .rv-v3-home__keyword {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 4px 4px 0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-home__keyword:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
  border-radius: 6px;
}

/* Phone + large phones (incl. iPhone Pro Max ~440 CSS px): stack Ask AI under the field.
 * Keep the inline field only for tablet/desktop widths above this band. */
@media (max-width: 480px) {
  #rv-app-v3-root .rv-v3-home__hero {
    height: auto;
    min-height: 160px;
  }

  #rv-app-v3-root .rv-v3-home__ai-field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #rv-app-v3-root .rv-v3-home__ai-field-text {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0 13px;
    line-height: 42px;
    border: 1px solid rgba(15, 20, 38, 0.1);
    border-radius: 12px;
    background: var(--rv-v3-white);
    box-shadow: 0 1px 0 rgba(15, 20, 38, 0.03);
    box-sizing: border-box;
  }

  #rv-app-v3-root .rv-v3-home__ai-field-cta {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }
}

#rv-app-v3-root .rv-v3-home__section-head {
  padding: 18px 16px 8px;
}

#rv-app-v3-root .rv-v3-home__rail-section .rv-v3-home__section-head {
  padding: 12px 16px 8px;
}

#rv-app-v3-root .rv-v3-home__section-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

/* Recommended: typography prominence only (no card/banner) */
#rv-app-v3-root .rv-v3-home__rail-section.is-recommended .rv-v3-home__section-head {
  padding: 20px 16px 10px;
}

#rv-app-v3-root .rv-v3-home__rail-section.is-recommended .rv-v3-home__section-head h2 {
  font-size: 1.22rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

#rv-app-v3-root .rv-v3-home__browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

#rv-app-v3-root .rv-v3-home__browse-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  min-height: var(--rv-v3-control-min);
  min-width: 0;
  height: auto;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: none;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#rv-app-v3-root .rv-v3-home__browse-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(10, 157, 106, 0.1);
  color: var(--rv-v3-green-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-home__browse-icon .rv-v3-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

#rv-app-v3-root .rv-v3-home__browse-label {
  display: block;
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-home__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 2px;
  padding: 6px 16px 10px;
}

#rv-app-v3-root .rv-v3-home__tools-copy {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-home__tools-saved {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  margin: 0;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rv-v3-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-home__tools-saved:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
  border-radius: 6px;
}

#rv-app-v3-root .rv-v3-area-rail,
#rv-app-v3-root .rv-v3-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Popular areas — same iOS overflow-x padding collapse as listing rails. */
#rv-app-v3-root .rv-v3-area-rail {
  padding: 0 16px 4px 0;
  scroll-padding-left: 16px;
}

#rv-app-v3-root .rv-v3-area-rail::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  pointer-events: none;
}

/*
 * Listing card rails: iOS often collapses leading padding on overflow-x flex
 * rows. Use a flex spacer so the first card matches the 16px Home gutter.
 */
#rv-app-v3-root .rv-v3-rail {
  padding: 0 16px 4px 0;
  scroll-padding-left: 16px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-rail::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-area-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  min-width: 132px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: none;
}

#rv-app-v3-root .rv-v3-area-chip strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-area-chip span {
  font-size: 0.75rem;
  color: #4a5366;
  font-weight: 550;
}

#rv-app-v3-root .rv-v3-rail__item {
  flex: 0 0 78%;
  max-width: 280px;
  min-width: 0;
  scroll-snap-align: start;
}

/*
 * Colombo / Greater Colombo. Width comes from the rail content box, not vw.
 * min(72vw, 220px) stayed 220px on a 412px WebView, so the next card and its
 * rent sat inside the screen and were cut by the viewport. 100% is the rail
 * inner width. The 16px remainder is the row gap plus a short photo peek;
 * the next rent line starts past the viewport edge.
 */
/*
 * One card fills the rail between the 16px gutters. The stride is card width
 * plus a 16px margin, which matches the snap port, so a swipe lands on a
 * whole card instead of a half card.
 */
#rv-app-v3-root .rv-v3-rail--discover .rv-v3-rail__item {
  flex: 0 0 calc(100% - 32px);
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
  min-width: 0;
  box-sizing: border-box;
  margin-right: 16px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#rv-app-v3-root .rv-v3-rail--discover {
  gap: 0;
  padding-right: 0;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scroll-padding-right: 16px;
  overflow-anchor: none;
}

#rv-app-v3-root .rv-v3-rail--discover::before,
#rv-app-v3-root .rv-v3-rail--discover::after {
  scroll-snap-align: none;
}

#rv-app-v3-root .rv-v3-rail--discover::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-discover {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(15, 20, 38, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: var(--rv-v3-white);
  box-shadow: 0 1px 2px rgba(15, 20, 38, 0.05), 0 8px 18px rgba(15, 20, 38, 0.06);
  /* Android WebView paints the photo layer outside this clip on first composite. */
  transform: translateZ(0);
}

#rv-app-v3-root .rv-v3-discover__media {
  position: relative;
  height: 176px;
  background: var(--rv-v3-soft);
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-discover__img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

#rv-app-v3-root .rv-v3-discover__img--empty {
  background: linear-gradient(180deg, #e8eee9, #f3f6f4);
}

#rv-app-v3-root .rv-v3-discover__heart {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Later shared .rv-v3-card__heart is the same specificity and was winning top/right. */
#rv-app-v3-root .rv-v3-discover .rv-v3-card__heart {
  top: 10px;
  right: 10px;
  color: #0f1426;
  background: transparent;
  filter: none;
}

#rv-app-v3-root .rv-v3-discover .rv-v3-card__heart::before {
  content: "";
  grid-area: 1 / 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 3px rgba(15, 20, 38, 0.18);
}

#rv-app-v3-root .rv-v3-discover .rv-v3-card__heart .rv-v3-icon {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
}

#rv-app-v3-root .rv-v3-discover .rv-v3-card__heart.is-saved {
  color: var(--rv-v3-danger);
  filter: none;
}

#rv-app-v3-root .rv-v3-discover__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 12px;
  border-top: 1px solid rgba(15, 20, 38, 0.1);
  background: var(--rv-v3-white);
  min-width: 0;
}

#rv-app-v3-root .rv-v3-discover__rent {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--rv-v3-ink);
  line-height: 1.15;
  overflow-wrap: break-word;
}

#rv-app-v3-root .rv-v3-discover__area {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #667085;
  line-height: 1.3;
  overflow-wrap: break-word;
}

#rv-app-v3-root .rv-v3-discover__pin {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--rv-v3-green);
}

#rv-app-v3-root .rv-v3-discover__pin .rv-v3-icon {
  width: 14px;
  height: 14px;
}

#rv-app-v3-root .rv-v3-discover__area > span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
}

#rv-app-v3-root .rv-v3-discover__facts {
  list-style: none;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 0;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  max-width: 100%;
  border-radius: 8px;
  background: var(--rv-v3-soft);
  font-size: 0.75rem;
  font-weight: 500;
  color: #5c6578;
  line-height: 1.2;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-discover__facts li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-discover__facts li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: #b7c0c4;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-discover__fact-icon {
  display: inline-flex;
  align-items: center;
  color: #8b93a3;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-discover__fact-icon .rv-v3-icon {
  width: 14px;
  height: 14px;
}

#rv-app-v3-root .rv-v3-trust-card {
  margin: 16px 16px 0;
  padding: 12px 14px;
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  border: 1px solid var(--rv-v3-line);
  box-shadow: none;
}

#rv-app-v3-root .rv-v3-trust-card .rv-v3-trust-chip,
#rv-app-v3-root .rv-v3-trust-card strong.rv-v3-trust-chip {
  margin: 0 0 6px;
}

#rv-app-v3-root .rv-v3-trust-card p {
  margin: 0;
  color: #4a5366;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Search */
#rv-app-v3-root .rv-v3-search {
  padding: 6px 0 24px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


#rv-app-v3-root .rv-v3-search__tools-label {
  margin: 4px 0 0;
  padding: 12px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: rgba(91, 100, 120, 0.78);
  line-height: 1.2;
}

/* Native AI Search V1 (code4) — premium composer above keyword toolbar */
#rv-app-v3-root .rv-v3-ai-search {
  padding: 14px 16px 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(247, 251, 249, 0.92) 0%, rgba(243, 246, 244, 0.55) 62%, rgba(243, 246, 244, 0) 100%);
}

#rv-app-v3-root .rv-v3-ai-search__panel {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(15, 20, 38, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 1) 0%, rgba(249, 252, 250, 0.99) 48%, rgba(245, 248, 246, 0.97) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 24px rgba(16, 24, 40, 0.07);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

#rv-app-v3-root .rv-v3-ai-search--from-home .rv-v3-ai-search__panel {
  border-color: rgba(10, 157, 106, 0.32);
  box-shadow: var(--rv-v3-focus-ring), 0 8px 24px rgba(16, 24, 40, 0.08);
}

#rv-app-v3-root .rv-v3-ai-search__head { margin: 0 0 13px; min-width: 0; }
#rv-app-v3-root .rv-v3-ai-search__title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
#rv-app-v3-root .rv-v3-ai-search__badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 22px; padding: 0 8px; border-radius: 999px;
  border: 1px solid rgba(10, 157, 106, 0.18); background: rgba(10, 157, 106, 0.12);
  color: var(--rv-v3-green-strong); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; line-height: 1;
}
#rv-app-v3-root .rv-v3-ai-search__title {
  margin: 0; min-width: 0; font-size: 17px; font-weight: 750; letter-spacing: -0.025em;
  color: var(--rv-v3-ink); line-height: 1.25; overflow-wrap: anywhere;
}
#rv-app-v3-root .rv-v3-ai-search__hint {
  margin: 7px 0 0; font-size: 13px; font-weight: 500; color: var(--rv-v3-muted, #5b6478);
  line-height: 1.42; max-width: 100%; overflow-wrap: anywhere;
}
#rv-app-v3-root .rv-v3-ai-search__form {
  display: flex; align-items: stretch; gap: 8px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
#rv-app-v3-root .rv-v3-ai-search__input {
  flex: 1 1 auto; min-width: 0; width: auto; max-width: 100%; min-height: 48px;
  border: 1px solid rgba(15, 20, 38, 0.11); border-radius: 12px; background: var(--rv-v3-white);
  padding: 0 14px; font: inherit; font-size: 15px; font-weight: 500; color: var(--rv-v3-ink);
  box-sizing: border-box; box-shadow: 0 1px 0 rgba(15, 20, 38, 0.03);
}
#rv-app-v3-root .rv-v3-ai-search__input::placeholder { color: rgba(91, 100, 120, 0.88); font-weight: 500; }
#rv-app-v3-root .rv-v3-ai-search__input:focus { outline: none; border-color: var(--rv-v3-green); box-shadow: var(--rv-v3-focus-ring); }
#rv-app-v3-root .rv-v3-ai-search__submit {
  flex: 0 0 auto; min-height: 48px; min-width: 5.25rem; max-width: 42%; padding: 0 17px; border-radius: 12px;
  border: 1px solid var(--rv-v3-green-strong); background: var(--rv-v3-green-strong); color: #ffffff;
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 10px rgba(8, 138, 92, 0.24);
}
#rv-app-v3-root .rv-v3-ai-search__submit:focus-visible { outline: none; box-shadow: var(--rv-v3-focus-ring); }
#rv-app-v3-root .rv-v3-ai-search__submit:disabled { opacity: 0.55; box-shadow: none; }
#rv-app-v3-root .rv-v3-ai-search__loading,
#rv-app-v3-root .rv-v3-ai-search__error,
#rv-app-v3-root .rv-v3-ai-search__note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; }
#rv-app-v3-root .rv-v3-ai-search__loading { color: var(--rv-v3-muted, #5b6478); }
#rv-app-v3-root .rv-v3-ai-search__error { color: #b42318; }
#rv-app-v3-root .rv-v3-ai-search__note { color: var(--rv-v3-muted, #5b6478); }
#rv-app-v3-root .rv-v3-ai-search__loading[hidden],
#rv-app-v3-root .rv-v3-ai-search__error[hidden],
#rv-app-v3-root .rv-v3-ai-search__note[hidden] { display: none !important; }
#rv-app-v3-root .rv-v3-ai-search,
#rv-app-v3-root .rv-v3-ai-search__panel { display: block; }
@media (max-width: 430px) {
  #rv-app-v3-root .rv-v3-ai-search { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 390px) {
  #rv-app-v3-root .rv-v3-ai-search__panel { padding: 12px; }
  #rv-app-v3-root .rv-v3-ai-search__submit { padding: 0 13px; }
}
@media (max-width: 360px) {
  #rv-app-v3-root .rv-v3-ai-search { padding-left: 12px; padding-right: 12px; }
  #rv-app-v3-root .rv-v3-ai-search__panel { padding: 11px; }
  #rv-app-v3-root .rv-v3-ai-search__submit { min-width: 4.5rem; padding: 0 11px; font-size: 13px; }
  #rv-app-v3-root .rv-v3-ai-search__title { font-size: 15px; }
  #rv-app-v3-root .rv-v3-search__tools-label { padding-left: 16px; padding-right: 16px; }
}

#rv-app-v3-root .rv-v3-search__toolbar {
  padding: 0 16px 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-search__suggest-anchor {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 8;
}

#rv-app-v3-root .rv-v3-search__field-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rv-v3-line);
  border-radius: 12px;
  background: var(--rv-v3-soft);
  padding: 0 12px;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: box-shadow 80ms ease, border-color 80ms ease;
}

#rv-app-v3-root .rv-v3-area-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: min(280px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rv-v3-line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  z-index: 40;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-area-suggest[hidden] {
  display: none !important;
}

#rv-app-v3-root .rv-v3-area-suggest__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
  color: var(--rv-v3-ink);
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-area-suggest__option.is-active,
#rv-app-v3-root .rv-v3-area-suggest__option:hover {
  background: rgba(10, 157, 106, 0.08);
}

#rv-app-v3-root .rv-v3-area-suggest__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-area-suggest__alias {
  font-size: 12px;
  font-weight: 500;
  color: var(--rv-v3-muted, #5b6478);
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-search__field-wrap:focus-within {
  outline: none;
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: var(--rv-v3-focus-ring);
}

#rv-app-v3-root .rv-v3-search__field-icon {
  color: var(--rv-v3-green-strong);
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-search__field {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--rv-v3-ink);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

#rv-app-v3-root .rv-v3-search__field:focus,
#rv-app-v3-root .rv-v3-search__field:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}

#rv-app-v3-root .rv-v3-search__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-search__btn,
#rv-app-v3-root .rv-v3-tool-btn {
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-pill);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 6px 12px;
  min-height: var(--rv-v3-control-min);
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-btn {
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: 12px;
  background: var(--rv-v3-green);
  border-color: var(--rv-v3-green);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 10px 16px;
  min-height: var(--rv-v3-control-min);
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-btn--secondary {
  background: var(--rv-v3-soft);
  color: var(--rv-v3-ink);
  border-color: var(--rv-v3-line);
}

#rv-app-v3-root .rv-v3-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 16px 6px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  flex: 1 1 auto;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-chips::-webkit-scrollbar {
  display: none;
}

#rv-app-v3-root .rv-v3-chips .rv-v3-chip {
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-chip {
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-pill);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  min-height: var(--rv-v3-control-min);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

#rv-app-v3-root .rv-v3-chip.is-active,
#rv-app-v3-root .rv-v3-chip--active {
  background: #eef8f3;
  border-color: rgba(10, 157, 106, 0.28);
  color: var(--rv-v3-green-strong);
  gap: 6px;
  padding: 4px 6px 4px 12px;
  min-height: 34px;
  height: 34px;
}

#rv-app-v3-root .rv-v3-chip__label {
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

#rv-app-v3-root .rv-v3-chip__remove {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: transparent;
  color: var(--rv-v3-green-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-chip__remove .rv-v3-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

#rv-app-v3-root .rv-v3-chips-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--rv-v3-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 4px;
  min-height: 44px;
  flex: 0 0 auto;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(91, 100, 120, 0.35);
}

#rv-app-v3-root .rv-v3-chip--clear {
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-search__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 4px 16px 10px;
}

#rv-app-v3-root .rv-v3-search__meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  flex: 1 1 auto;
}

#rv-app-v3-root .rv-v3-search__count {
  font-size: 0.84rem;
  color: #4a5366;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-search__map-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--rv-v3-green-strong, #0a9d6a);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 32px;
}

#rv-app-v3-root .rv-v3-search__map-link:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
  border-radius: 6px;
}

#rv-app-v3-root .rv-v3-search__save-search {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--rv-v3-ink, #1a1f2c);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 32px;
}

#rv-app-v3-root .rv-v3-search__save-search:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
  border-radius: 6px;
}

#rv-app-v3-root .rv-v3-search__compare {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  margin: 0;
  flex: 0 1 auto;
  max-width: min(58%, 100%);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--rv-v3-ink);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-search__compare:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
  border-radius: 6px;
}

#rv-app-v3-root .rv-v3-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
  min-width: 0;
  max-width: 100%;
}

/* Search/Saved feed: one cover frame. Extra images share that cell. */
#rv-app-v3-root .rv-v3-results .rv-v3-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-results .rv-v3-card__media {
  display: grid;
  grid-template: minmax(0, var(--rv-v3-card-media-h)) / minmax(0, 1fr);
}

#rv-app-v3-root .rv-v3-results .rv-v3-card__media > .rv-v3-card__img {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: cover;
  z-index: 0;
}

/* Listing card — fixed media geometry */
#rv-app-v3-root .rv-v3-card {
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius);
  overflow: hidden;
  background: var(--rv-v3-white);
  box-shadow: var(--rv-v3-shadow-card);
  /* Same WebView clip: the cover and photo badge stay inside the card. */
  transform: translateZ(0);
}

#rv-app-v3-root .rv-v3-card__media {
  position: relative;
  height: var(--rv-v3-card-media-h);
  background: var(--rv-v3-soft);
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#rv-app-v3-root .rv-v3-card__img--empty {
  background: linear-gradient(135deg, #e8eee9, #f5f7f6);
}

#rv-app-v3-root .rv-v3-card__photo-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--rv-v3-radius-pill);
  background: rgba(15, 20, 38, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  pointer-events: none;
  max-width: calc(100% - 64px);
}

#rv-app-v3-root .rv-v3-card__photo-count .rv-v3-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

#rv-app-v3-root .rv-v3-card__heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: var(--rv-v3-control-min);
  height: var(--rv-v3-control-min);
  min-width: var(--rv-v3-control-min);
  min-height: var(--rv-v3-control-min);
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 1.1px rgba(0, 0, 0, 0.65)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-card__heart .rv-v3-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.45;
}

#rv-app-v3-root .rv-v3-card__heart.is-saved {
  color: var(--rv-v3-danger);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

#rv-app-v3-root .rv-v3-card__heart.is-saved .rv-v3-icon {
  stroke-width: 1.45;
}

#rv-app-v3-root .rv-v3-card__body {
  padding: 12px 12px 14px;
}

#rv-app-v3-root .rv-v3-card__rent-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

#rv-app-v3-root .rv-v3-card__rent-row strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  font-weight: 780;
}

/* Shared status chip geometry — cards + Detail */
#rv-app-v3-root .rv-v3-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--rv-v3-radius-sm);
  line-height: 1.2;
  font-family: inherit;
  white-space: nowrap;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-status-chip--avail {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--rv-v3-green-strong);
  background: rgba(10, 157, 106, 0.14);
}

#rv-app-v3-root .rv-v3-status-chip--trust {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--rv-v3-green);
  background: rgba(10, 157, 106, 0.06);
}

#rv-app-v3-root .rv-v3-card__status {
  margin-top: 6px;
}

#rv-app-v3-root .rv-v3-card__avail {
  font-size: 0.78rem;
  color: var(--rv-v3-green-strong);
  font-weight: 650;
  white-space: nowrap;
}

#rv-app-v3-root .rv-v3-card__badge {
  margin: 6px 0 0;
  color: var(--rv-v3-green-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

#rv-app-v3-root .rv-v3-card__title {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}

#rv-app-v3-root .rv-v3-card__meta,
#rv-app-v3-root .rv-v3-card__area {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #4a5366;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-card__facts {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: #4a5366;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-card__fact-icon {
  display: inline-flex;
  color: #6b7385;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-card__fact-icon .rv-v3-icon {
  width: 14px;
  height: 14px;
}

#rv-app-v3-root .rv-v3-saved {
  padding: 4px 0 28px;
}

#rv-app-v3-root .rv-v3-saved__intro {
  display: none;
}

#rv-app-v3-root .rv-v3-saved__meta {
  padding: 4px 16px 10px;
}

#rv-app-v3-root .rv-v3-saved__count {
  font-size: 0.86rem;
  color: #4a5366;
  font-weight: 600;
}

#rv-app-v3-root .rv-v3-saved__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-saved__list--single {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-saved__item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-saved__list .rv-v3-card {
  width: 100%;
  max-width: 100%;
  height: auto;
}

#rv-app-v3-root .rv-v3-saved__list .rv-v3-card__media {
  height: var(--rv-v3-card-media-h);
}

#rv-app-v3-root .rv-v3-saved__empty {
  padding: 16px 16px 24px;
  text-align: center;
  max-width: 22rem;
  margin: 8px auto 0;
}

#rv-app-v3-root .rv-v3-saved__empty h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-saved__empty p {
  margin: 0 0 16px;
  color: #4a5366;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Hidden listings recovery — reuse Saved results language */
#rv-app-v3-root .rv-v3-hidden-list__meta {
  padding: 10px 16px 0;
}

#rv-app-v3-root .rv-v3-hidden-list__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-hidden-list__empty {
  padding: 48px 24px 32px;
  text-align: center;
}

#rv-app-v3-root .rv-v3-hidden-list__empty h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-hidden-list__empty p {
  margin: 0 0 16px;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-stage--hidden-list {
  background: var(--rv-v3-stage);
}

#rv-app-v3-root .rv-v3-stage--enquiries {
  background: var(--rv-v3-stage);
}

#rv-app-v3-root .rv-v3-enquiries {
  padding: 12px 16px 28px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-enquiries__lead {
  margin: 4px 0 8px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-enquiries__privacy {
  margin: 0 0 16px;
  padding: 0 0 0 1.15rem;
  color: var(--rv-v3-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

#rv-app-v3-root .rv-v3-enquiries__privacy li {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-enquiries__card {
  background: var(--rv-v3-white);
  border: 1px solid var(--rv-v3-line);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 10px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-enquiries__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-enquiries__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: #4a5366;
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-enquiries__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#rv-app-v3-root .rv-v3-enquiries__actions .rv-v3-btn {
  flex: 1 1 8rem;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-enquiries__clear {
  width: 100%;
  margin-top: 4px;
}

#rv-app-v3-root .rv-v3-enquiries__confirm {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--rv-v3-soft);
}

#rv-app-v3-root .rv-v3-enquiries__confirm p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-enquiries__empty {
  padding-top: 12px;
}

#rv-app-v3-root .rv-v3-enquire--success .rv-v3-btn {
  display: block;
  width: 100%;
}

#rv-app-v3-root .rv-v3-enquire--success .rv-v3-btn + .rv-v3-btn {
  margin-top: 8px;
}

/* Detail (secondary) — full-bleed hero; chrome header is a TOP OVERLAY (not flex). */
#rv-app-v3-root.is-detail .rv-v3-tabs {
  display: none;
}

/*
 * Detail header stays out of flex flow so showing it never shrinks stage height
 * (avoids scroll jump / hero reposition). Visible only with .is-detail-stuck.
 */
#rv-app-v3-root.is-detail .rv-v3-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: auto;
  min-height: calc(var(--rv-v3-header-h) + var(--rv-v3-safe-top));
  padding: calc(6px + var(--rv-v3-safe-top)) 12px 6px;
  margin: 0;
  border-bottom: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  box-shadow: 0 1px 0 rgba(15, 20, 38, 0.04), 0 4px 14px rgba(15, 20, 38, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 140ms ease,
    visibility 140ms ease,
    transform 140ms ease;
}

#rv-app-v3-root.is-detail.is-detail-stuck .rv-v3-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* Hero Back ↔ header Back mutual exclusion */
#rv-app-v3-root.is-detail.is-detail-stuck .rv-v3-detail__back {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-header__inner--detail-stuck {
  width: 100%;
}

#rv-app-v3-root .rv-v3-header__detail-title--detail-stuck {
  text-align: center;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-header__detail-title--detail-stuck strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--rv-v3-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-header__stuck-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-header__stuck-fact {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
  color: var(--rv-v3-muted);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-header__stuck-fact .rv-v3-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.88;
}

#rv-app-v3-root .rv-v3-header__stuck-fact-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root.is-detail .rv-v3-header {
    transition: none;
    transform: none;
  }
}

#rv-app-v3-root.is-viewer .rv-v3-header {
  display: none;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
}

#rv-app-v3-root.is-gallery .rv-v3-tabs,
#rv-app-v3-root.is-viewer .rv-v3-tabs,
#rv-app-v3-root.is-enquire .rv-v3-tabs,
#rv-app-v3-root.is-privacy .rv-v3-tabs,
#rv-app-v3-root.is-info .rv-v3-tabs,
#rv-app-v3-root.is-areas .rv-v3-tabs,
#rv-app-v3-root.is-agents .rv-v3-tabs,
#rv-app-v3-root.is-agent .rv-v3-tabs,
#rv-app-v3-root.is-hidden-list .rv-v3-tabs,
#rv-app-v3-root.is-enquiries .rv-v3-tabs,
#rv-app-v3-root.is-compare .rv-v3-tabs,
#rv-app-v3-root.is-agent-task .rv-v3-tabs {
  display: none;
}

/* Gallery — light browsing surface; header matches 2C secondary geometry */
#rv-app-v3-root.is-gallery .rv-v3-header {
  border-bottom: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
}

#rv-app-v3-root.is-gallery .rv-v3-header__back {
  color: var(--rv-v3-ink);
  font-weight: 650;
}

#rv-app-v3-root.is-gallery .rv-v3-header__back .rv-v3-icon,
#rv-app-v3-root.is-gallery .rv-v3-header__back--icon .rv-v3-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

#rv-app-v3-root.is-gallery .rv-v3-header__detail-title strong {
  font-weight: 550;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-header__inner--gallery {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-header__inner--gallery .rv-v3-header__detail-title {
  grid-column: 2;
  text-align: center;
}

/* Legacy detail-grid retained for any non-2C callers. */
#rv-app-v3-root .rv-v3-header__inner--detail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

/* Sub-batch 2C — shared secondary: equal side columns → true-centered title */
#rv-app-v3-root .rv-v3-header__inner--secondary {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-header__side {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-header__side--left {
  justify-content: flex-start;
}

#rv-app-v3-root .rv-v3-header__side--right {
  justify-content: flex-end;
}

#rv-app-v3-root .rv-v3-header__back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--rv-v3-ink);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 6px 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  min-height: 44px;
}

/* Icon-only secondary back — refined chevron, large hit target, no circle */
#rv-app-v3-root .rv-v3-header__back--icon {
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  gap: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#rv-app-v3-root .rv-v3-header__back .rv-v3-icon {
  width: 22px;
  height: 22px;
}

#rv-app-v3-root .rv-v3-header__back--icon .rv-v3-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

#rv-app-v3-root .rv-v3-header__detail-title {
  text-align: center;
  min-width: 0;
  justify-self: stretch;
}

#rv-app-v3-root .rv-v3-header__inner--secondary .rv-v3-header__detail-title {
  grid-column: 2;
}

#rv-app-v3-root .rv-v3-header__detail-title strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Combining marks sit outside the Latin em box. Keep them inside the clipped title. */
html[lang="si"] #rv-app-v3-root .rv-v3-header__detail-title strong,
html[lang="ta"] #rv-app-v3-root .rv-v3-header__detail-title strong {
  line-height: 1.5;
  letter-spacing: normal;
}

#rv-app-v3-root .rv-v3-detail {
  --rv-v3-detail-hero-fade: 0;
  /* v74: action bar + content reserve stay mathematically aligned */
  --rv-v3-detail-actions-pad-top: 6px;
  --rv-v3-detail-actions-pad-x: 16px;
  --rv-v3-detail-actions-pad-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  --rv-v3-detail-actions-btn-h: 44px;
  --rv-v3-detail-actions-reserve: calc(
    var(--rv-v3-detail-actions-pad-top) +
      var(--rv-v3-detail-actions-btn-h) +
      var(--rv-v3-detail-actions-pad-bottom) +
      4px
  );
  padding-bottom: var(--rv-v3-detail-actions-reserve);
}

#rv-app-v3-root .rv-v3-detail__hero {
  position: relative;
  width: 100%;
  height: clamp(220px, 46dvh, 360px);
  background: var(--rv-v3-soft);
  overflow: hidden;
  isolation: isolate;
}

#rv-app-v3-root .rv-v3-detail__rail,
#rv-app-v3-root .rv-v3-detail__img--empty {
  position: relative;
  z-index: 0;
}

#rv-app-v3-root .rv-v3-detail__hero-scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: calc(40px + var(--rv-v3-safe-top));
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 38, 0.22) 0%,
    rgba(15, 20, 38, 0.08) 58%,
    rgba(15, 20, 38, 0) 100%
  );
  opacity: calc(1 - (var(--rv-v3-detail-hero-fade) * 1.15));
}

/*
 * Dedicated hero controls overlay — sibling above media/rail.
 * Not inside slides; not transformed by swipe track.
 */
#rv-app-v3-root .rv-v3-detail__hero-controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* Shared floating control scale — visual circle smaller than hit target */
#rv-app-v3-root .rv-v3-float-btn {
  position: relative;
  z-index: 3;
  width: var(--rv-v3-float-hit);
  height: var(--rv-v3-float-hit);
  min-width: var(--rv-v3-float-hit);
  min-height: var(--rv-v3-float-hit);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rv-v3-ink);
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-float-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--rv-v3-float-visual);
  height: var(--rv-v3-float-visual);
  margin: calc(var(--rv-v3-float-visual) / -2) 0 0 calc(var(--rv-v3-float-visual) / -2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(15, 20, 38, 0.14), 0 3px 10px rgba(15, 20, 38, 0.1);
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-float-btn .rv-v3-icon {
  position: relative;
  z-index: 1;
  width: var(--rv-v3-float-icon);
  height: var(--rv-v3-float-icon);
}

/*
 * Detail Back — floating control in hero-controls overlay (hero-bound absolute).
 * Does NOT use --rv-v3-detail-hero-fade.
 */
#rv-app-v3-root .rv-v3-detail__back {
  position: absolute;
  z-index: 1;
  top: calc(14px + var(--rv-v3-safe-top));
  left: 14px;
  opacity: 1;
  color: #101828;
  pointer-events: auto;
}

#rv-app-v3-root .rv-v3-detail__back::before {
  /* Visible disc smaller than 44px hit target — keep tap area on .rv-v3-detail__back */
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.07),
    0 3px 8px rgba(0, 0, 0, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

#rv-app-v3-root .rv-v3-detail__back .rv-v3-icon {
  width: 17px;
  height: 17px;
  opacity: 1;
}

#rv-app-v3-root .rv-v3-detail.is-hero-chrome-gone .rv-v3-detail__back,
#rv-app-v3-root .rv-v3-detail.is-hero-chrome-gone .rv-v3-detail__img-count {
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-detail__rail,
#rv-app-v3-root .rv-v3-detail__img--empty {
  opacity: calc(1 - (var(--rv-v3-detail-hero-fade) * 0.65));
}

#rv-app-v3-root .rv-v3-detail__rail {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

#rv-app-v3-root .rv-v3-detail__rail::-webkit-scrollbar {
  display: none;
}

#rv-app-v3-root .rv-v3-detail__slide {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
  position: relative;
}

#rv-app-v3-root .rv-v3-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-detail__img--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #e8ece9 0%, #f3f6f4 100%);
}

#rv-app-v3-root .rv-v3-detail__img-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  appearance: none;
  border: 0;
  background: rgba(15, 20, 38, 0.78);
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 5px 9px;
  border-radius: 10px;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(15, 20, 38, 0.22);
  opacity: calc(1 - (var(--rv-v3-detail-hero-fade) * 1.2));
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-detail__rail,
  #rv-app-v3-root .rv-v3-detail__img--empty,
  #rv-app-v3-root .rv-v3-detail__back,
  #rv-app-v3-root .rv-v3-detail__img-count,
  #rv-app-v3-root .rv-v3-detail__hero-scrim {
    transition: none;
  }
}

#rv-app-v3-root .rv-v3-detail__body {
  padding: 16px 16px 8px;
}

#rv-app-v3-root .rv-v3-detail__rent-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#rv-app-v3-root .rv-v3-detail__rent-row strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: break-word;
}

#rv-app-v3-root .rv-v3-detail__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

#rv-app-v3-root .rv-v3-detail__status-avail,
#rv-app-v3-root .rv-v3-detail__status-trust {
  /* Geometry owned by shared .rv-v3-status-chip */
  margin: 0;
}

#rv-app-v3-root .rv-v3-detail__badge {
  margin: 10px 0 0;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--rv-v3-green-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

#rv-app-v3-root .rv-v3-detail__badge-sub {
  font-weight: 600;
  color: var(--rv-v3-muted);
  font-size: 0.75rem;
}

#rv-app-v3-root .rv-v3-detail__title {
  margin: 12px 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 550;
}

#rv-app-v3-root .rv-v3-detail__facts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

#rv-app-v3-root .rv-v3-detail__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #2f3748;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-detail__fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rv-v3-green);
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

#rv-app-v3-root .rv-v3-detail__fact-icon .rv-v3-icon {
  width: 18px;
  height: 18px;
}

#rv-app-v3-root .rv-v3-detail__meta {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#rv-app-v3-root .rv-v3-detail__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.88rem;
  color: #4a5366;
  line-height: 1.4;
}

#rv-app-v3-root .rv-v3-detail__meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #6b7385;
}

#rv-app-v3-root .rv-v3-detail__meta-icon .rv-v3-icon {
  width: 16px;
  height: 16px;
}

#rv-app-v3-root .rv-v3-detail__meta-icon--location {
  color: var(--rv-v3-meta-location);
}

#rv-app-v3-root .rv-v3-detail__meta-icon--fresh {
  color: var(--rv-v3-meta-fresh);
}

#rv-app-v3-root .rv-v3-detail__meta-icon--listed {
  color: var(--rv-v3-meta-listed);
}

#rv-app-v3-root .rv-v3-detail__meta-text {
  min-width: 0;
  flex: 1 1 auto;
  word-break: break-word;
  color: #4a5366;
}

#rv-app-v3-root .rv-v3-detail__attr-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--rv-v3-green-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-text-fill-color: var(--rv-v3-green-strong);
}

#rv-app-v3-root .rv-v3-detail__section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rv-v3-line);
}

#rv-app-v3-root .rv-v3-detail__section h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-detail__section h2::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--rv-v3-green);
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-cash-move {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rv-v3-line);
  min-width: 0;
}

#rv-app-v3-root .rv-cash-move h2 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rv-v3-ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

#rv-app-v3-root .rv-cash-move h2::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--rv-v3-green);
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-cash-move__support,
#rv-app-v3-root .rv-cash-move__safety {
  margin: 0;
  color: var(--rv-v3-muted, #5b6478);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

#rv-app-v3-root .rv-cash-move__support {
  margin-bottom: 10px;
}

#rv-app-v3-root .rv-cash-move__lines {
  display: grid;
  gap: 8px;
  margin: 0;
}

#rv-app-v3-root .rv-cash-move__row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#rv-app-v3-root .rv-cash-move__row dt {
  margin: 0;
  color: #6a7788;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

#rv-app-v3-root .rv-cash-move__row dd {
  margin: 0;
  color: var(--rv-v3-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-cash-move__total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--rv-v3-line);
}

#rv-app-v3-root .rv-cash-move__total dd,
#rv-app-v3-root .rv-cash-move__ongoing dd {
  font-size: 1.05rem;
  font-weight: 800;
}

#rv-app-v3-root .rv-cash-move__safety {
  margin-top: 10px;
}

#rv-app-v3-root .rv-v3-detail__attrs {
  margin: 0;
}

#rv-app-v3-root .rv-v3-detail__attrs > div {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(15, 20, 38, 0.05);
}

#rv-app-v3-root .rv-v3-detail__attrs dt {
  margin: 0;
  color: #6b7385;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-detail__attrs dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--rv-v3-ink);
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-detail__about {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #3d4658;
  font-weight: 450;
}

#rv-app-v3-root .rv-v3-detail__about.is-collapsed .rv-v3-detail__about-inner {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-detail__about-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 8px 0 0;
  padding: 0;
  min-height: 44px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rv-v3-green-strong);
  cursor: pointer;
  text-align: left;
}

#rv-app-v3-root .rv-v3-detail__about p {
  margin: 0 0 6px;
}

#rv-app-v3-root .rv-v3-detail__about-line {
  margin: 0 0 4px;
}

#rv-app-v3-root .rv-v3-detail__about-line:empty {
  margin: 0 0 8px;
  min-height: 0.35em;
}

#rv-app-v3-root .rv-v3-detail__about-line.is-bullet {
  padding-left: 0.1rem;
  color: #3d4658;
}

#rv-app-v3-root .rv-v3-detail__about p + p {
  margin-top: 0;
}

#rv-app-v3-root .rv-v3-detail__about br {
  line-height: 1.45;
}

#rv-app-v3-root .rv-v3-detail__about ul {
  margin: 4px 0 8px;
  padding-left: 1.15rem;
}

#rv-app-v3-root .rv-v3-detail__about li {
  margin: 0 0 3px;
  line-height: 1.45;
}

#rv-app-v3-root .rv-v3-detail__about strong,
#rv-app-v3-root .rv-v3-detail__about b {
  font-weight: 650;
  color: #2f3748;
}

#rv-app-v3-root .rv-v3-detail__amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

#rv-app-v3-root .rv-v3-detail__amenities li {
  box-sizing: border-box;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-sm);
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.25;
  color: #2f3748;
  background: var(--rv-v3-white);
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Sub-batch 2E — Approximate Location */
#rv-app-v3-root .rv-v3-detail__location-area {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-detail__location-label {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--rv-v3-muted);
  line-height: 1.4;
}

/* Detail approximate mini-map — local stacking context only (never above fixed actions) */
#rv-app-v3-root .rv-v3-detail__mini-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 200px;
  max-height: 220px;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius);
  overflow: hidden;
  background: var(--rv-v3-soft);
  cursor: pointer;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-detail__mini-map-host {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: var(--rv-v3-soft);
}

/* Confine Leaflet panes/controls to the mini-map stacking context */
#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-pane,
#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-top,
#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-bottom,
#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-control {
  /* z-index remains Leaflet-local; parent isolation clips escape */
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-control-attribution {
  font-size: 0.58rem;
  line-height: 1.15;
  max-width: calc(100% - 6px);
  margin: 0;
  padding: 2px 5px;
  color: rgba(15, 20, 38, 0.52);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 4px 0 0 0;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-detail__mini-map .leaflet-control-attribution a {
  color: rgba(15, 20, 38, 0.62);
}

#rv-app-v3-root .rv-v3-detail__mini-map-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-detail__mini-map:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
}

#rv-app-v3-root .rv-v3-detail__map-cta {
  width: 100%;
  min-height: 44px;
}

#rv-app-v3-root .rv-v3-detail__map-cta:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
}

@media (max-width: 360px) {
  #rv-app-v3-root .rv-v3-detail__mini-map {
    height: 180px;
  }
}

#rv-app-v3-root .rv-v3-detail-agent__card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "avatar text"
    "cta cta";
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  border: 1px solid var(--rv-v3-line);
  box-shadow: none;
}

#rv-app-v3-root .rv-v3-detail-agent__avatar {
  grid-area: avatar;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-detail-agent__avatar.is-company-logo {
  background: #ffffff;
  border: 1px solid var(--rv-v3-line);
  padding: 4px;
}

#rv-app-v3-root .rv-v3-detail-agent__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#rv-app-v3-root .rv-v3-detail-agent__initials {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-detail-agent__text {
  grid-area: text;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-detail-agent__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-detail-agent__kind,
#rv-app-v3-root .rv-v3-detail-agent__count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: #4a5366;
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-detail-agent__cta {
  grid-area: cta;
  appearance: none;
  margin: 0;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-soft);
  color: var(--rv-v3-ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
}

#rv-app-v3-root .rv-v3-detail-agent__cta:active {
  transform: scale(0.99);
}

#rv-app-v3-root .rv-v3-detail-similar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

#rv-app-v3-root .rv-v3-detail-similar__item {
  min-width: 0;
}

#rv-app-v3-root .rv-v3-detail-similar__item .rv-v3-card {
  height: 100%;
}

#rv-app-v3-root .rv-v3-detail-similar__item .rv-v3-card__media {
  height: 112px;
}

#rv-app-v3-root .rv-v3-detail-similar__item .rv-v3-card__body {
  padding: 8px 10px 10px;
}

#rv-app-v3-root .rv-v3-detail-similar__item .rv-v3-card__title {
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
}

#rv-app-v3-root .rv-v3-detail-similar__item .rv-v3-card__rent-row strong {
  font-size: 0.9rem;
}

#rv-app-v3-root .rv-v3-detail-similar__item .rv-v3-card__facts {
  gap: 6px;
  font-size: 0.72rem;
}

#rv-app-v3-root .rv-v3-detail__spacer {
  height: 0;
  margin: 0;
  padding: 0;
}

#rv-app-v3-root .rv-v3-detail__actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  /* v74: real iPhone safe-bottom under Save / Share / Enquire */
  padding:
    var(--rv-v3-detail-actions-pad-top, 6px)
    var(--rv-v3-detail-actions-pad-x, 16px)
    var(--rv-v3-detail-actions-pad-bottom, max(10px, env(safe-area-inset-bottom, 0px)));
  background: var(--rv-v3-stage);
  border-top: 1px solid var(--rv-v3-line);
  box-shadow: 0 -4px 18px rgba(15, 20, 38, 0.06);
}

#rv-app-v3-root .rv-v3-detail__save-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-self: start;
}

#rv-app-v3-root .rv-v3-detail__save-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 2;
  box-sizing: border-box;
  max-width: min(220px, 70vw);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 24, 23, 0.94);
  box-shadow: 0 8px 22px rgba(15, 20, 18, 0.28);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

#rv-app-v3-root .rv-v3-detail__save-hint.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-detail__save-hint {
    transition: none;
  }
}

#rv-app-v3-root .rv-v3-detail__save,
#rv-app-v3-root .rv-v3-detail__share {
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
  border-radius: 12px;
  min-width: 72px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.1;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-detail__save.is-saved {
  color: var(--rv-v3-danger);
  border-color: rgba(225, 29, 72, 0.28);
}

#rv-app-v3-root .rv-v3-detail__share:disabled {
  opacity: 0.55;
}

#rv-app-v3-root .rv-v3-detail__enquire {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-detail__share-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 2px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--rv-v3-green-strong);
  text-align: center;
}

#rv-app-v3-root .rv-v3-detail__share-status.is-error {
  color: var(--rv-v3-danger);
}

#rv-app-v3-root .rv-v3-detail__pref {
  margin: 8px 0 4px;
  padding: 0 2px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-detail__hide,
#rv-app-v3-root .rv-v3-detail__compare {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  margin: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--rv-v3-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-detail__hide:focus-visible,
#rv-app-v3-root .rv-v3-detail__compare:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
  border-radius: 8px;
}

#rv-app-v3-root .rv-v3-detail__hide-status,
#rv-app-v3-root .rv-v3-detail__compare-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 2px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--rv-v3-muted);
  text-align: center;
}

#rv-app-v3-root .rv-v3-detail__hide-undo,
#rv-app-v3-root .rv-v3-detail__compare-now {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--rv-v3-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-detail--missing {
  padding: 48px 24px 32px;
  text-align: center;
}

#rv-app-v3-root .rv-v3-detail--missing h1 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-detail--missing p {
  margin: 0 0 20px;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-detail__missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-btn--ghost {
  background: var(--rv-v3-soft);
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-empty {
  padding: var(--rv-v3-space-5) var(--rv-v3-space-4);
  text-align: center;
  max-width: 22rem;
  margin: 12px auto 0;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-empty h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-empty p {
  margin: 0 0 16px;
  color: var(--rv-v3-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

#rv-app-v3-root .rv-v3-empty .rv-v3-btn {
  min-width: 9.5rem;
}

#rv-app-v3-root .rv-v3-empty__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-empty__actions .rv-v3-btn {
  width: 100%;
  max-width: 16rem;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-empty__nearby {
  width: 100%;
  max-width: 18rem;
  box-sizing: border-box;
  margin: 2px 0 2px;
  text-align: center;
}

#rv-app-v3-root .rv-v3-empty__nearby-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--rv-v3-muted, #5b6478);
}

#rv-app-v3-root .rv-v3-empty__nearby-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-empty__nearby-chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rv-v3-line, #d7dde6);
  background: #fff;
  color: var(--rv-v3-ink, #1f2937);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-empty__nearby-chip:hover {
  border-color: rgba(10, 157, 106, 0.45);
  background: rgba(10, 157, 106, 0.06);
}

#rv-app-v3-root .rv-v3-empty__nearby-chip:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
}

#rv-app-v3-root .rv-v3-empty__find-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  margin: 2px 0 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--rv-v3-muted, #5b6478);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  line-height: 1.35;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-empty__find-link:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skeletons */
#rv-app-v3-root .rv-v3-skel {
  display: block;
  background: linear-gradient(90deg, #eef1ef 0%, #f7f8f7 50%, #eef1ef 100%);
  background-size: 200% 100%;
  animation: rv-v3-skel 1.1s ease-in-out infinite;
  border-radius: var(--rv-v3-radius);
}

@keyframes rv-v3-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-skel { animation: none; }
}

#rv-app-v3-root .rv-v3-skel--search { height: 48px; margin: 12px 16px; }
#rv-app-v3-root .rv-v3-skel--title { height: 18px; width: 42%; margin: 18px 16px 10px; }
#rv-app-v3-root .rv-v3-skel--tile { height: 72px; flex: 1; }
#rv-app-v3-root .rv-v3-skel--card { height: 220px; width: 78%; max-width: 280px; flex: 0 0 auto; }
#rv-app-v3-root .rv-v3-skel--card-lg { height: 220px; margin: 0 16px 14px; }
#rv-app-v3-root .rv-v3-skel--line { height: 16px; width: 36%; margin: 8px 16px 14px; }
#rv-app-v3-root .rv-v3-skel--avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin: 0;
}
#rv-app-v3-root .rv-v3-skel--agent-name {
  width: 56%;
  margin: 4px 0 10px;
}
#rv-app-v3-root .rv-v3-skel--agent-meta {
  width: 38%;
  margin: 0;
  height: 12px;
}
#rv-app-v3-root .rv-v3-skel--agent-body {
  height: 96px;
  margin: 16px 0 0;
}
#rv-app-v3-root .rv-v3-agent--skeleton {
  padding: 16px;
}
#rv-app-v3-root .rv-v3-skel-row {
  display: flex;
  gap: 10px;
  padding: 0 16px;
}
#rv-app-v3-root .rv-v3-skel-row--rail {
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Sheets (appended to body) */
.rv-v3-sheet-host {
  position: fixed;
  inset: 0;
  z-index: 40;
  font-family: var(--rv-v3-font);
}

.rv-v3-sheet {
  position: absolute;
  inset: 0;
  /* Host/backdrop only — panel is bottom-anchored and content-height. */
  display: block;
}

.rv-v3-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 20, 38, 0.42);
}

.rv-v3-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  flex: none;
  height: auto;
  max-height: min(86dvh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--rv-v3-white);
  border-radius: 18px 18px 0 0;
  padding: 0;
  color: var(--rv-v3-ink);
  box-sizing: border-box;
}

.rv-v3-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  position: sticky;
  top: 0;
  background: var(--rv-v3-white);
  z-index: 2;
}

.rv-v3-sheet__head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.rv-v3-sheet__head--filters {
  display: grid;
  grid-template-columns: var(--rv-v3-control-min) 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
}

.rv-v3-sheet__head--filters h2 {
  text-align: center;
  font-size: 1.05rem;
}

.rv-v3-sheet__reset {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--rv-v3-green-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  min-height: var(--rv-v3-control-min);
  padding: 0 8px;
  justify-self: end;
}

.rv-v3-sheet__reset.is-quiet {
  color: #8a93a6;
  font-weight: 550;
}

.rv-v3-sheet__x {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: var(--rv-v3-soft);
  color: var(--rv-v3-ink);
  width: var(--rv-v3-control-min);
  height: var(--rv-v3-control-min);
  min-width: var(--rv-v3-control-min);
  min-height: var(--rv-v3-control-min);
  border-radius: var(--rv-v3-radius-pill);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rv-v3-sheet__body {
  padding: 2px 16px 16px;
  position: relative;
  z-index: 0;
}

.rv-v3-sheet__body h3 {
  margin: 8px 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3d4658;
}

.rv-v3-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv-v3-chip-row--rooms {
  gap: 6px;
}

.rv-v3-chip-row--rooms .rv-v3-chip {
  min-width: 2.35rem;
  padding-left: 10px;
  padding-right: 10px;
}

/* Filter sheet chips live on body (outside #rv-app-v3-root) — style them here. */
.rv-v3-sheet-host .rv-v3-chip {
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: 999px;
  background: var(--rv-v3-soft);
  color: var(--rv-v3-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 7px 12px;
  min-height: 38px;
  line-height: 1.2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rv-v3-sheet-host .rv-v3-chip.is-active {
  background: var(--rv-v3-green);
  border-color: var(--rv-v3-green-strong);
  color: #ffffff;
}

.rv-v3-budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rv-v3-budget-row--single {
  grid-template-columns: 1fr;
}

.rv-v3-budget-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #3d4658;
  font-weight: 600;
}

.rv-v3-budget-row input {
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-sm);
  min-height: 40px;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;
  color: var(--rv-v3-ink);
  background: var(--rv-v3-white);
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.rv-v3-budget-row input:focus,
.rv-v3-budget-row input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

/* Green focus on the field chrome (label wraps the control). */
.rv-v3-budget-row label:focus-within {
  border-radius: var(--rv-v3-radius-sm);
}

.rv-v3-budget-row label:focus-within input {
  outline: none;
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: var(--rv-v3-focus-ring);
}

.rv-v3-size-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-sm);
  background: var(--rv-v3-white);
  min-height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
}

.rv-v3-size-field:focus-within {
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: var(--rv-v3-focus-ring);
}

.rv-v3-size-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--rv-v3-ink);
  min-height: 40px;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.rv-v3-size-field__unit {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--rv-v3-muted);
}

.rv-v3-sheet__foot {
  display: flex;
  gap: 10px;
  padding: 8px 16px max(8px, env(safe-area-inset-bottom, 0px));
  position: sticky;
  bottom: 0;
  background: var(--rv-v3-white);
  z-index: 2;
  box-shadow: 0 -6px 16px rgba(15, 20, 38, 0.06);
}

.rv-v3-sheet__foot--single {
  gap: 0;
}

.rv-v3-sheet__foot--dual {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.rv-v3-sheet__foot--dual .rv-v3-btn {
  flex: 1 1 0;
  min-width: 0;
}

.rv-v3-sheet__foot--dual .rv-v3-btn--ghost {
  flex: 0 1 auto;
  min-width: 5.5rem;
  max-width: 38%;
}

.rv-v3-sheet__foot .rv-v3-btn {
  flex: 1;
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: 12px;
  background: var(--rv-v3-green);
  border-color: var(--rv-v3-green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 46px;
}

.rv-v3-sheet__foot .rv-v3-btn--secondary,
.rv-v3-sheet__foot .rv-v3-btn--ghost {
  background: var(--rv-v3-soft);
  color: var(--rv-v3-ink);
  border-color: var(--rv-v3-line);
}

.rv-v3-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid var(--rv-v3-line);
  background: transparent;
  padding: 13px 4px;
  min-height: 48px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--rv-v3-ink);
  box-sizing: border-box;
}

.rv-v3-sort-row__label {
  flex: 1 1 auto;
  min-width: 0;
}

.rv-v3-sort-row__check {
  flex: 0 0 auto;
  color: var(--rv-v3-green-strong);
  font-weight: 700;
  font-size: 1rem;
}

.rv-v3-sort-row.is-active {
  color: var(--rv-v3-green-strong);
  font-weight: 700;
}

/* Sort sheet — pull options up under the Sort header (filter sheet spacing unchanged). */
.rv-v3-sheet-host [data-rv-v3-sort-sheet] .rv-v3-sheet__head {
  padding: 12px 16px 2px;
}

.rv-v3-sheet-host [data-rv-v3-sort-sheet] .rv-v3-sheet__body {
  padding: 0 16px max(8px, env(safe-area-inset-bottom, 0px));
}

.rv-v3-sheet-host [data-rv-v3-sort-sheet] .rv-v3-sort-row:first-child {
  padding-top: 8px;
}

.rv-v3-sheet-host [data-rv-v3-sort-sheet] .rv-v3-sort-row:last-child {
  border-bottom: 0;
}

.rv-v3-sheet-host [data-rv-v3-sort-sheet] .rv-v3-sheet__panel--sort {
  max-height: min(70dvh, 480px);
  height: auto;
  /* Content-height only — do not stretch toward max-height. */
}

/* Gallery — light collage browsing surface (v41 white/light final) */
#rv-app-v3-root .rv-v3-stage--gallery {
  background: var(--rv-v3-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#rv-app-v3-root .rv-v3-gallery {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-gallery__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 0;
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-gallery-collage {
  display: block;
  width: 100%;
  padding: 0 13px;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-gallery-row {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
}

#rv-app-v3-root .rv-v3-gallery-row--full {
  grid-template-columns: 1fr;
}

#rv-app-v3-root .rv-v3-gallery-row--pair {
  grid-template-columns: 1fr 1fr;
}

#rv-app-v3-root .rv-v3-gallery-cell {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  background: var(--rv-v3-soft);
  display: block;
  border-radius: 13px;
  appearance: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  position: relative;
}

/* No dark overlays on Gallery tiles */
#rv-app-v3-root .rv-v3-gallery-cell::before,
#rv-app-v3-root .rv-v3-gallery-cell::after,
#rv-app-v3-root .rv-v3-gallery__img::before,
#rv-app-v3-root .rv-v3-gallery__img::after {
  content: none;
  display: none;
}

#rv-app-v3-root .rv-v3-gallery-cell--full .rv-v3-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--rv-v3-soft);
  pointer-events: none;
  filter: none;
  opacity: 1;
}

#rv-app-v3-root .rv-v3-gallery-cell--pair .rv-v3-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--rv-v3-soft);
  pointer-events: none;
  filter: none;
  opacity: 1;
}

#rv-app-v3-root .rv-v3-gallery__img.is-broken {
  background: var(--rv-v3-soft);
  object-fit: none;
  min-height: 0;
}

#rv-app-v3-root .rv-v3-gallery--missing {
  padding: 48px 24px;
  text-align: center;
  color: var(--rv-v3-muted);
  flex: 1 1 auto;
  background: var(--rv-v3-white);
}

/* Viewer — Sub-batch 2B immersive full-screen photos */
#rv-app-v3-root .rv-v3-stage--viewer {
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#rv-app-v3-root .rv-v3-viewer {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}

#rv-app-v3-root .rv-v3-viewer.is-positioning .rv-v3-viewer__rail {
  visibility: hidden;
}

#rv-app-v3-root .rv-v3-float-btn--on-dark::before {
  background: rgba(20, 24, 32, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.25);
}

#rv-app-v3-root .rv-v3-float-btn--on-dark {
  color: #fff;
}

#rv-app-v3-root.is-viewer .rv-v3-stage.is-viewer-over-gallery {
  position: relative;
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-stage.is-viewer-over-gallery > .rv-v3-gallery {
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-viewer-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #000;
}

#rv-app-v3-root.is-viewer-pull .rv-v3-viewer-layer {
  background: rgba(16, 20, 24, var(--rv-v3-viewer-scrim, 1));
}

#rv-app-v3-root .rv-v3-viewer-layer.is-scrim-snap {
  transition: background-color 180ms ease;
}

#rv-app-v3-root .rv-v3-viewer__bar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  box-sizing: border-box;
  padding: calc(8px + var(--rv-v3-safe-top)) 12px 8px 8px;
  color: #fff;
  pointer-events: none;
  opacity: var(--rv-v3-viewer-chrome, 1);
}

#rv-app-v3-root .rv-v3-viewer.is-scrim-snap .rv-v3-viewer__bar {
  transition: opacity 180ms ease;
}

#rv-app-v3-root .rv-v3-viewer__bar .rv-v3-viewer__close {
  position: relative;
  top: auto;
  left: auto;
  pointer-events: auto;
}

#rv-app-v3-root .rv-v3-viewer__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

#rv-app-v3-root .rv-v3-viewer__rent,
#rv-app-v3-root .rv-v3-viewer__facts {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-viewer__rent {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

#rv-app-v3-root .rv-v3-viewer__facts {
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}

#rv-app-v3-root .rv-v3-viewer__close {
  position: absolute;
  z-index: 4;
  top: calc(8px + var(--rv-v3-safe-top));
  left: 10px;
}

#rv-app-v3-root .rv-v3-viewer__bar .rv-v3-viewer__count {
  position: relative;
  top: auto;
  right: auto;
  justify-self: end;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-viewer__count {
  position: absolute;
  z-index: 4;
  top: calc(14px + var(--rv-v3-safe-top));
  right: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-viewer__rail {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}

#rv-app-v3-root .rv-v3-viewer__rail::-webkit-scrollbar {
  display: none;
}

#rv-app-v3-root .rv-v3-viewer__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #000;
  padding: calc(68px + var(--rv-v3-safe-top)) 0 max(16px, var(--rv-v3-safe-bottom));
}

#rv-app-v3-root .rv-v3-viewer__frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-viewer__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  transform-origin: center center;
}

#rv-app-v3-root .rv-v3-viewer__img.is-zoomed {
  touch-action: none;
  transition: none;
  will-change: transform;
}

#rv-app-v3-root .rv-v3-viewer.is-zoomed .rv-v3-viewer__rail {
  overflow: hidden;
  touch-action: none;
  scroll-snap-type: none;
}

#rv-app-v3-root.is-viewer.is-viewer-pull,
#rv-app-v3-root.is-viewer.is-viewer-pull .rv-v3-stage--viewer:not(.is-viewer-over-gallery) {
  background: rgba(16, 20, 24, var(--rv-v3-viewer-scrim, 1));
}

#rv-app-v3-root .rv-v3-viewer.is-vertical-drag,
#rv-app-v3-root .rv-v3-viewer.is-vertical-drag .rv-v3-viewer__slide,
#rv-app-v3-root .rv-v3-viewer.is-vertical-drag .rv-v3-viewer__frame {
  background: transparent;
}

#rv-app-v3-root .rv-v3-viewer__img.is-vertical-snap {
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-viewer__img.is-vertical-snap {
    transition: none;
  }
  #rv-app-v3-root .rv-v3-viewer-layer.is-scrim-snap,
  #rv-app-v3-root .rv-v3-viewer.is-scrim-snap .rv-v3-viewer__bar {
    transition: none;
  }
}

#rv-app-v3-root .rv-v3-viewer__pending {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.72);
  animation: rv-v3-viewer-spin 0.7s linear infinite;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-viewer__frame.is-loaded .rv-v3-viewer__pending {
  display: none;
}

#rv-app-v3-root .rv-v3-viewer__img.is-broken,
#rv-app-v3-root .rv-v3-viewer__frame.is-broken {
  min-width: 48%;
  min-height: 28%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

@keyframes rv-v3-viewer-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #rv-app-v3-root .rv-v3-viewer__pending {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.45);
  }
}

#rv-app-v3-root .rv-v3-viewer--missing {
  padding: 72px 24px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

/* Privacy (Batch 04 UX fix) */
#rv-app-v3-root .rv-v3-stage--privacy {
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-privacy {
  padding: 12px 16px 16px;
  max-width: var(--rv-v3-content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-privacy__updated {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--rv-v3-muted);
  font-weight: 600;
}

#rv-app-v3-root .rv-v3-privacy__subtitle {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-privacy__body h2 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-privacy__body p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-privacy__list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

#rv-app-v3-root .rv-v3-privacy__list li {
  margin: 0 0 6px;
  font-size: 0.94rem;
  line-height: 1.55;
}

#rv-app-v3-root .rv-v3-privacy__body a {
  color: var(--rv-v3-green-strong);
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-privacy,
#rv-app-v3-root .rv-v3-privacy__body,
#rv-app-v3-root .rv-v3-privacy__body p,
#rv-app-v3-root .rv-v3-privacy__body h2,
#rv-app-v3-root .rv-v3-privacy__body code,
#rv-app-v3-root .rv-v3-privacy__body a {
  overflow-wrap: anywhere;
}

/* Native info screens (Batch 05 repair) */
#rv-app-v3-root .rv-v3-stage--info {
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-info {
  padding: 12px 16px 16px;
  max-width: var(--rv-v3-content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-info__updated {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--rv-v3-muted);
  font-weight: 600;
}

#rv-app-v3-root .rv-v3-info__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-info__subtitle {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-info__body h2 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-info__body h3 {
  margin: 16px 0 8px;
  font-size: 0.98rem;
}

#rv-app-v3-root .rv-v3-info__body p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-info__body ul,
#rv-app-v3-root .rv-v3-info__list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

#rv-app-v3-root .rv-v3-info__body li,
#rv-app-v3-root .rv-v3-info__list li {
  margin: 0 0 6px;
  font-size: 0.94rem;
  line-height: 1.55;
}

#rv-app-v3-root .rv-v3-info__body a {
  color: var(--rv-v3-green-strong);
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-info,
#rv-app-v3-root .rv-v3-info__body,
#rv-app-v3-root .rv-v3-info__title,
#rv-app-v3-root .rv-v3-info__subtitle,
#rv-app-v3-root .rv-v3-info__body p,
#rv-app-v3-root .rv-v3-info__body h2,
#rv-app-v3-root .rv-v3-info__body li,
#rv-app-v3-root .rv-v3-info__body a {
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-info--missing {
  padding: 24px 16px;
}

/* Enquire (Batch 04 / V74 rhythm rebalance on v73 compact base) */
#rv-app-v3-root .rv-v3-stage--enquire {
  background: var(--rv-v3-white);
  overflow-x: hidden;
}

#rv-app-v3-root .rv-v3-enquire {
  padding: 10px 16px max(16px, env(safe-area-inset-bottom, 0px));
  max-width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-enquire__form {
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-enquire__listing {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(10, 157, 106, 0.18);
  border-radius: 13px;
  background: rgba(10, 157, 106, 0.07);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-enquire__listing strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--rv-v3-ink);
  line-height: 1.28;
}

#rv-app-v3-root .rv-v3-enquire__listing-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a5366;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-enquire__fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-enquire__fieldset legend {
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-enquire__intent-group {
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-enquire__intent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 15px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--rv-v3-line);
  border-radius: 0;
  background: var(--rv-v3-white);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--rv-v3-ink);
  box-sizing: border-box;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-enquire__intent:last-child {
  border-bottom: 0;
}

#rv-app-v3-root .rv-v3-enquire__intent span {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-enquire__intent input {
  flex: 0 0 auto;
  order: 2;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rv-v3-green);
}

#rv-app-v3-root .rv-v3-enquire__intent:has(input:checked) {
  background: rgba(10, 157, 106, 0.1);
  box-shadow: inset 3px 0 0 0 var(--rv-v3-green);
}

#rv-app-v3-root .rv-v3-enquire__window {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 15px;
  margin: 0 0 8px;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  background: var(--rv-v3-white);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rv-v3-ink);
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-enquire__window input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rv-v3-green);
}

#rv-app-v3-root .rv-v3-enquire__window:has(input:checked) {
  border-color: var(--rv-v3-green);
  background: rgba(10, 157, 106, 0.08);
  box-shadow: inset 0 0 0 1px rgba(10, 157, 106, 0.12);
}

/* Phone: always stacked. Side-by-side only at tablet+ widths. */
#rv-app-v3-root .rv-v3-enquire__row-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-width: 0;
}

@media (min-width: 700px) {
  #rv-app-v3-root .rv-v3-enquire__row-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin: 0 0 14px;
  }

  #rv-app-v3-root .rv-v3-enquire__row-grid .rv-v3-enquire__field {
    margin-bottom: 0;
    min-width: 0;
  }
}

#rv-app-v3-root .rv-v3-enquire__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--rv-v3-ink);
  min-width: 0;
}

#rv-app-v3-root .rv-v3-enquire__label {
  display: block;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-enquire__opt {
  font-weight: 500;
  color: #6b7385;
  font-size: 0.8rem;
}

#rv-app-v3-root .rv-v3-enquire__field input,
#rv-app-v3-root .rv-v3-enquire__field textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  padding: 12px 12px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  outline: none;
  box-shadow: none;
}

#rv-app-v3-root .rv-v3-enquire__field input {
  min-height: 52px;
  max-height: 52px;
}

#rv-app-v3-root .rv-v3-enquire__field textarea {
  min-height: 100px;
  max-height: none;
  resize: vertical;
  line-height: 1.4;
}

#rv-app-v3-root .rv-v3-enquire__field input::placeholder,
#rv-app-v3-root .rv-v3-enquire__field textarea::placeholder {
  color: #6b7385;
  opacity: 1;
}

#rv-app-v3-root .rv-v3-enquire__field input:focus,
#rv-app-v3-root .rv-v3-enquire__field input:focus-visible,
#rv-app-v3-root .rv-v3-enquire__field textarea:focus,
#rv-app-v3-root .rv-v3-enquire__field textarea:focus-visible {
  outline: none;
  border-color: var(--rv-v3-green);
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.16);
}

#rv-app-v3-root .rv-v3-enquire__viewing.is-hidden,
#rv-app-v3-root .rv-v3-enquire__viewing[hidden] {
  display: none;
}

#rv-app-v3-root .rv-v3-enquire__consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 4px 0 14px;
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 500;
  color: #3d4658;
}

#rv-app-v3-root .rv-v3-enquire__consent input {
  margin: 1px 0 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  accent-color: var(--rv-v3-green);
}

#rv-app-v3-root .rv-v3-enquire__consent a {
  color: var(--rv-v3-green-strong);
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-enquire__consent span,
#rv-app-v3-root .rv-v3-enquire__error,
#rv-app-v3-root .rv-v3-enquire--success p {
  min-width: 0;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-enquire__error {
  margin: 0 0 12px;
  color: var(--rv-v3-danger);
  font-size: 0.9rem;
  font-weight: 600;
}

#rv-app-v3-root .rv-v3-enquire__submit {
  width: 100%;
  min-height: 52px;
  border-radius: var(--rv-v3-radius-md);
  margin-top: 4px;
}

#rv-app-v3-root .rv-v3-enquire--success {
  padding-top: 28px;
  text-align: left;
}

#rv-app-v3-root .rv-v3-enquire--success h1 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-enquire--success p {
  margin: 0 0 12px;
  color: #4a5366;
  line-height: 1.5;
  font-size: 0.94rem;
}

#rv-app-v3-root .rv-v3-enquire__ref {
  margin: 0 0 16px;
  font-size: 0.88rem;
}

#rv-app-v3-root .rv-v3-enquire__ref code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

/* More (Batch 05) */
#rv-app-v3-root .rv-v3-stage--more {
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-more {
  padding: 2px 0 0;
}

#rv-app-v3-root .rv-v3-more__section {
  margin: 0 0 10px;
}

#rv-app-v3-root .rv-v3-more__heading {
  margin: 0;
  padding: 16px 16px 7px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-more__section:first-child .rv-v3-more__heading {
  padding-top: 10px;
}

#rv-app-v3-root .rv-v3-more__section--provider .rv-v3-more__heading {
  color: var(--rv-v3-muted);
  opacity: 0.9;
}

#rv-app-v3-root .rv-v3-more__group {
  border-top: 1px solid var(--rv-v3-line);
  border-bottom: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-more__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 9px 16px;
  text-decoration: none;
  color: var(--rv-v3-ink);
  border-bottom: 1px solid var(--rv-v3-line);
}

#rv-app-v3-root .rv-v3-more__lead {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(10, 157, 106, 0.1);
  color: var(--rv-v3-green-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-more__lead .rv-v3-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

button.rv-v3-more__row,
#rv-app-v3-root button.rv-v3-more__row {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-more__row:last-child {
  border-bottom: 0;
}

#rv-app-v3-root .rv-v3-more__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-more__title {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-more__sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--rv-v3-muted);
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-more__chev {
  flex: 0 0 auto;
  color: var(--rv-v3-muted);
  opacity: 0.75;
}

#rv-app-v3-root .rv-v3-more__chev .rv-v3-icon {
  width: 18px;
  height: 18px;
}

#rv-app-v3-root .rv-v3-more__section--provider .rv-v3-more__title {
  font-weight: 600;
}

#rv-app-v3-root .rv-v3-more__section--provider {
  opacity: 0.96;
}

#rv-app-v3-root .rv-v3-more__section--provider .rv-v3-more__group {
  background: var(--rv-v3-soft);
}

#rv-app-v3-root .rv-v3-more__row--external .rv-v3-more__ext {
  flex: 0 0 auto;
  color: var(--rv-v3-muted);
  opacity: 0.8;
  display: inline-flex;
}

#rv-app-v3-root .rv-v3-more__row--external .rv-v3-more__ext .rv-v3-icon {
  width: 18px;
  height: 18px;
}

#rv-app-v3-root .rv-v3-more__status {
  margin: 10px 16px 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--rv-v3-muted);
  text-align: center;
}

#rv-app-v3-root .rv-v3-more__status.is-error {
  color: var(--rv-v3-ink);
}

/* Areas directory (Batch 06A) — list surface owns bottom (no stage footer slab) */
#rv-app-v3-root .rv-v3-stage--areas {
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-areas {
  padding: 0;
}

#rv-app-v3-root .rv-v3-areas__search {
  padding: 10px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-areas__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  font: inherit;
  font-size: 16px;
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-areas__input:focus {
  outline: 2px solid var(--rv-v3-green-strong);
  outline-offset: 1px;
}

#rv-app-v3-root .rv-v3-areas__section {
  margin: 12px 0 8px;
}

#rv-app-v3-root .rv-v3-areas__heading {
  margin: 0;
  padding: 12px 16px 8px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-areas__list {
  border-top: 1px solid var(--rv-v3-line);
  border-bottom: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-areas__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--rv-v3-line);
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--rv-v3-ink);
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-areas__list > div:last-child .rv-v3-areas__row {
  border-bottom: 0;
}

#rv-app-v3-root .rv-v3-areas__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

#rv-app-v3-root .rv-v3-areas__trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-areas__count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--rv-v3-muted);
  background: transparent;
  border-radius: 0;
  padding: 0;
}

#rv-app-v3-root .rv-v3-areas__chev {
  color: var(--rv-v3-muted);
  display: inline-flex;
}

#rv-app-v3-root .rv-v3-areas__chev .rv-v3-icon {
  width: 14px;
  height: 14px;
}

#rv-app-v3-root .rv-v3-areas__empty {
  margin: 0;
  padding: 8px 16px 16px;
  font-size: 0.9rem;
  color: var(--rv-v3-muted);
}

/* Agents directory + Agent profile (Batch 06B) — list/content owns bottom */
#rv-app-v3-root .rv-v3-stage--agents,
#rv-app-v3-root .rv-v3-stage--agent {
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-agents {
  padding: 0;
}

#rv-app-v3-root .rv-v3-agents__search {
  padding: 10px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-agents__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  font: inherit;
  font-size: 16px;
  color: var(--rv-v3-ink);
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-agents__input:focus {
  outline: 2px solid var(--rv-v3-green-strong);
  outline-offset: 1px;
}

#rv-app-v3-root .rv-v3-agents__list {
  border-top: 1px solid var(--rv-v3-line);
  border-bottom: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
}

#rv-app-v3-root .rv-v3-agents__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--rv-v3-line);
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--rv-v3-ink);
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-agents__list > div:last-child .rv-v3-agents__row {
  border-bottom: 0;
}

#rv-app-v3-root .rv-v3-agents__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-agents__avatar.is-company-logo {
  background: #ffffff;
  border: 1px solid var(--rv-v3-line);
  padding: 4px;
}

#rv-app-v3-root .rv-v3-agents__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#rv-app-v3-root .rv-v3-agents__initials {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-agents__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-agents__name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agents__sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rv-v3-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rv-app-v3-root .rv-v3-agents__count {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--rv-v3-muted);
  line-height: 1.25;
  opacity: 0.92;
}

#rv-app-v3-root .rv-v3-agents__chev {
  flex: 0 0 auto;
  color: var(--rv-v3-muted);
  display: inline-flex;
  align-self: center;
}

#rv-app-v3-root .rv-v3-agents__chev .rv-v3-icon {
  width: 14px;
  height: 14px;
}

#rv-app-v3-root .rv-v3-agents__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 2px;
  overflow: hidden;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agents__chip,
#rv-app-v3-root .rv-v3-agent__chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--rv-v3-line);
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--rv-v3-muted);
  background: #f7f8f7;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rv-app-v3-root .rv-v3-agents__status,
#rv-app-v3-root .rv-v3-agents__empty,
#rv-app-v3-root .rv-v3-agent--status {
  margin: 0;
  padding: 16px;
  font-size: 0.95rem;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-agents__status .rv-v3-btn,
#rv-app-v3-root .rv-v3-agent--status .rv-v3-btn {
  margin-top: 12px;
}

#rv-app-v3-root .rv-v3-agent {
  padding: 14px 16px 16px;
}

#rv-app-v3-root .rv-v3-agent__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0;
}

#rv-app-v3-root .rv-v3-agent__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-agent__avatar.is-company-logo {
  background: #ffffff;
  border: 1px solid var(--rv-v3-line);
  padding: 5px;
}

#rv-app-v3-root .rv-v3-agent__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#rv-app-v3-root .rv-v3-agent__initials {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-agent__name {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent__kind,
#rv-app-v3-root .rv-v3-agent__affiliation,
#rv-app-v3-root .rv-v3-agent__eyebrow,
#rv-app-v3-root .rv-v3-agent__meta,
#rv-app-v3-root .rv-v3-agent__empty {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--rv-v3-muted);
  line-height: 1.4;
}

/* Compact labeled metadata rows (About section) */
#rv-app-v3-root .rv-v3-agent__section--about .rv-v3-agent__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--rv-v3-line);
  color: var(--rv-v3-ink);
  font-weight: 550;
}

#rv-app-v3-root .rv-v3-agent__section--about .rv-v3-agent__meta:last-child {
  border-bottom: 0;
}

#rv-app-v3-root .rv-v3-agent__section--about .rv-v3-agent__meta--established {
  display: block;
  padding: 0 0 8px;
  border-bottom: 0;
  color: var(--rv-v3-muted);
  font-weight: 500;
}

#rv-app-v3-root .rv-v3-agent__meta-label {
  flex: 0 0 108px;
  font-weight: 650;
  color: var(--rv-v3-muted);
  font-size: 0.8rem;
}

#rv-app-v3-root .rv-v3-agent__count {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rv-v3-ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

#rv-app-v3-root .rv-v3-agent__about {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--rv-v3-ink);
  line-height: 1.5;
}

#rv-app-v3-root .rv-v3-agent__section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rv-v3-line);
}

#rv-app-v3-root .rv-v3-agent__section--about {
  margin-top: 14px;
}

#rv-app-v3-root .rv-v3-agent__section--rentals {
  margin-top: 18px;
}

#rv-app-v3-root .rv-v3-agent__section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-agent__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Map (core) — full-stage Leaflet surface */
#rv-app-v3-root .rv-v3-stage--map {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #e8ecef;
}

#rv-app-v3-root .rv-v3-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-map__host {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

#rv-app-v3-root .rv-v3-map__host .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: #e8ecef;
  z-index: 1;
}

/* OSM credit only — Leaflet prefix removed in JS. Stay clear of preview/tabs. */
#rv-app-v3-root .rv-v3-map .leaflet-control-attribution {
  margin: 0 8px 8px 0;
  max-width: min(220px, calc(100% - 24px));
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rv-v3-muted);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(15, 20, 38, 0.08);
}

#rv-app-v3-root .rv-v3-map .leaflet-control-attribution a {
  color: var(--rv-v3-green-strong);
  text-decoration: none;
}

#rv-app-v3-root .rv-v3-map .leaflet-bottom {
  z-index: 5;
  bottom: calc(8px + var(--rv-v3-safe-bottom));
}

#rv-app-v3-root .rv-v3-map:has([data-rv-v3-map-preview-host]:not([hidden])) .leaflet-bottom {
  bottom: calc(118px + var(--rv-v3-safe-bottom));
}

#rv-app-v3-root .rv-v3-map:has([data-rv-v3-map-preview-host]:not([hidden])) .rv-v3-map__approx {
  bottom: calc(118px + var(--rv-v3-safe-bottom));
}

#rv-app-v3-root .rv-v3-map__status,
#rv-app-v3-root .rv-v3-map__empty {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 32px));
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(15, 20, 38, 0.14);
  text-align: center;
  color: var(--rv-v3-ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-map__status p,
#rv-app-v3-root .rv-v3-map__empty p {
  margin: 0 0 12px;
}

#rv-app-v3-root .rv-v3-map__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-map__approx {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: calc(12px + var(--rv-v3-safe-bottom));
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rv-v3-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  box-shadow: 0 1px 6px rgba(15, 20, 38, 0.08);
}

#rv-app-v3-root .rv-v3-map__filter {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(15, 20, 38, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rv-v3-ink);
  max-width: calc(100% - 96px);
}

/*
 * Author `display: inline-flex` outranks UA [hidden]{display:none}.
 * Without this, the empty filter chip paints a small white pill at top-center.
 */
#rv-app-v3-root .rv-v3-map__filter[hidden] {
  display: none !important;
}

#rv-app-v3-root .rv-v3-map__filter-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--rv-v3-green-strong);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-map__tile-note {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  top: 52px;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(15, 20, 38, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

#rv-app-v3-root .rv-v3-map__recenter {
  width: var(--rv-v3-control-min);
  height: var(--rv-v3-control-min);
  min-width: var(--rv-v3-control-min);
  min-height: var(--rv-v3-control-min);
  margin-top: 8px;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-sm);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: var(--rv-v3-shadow-soft);
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-map__recenter:hover {
  background: #f4f4f4;
}

#rv-app-v3-root .rv-v3-map-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

#rv-app-v3-root .rv-v3-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  max-width: 88px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  border: 1.5px solid rgba(15, 20, 38, 0.16);
  box-shadow: 0 2px 8px rgba(15, 20, 38, 0.16);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translateY(-2px);
}

#rv-app-v3-root .rv-v3-map-pin.is-active {
  background: var(--rv-v3-green);
  color: #fff;
  border-color: var(--rv-v3-green-strong);
  box-shadow: 0 4px 16px rgba(8, 138, 92, 0.42);
  transform: translateY(-5px) scale(1.08);
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

#rv-app-v3-root .rv-v3-map-pin__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-map__preview-host {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 12px calc(12px + var(--rv-v3-safe-bottom));
  pointer-events: none;
  display: flex;
  justify-content: center;
}

#rv-app-v3-root .rv-v3-map__preview-host[hidden] {
  display: none !important;
}

#rv-app-v3-root .rv-v3-map-preview {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: stretch;
  width: min(420px, 100%);
  max-height: min(38vh, 168px);
  padding: 10px;
  border-radius: var(--rv-v3-radius);
  background: var(--rv-v3-white);
  box-shadow: var(--rv-v3-shadow-card);
  border: 1px solid var(--rv-v3-line);
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-map-preview__close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rv-v3-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-map-preview__body {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-map-preview__media,
#rv-app-v3-root .rv-v3-map-preview__media-empty {
  display: block;
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--rv-v3-soft);
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-map-preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#rv-app-v3-root .rv-v3-map-preview__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 18px;
}

#rv-app-v3-root .rv-v3-map-preview__rent {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-map-preview__badge {
  align-self: flex-start;
  margin-top: 1px;
}

#rv-app-v3-root .rv-v3-map-preview__title {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--rv-v3-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-map-preview__meta {
  font-size: 0.72rem;
  color: var(--rv-v3-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rv-app-v3-root .rv-v3-map-preview__heart {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: var(--rv-v3-control-min);
  height: var(--rv-v3-control-min);
  min-width: var(--rv-v3-control-min);
  min-height: var(--rv-v3-control-min);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  box-sizing: border-box;
  filter: drop-shadow(0 0 1.1px rgba(0, 0, 0, 0.65)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-map-preview__heart.is-saved {
  color: var(--rv-v3-danger);
  background: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

#rv-app-v3-root .rv-v3-map-preview__heart .rv-v3-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.45;
}

@media (min-width: 768px) {
  #rv-app-v3-root .rv-v3-map-preview {
    max-width: 440px;
  }
}

/* Final cosmetic polish — focus-visible + soft large-screen content width */
#rv-app-v3-root a:focus-visible,
#rv-app-v3-root button:focus-visible,
#rv-app-v3-root [role="button"]:focus-visible,
#rv-app-v3-root .rv-v3-tab:focus-visible,
#rv-app-v3-root .rv-v3-chip:focus-visible,
#rv-app-v3-root .rv-v3-search__btn:focus-visible,
#rv-app-v3-root .rv-v3-tool-btn:focus-visible,
#rv-app-v3-root .rv-v3-btn:focus-visible,
#rv-app-v3-root .rv-v3-card__heart:focus-visible,
#rv-app-v3-root .rv-v3-map-preview__heart:focus-visible,
#rv-app-v3-root .rv-v3-map__recenter:focus-visible,
#rv-app-v3-root .rv-v3-more__row:focus-visible,
#rv-app-v3-root .rv-v3-header__back:focus-visible,
#rv-app-v3-root .rv-v3-detail__back:focus-visible,
#rv-app-v3-root .rv-v3-detail__about-toggle:focus-visible,
#rv-app-v3-root .rv-v3-detail__save:focus-visible,
#rv-app-v3-root .rv-v3-detail__share:focus-visible,
#rv-app-v3-root .rv-v3-detail__enquire:focus-visible,
.rv-v3-sheet-host button:focus-visible,
.rv-v3-sheet-host .rv-v3-chip:focus-visible,
.rv-v3-sheet-host .rv-v3-sheet__x:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
}

#rv-app-v3-root .rv-v3-search__field-wrap:focus-within {
  outline: none;
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: var(--rv-v3-focus-ring);
}

#rv-app-v3-root .rv-v3-detail__body,
#rv-app-v3-root .rv-v3-home,
#rv-app-v3-root .rv-v3-search,
#rv-app-v3-root .rv-v3-saved,
#rv-app-v3-root .rv-v3-more,
#rv-app-v3-root .rv-v3-areas,
#rv-app-v3-root .rv-v3-agents {
  box-sizing: border-box;
}

@media (min-width: 900px) {
  #rv-app-v3-root .rv-v3-detail__body,
  #rv-app-v3-root .rv-v3-home__section,
  #rv-app-v3-root .rv-v3-search__bar,
  #rv-app-v3-root .rv-v3-results,
  #rv-app-v3-root .rv-v3-saved__list,
  #rv-app-v3-root .rv-v3-saved__intro,
  #rv-app-v3-root .rv-v3-more,
  #rv-app-v3-root .rv-v3-areas,
  #rv-app-v3-root .rv-v3-agents,
  #rv-app-v3-root .rv-v3-agent {
    max-width: var(--rv-v3-content-max);
    margin-left: auto;
    margin-right: auto;
  }

  /* Map viewport stays full-bleed inside the stage. */
  #rv-app-v3-root .rv-v3-map,
  #rv-app-v3-root .rv-v3-map__canvas,
  #rv-app-v3-root .rv-v3-map__frame {
    max-width: none;
  }
}

/* Marketplace Visual Close — v28 shared trust chip + ≥900 home frame */
#rv-app-v3-root .rv-v3-trust-chip {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 3px 8px;
  border-radius: var(--rv-v3-radius-pill);
  background: rgba(10, 157, 106, 0.1);
  color: var(--rv-v3-green-strong);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

#rv-app-v3-root .rv-v3-card .rv-v3-trust-chip {
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-card .rv-v3-status-row .rv-v3-trust-chip {
  margin-top: 0;
}

#rv-app-v3-root .rv-v3-map-preview .rv-v3-trust-chip {
  margin-top: 0;
  font-size: 0.66rem;
  padding: 2px 6px;
}

#rv-app-v3-root .rv-v3-skel--card,
#rv-app-v3-root .rv-v3-skel--card-lg {
  height: 248px;
  border-radius: var(--rv-v3-radius);
}

@media (min-width: 900px) {
  #rv-app-v3-root .rv-v3-home {
    max-width: var(--rv-v3-content-max);
    margin-left: auto;
    margin-right: auto;
  }

  #rv-app-v3-root .rv-v3-home__hero,
  #rv-app-v3-root .rv-v3-home__browse-grid,
  #rv-app-v3-root .rv-v3-home__section-head,
  #rv-app-v3-root .rv-v3-rail,
  #rv-app-v3-root .rv-v3-area-rail,
  #rv-app-v3-root .rv-v3-trust-card,
  #rv-app-v3-root .rv-v3-search__toolbar,
  #rv-app-v3-root .rv-v3-chips-bar,
  #rv-app-v3-root .rv-v3-search__meta {
    max-width: var(--rv-v3-content-max);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  #rv-app-v3-root .rv-v3-home__hero {
    width: calc(100% - 32px);
  }

  #rv-app-v3-root .rv-v3-trust-card {
    width: calc(100% - 32px);
  }

  #rv-app-v3-root .rv-v3-map,
  #rv-app-v3-root .rv-v3-map__host,
  #rv-app-v3-root .rv-v3-map__canvas,
  #rv-app-v3-root .rv-v3-map__frame {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}


/* —— Compare Rentals V1 —— */
#rv-app-v3-root .rv-v3-stage--compare {
  background: var(--rv-v3-stage);
}

#rv-app-v3-root .rv-v3-saved__compare-bar {
  padding: 0 16px 10px;
}

#rv-app-v3-root .rv-v3-saved__compare {
  appearance: none;
  border: 1px solid var(--rv-v3-line);
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  border-radius: 10px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-saved__compare:focus-visible {
  outline: none;
  box-shadow: var(--rv-v3-focus-ring);
}

#rv-app-v3-root .rv-v3-compare {
  padding: 12px 0 28px;
}

#rv-app-v3-root .rv-v3-compare__intro {
  padding: 4px 16px 12px;
}

#rv-app-v3-root .rv-v3-compare__intro h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

#rv-app-v3-root .rv-v3-compare__hint {
  margin: 0;
  color: var(--rv-v3-muted);
  font-size: 0.88rem;
}

#rv-app-v3-root .rv-v3-compare__list {
  padding: 0 16px;
}

#rv-app-v3-root .rv-v3-compare__item {
  position: relative;
}

#rv-app-v3-root .rv-v3-compare__item.is-selected .rv-v3-card {
  box-shadow: 0 0 0 2px var(--rv-v3-green-strong);
}

#rv-app-v3-root .rv-v3-card__compare-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(15, 23, 42, 0.35);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#rv-app-v3-root .rv-v3-card__compare-check.is-on {
  background: var(--rv-v3-green-strong);
  border-color: var(--rv-v3-green-strong);
}

#rv-app-v3-root .rv-v3-card__compare-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

#rv-app-v3-root .rv-v3-card__compare-check.is-on .rv-v3-card__compare-mark {
  background: #fff;
}

#rv-app-v3-root .rv-v3-compare__footer {
  position: sticky;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--rv-v3-stage) 28%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

#rv-app-v3-root .rv-v3-compare__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#rv-app-v3-root .rv-v3-compare__clear,
#rv-app-v3-root .rv-v3-compare__tool {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rv-v3-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-compare__status {
  margin: 0 16px 10px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-compare__status-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 750;
  color: var(--rv-v3-ink);
  text-decoration: underline;
  cursor: pointer;
}

#rv-app-v3-root .rv-v3-compare__empty {
  padding: 28px 20px;
  text-align: center;
}

#rv-app-v3-root .rv-v3-compare__toolbar {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 4px 12px 10px;
}

#rv-app-v3-root .rv-v3-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 8px;
}

#rv-app-v3-root .rv-v3-compare__grid {
  --rv-compare-label: 88px;
  --rv-compare-col: minmax(132px, 1fr);
  min-width: calc(var(--rv-compare-label) + (var(--rv-compare-n, 2) * 132px));
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px 16px;
}

#rv-app-v3-root .rv-v3-compare__heads,
#rv-app-v3-root .rv-v3-compare__row {
  display: grid;
  grid-template-columns: var(--rv-compare-label) repeat(var(--rv-compare-n, 2), var(--rv-compare-col));
  gap: 0;
  align-items: start;
}

#rv-app-v3-root .rv-v3-compare__label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--rv-v3-stage);
  padding: 10px 8px 10px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rv-v3-muted);
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-compare__label--spacer {
  min-height: 1px;
}

#rv-app-v3-root .rv-v3-compare__col-head {
  padding: 0 8px 12px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-compare__cover {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--rv-v3-line);
}

#rv-app-v3-root .rv-v3-compare__cover img,
#rv-app-v3-root .rv-v3-compare__cover-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#rv-app-v3-root .rv-v3-compare__identity {
  margin: 8px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-compare__area {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--rv-v3-muted);
}

#rv-app-v3-root .rv-v3-compare__title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-compare__open,
#rv-app-v3-root .rv-v3-compare__remove {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--rv-v3-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  display: block;
}

#rv-app-v3-root .rv-v3-compare__remove {
  color: var(--rv-v3-muted);
  font-weight: 550;
}

#rv-app-v3-root .rv-v3-compare__row {
  border-top: 1px solid var(--rv-v3-line);
}

#rv-app-v3-root .rv-v3-compare__cell {
  padding: 10px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 720px) {
  #rv-app-v3-root .rv-v3-compare__grid {
    --rv-compare-label: 120px;
    --rv-compare-col: minmax(160px, 1fr);
    min-width: 0;
  }

  #rv-app-v3-root .rv-v3-compare__scroll {
    overflow-x: visible;
  }
}

#rv-app-v3-root .rv-v3-stage--agent-signin,
#rv-app-v3-root .rv-v3-stage--agent-workspace {
  overflow-x: hidden;
  overflow-anchor: none;
}

#rv-app-v3-root .rv-v3-agent-auth,
#rv-app-v3-root .rv-v3-agent-workspace {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-auth {
  padding-bottom: 46vh;
}

#rv-app-v3-root .rv-v3-agent-auth__intro p,
#rv-app-v3-root .rv-v3-agent-workspace__body,
#rv-app-v3-root .rv-v3-agent-auth__note,
#rv-app-v3-root .rv-v3-agent-auth__meta,
#rv-app-v3-root .rv-v3-agent-workspace__email {
  margin: 0 0 14px;
  color: var(--rv-v3-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-auth__field span {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-auth__field input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rv-v3-line);
  border-radius: var(--rv-v3-radius-md);
  padding: 12px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  background: var(--rv-v3-white);
  color: var(--rv-v3-ink);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  outline: none;
}

#rv-app-v3-root .rv-v3-agent-auth__field input:focus,
#rv-app-v3-root .rv-v3-agent-auth__field input:focus-visible,
#rv-app-v3-root .rv-v3-agent-auth button:focus-visible,
#rv-app-v3-root .rv-v3-agent-workspace button:focus-visible {
  border-color: var(--rv-v3-green);
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.16);
}

#rv-app-v3-root .rv-v3-agent-auth__error {
  margin: 0 0 12px;
  color: #9b2c2c;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-auth .rv-v3-btn,
#rv-app-v3-root .rv-v3-agent-workspace .rv-v3-btn {
  width: 100%;
  min-height: 52px;
}

#rv-app-v3-root .rv-v3-agent-auth__slot {
  min-height: 50px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-auth__restore {
  min-height: 50px;
  margin: 0;
}

#rv-app-v3-root .rv-v3-agent-auth__identity,
#rv-app-v3-root .rv-v3-agent-workspace__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-auth__identity {
  padding: 12px 16px 4px;
}

#rv-app-v3-root .rv-v3-agent-auth__kicker,
#rv-app-v3-root .rv-v3-agent-auth__name,
#rv-app-v3-root .rv-v3-agent-auth__status,
#rv-app-v3-root .rv-v3-agent-workspace__name,
#rv-app-v3-root .rv-v3-agent-workspace__status {
  margin: 0 0 4px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-auth__name,
#rv-app-v3-root .rv-v3-agent-workspace__name {
  font-weight: 700;
  color: var(--rv-v3-ink);
}

#rv-app-v3-root .rv-v3-agent-workspace {
  padding: 8px 16px 16px;
}

#rv-app-v3-root .rv-v3-agent-workspace__identity {
  min-width: 0;
  margin: 0 0 12px;
}

#rv-app-v3-root .rv-v3-agent-workspace__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-workspace__name-row .rv-v3-agent-workspace__name {
  flex: 1 1 8rem;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

#rv-app-v3-root .rv-v3-agent-workspace__name-row .rv-v3-agent-workspace__status {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(10, 157, 106, 0.28);
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.12);
  color: var(--rv-v3-ink);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-agent-workspace__identity .rv-v3-agent-workspace__email {
  margin: 2px 0 0;
  font-size: 0.86rem;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-more__section--provider .rv-v3-more__text,
#rv-app-v3-root .rv-v3-agent-auth__slot .rv-v3-more__text {
  min-width: 0;
}

#rv-app-v3-root .rv-v3-more__section--provider .rv-v3-more__title,
#rv-app-v3-root .rv-v3-more__section--provider .rv-v3-more__sub,
#rv-app-v3-root .rv-v3-agent-auth__slot .rv-v3-more__title,
#rv-app-v3-root .rv-v3-agent-auth__slot .rv-v3-more__sub {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#rv-app-v3-root .rv-v3-agent-list {
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-list__head,
#rv-app-v3-root .rv-v3-agent-list__filters,
#rv-app-v3-root .rv-v3-agent-list__rows,
#rv-app-v3-root .rv-v3-agent-list__detail-top {
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-list__heading,
#rv-app-v3-root .rv-v3-agent-list__count,
#rv-app-v3-root .rv-v3-agent-list__title,
#rv-app-v3-root .rv-v3-agent-list__meta,
#rv-app-v3-root .rv-v3-agent-list__rent,
#rv-app-v3-root .rv-v3-agent-list__copy,
#rv-app-v3-root .rv-v3-agent-list__field,
#rv-app-v3-root .rv-v3-agent-list__note,
#rv-app-v3-root .rv-v3-agent-list__chip {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#rv-app-v3-root .rv-v3-agent-list__heading {
  margin: 12px 0 2px;
  font-size: 1.05rem;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-agent-list__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-list__title-row .rv-v3-agent-list__heading,
#rv-app-v3-root .rv-v3-agent-list__title-row .rv-v3-agent-list__count {
  margin: 0;
}

#rv-app-v3-root .rv-v3-agent-list__title-row .rv-v3-agent-list__heading {
  flex: 1 1 8rem;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-list__title-row .rv-v3-agent-list__count {
  flex: 0 1 auto;
  font-size: 0.86rem;
}

#rv-app-v3-root .rv-v3-agent-workspace .rv-v3-agent-list__new {
  min-height: 48px;
  margin: 8px 0 0;
  padding: 8px 16px;
  font-size: 0.95rem;
  line-height: 1.2;
}

#rv-app-v3-root .rv-v3-agent-list__count,
#rv-app-v3-root .rv-v3-agent-list__meta,
#rv-app-v3-root .rv-v3-agent-list__note {
  margin: 0 0 8px;
  color: var(--rv-v3-muted, #5c675f);
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-agent-list__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

#rv-app-v3-root .rv-v3-agent-list__filter,
#rv-app-v3-root .rv-v3-agent-list__back {
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(16, 24, 20, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--rv-v3-ink);
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

#rv-app-v3-root .rv-v3-agent-list__filter.is-on {
  border-color: var(--rv-v3-green);
  background: rgba(10, 157, 106, 0.1);
}

#rv-app-v3-root .rv-v3-agent-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(16, 24, 20, 0.1);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: left;
}

#rv-app-v3-root .rv-v3-agent-list__main {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rv-app-v3-root .rv-v3-agent-list__title {
  font-weight: 700;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-agent-list__rent {
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-agent-list__chip {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.12);
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: normal;
}

#rv-app-v3-root .rv-v3-agent-list__img,
#rv-app-v3-root .rv-v3-agent-list__ph {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(10, 157, 106, 0.12);
}

#rv-app-v3-root .rv-v3-agent-list__detail-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

#rv-app-v3-root .rv-v3-agent-list__sub {
  margin: 8px 0 4px;
  font-size: 0.95rem;
}

#rv-app-v3-root .rv-v3-agent-list__copy,
#rv-app-v3-root .rv-v3-agent-list__field {
  margin: 0 0 8px;
  line-height: 1.4;
  white-space: pre-wrap;
}

#rv-app-v3-root .rv-v3-agent-list__back {
  margin: 0 0 8px;
}

#rv-app-v3-root .rv-v3-agent-list .rv-v3-btn {
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-agent-list__item {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 8px;
  border: 1px solid rgba(16, 24, 20, 0.1);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-agent-list__item .rv-v3-agent-list__row {
  margin: 0;
  border: 0;
  border-radius: 0;
}

#rv-app-v3-root .rv-v3-agent-list__foot {
  display: flex;
  min-width: 0;
  max-width: 100%;
  padding: 0 8px 8px;
}

#rv-app-v3-root .rv-v3-agent-list .rv-v3-agent-list__edit {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

#rv-app-v3-root .rv-v3-btn--quiet {
  background: transparent;
}

#rv-app-v3-root .rv-v3-agent-draft {
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-draft section {
  min-width: 0;
  margin: 0 0 16px;
}

#rv-app-v3-root .rv-v3-agent-draft h3,
#rv-app-v3-root .rv-v3-agent-draft__field,
#rv-app-v3-root .rv-v3-agent-draft__note,
#rv-app-v3-root .rv-v3-agent-draft__error {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#rv-app-v3-root .rv-v3-agent-draft__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-draft__field input,
#rv-app-v3-root .rv-v3-agent-draft__field select,
#rv-app-v3-root .rv-v3-agent-draft__field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid rgba(16, 24, 20, 0.16);
  border-radius: 12px;
  background: #fff;
  color: inherit;
}

#rv-app-v3-root .rv-v3-agent-draft__field textarea {
  min-height: 96px;
  resize: vertical;
}

#rv-app-v3-root .rv-v3-agent-draft__card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(16, 24, 20, 0.12);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-draft__card h3 {
  margin: 0 0 12px;
}

#rv-app-v3-root .rv-v3-agent-location__controls,
#rv-app-v3-root .rv-v3-agent-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-location__controls input {
  flex: 1 1 160px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-location__controls .rv-v3-btn,
#rv-app-v3-root .rv-v3-agent-location__actions .rv-v3-btn,
#rv-app-v3-root .rv-v3-agent-location__list [role="option"] {
  min-height: 44px;
}

#rv-app-v3-root .rv-v3-agent-location__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid rgba(16, 24, 20, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-agent-location__list [role="option"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(16, 24, 20, 0.08);
}

#rv-app-v3-root .rv-v3-agent-location__kind {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#rv-app-v3-root .rv-v3-agent-location__label,
#rv-app-v3-root .rv-v3-agent-location__detail,
#rv-app-v3-root .rv-v3-agent-location__crumb,
#rv-app-v3-root .rv-v3-agent-location__heading,
#rv-app-v3-root .rv-v3-agent-location__note {
  overflow-wrap: break-word;
}

#rv-app-v3-root .rv-v3-agent-location {
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-location__heading {
  margin: 0 0 6px;
  font-weight: 650;
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-agent-location__heading .rv-v3-agent-draft__help {
  display: inline;
  font-weight: 500;
}

#rv-app-v3-root .rv-v3-agent-location__search {
  position: relative;
  margin: 0 0 12px;
}

#rv-app-v3-root .rv-v3-agent-location__controls {
  position: relative;
  display: block;
}

#rv-app-v3-root .rv-v3-agent-location__controls input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  min-height: 48px;
  padding: 12px 48px 12px 12px;
}

#rv-app-v3-root .rv-v3-agent-location__clear {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
}

#rv-app-v3-root .rv-v3-agent-location__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.65rem;
  min-height: 48px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-location__crumb {
  margin: 0;
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-agent-location__quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0.2rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--rv-v3-accent, #07814f);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

#rv-app-v3-root .rv-v3-agent-location__add::before {
  content: "+ ";
}

#rv-app-v3-root .rv-v3-agent-draft [hidden],
#rv-app-v3-root .rv-v3-agent-location [hidden],
#rv-app-v3-root .rv-v3-agent-location__quiet[hidden],
#rv-app-v3-root .rv-v3-agent-location__building[hidden],
#rv-app-v3-root .rv-v3-agent-location__row[hidden],
#rv-app-v3-root .rv-v3-agent-draft__field[hidden] {
  display: none !important;
}

#rv-app-v3-root .rv-v3-agent-location__detail,
#rv-app-v3-root .rv-v3-agent-location__note {
  display: block;
  width: 100%;
}

#rv-app-v3-root .rv-v3-agent-location__other {
  border-top: 1px solid rgba(16, 24, 20, 0.12);
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-agent-draft__card .rv-v3-agent-draft__field {
  width: 100%;
}

#rv-app-v3-root .rv-v3-agent-draft__help {
  color: var(--rv-v3-muted, #5c675f);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-draft__parking label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 8px 0 0;
}

#rv-app-v3-root .rv-v3-agent-draft__parking-value {
  display: block;
  margin: 2px 0 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-draft__error {
  color: #9b2c2c;
}

#rv-app-v3-root .rv-v3-agent-draft__dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 24, 20, 0.4);
}

#rv-app-v3-root .rv-v3-agent-draft__sheet {
  width: min(100%, 420px);
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

#rv-app-v3-root .rv-v3-agent-draft__sheet .rv-v3-btn {
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-agent-workspace__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

#rv-app-v3-root .rv-v3-agent-workspace__section,
#rv-app-v3-root .rv-v3-agent-workspace__section.is-on,
#rv-app-v3-root .rv-v3-agent-workspace__section:active {
  box-sizing: border-box;
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(16, 24, 20, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--rv-v3-ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: none;
}

#rv-app-v3-root .rv-v3-agent-workspace__section.is-on {
  border-color: rgba(10, 157, 106, 0.45);
  background: rgba(10, 157, 106, 0.1);
}

#rv-app-v3-root .rv-v3-agent-workspace__panel {
  box-sizing: border-box;
  margin: 0;
  padding: 12px 0 0;
  min-width: 0;
  max-width: 100%;
  overflow-anchor: none;
}

#rv-app-v3-root .rv-v3-agent-workspace__panel > .rv-v3-agent-list,
#rv-app-v3-root .rv-v3-agent-workspace__panel > .rv-v3-agent-enq {
  margin-top: 0;
}

#rv-app-v3-root .rv-v3-agent-workspace__panel .rv-v3-agent-list__title-row {
  align-items: flex-start;
}

#rv-app-v3-root .rv-v3-agent-workspace__panel .rv-v3-agent-list__head .rv-v3-agent-list__heading,
#rv-app-v3-root .rv-v3-agent-workspace__panel > .rv-v3-agent-enq > .rv-v3-agent-enq__heading {
  margin-top: 0;
}

#rv-app-v3-root .rv-v3-agent-enq {
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-enq__heading,
#rv-app-v3-root .rv-v3-agent-enq__name,
#rv-app-v3-root .rv-v3-agent-enq__title,
#rv-app-v3-root .rv-v3-agent-enq__meta,
#rv-app-v3-root .rv-v3-agent-enq__badge,
#rv-app-v3-root .rv-v3-agent-enq__value,
#rv-app-v3-root .rv-v3-agent-enq__note,
#rv-app-v3-root .rv-v3-agent-enq__label {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#rv-app-v3-root .rv-v3-agent-enq__heading {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-agent-enq__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 2px;
}

#rv-app-v3-root .rv-v3-agent-enq__head .rv-v3-agent-enq__heading {
  flex: 1 1 8rem;
  margin: 0;
}

#rv-app-v3-root .rv-v3-agent-enq__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#rv-app-v3-root .rv-v3-agent-enq__row {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  width: 100%;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(16, 24, 20, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--rv-v3-ink);
  font: inherit;
  text-align: left;
}

#rv-app-v3-root .rv-v3-agent-enq__name {
  flex: 1 1 8rem;
  font-weight: 650;
}

#rv-app-v3-root .rv-v3-agent-enq__title,
#rv-app-v3-root .rv-v3-agent-enq__meta {
  flex: 1 1 100%;
  color: var(--rv-v3-muted, #5c675f);
  font-size: 0.86rem;
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-agent-enq__badge {
  display: inline-block;
  flex: 0 0 auto;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(10, 157, 106, 0.28);
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.12);
  color: var(--rv-v3-ink);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
}

#rv-app-v3-root .rv-v3-agent-enq__block {
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
}

#rv-app-v3-root .rv-v3-agent-enq__block h3,
#rv-app-v3-root .rv-v3-agent-enq__label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-agent-enq__property-title {
  margin: 0 0 6px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#rv-app-v3-root .rv-v3-agent-enq__value,
#rv-app-v3-root .rv-v3-agent-enq__note {
  margin: 0 0 6px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

#rv-app-v3-root .rv-v3-agent-enq__value--message {
  line-height: 1.5;
  white-space: pre-wrap;
}

#rv-app-v3-root .rv-v3-agent-enq__note {
  color: var(--rv-v3-muted, #5c675f);
}

#rv-app-v3-root .rv-v3-agent-enq__control {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 24, 20, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--rv-v3-ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
}

#rv-app-v3-root .rv-v3-agent-enq__control textarea,
#rv-app-v3-root textarea.rv-v3-agent-enq__control {
  min-height: 88px;
  resize: vertical;
}

#rv-app-v3-root .rv-v3-agent-enq__rental {
  margin: 2px 0 10px;
}

#rv-app-v3-root .rv-v3-agent-workspace .rv-v3-agent-enq .rv-v3-btn {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-draft > [data-rv-v3-agent-save] {
  display: block;
  margin: 0 0 16px;
}

#rv-app-v3-root .rv-v3-agent-photos-card {
  margin-top: 0;
}

#rv-app-v3-root .rv-v3-agent-photos {
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
}

#rv-app-v3-root .rv-v3-agent-photos__note {
  margin: 0;
}

#rv-app-v3-root .rv-v3-agent-photos__head,
#rv-app-v3-root .rv-v3-agent-photos__actions,
#rv-app-v3-root .rv-v3-agent-photos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-photos__head {
  align-items: baseline;
  justify-content: space-between;
}

#rv-app-v3-root .rv-v3-agent-photos__card,
#rv-app-v3-root .rv-v3-agent-photos__note,
#rv-app-v3-root .rv-v3-agent-photos__pending,
#rv-app-v3-root .rv-v3-agent-photos__check span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-photos__card {
  box-sizing: border-box;
  flex: 1 1 9.25rem;
  border: 1px solid rgba(16, 24, 20, 0.12);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

#rv-app-v3-root .rv-v3-agent-photos__scene {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475467;
}

#rv-app-v3-root .rv-v3-agent-photos__scene select {
  width: 100%;
  min-height: 40px;
  font: inherit;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
}

#rv-app-v3-root .rv-v3-agent-photos__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--rv-v3-soft, #f3f6f4);
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-agent-photos__thumb img,
#rv-app-v3-root .rv-v3-agent-photos__preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

#rv-app-v3-root .rv-v3-agent-photos__actions button,
#rv-app-v3-root .rv-v3-agent-photos .rv-v3-btn,
#rv-app-v3-root .rv-v3-agent-draft__sheet .rv-v3-btn {
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-photos .rv-v3-btn {
  width: 100%;
  min-height: 48px;
  white-space: normal;
}

#rv-app-v3-root .rv-v3-agent-photos__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
}

#rv-app-v3-root .rv-v3-agent-photos__check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
}

#rv-app-v3-root .rv-v3-agent-photos__check input:disabled {
  opacity: 0.45;
}

#rv-app-v3-root .rv-v3-agent-photos__cover {
  width: fit-content;
  max-width: 100%;
  margin: var(--rv-v3-space-3) 0 0;
}

#rv-app-v3-root .rv-v3-agent-photos__actions {
  margin-top: var(--rv-v3-space-3);
}

#rv-app-v3-root .rv-v3-agent-busy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 8px 0 0;
}

#rv-app-v3-root .rv-v3-agent-busy__bar {
  height: 12px;
  width: 72%;
  max-width: 100%;
  margin: 0;
}

#rv-app-v3-root .rv-v3-agent-busy__bar:nth-child(2) {
  width: 100%;
}

#rv-app-v3-root .rv-v3-agent-busy__bar:nth-child(3) {
  width: 56%;
}

#rv-app-v3-root .rv-v3-agent-busy--inline {
  margin: 0 0 8px;
}

#rv-app-v3-root .rv-v3-agent-busy--inline .rv-v3-agent-busy__bar {
  width: 100%;
  height: 4px;
}
#rv-app-v3-root .rv-v3-agent-photos__note[role="alert"] {
  color: #9b2c2c;
}

#rv-app-v3-root .rv-v3-agent-photos__progress,
#rv-app-v3-root .rv-v3-agent-photos__progress p,
#rv-app-v3-root .rv-v3-agent-photos__pct {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-photos__progress p {
  margin: 0 0 6px;
}

#rv-app-v3-root .rv-v3-agent-photos__pct {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

#rv-app-v3-root .rv-v3-agent-photos__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 24, 20, 0.08);
  overflow: hidden;
}

#rv-app-v3-root .rv-v3-agent-photos__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #0a9d6a;
}

#rv-app-v3-root .rv-v3-agent-photos__bar.is-wait > span {
  width: 40%;
  animation: rv-v3-agent-photo-wait 1.1s ease-in-out infinite;
}

@keyframes rv-v3-agent-photo-wait {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

#rv-app-v3-root .rv-v3-agent-photos__thumb-miss {
  margin: 8px;
  font-size: 0.78rem;
  line-height: 1.3;
}

#rv-app-v3-root .rv-v3-agent-photos__thumb button {
  box-sizing: border-box;
  width: calc(100% - 16px);
  max-width: 100%;
  margin: 0 8px 8px;
  min-height: 44px;
  white-space: normal;
}

#rv-app-v3-root .rv-v3-agent-draft__dialog--actions {
  align-items: flex-end;
  padding: 12px 12px calc(16px + var(--rv-v3-safe-bottom));
}

#rv-app-v3-root .rv-v3-agent-draft__dialog--actions .rv-v3-agent-draft__sheet {
  padding: 8px;
  background: transparent;
}

#rv-app-v3-root .rv-v3-agent-draft__dialog--actions .rv-v3-agent-draft__sheet h2 {
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-size: 0.95rem;
}

#rv-app-v3-root .rv-v3-agent-delete__dialog {
  z-index: 60;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  /* Tab row is --rv-v3-tabs-h, plus its 1px border, 1px top pad, and the same
     bottom pad the tab bar uses. 12px keeps the card clear of that bar. */
  --rv-v3-delete-above-nav: calc(var(--rv-v3-tabs-h) + 2px + max(8px, var(--rv-v3-safe-bottom)) + 12px);
}

#rv-app-v3-root .rv-v3-agent-delete__sheet {
  position: absolute;
  right: 16px;
  bottom: var(--rv-v3-delete-above-nav);
  left: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: auto;
  max-width: 420px;
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  max-height: calc(100vh - max(16px, var(--rv-v3-safe-top)) - var(--rv-v3-delete-above-nav));
  max-height: calc(100svh - max(16px, var(--rv-v3-safe-top)) - var(--rv-v3-delete-above-nav));
  max-height: calc(100% - max(16px, var(--rv-v3-safe-top)) - var(--rv-v3-delete-above-nav));
  overflow: hidden;
  padding-bottom: 18px;
}

#rv-app-v3-root .rv-v3-agent-delete__body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#rv-app-v3-root .rv-v3-agent-delete__body h2,
#rv-app-v3-root .rv-v3-agent-delete__body p {
  overflow-wrap: anywhere;
}

#rv-app-v3-root .rv-v3-agent-delete__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-delete__actions .rv-v3-btn {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 44px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
}

#rv-app-v3-root .rv-v3-agent-draft__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

#rv-app-v3-root .rv-v3-agent-draft__action {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Saved Search + pending Push setup (ported from the 1.3.0 Android bundle). */
.rv-v3-sheet-host [data-rv-v3-saved-search-sheet] .rv-v3-sheet__panel--saved-search {
  max-height: min(88dvh, 720px);
}

.rv-v3-sheet-host .rv-v3-ss-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.rv-v3-sheet-host .rv-v3-ss-form__label {
  margin: 0;
  font-size: 0.84rem;
  color: #4a5366;
}

.rv-v3-sheet-host .rv-v3-ss-form__summary {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f5f8;
  color: var(--rv-v3-ink, #1a1f2c);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

.rv-v3-sheet-host .rv-v3-ss-form__guidance,
.rv-v3-sheet-host .rv-v3-ss-form__hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #4a5366;
}

.rv-v3-sheet-host .rv-v3-ss-form__guidance {
  color: #9a3412;
  font-weight: 600;
}

.rv-v3-sheet-host .rv-v3-ss-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--rv-v3-ink, #1a1f2c);
}

.rv-v3-sheet-host .rv-v3-ss-form__field input {
  appearance: none;
  border: 1px solid #d5dbe6;
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  color: var(--rv-v3-ink, #1a1f2c);
  background: #fff;
}

.rv-v3-sheet-host .rv-v3-ss-form__field input:focus,
.rv-v3-sheet-host .rv-v3-ss-form__field input:focus-visible {
  outline: none;
  border-color: var(--rv-v3-green-strong, #0a9d6a);
  box-shadow: var(--rv-v3-focus-ring);
}

.rv-v3-sheet-host .rv-v3-ss-form__field-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
}

.rv-v3-sheet-host .rv-v3-ss-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #374151;
  font-weight: 500;
}

.rv-v3-sheet-host .rv-v3-ss-form__consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--rv-v3-green, #12b981);
}

.rv-v3-sheet-host .rv-v3-ss-form__privacy {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.rv-v3-sheet-host .rv-v3-ss-form__privacy a {
  color: var(--rv-v3-green-strong, #0a9d6a);
  font-weight: 650;
}

.rv-v3-sheet-host .rv-v3-ss-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rv-v3-sheet-host .rv-v3-ss-form__error,
.rv-v3-sheet-host .rv-v3-ss-form__success {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.rv-v3-sheet-host .rv-v3-ss-form__error {
  color: var(--rv-v3-danger, #b42318);
}

.rv-v3-sheet-host .rv-v3-ss-form__success {
  color: var(--rv-v3-green-strong, #0a9d6a);
}

.rv-v3-sheet-host .rv-v3-ss-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rv-v3-sheet-host .rv-v3-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rv-v3-green, #12b981);
  border-radius: 12px;
  background: var(--rv-v3-green, #12b981);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 10px 16px;
  min-height: 48px;
  box-sizing: border-box;
  cursor: pointer;
}

.rv-v3-sheet-host .rv-v3-btn--ghost {
  background: var(--rv-v3-soft, #f3f5f8);
  color: var(--rv-v3-ink, #1a1f2c);
  border-color: var(--rv-v3-line, #d5dbe6);
}

.rv-v3-sheet-host .rv-v3-ss-form__actions .rv-v3-btn {
  flex: 1 1 140px;
  min-height: 48px;
}

.rv-v3-sheet-host .rv-v3-ss-pending-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 4px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(10, 157, 106, 0.22);
  background: #f3faf7;
  box-sizing: border-box;
}

.rv-v3-sheet-host .rv-v3-ss-pending-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--rv-v3-ink, #1a1f2c);
}

.rv-v3-sheet-host .rv-v3-ss-pending-card__copy {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
  color: #4a5366;
}

.rv-v3-sheet-host .rv-v3-ss-pending-card__cta {
  width: 100%;
  margin-top: 2px;
}

.rv-v3-sheet-host .rv-v3-ss-pending-sep {
  height: 1px;
  margin: 14px 0 12px;
  background: #e5e9f0;
}

.rv-v3-sheet-host .rv-v3-ss-form__section-label {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--rv-v3-ink, #1a1f2c);
}


/* Compact success toast — above sheets so it remains visible after sheet dismiss. */
.rv-v3-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 157, 106, 0.28);
  background: #f3faf7;
  box-shadow: 0 10px 28px rgba(26, 31, 44, 0.14);
  box-sizing: border-box;
  font-family: var(--rv-v3-font, "DM Sans", system-ui, sans-serif);
  color: var(--rv-v3-ink, #1a1f2c);
}
.rv-v3-toast__text { flex: 1 1 auto; min-width: 0; }
.rv-v3-toast__title { margin: 0; font-size: 0.92rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
.rv-v3-toast__body { margin: 4px 0 0; font-size: 0.84rem; font-weight: 500; line-height: 1.4; color: #4a5366; }
.rv-v3-toast__x {
  appearance: none; border: 0; background: transparent; flex: 0 0 auto;
  margin: -4px -4px 0 0; padding: 4px 8px; font: inherit; font-size: 1.25rem;
  line-height: 1; color: #6b7280; cursor: pointer;
}
