/* Agent sites (kind='agent'): additions on top of site.css. Same tokens, Change purple. */
.brand__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.ahero { padding: clamp(24px, 4vh, 56px) 0 clamp(40px, 6vh, 72px); }
.ahero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ahero__h1 { margin: 0; display: grid; gap: 10px; font-weight: inherit; }
.ahero__title { margin: 0; display: block; }
.ahero__role { display: block; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 560; letter-spacing: -0.01em; color: var(--text-2); }
.ahero__photo { margin: 0; justify-self: end; width: min(100%, 440px); }
.ahero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--bg-2); }
.ahero .hero__ctas { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.ahero .btn .i { width: 18px; height: 18px; margin-right: 8px; }

.asearch { display: flex; align-items: center; gap: 10px; margin-top: 28px; max-width: 560px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.asearch .i { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.asearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; height: 40px; outline: none; }
.asearch:focus-within { border-color: var(--accent-ink); }
.asearch--bar { margin: 0; box-shadow: none; flex: 1 1 260px; padding: 0 14px; height: 40px; }

.asection { padding: clamp(48px, 7vw, 96px) 0; }
.asection--alt { background: var(--bg-2); }
.asection--flush { padding-top: 0; }
.asection .rail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stats--plain { padding: 0 0 clamp(24px, 4vw, 48px); }
.stats--plain .stats__grid { margin-top: 0; }

.badge--sold { background: var(--accent); }
.role { margin: 10px 0 0; font-size: 14px; font-weight: 560; color: var(--accent-ink); }

.aabout { padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(64px, 9vw, 112px); }
.aabout__photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); margin-bottom: 24px; box-shadow: var(--shadow); }
.afacts { display: grid; gap: 14px; margin: 28px 0 0; }
.afacts dt { font-size: 14px; color: var(--text-3); }
.afacts dd { margin: 2px 0 0; }

/* Map search */
.msearch__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 14px; }
.msearch__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.msearch__map { position: relative; height: calc(100dvh - var(--nav-h) - 72px); position: sticky; top: var(--nav-h); }
#ms-map { width: 100%; height: 100%; background: var(--bg-2); }
.msearch__area[hidden] { display: none; }
.msearch__area { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.msearch__list { padding: 18px var(--gutter) 48px; min-height: 60vh; }
.msearch__count { margin: 0 0 14px; font-size: 15px; color: var(--text-2); }
.grid--tight { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.badge--open { left: auto; right: 14px; background: var(--accent); }
/* Status colours (match changevegas.com's search pins: green active, amber under contract/pending, red sold) */
.badge--st { color: #fff; }
.badge--active { background: #2e7d32; }
.badge--coming { background: var(--accent); }
.badge--pending { background: #f2c230; color: #1d1a10; }
.badge--closed { background: #c62828; }
.mpin--active { background: #2e7d32 !important; }
.mpin--coming { background: var(--accent) !important; }
.mpin--pending { background: #f2c230 !important; color: #1d1a10 !important; }
.mpin--closed { background: #c62828 !important; }
.mpop__st { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 6px; padding: 2px 7px; border-radius: 999px; color: #fff; background: #555; vertical-align: 1px; }
.mpop__st--active { background: #2e7d32; }
.mpop__st--coming { background: #4726e1; }
.mpop__st--pending { background: #f2c230; color: #1d1a10; }
.mpop__st--closed { background: #c62828; }
.mpin { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 12px/1 "Inter", system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mpop { display: grid; gap: 2px; width: 220px; color: #15151a; font: 14px/1.35 "Inter", system-ui, sans-serif; text-decoration: none; }
.mpop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }

@media (max-width: 900px) {
  .ahero__grid { grid-template-columns: 1fr; }
  .ahero__photo { justify-self: start; width: min(100%, 320px); order: -1; }
  .msearch__body { grid-template-columns: 1fr; }
  .msearch__map { position: relative; top: 0; height: 52vh; }
}
