/* ==========================================================================
   PG & CO-LIVING (pg.php, pg-detail.php) + shared homepage category cards.
   Same RentHub360 tokens as flats.css: navy type, orange accents, white
   surfaces. Dark mode is handled globally by theme-init.php.
   ========================================================================== */
.rhpg {
  --navy: #0f172a; --ink: #1e293b; --muted: #64748b; --line: #e5e8ee; --soft: #f6f7f9;
  --orange: #F28C1B; --orange-ink: #c2410c; --green: #059669; --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  background: #fbfbfc; color: var(--ink); font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}
.rhpg *, .rhpg *::before, .rhpg *::after { box-sizing: border-box; }
:where(.rhpg) a { color: inherit; }
.rhpg-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.rhpg svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rhpg :focus-visible { outline: 3px solid rgba(242,140,27,.55); outline-offset: 2px; border-radius: 6px; }
.rhpg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.rhpg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none !important; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s; font-family: inherit; }
.rhpg-btn--primary { background: var(--orange); color: #fff; }
.rhpg-btn--primary:hover { background: #dd7d10; box-shadow: 0 6px 16px rgba(242,140,27,.32); }
.rhpg-btn--navy { background: var(--navy); color: #fff; }
.rhpg-btn--navy:hover { background: #1e293b; }
.rhpg-btn--ghost { background: #fff; color: var(--navy); border-color: #cbd5e1; }
.rhpg-btn--ghost:hover { border-color: var(--navy); }
.rhpg-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.rhpg-btn--block { width: 100%; }

/* ---------- Hero ---------- */
.rhpg-hero { background: linear-gradient(180deg, #fff7ed 0%, #fbfbfc 100%); border-bottom: 1px solid var(--line); padding: 36px 0 28px; }
.rhpg-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.rhpg-crumbs a { text-decoration: none; } .rhpg-crumbs a:hover { text-decoration: underline; }
.rhpg-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 8px; }
.rhpg-hero h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: var(--navy); }
.rhpg-hero h1 span { color: var(--orange); }
.rhpg-hero p.lead { margin: 12px 0 22px; max-width: 640px; font-size: clamp(15px, 1.2vw, 17px); color: #475569; }

.rhpg-search { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); max-width: 820px; }
.rhpg-search .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; }
.rhpg-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 12px 0; background: transparent; color: var(--navy); font-family: inherit; }
.rhpg-search .field svg { color: var(--muted); }

.rhpg-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rhpg-cat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; text-decoration: none !important; color: var(--navy); transition: border-color .15s, background .15s; }
.rhpg-cat:hover { border-color: var(--orange); }
.rhpg-cat[aria-current=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.rhpg-cat small { font-weight: 600; opacity: .7; }

.rhpg-locs { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rhpg-locs .lbl { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.rhpg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none !important; color: var(--ink); }
.rhpg-chip:hover { border-color: var(--orange); color: var(--orange-ink); }
.rhpg-chip[aria-current=true] { background: #fff1e0; border-color: var(--orange); color: var(--orange-ink); }

/* ---------- Layout ---------- */
.rhpg-main { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 28px 0 56px; align-items: start; }
.rhpg-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.rhpg-filters h2 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.rhpg-filters h2 a { font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.rhpg-fg { padding: 14px 0; border-top: 1px solid var(--line); }
.rhpg-fg:first-of-type { border-top: 0; }
.rhpg-fg > .t { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.rhpg-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.rhpg-opt input { width: 17px; height: 17px; accent-color: var(--orange); margin: 0; }
.rhpg-sel, .rhpg-filters input[type=number] { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 14.5px; color: var(--navy); font-family: inherit; }
.rhpg-filters .apply { margin-top: 6px; }
.rhpg-mfbtn { display: none; }

.rhpg-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.rhpg-count { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); }
.rhpg-count small { font-weight: 500; color: var(--muted); }
.rhpg-bar .sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.rhpg-bar .sort select { min-height: 40px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 14px; color: var(--navy); font-family: inherit; }

/* ---------- Cards ---------- */
.rhpg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.rhpg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,23,42,.03); transition: box-shadow .18s, transform .18s, border-color .18s; }
.rhpg-card:hover { box-shadow: var(--shadow); border-color: #d6dbe5; transform: translateY(-2px); }
.rhpg-card .ph { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef1f6; overflow: hidden; }
.rhpg-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhpg-badge { position: absolute; left: 12px; top: 12px; background: rgba(15,23,42,.88); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.rhpg-badge--male { background: #1d4ed8; } .rhpg-badge--female { background: #be185d; } .rhpg-badge--coliving { background: #0f766e; }
.rhpg-photos { position: absolute; right: 12px; bottom: 12px; background: rgba(15,23,42,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.rhpg-card .bd { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rhpg-card h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.rhpg-card h3 a { text-decoration: none; } .rhpg-card h3 a:hover { color: var(--orange-ink); }
.rhpg-loc { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; color: var(--muted); }
.rhpg-loc svg { margin-top: 2px; }
.rhpg-price { display: flex; align-items: baseline; gap: 6px; }
.rhpg-price b { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.rhpg-price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.rhpg-share { display: flex; flex-wrap: wrap; gap: 6px; }
.rhpg-share span { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; }
.rhpg-share span b { color: var(--navy); }
.rhpg-am { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; font-weight: 600; color: #475569; }
.rhpg-am span { display: inline-flex; align-items: center; gap: 5px; }
.rhpg-am svg { color: var(--green); width: 14px; height: 14px; }
.rhpg-avail { font-size: 12.5px; font-weight: 700; color: var(--green); }
.rhpg-card .act { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 4px; }

/* ---------- Owner / management strip ---------- */
.rhpg-owner { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rhpg-owner .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.rhpg-owner .box h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--navy); }
.rhpg-owner .box p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.rhpg-owner .box .rhpg-btn { align-self: flex-start; margin-top: auto; }
.rhpg-owner .box--dark { background: var(--navy); border-color: var(--navy); }
.rhpg-owner .box--dark h3 { color: #fff; } .rhpg-owner .box--dark p { color: #cbd5e1; }

/* ---------- Pagination / empty ---------- */
.rhpg-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.rhpg-pages a, .rhpg-pages span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--navy); }
.rhpg-pages a:hover { border-color: var(--orange); }
.rhpg-pages span[aria-current=page] { background: var(--navy); color: #fff; border-color: var(--navy); }
.rhpg-empty { text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 48px 20px; }
.rhpg-empty h2 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.rhpg-empty p { margin: 0 auto 18px; max-width: 460px; color: var(--muted); }

/* ---------- Detail page ---------- */
.rhpg-dhead { padding: 22px 0 8px; }
.rhpg-dhead h1 { margin: 6px 0 8px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; color: var(--navy); }
.rhpg-dhead .meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--muted); font-size: 14.5px; }
.rhpg-gal { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; border-radius: 20px; overflow: hidden; margin: 14px 0 28px; }
.rhpg-gal .main { aspect-ratio: 16 / 10; background: #eef1f6; position: relative; }
.rhpg-gal .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhpg-gal .side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 10px; }
.rhpg-gal .side button { padding: 0; border: 0; background: #eef1f6; cursor: pointer; overflow: hidden; position: relative; }
.rhpg-gal .side img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.rhpg-gal .side button:hover img { transform: scale(1.04); }
.rhpg-gal.single { grid-template-columns: 1fr; max-width: 820px; }
.rhpg-thumbs { display: flex; gap: 8px; overflow-x: auto; margin: -14px 0 24px; padding-bottom: 4px; }
.rhpg-thumbs button { flex: none; width: 84px; height: 62px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: #eef1f6; cursor: pointer; }
.rhpg-thumbs button[aria-current=true] { border-color: var(--orange); }
.rhpg-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhpg-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 56px; }
.rhpg-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.rhpg-sec h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.rhpg-sec p { margin: 0; line-height: 1.65; color: #334155; }
.rhpg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rhpg-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 0 12px 10px 0; }
.rhpg-table td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.rhpg-table td.r { font-weight: 800; }
.rhpg-amgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rhpg-amgrid div { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; }
.rhpg-amgrid svg { color: var(--green); }
.rhpg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rhpg-facts div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rhpg-facts small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.rhpg-facts b { font-size: 15px; color: var(--navy); }
.rhpg-side { position: sticky; top: 92px; }
.rhpg-cta { background: #fff; border: 1.5px solid var(--navy); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.rhpg-cta .from { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rhpg-cta .amt { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 2px 0 14px; }
.rhpg-cta .amt small { font-size: 14px; font-weight: 600; color: var(--muted); }
.rhpg-cta .note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.rhpg-cta .rhpg-btn + .rhpg-btn { margin-top: 10px; }
.rhpg-related { padding: 8px 0 56px; }
.rhpg-related h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 16px; }

/* ---------- Homepage category choice ---------- */
.rhh-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rhh-choice a.opt { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; border-radius: 20px; overflow: hidden; text-decoration: none !important; color: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.14); isolation: isolate; transition: transform .2s, box-shadow .2s; }
.rhh-choice a.opt:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.2); }
.rhh-choice a.opt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rhh-choice a.opt::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,23,42,.05) 20%, rgba(15,23,42,.86) 100%); }
.rhh-choice .in { padding: 22px; }
.rhh-choice .in h3 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rhh-choice .in p { margin: 0 0 14px; font-size: 14.5px; color: #e2e8f0; }
.rhh-choice .in .go { display: inline-flex; align-items: center; gap: 8px; background: #F28C1B; color: #fff; font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: 12px; }
.rhh-previews { margin-top: 36px; }
.rhh-previews .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rhh-previews .head h2 { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.rhh-previews .head a { font-size: 14px; font-weight: 700; color: #c2410c; text-decoration: none; }
.rhh-previews .head a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rhpg-main { grid-template-columns: 1fr; gap: 16px; }
  .rhpg-filters { position: fixed; inset: 0; z-index: 9990; max-height: none; border-radius: 0; transform: translateY(100%); visibility: hidden; transition: transform .25s, visibility .25s; padding-bottom: 96px; }
  .rhpg-filters.open { transform: none; visibility: visible; }
  .rhpg-filters .apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: #fff; border-top: 1px solid var(--line); margin: 0; }
  .rhpg-mfbtn { display: inline-flex; }
  .rhpg-dgrid { grid-template-columns: 1fr; }
  .rhpg-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .rhpg-wrap { padding: 0 16px; }
  .rhpg-hero { padding: 24px 0 20px; }
  .rhpg-search { flex-direction: column; border-radius: 16px; }
  .rhpg-search .rhpg-btn { width: 100%; }
  .rhpg-grid { grid-template-columns: 1fr; }
  .rhpg-gal { grid-template-columns: 1fr; border-radius: 16px; }
  .rhpg-gal .side { display: none; }
  .rhh-choice { grid-template-columns: 1fr; }
  .rhh-choice a.opt { min-height: 190px; }
  .rhpg-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .rhpg-cat { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .rhpg *, .rhh-choice * { transition: none !important; } }

/* Flats | PG switch (home hero, /flats, /pg) */
.rh-seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: #fff; border: 1px solid #e5e8ee; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.rh-seg a, .rh-seg button { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14.5px; color: #475569; padding: 9px 20px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.rh-seg a:hover, .rh-seg button:hover { color: #0f172a; }
.rh-seg [aria-selected="true"] { background: #0f172a; color: #fff; }
.rh-seg a:focus-visible, .rh-seg button:focus-visible { outline: 3px solid rgba(242,140,27,.55); outline-offset: 2px; }

/* SEO intro block under results */
.rhpg-about { margin-top: 36px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.rhpg-about h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--navy); }
.rhpg-about p { margin: 0 0 12px; color: #475569; line-height: 1.65; font-size: 15px; }
.rhpg-about .links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rhpg-about .links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); }
.rhpg-about .links a:hover { border-color: var(--orange); color: var(--orange-ink); }

/* Top switch on /flats and /pg: same look as the homepage finder tabs */
.rh-topseg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #F4F6F9; border: 1px solid #e6e9ef; border-radius: 20px; margin: 0 0 18px; min-width: min(100%, 400px); }
.rh-topseg a { display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; color: #64708a; text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.rh-topseg a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rh-topseg a em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(17,27,50,.08); }
.rh-topseg a:hover { color: #111B32; }
.rh-topseg a[aria-selected="true"] { background: #fff; color: #111B32; box-shadow: 0 2px 10px rgba(17,27,50,.12); }
.rh-topseg a[aria-selected="true"] svg { color: #FF8A00; }
.rh-topseg a[aria-selected="true"] em { background: #FFF1DD; color: #E67A00; }
.rh-topseg a:focus-visible { outline: 3px solid rgba(255,138,0,.6); outline-offset: 2px; }
.rh-flats .rhx-hero { margin: 26px 0 18px; }
.rh-flats .rhx-title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.035em; color: #111B32; }
.rh-flats .rhx-sub { font-size: clamp(15px, 1.2vw, 17px); color: #64708a; margin-top: 8px; }
@media (max-width: 640px) { .rh-topseg { display: grid; width: 100%; } .rh-topseg a { padding: 0 8px; font-size: 14px; } }

/* ==== readability pass for /pg, /pg-detail, /flats top, /refer (appended) ==== */
.rhpg { --navy: #14213D; }
.rhpg-hero h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rhpg-hero p.lead { font-size: 16px; color: #52607A; }
.rhpg-dhead h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.rhpg-card h3 { font-weight: 700; font-size: 16.5px; }
.rhpg-price b { font-weight: 700; font-size: 21px; }
.rhpg-sec h2 { font-weight: 700; font-size: 18px; }
.rhpg-filters h2 { font-weight: 700; }
.rh-flats .rhx-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.rhpg-cats { scrollbar-width: none; }
.rhpg-cats::-webkit-scrollbar { display: none; }
.rhref-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.025em; }
.rhref-sec h2, .rhref-band h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.rhref-card h3, .rhref-steps h3 { font-weight: 700; }
.rhref-dash h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
@media (max-width: 640px) {
  .rhpg-hero { padding: 18px 0 16px; }
  .rhpg-hero h1 { font-size: 26px; }
  .rhpg-hero p.lead { font-size: 14.5px; margin: 8px 0 14px; }
  .rhpg-crumbs { margin-bottom: 10px; font-size: 12.5px; }
  .rh-topseg a { height: 44px; font-size: 13.5px; gap: 6px; }
  .rhpg-search { padding: 8px; }
  .rhpg-search input[type=search] { font-size: 16px; padding: 8px 0; }
  .rhpg-cats { margin-top: 12px; }
  .rhpg-cat { padding: 7px 13px; font-size: 13px; }
  .rhpg-locs { margin-top: 12px; }
  .rhpg-main { padding: 18px 0 40px; }
  .rhpg-card .bd { padding: 14px 16px 16px; }
  .rhpg-grid { gap: 16px; }
  .rhpg-bar { gap: 8px; }
  .rhpg-count { font-size: 15px; }
  .rhpg-count small { display: block; }
  .rhpg-wrap .rh-ad-slide, .rhpg-wrap .rh-ad-slider { min-height: 140px; }
  .rhref-hero h1 { font-size: 28px; }
  .rhref-lead { font-size: 15px; }
  .rhx-own { padding: 14px 16px; }
  .rhx-own a { width: 100%; text-align: center; }
}

/* /pg: popular areas = one tidy row; management strip under the banner */
.rhpg-locs { gap: 8px; }
.rhpg-main { padding-top: 22px; }
.rhpg-wrap > .rhx-own { margin: 14px 0 0; }
@media (max-width: 640px) {
  .rhpg-locs { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rhpg-locs::-webkit-scrollbar { display: none; }
  .rhpg-locs .lbl { display: none; }
  .rhpg-chip { flex: none; white-space: nowrap; }
  .rhpg-wrap > .rhx-own { margin-top: 12px; }
}

/* compact management strip on phones */
@media (max-width: 640px) { .rhx-own { padding: 12px 14px; gap: 10px; border-radius: 14px; } .rhx-own b { font-size: 14.5px; line-height: 1.35; } .rhx-own span { display: none; } .rhx-own a { padding: 10px 14px; font-size: 13.5px; } }

/* Swipeable card photos + posted time */
.rhph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f6; }
.rhph-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rhph-track::-webkit-scrollbar { display: none; }
.rhph-s { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: block; }
.rhph-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #14213D; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(20,33,61,.25); opacity: 0; transition: opacity .18s ease; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.rhph-nav.prev { left: 10px; } .rhph-nav.next { right: 10px; }
.rhph:hover .rhph-nav, .rhph-nav:focus-visible { opacity: 1; }
.rhph-count { position: absolute; right: 12px; bottom: 12px; background: rgba(20,33,61,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.rhpg-card .rhph .rhpg-badge { z-index: 2; }
.rhpg-posted { font-size: 12.5px; font-weight: 600; color: #7A869E; margin-top: -4px; }
@media (hover: none) { .rhph-nav { display: none; } }