/* Agent sites (models/Agent_Site.inc): the parts the RetireNet pages don't have - the agent's header and footer, the home page,
   Homes for sale, the MLS notice and the preview bar. Loaded after rn.css (and rn_m.css on the mobile site) on body.rn.as-site.
   The accent colour of a site (Website tab) overrides --rn-accent in the page head. Sizes are explicit. */

/* Preview bar (Super Admin preview) */
.rn .as-prevbar { position: relative; z-index: 1040; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 40px; padding: 8px 24px; background: #fff6d8; border-bottom: 1px solid #f0dc94; color: #5c4a0c; font-size: 13.5px; line-height: 20px; }
.rn .as-prevbar a { color: #5c4a0c !important; font-weight: 600; text-decoration: underline; }
.rn .as-prevbar span { margin-right: auto; }

/* Header */
.rn .as-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; height: 72px; color: var(--rn-ink) !important; text-decoration: none !important; }
.rn .as-brand-logo { display: block; width: auto; max-width: 160px; height: 48px; object-fit: contain; }
.rn .as-brand-pic { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rn .as-brand-t { display: flex; flex-direction: column; min-width: 0; }
.rn .as-brand-t b { overflow: hidden; color: var(--rn-ink); font-size: 17px; font-weight: 700; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.rn .as-brand-t em { overflow: hidden; color: var(--rn-muted); font-size: 13px; font-style: normal; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.rn .as-head .rn-nav-a.on { background: var(--rn-soft); }
.rn .as-head .as-head-cta { height: 40px; padding: 0 16px; font-size: 14.5px; }
.rn .as-menu { min-width: 300px; padding: 8px; border: 1px solid var(--rn-line); border-radius: 12px; box-shadow: var(--rn-shadow-hi); }
.rn .as-menu ul { margin: 0; padding: 0; list-style: none; }
.rn .as-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; color: var(--rn-ink) !important; font-size: 14.5px; line-height: 20px; text-decoration: none !important; }
.rn .as-menu a:hover { background: var(--rn-soft); }
.rn .as-menu a span { color: var(--rn-muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 1199px) { .rn .as-head .as-head-cta { display: none; } }

/* Home page: the agent */
.rn .as-hero { padding: 40px 0 28px; background: linear-gradient(180deg, var(--rn-tint) 0%, #fff 100%); border-bottom: 1px solid var(--rn-line); }
.rn .as-hero-in { display: flex; align-items: center; gap: 32px; }
.rn .as-hero-pic { flex: 0 0 168px; width: 168px; height: 168px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: var(--rn-shadow); }
.rn .as-hero-t { min-width: 0; }
.rn .as-hero h1 { margin: 0 0 8px; font-size: 36px; line-height: 44px; }
.rn .as-hero-who { margin: 0 0 12px; color: var(--rn-muted); font-size: 16px; line-height: 24px; }
.rn .as-hero-who b { color: var(--rn-ink); }
.rn .as-hero-intro { max-width: 760px; margin: 0 0 18px; color: var(--rn-text); font-size: 16px; line-height: 26px; }
.rn .as-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.rn .as-hero-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.rn .as-hero-facts li { display: flex; flex-direction: column; min-width: 160px; padding: 12px 18px; border: 1px solid var(--rn-line); border-radius: 10px; background: #fff; }
.rn .as-hero-facts b { color: var(--rn-ink); font-size: 20px; line-height: 26px; }
.rn .as-hero-facts span { color: var(--rn-muted); font-size: 13.5px; line-height: 18px; }
.rn .as-main { padding: 32px 24px 48px; }
.rn .as-lh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .rn .as-lh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rn .as-lh-grid { grid-template-columns: 1fr; } }
.rn .as-about-in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.rn .as-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 20px; border: 1px solid var(--rn-line); border-radius: var(--rn-radius); background: #fff; box-shadow: var(--rn-shadow); text-align: center; }
.rn .as-card img { width: 96px; height: 96px; margin: 0 0 6px; border-radius: 50%; object-fit: cover; }
.rn .as-card b { color: var(--rn-ink); font-size: 17px; line-height: 22px; }
.rn .as-card span { color: var(--rn-muted); font-size: 14px; line-height: 20px; }
.rn .as-card .rn-btn { width: 100%; margin-top: 8px; }
@media (max-width: 900px) { .rn .as-about-in { grid-template-columns: 1fr; } }

/* Homes for sale */
.rn .as-h1 { margin: 8px 0 18px; font-size: 30px; line-height: 38px; }
.rn .as-h1 em { color: var(--rn-muted); font-size: 18px; font-style: normal; font-weight: 600; }
.rn .as-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 14px; padding: 16px; border: 1px solid var(--rn-line); border-radius: var(--rn-radius); background: var(--rn-soft); }
.rn .as-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 150px; margin: 0; }
.rn .as-filters label span { color: var(--rn-muted); font-size: 12.5px; font-weight: 600; line-height: 16px; }
.rn .as-filters select { height: 44px; padding: 0 32px 0 12px; border: 1px solid #cfd9e2; border-radius: 10px; background: #fff; color: var(--rn-ink); font-size: 15px; }
.rn .as-filters .rn-btn { height: 44px; }
.rn .as-filters-clear { display: inline-flex; align-items: center; height: 44px; font-size: 14.5px; }
.rn .as-count { margin: 0 0 14px; color: var(--rn-muted); font-size: 14px; line-height: 20px; }

/* A home's MLS attribution */
.rn .as-mls { margin: 0 0 32px; padding: 14px 18px; border: 1px solid var(--rn-line); border-radius: 10px; background: var(--rn-soft); color: var(--rn-muted); font-size: 13.5px; line-height: 20px; }
.rn .as-mls p { margin: 0; }
.rn .as-mls p + p { margin-top: 4px; }
.rn .as-mls b { color: var(--rn-ink); }

/* The MLS notice above the footer */
.rn .as-legal { padding: 24px 0; background: var(--rn-soft); border-top: 1px solid var(--rn-line); color: var(--rn-muted); font-size: 12.5px; line-height: 19px; }
.rn .as-legal .rn-wrap { display: flex; align-items: flex-start; gap: 20px; }
.rn .as-legal-logo { flex: 0 0 auto; width: auto; max-width: 120px; height: 48px; object-fit: contain; }
.rn .as-legal-t p { margin: 0 0 6px; }
.rn .as-legal-t b { color: var(--rn-text); }
.rn .as-legal-d { margin: 0 0 6px; }
.rn .as-legal-d p { margin: 0 0 6px; }

/* Footer branded by the agent */
.rn .as-foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.rn .as-foot-brand { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #fff !important; text-decoration: none !important; }
.rn .as-foot-logo { display: block; width: auto; max-width: 160px; height: 56px; padding: 6px 10px; border-radius: 8px; background: #fff; object-fit: contain; }
.rn .as-foot-pic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.rn .as-foot-brand span { display: flex; flex-direction: column; }
.rn .as-foot-brand b { color: #fff; font-size: 17px; line-height: 22px; }
.rn .as-foot-brand em { color: rgba(255, 255, 255, .7); font-size: 13px; font-style: normal; line-height: 18px; }
.rn .as-foot-lic { margin: 12px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 18px; }
.rn .as-foot .rn-foot-bot { gap: 8px 24px; }
.rn .as-foot-rn a { color: #fff !important; text-decoration: underline; }
@media (max-width: 900px) { .rn .as-foot-grid { grid-template-columns: 1fr 1fr; } .rn .as-foot-me { grid-column: 1 / -1; } }

/* Mobile site */
.rn-m .as-mhead .as-brand { height: 56px; gap: 8px; margin-right: auto; }
.rn-m .as-mhead .as-brand-logo { max-width: 110px; height: 36px; }
.rn-m .as-mhead .as-brand-pic { width: 36px; height: 36px; }
.rn-m .as-mhead .as-brand-t b { font-size: 15px; line-height: 20px; }
.rn-m .as-mhead .rn-mbtn:first-of-type { margin-left: 0; }
.rn-m .as-prevbar { padding: 8px 14px; font-size: 12.5px; }
.rn-m .as-hero { padding: 24px 0 20px; }
.rn-m .as-hero-in { flex-direction: column; align-items: flex-start; gap: 16px; }
.rn-m .as-hero-pic { flex: 0 0 104px; width: 104px; height: 104px; }
.rn-m .as-hero h1 { font-size: 26px; line-height: 32px; }
.rn-m .as-hero-intro { font-size: 15px; line-height: 23px; }
.rn-m .as-hero-acts .rn-btn { flex: 1 1 100%; }
.rn-m .as-hero-facts { gap: 8px; margin-top: 18px; }
.rn-m .as-hero-facts li { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 10px 12px; }
.rn-m .as-main { padding: 20px 16px 32px; }
.rn-m .as-h1 { font-size: 24px; line-height: 30px; }
.rn-m .as-filters { padding: 12px; }
.rn-m .as-filters label { flex: 1 1 calc(50% - 12px); min-width: 0; }
.rn-m .as-filters .rn-btn { flex: 1 1 100%; }
.rn-m .as-legal .rn-wrap { flex-direction: column; gap: 10px; }
.rn-m .as-foot-grid { grid-template-columns: 1fr; gap: 24px; }
