/*
 * Real estate redesign: listings page (realestate_index.ctp) and listing page (realestate_view.ctp).
 * Shared by all four sites. Everything is scoped under .re so it can't leak into other pages.
 * Each site's colors and fonts come from the data-theme attribute on the .re wrapper,
 * set from the site's frontend_dir (bp24, monroedaily, rocklanddaily, w365).
 */

.re {
  --re-accent: #eb0303;        /* buttons, New badge, active tab */
  --re-accent-ink: #c30000;    /* accent-colored text and links */
  --re-accent-hover: #c30000;
  --re-tint: #fff1f1;          /* soft accent background */
  --re-tint-line: #f7d4d4;
  --re-tint-ink: #a30000;
  --re-ink: #121213;
  --re-muted: #5a5a5a;
  --re-body-text: #333333;
  --re-cream: #fbf7f2;
  --re-sand: #efe8df;
  --re-photo-bg: #ece7e2;
  --re-line: #e4e4e4;
  --re-line-warm: #e4dcd2;
  --re-divider: #f0ebe5;
  --re-band: #121213;
  --re-hero: #3a2a1e;
  --re-font: var(--body-font, 'Roboto'), Roboto, system-ui, -apple-system, sans-serif;
  --re-display: Prata, Georgia, serif;
  --re-display-weight: 400;
  --re-shadow: 0 2px 10px rgba(60, 30, 10, .07);
  --re-shadow-hover: 0 14px 34px rgba(60, 30, 10, .16);

  background: var(--re-cream);
  color: var(--re-ink);
  font-family: var(--re-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Site themes. Brand colors are taken from each site's new/style.css. */
.re[data-theme="monroedaily"] {
  --re-accent: #0165d1; --re-accent-ink: #0157b5; --re-accent-hover: #0150a6;
  --re-tint: #eef5fd; --re-tint-line: #cfe2f8; --re-tint-ink: #0150a6;
  --re-cream: #f6f8fb; --re-sand: #e7ecf3; --re-photo-bg: #e3e8ef; --re-line-warm: #dde3ea; --re-divider: #e9edf2;
  --re-hero: #10233f; --re-display: var(--primary-font, 'Roboto'), Roboto, sans-serif; --re-display-weight: 700;
  --re-shadow: 0 2px 10px rgba(10, 30, 60, .07); --re-shadow-hover: 0 14px 34px rgba(10, 30, 60, .16);
}
.re[data-theme="rocklanddaily"] {
  --re-accent: #0067af; --re-accent-ink: #005a99; --re-accent-hover: #00528c;
  --re-tint: #edf5fb; --re-tint-line: #cde2f1; --re-tint-ink: #00528c;
  --re-cream: #f6f8fa; --re-sand: #e6ecf1; --re-photo-bg: #e2e8ee; --re-line-warm: #dce3e9; --re-divider: #e8edf1;
  --re-hero: #0f2a3d; --re-display: var(--primary-font, 'Roboto'), Roboto, sans-serif; --re-display-weight: 700;
  --re-shadow: 0 2px 10px rgba(10, 30, 50, .07); --re-shadow-hover: 0 14px 34px rgba(10, 30, 50, .16);
}
.re[data-theme="w365"] {
  --re-accent: #0b2241; --re-accent-ink: #0b2241; --re-accent-hover: #1a3a66;
  --re-tint: #eef2f8; --re-tint-line: #d3dcea; --re-tint-ink: #0b2241;
  --re-cream: #f6f7f9; --re-sand: #e6e9ef; --re-photo-bg: #e2e5eb; --re-line-warm: #dce0e7; --re-divider: #e8ebf0;
  --re-band: #0b2241; --re-hero: #0b2241; --re-display: var(--primary-font, 'Roboto'), Roboto, sans-serif; --re-display-weight: 700;
  --re-shadow: 0 2px 10px rgba(10, 20, 40, .07); --re-shadow-hover: 0 14px 34px rgba(10, 20, 40, .16);
}

/* Local reset: site themes style a, h1-h3, p, button and inputs globally. */
.re *, .re *::before, .re *::after { box-sizing: border-box; }
.re h1, .re h2, .re h3, .re p, .re dl, .re dd, .re figure { margin: 0; padding: 0; }
.re h1, .re h2, .re h3 { color: inherit; text-transform: none; letter-spacing: normal; }
.re a { color: var(--re-accent-ink); font-weight: inherit; background: none; }
.re a:hover { color: var(--re-accent-hover); }
.re button, .re input, .re select, .re textarea { font: inherit; color: inherit; margin: 0; }
.re button { cursor: pointer; }
.re img { max-width: 100%; }
.re svg { flex: 0 0 auto; }
.re :focus-visible { outline: 3px solid var(--re-accent); outline-offset: 2px; }
.re .re-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.re-wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.re-display { font-family: var(--re-display); font-weight: var(--re-display-weight); }

/* Buttons */
.re-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.re .re-btn-accent { background: var(--re-accent); color: #fff; }
.re .re-btn-accent:hover { background: var(--re-accent-hover); color: #fff; }
.re .re-btn-ink { background: var(--re-ink); color: #fff; }
.re .re-btn-ink:hover { background: #333; color: #fff; }
.re .re-btn-outline { background: #fff; color: var(--re-ink); border: 1px solid var(--re-line-warm); }
.re .re-btn-outline:hover { border-color: var(--re-ink); color: var(--re-ink); }
.re-btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.re-icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--re-line);
  background: #fff; color: var(--re-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0;
}

/* Badges */
.re-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 4px; line-height: 1.2; }
.re-badge-new { background: var(--re-accent); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; padding: 5px 9px; }
.re-badge-type { background: rgba(255, 255, 255, .94); color: var(--re-ink); }

/* Flash messages from the contact form */
.re-flash:empty { display: none; }
.re-flash { padding-top: 16px; padding-bottom: 16px; }
.re-flash .message, .re-flash > div {
  padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--re-line); font-weight: 500;
}
.re-flash .message.success { border-color: #b7dfc0; background: #f0faf2; color: #1d5e2c; }
.re-flash .message.error { border-color: var(--re-tint-line); background: var(--re-tint); color: var(--re-tint-ink); }

/* ---------- Listings page ---------- */

.re-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; background: var(--re-hero); }
.re-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* Keeps white text readable on any photo: darker toward the bottom and on the text side. */
.re-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 19, .20) 0%, rgba(18, 18, 19, .45) 40%, rgba(18, 18, 19, .78) 100%),
              linear-gradient(90deg, rgba(18, 18, 19, .45) 0%, rgba(18, 18, 19, 0) 65%);
}
.re-hero.re-hero-plain .re-hero-shade {
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25) 100%);
}
.re-hero-inner { position: relative; width: 100%; padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; }
.re-hero-copy { display: flex; flex-direction: column; gap: 10px; max-width: 720px; color: #fff; }
.re-hero-label { align-self: flex-start; background: var(--re-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }
.re-hero h1 { font-size: 54px; line-height: 1.08; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.re-hero-copy p { font-size: 18px; line-height: 1.5; color: #f3ede6; }

.re-search { background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); max-width: 980px; overflow: hidden; }
.re-tabs { display: flex; gap: 4px; border-bottom: 1px solid #eee; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.re-tabs::-webkit-scrollbar { display: none; }
.re .re-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px;
  color: var(--re-muted); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.re .re-tab:hover { color: var(--re-ink); }
.re .re-tab[aria-current="page"] { color: var(--re-ink); font-weight: 700; border-bottom-color: var(--re-accent); }
.re-search-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.re-search-field { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 48px; border-radius: 10px; background: #f6f3ef; color: var(--re-muted); }
.re[data-theme]:not([data-theme="bp24"]) .re-search-field { background: #f2f4f7; }
.re-search-field input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font-size: 15px; color: var(--re-ink); outline: none; box-shadow: none; }
.re-search-field:focus-within { box-shadow: 0 0 0 2px var(--re-accent); }

.re-results-head { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.re-results-head h2 { font-size: 32px; line-height: 1.2; }
.re-results-meta { font-size: 14px; color: var(--re-muted); }
.re-results-meta strong { color: var(--re-ink); }
.re-clear { font-size: 14px; font-weight: 700; }

.re-grid { padding-top: 22px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1023px) { .re-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 639px) { .re-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.re-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--re-shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.re-card:hover { transform: translateY(-4px); box-shadow: var(--re-shadow-hover); }
.re-card-photo { position: relative; height: 230px; overflow: hidden; background: var(--re-photo-bg); }
.re-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.re-card:hover .re-card-photo img { transform: scale(1.05); }
.re-card-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); pointer-events: none; }
.re-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.re-card-photo-foot { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; color: #fff; z-index: 1; }
.re-card-price { font-size: 26px; font-weight: 900; letter-spacing: -.4px; line-height: 1.1; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.re-photo-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .5); padding: 4px 8px; border-radius: 4px; }
.re-save {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: rgba(255, 255, 255, .94); color: var(--re-ink); display: flex; align-items: center; justify-content: center; padding: 0;
}
.re-save[aria-pressed="true"] { color: var(--re-accent); }
.re-save[aria-pressed="true"] svg { fill: currentColor; }
.re-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.re-card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.re .re-card-title a { color: var(--re-ink); text-decoration: none; }
/* The whole card is clickable through the title link; buttons sit above it. */
.re .re-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.re-card-title a:focus-visible { outline: none; }
.re-card:focus-within { box-shadow: 0 0 0 3px var(--re-accent), var(--re-shadow-hover); }
.re-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--re-body-text); }
.re-excerpt { font-size: 14px; color: var(--re-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.re-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--re-divider); display: flex; align-items: center; gap: 10px; }
.re-card-foot .re-btn { position: relative; z-index: 1; }
.re-avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.re-poster { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.re-poster strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-poster span { color: var(--re-muted); }

.re-empty { margin: 22px 0 40px; padding: 48px 24px; background: #fff; border-radius: 16px; box-shadow: var(--re-shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.re-empty h3 { font-family: var(--re-display); font-weight: var(--re-display-weight); font-size: 24px; }
.re-empty p { color: var(--re-muted); max-width: 46ch; }

.re-pages { padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; margin: 0; }
.re-pages li { list-style: none; }
.re .re-pages a, .re .re-pages li.active > a, .re .re-pages li.disabled > a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  border-radius: 22px; background: #fff; border: 1px solid var(--re-line-warm); color: var(--re-ink); font-weight: 700; text-decoration: none;
}
.re .re-pages li.active > a { background: var(--re-ink); border-color: var(--re-ink); color: #fff; }
.re .re-pages li.disabled > a { opacity: .45; pointer-events: none; }

.re-sell { padding-bottom: 56px; }
.re-sell-card { display: flex; flex-wrap: wrap; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--re-shadow); }
.re-sell-photo { flex: 1 1 420px; min-height: 300px; position: relative; background: var(--re-photo-bg); }
.re-sell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.re-sell-art { flex: 0 1 340px; min-height: 240px; display: flex; align-items: center; justify-content: center; background: var(--re-tint); color: var(--re-accent); }
.re-sell-copy { flex: 1 1 420px; padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.re-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--re-accent-ink); }
.re-sell-copy h2 { font-size: 34px; line-height: 1.15; }
.re-sell-copy p { font-size: 16px; line-height: 1.6; color: #444; }
.re-sell-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }

.re-alerts { background: var(--re-band); color: #fff; }
.re-alerts-inner { padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.re-alerts-copy { display: flex; align-items: center; gap: 18px; flex: 1 1 360px; }
.re-alerts-icon { flex: 0 0 56px; height: 56px; border-radius: 28px; background: var(--re-accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.re[data-theme="w365"] .re-alerts-icon { background: #fff; color: #0b2241; }
.re-alerts h2 { font-size: 26px; line-height: 1.2; color: #fff; }
.re-alerts-copy p { font-size: 15px; color: #cfcfcf; }
.re-alerts form { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 8px; }
.re-alerts input[type="email"] { flex: 1 1 220px; min-height: 50px; padding: 0 18px; border: 0; border-radius: 25px; font-size: 15px; color: var(--re-ink); background: #fff; }
.re-alerts .re-btn { min-height: 50px; padding: 0 26px; font-size: 15px; }
.re[data-theme="w365"] .re-alerts .re-btn-accent { background: #fff; color: #0b2241; }
.re-alerts .notification { flex-basis: 100%; }
.re-alerts .notification .alert { padding: 0; margin: 0; border: 0; background: none; font-weight: 500; }

/* ---------- Listing page ---------- */

.re-topbar { padding-top: 18px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.re .re-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--re-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.re-crumbs { font-size: 13px; color: var(--re-muted); }
.re .re-crumbs a { color: var(--re-muted); text-decoration: none; }
.re .re-crumbs a:hover { color: var(--re-ink); text-decoration: underline; }
.re-topbar-gap { flex: 1 1 10px; }
.re .re-topbar .re-save-text[aria-pressed="true"] { color: var(--re-accent-ink); }
.re-topbar .re-save-text[aria-pressed="true"] svg { fill: currentColor; }

.re-gallery { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 236px 236px; gap: 8px; border-radius: 18px; overflow: hidden; }
.re-gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 480px; }
.re-gallery[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 480px; }
.re-gallery[data-count="3"] { grid-template-columns: 2fr 1fr; grid-template-rows: 236px 236px; }
.re-gallery[data-count="4"] { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 236px 236px; }
.re-gallery-item { padding: 0; border: 0; background: var(--re-photo-bg); overflow: hidden; display: block; }
.re-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s ease; }
.re-gallery-item:hover img { filter: brightness(.88); }
.re-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.re-gallery[data-count="1"] .re-gallery-item:first-child, .re-gallery[data-count="2"] .re-gallery-item:first-child { grid-column: auto; grid-row: auto; }
.re-gallery[data-count="3"] .re-gallery-item:first-child, .re-gallery[data-count="4"] .re-gallery-item:first-child { grid-column: 1; grid-row: span 2; }
.re-gallery[data-count="4"] .re-gallery-item:nth-child(4) { grid-column: 2 / span 2; }
.re-gallery-badges { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; pointer-events: none; }
.re-gallery-all { position: absolute; right: 16px; bottom: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.re-gallery-none { height: 300px; border-radius: 18px; background: var(--re-photo-bg); display: flex; align-items: center; justify-content: center; color: var(--re-muted); }
.re-gallery-phone { display: none; }

.re-layout { padding-top: 32px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.re-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.re-aside { flex: 1 1 340px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }

.re-heading { display: flex; flex-direction: column; gap: 10px; }
.re-heading h1 { font-size: 40px; line-height: 1.15; }
.re-type-line { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #444; }
.re-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 4px; }
.re-price { font-size: 38px; font-weight: 900; letter-spacing: -.6px; line-height: 1.1; }
.re-price-line > span:not(.re-price) { font-size: 14px; color: var(--re-muted); }

.re-factboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.re-factbox { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 6px rgba(60, 30, 10, .06); }
.re-factbox strong { font-size: 22px; font-weight: 900; line-height: 1.1; }
.re-factbox span { font-size: 13px; color: var(--re-muted); }

.re-section { display: flex; flex-direction: column; gap: 12px; }
.re-section h2 { font-size: 26px; line-height: 1.2; }
.re-description { font-size: 16px; line-height: 1.7; color: var(--re-body-text); overflow-wrap: anywhere; }
.re .re-description p, .re .re-description li, .re .re-description span { margin: 0 0 1em; color: var(--re-body-text); font-size: inherit; line-height: inherit; }
.re .re-description span { margin: 0; }
.re-description p:last-child { margin-bottom: 0; }
.re-description img { height: auto; border-radius: 10px; }

.re .re-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; background: #fff; border-radius: 14px; padding: 6px 20px; box-shadow: 0 1px 6px rgba(60, 30, 10, .06); }
.re-details > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--re-divider); }
.re-details dt { color: var(--re-muted); font-size: 14px; font-weight: 400; }
.re-details dd { font-size: 14px; font-weight: 700; text-align: right; }

.re-contact { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 8px 28px rgba(60, 30, 10, .10); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 20px; }
.re-contact-who { display: flex; align-items: center; gap: 12px; }
.re-contact-who .re-avatar { width: 52px; height: 52px; font-size: 18px; }
.re-contact-who div { display: flex; flex-direction: column; gap: 2px; }
.re-contact-who small { font-size: 12px; color: var(--re-muted); }
.re-contact-who strong { font-size: 17px; }
.re-contact .re-phone { min-height: 52px; font-size: 16px; }
.re .re-contact .re-phone[href] { font-size: 17px; }
.re-form { display: flex; flex-direction: column; gap: 10px; }
.re-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.re-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #444; }
.re-form input, .re-form textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--re-line-warm); border-radius: 10px;
  font-size: 14px; font-weight: 400; color: var(--re-ink); background: #fff; box-shadow: none;
}
.re-form textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 110px; }
.re-form input:focus, .re-form textarea:focus { border-color: var(--re-accent); outline: none; box-shadow: 0 0 0 2px var(--re-tint-line); }
.re-form .re-btn { min-height: 48px; font-size: 15px; }
.re-safety { font-size: 12px; line-height: 1.5; color: var(--re-muted); }
.re-website { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }

.re-nearby { background: #fff; border-top: 1px solid var(--re-sand); }
.re-nearby-inner { padding-top: 44px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.re-nearby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.re-nearby-head h2 { font-size: 30px; line-height: 1.2; }
.re-nearby-head a { font-size: 14px; font-weight: 700; }
.re-nearby .re-grid { padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.re-nearby .re-card { background: var(--re-cream); box-shadow: none; }
.re-nearby .re-card-photo { height: 180px; }
.re-nearby .re-card-price { font-size: 22px; }
.re-nearby .re-card-body { padding: 14px 16px 16px; gap: 4px; }
.re-nearby .re-card-title { font-size: 15px; }
.re-nearby .re-facts { font-size: 13px; color: var(--re-muted); }
@media (max-width: 1023px) { .re-nearby .re-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .re-nearby .re-grid { grid-template-columns: minmax(0, 1fr); } }

/* Photo viewer */
.re-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(12, 10, 9, .94); display: flex; flex-direction: column; color: #fff; }
.re-lightbox[hidden] { display: none; }
.re-lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }
.re-lightbox-top span { font-size: 15px; font-weight: 500; }
.re-lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.re-lightbox-stage img { flex: 1; min-width: 0; height: 100%; max-height: 100%; object-fit: contain; }
.re-lb-btn { flex: 0 0 52px; width: 52px; height: 52px; border: 0; border-radius: 26px; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.re-lb-btn:hover { background: rgba(255, 255, 255, .24); }
.re-lb-close { flex: 0 0 44px; width: 44px; height: 44px; }
.re-lightbox-thumbs { display: flex; gap: 8px; padding: 16px 24px 24px; overflow-x: auto; justify-content: safe center; }
.re-lightbox-thumbs button { flex: 0 0 72px; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #333; opacity: .6; }
.re-lightbox-thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.re-lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-lightbox :focus-visible { outline-color: #fff; }

/* Phone call/message bar (listing page) */
.re-callbar { display: none; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 1023px) {
  .re-hero h1 { font-size: 44px; }
  .re-aside { position: static; }
}

@media (max-width: 767px) {
  .re-wrap { padding-left: 16px; padding-right: 16px; }
  .re-hero { min-height: 0; }
  .re-hero-inner { padding-top: 120px; padding-bottom: 20px; gap: 18px; }
  .re-hero h1 { font-size: 32px; }
  .re-hero-copy p { font-size: 16px; }
  .re-search-row .re-btn { flex: 1 1 100%; }
  .re-results-head { padding-top: 28px; }
  .re-results-head h2 { font-size: 26px; }
  .re-sell-copy { padding: 28px 22px; }
  .re-sell-copy h2 { font-size: 26px; }
  .re-sell-photo { min-height: 200px; }
  .re-sell-art { flex-basis: 100%; min-height: 160px; }
  .re-alerts-inner { padding-top: 32px; padding-bottom: 32px; }
  .re-alerts h2 { font-size: 22px; }
  .re-alerts .re-btn { flex: 1 1 100%; }

  /* Listing page on phones: swipeable photo strip, bottom call bar */
  .re-topbar { padding-top: 10px; padding-bottom: 10px; }
  .re-crumbs { display: none; }
  .re-topbar .re-btn { width: 44px; padding: 0; }
  .re-topbar .re-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .re-gallery { display: none; }
  .re-gallery-phone { display: block; position: relative; margin: 0 -16px; }
  .re-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 300px; background: var(--re-photo-bg); }
  .re-swipe::-webkit-scrollbar { display: none; }
  .re-swipe button { flex: 0 0 100%; height: 100%; scroll-snap-align: start; padding: 0; border: 0; background: none; }
  .re-swipe img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .re-swipe-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; pointer-events: none; }
  .re-swipe-count { position: absolute; right: 12px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; pointer-events: none; }
  .re-swipe-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
  .re-swipe-dots span { width: 7px; height: 7px; border-radius: 4px; background: #fff; opacity: .6; transition: width .2s ease; }
  .re-swipe-dots span.on { width: 20px; opacity: 1; }
  .re-gallery-none { height: 220px; margin: 0 -16px; border-radius: 0; }
  .re-layout { padding-top: 18px; gap: 28px; }
  .re-main { gap: 24px; }
  .re-heading h1 { font-size: 26px; }
  .re-price { font-size: 30px; }
  .re-factboxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .re-factbox { padding: 12px; }
  .re-factbox strong { font-size: 20px; }
  .re .re-details { grid-template-columns: minmax(0, 1fr); }
  .re-section h2 { font-size: 22px; }
  .re-description { font-size: 15px; line-height: 1.65; }
  .re-nearby-head h2 { font-size: 24px; }
  .re-view { padding-bottom: 88px; }
  .re-callbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: #fff; box-shadow: 0 -4px 18px rgba(0, 0, 0, .1); padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .re-callbar .re-btn { flex: 1; min-height: 52px; font-size: 16px; }
  .re-lightbox-stage { padding: 0 8px; gap: 8px; }
  .re-lb-btn { flex-basis: 44px; width: 44px; height: 44px; }
  .re-lightbox-top { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .re *, .re *::before, .re *::after { transition: none !important; animation: none !important; }
  .re-card:hover { transform: none; }
}

/* W365's accent is the same navy as its hero, so the hero label and New badge use white there. */
.re[data-theme="w365"] .re-hero-label { background: #fff; color: #0b2241; }
