:root{--red:#b61435;--ink:#202329}*{box-sizing:border-box}body{margin:0;background:#f6f5f3;color:var(--ink);font:16px/1.6 system-ui,sans-serif}a{color:var(--red)}header{background:var(--ink);color:white;padding:24px 0}header a{color:white}.wrap{max-width:1180px;margin:auto;padding:0 24px}.brand{display:flex;justify-content:space-between;gap:24px;align-items:center}.brand strong{font-size:21px}.brand b{color:#ff647d}.hero{padding:65px 0;background:white;border-bottom:5px solid var(--red)}.eyebrow{font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:var(--red);font-weight:800}h1{font-size:clamp(36px,5vw,64px);line-height:1.07;letter-spacing:-.04em;margin:20px 0}h2{font-size:30px}h3,p{margin:0 0 9px}.lead{font-size:20px;color:#62656a;max-width:660px}.searchbar{display:flex;gap:15px;margin:28px 0 12px;align-items:end}.searchbar label{flex:1}input{display:block;width:100%;padding:16px;border:1px solid #b9b9bc;border-radius:5px;font:inherit;margin-top:7px}button,.btn{font:inherit;padding:16px 22px;border:0;border-radius:4px;background:var(--red);color:white;cursor:pointer;text-decoration:none;display:inline-block}.light{background:#eee;color:var(--ink)}main{padding-top:30px;padding-bottom:70px}#results{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.agent-card{background:white;color:inherit;text-decoration:none;display:flex;gap:14px;padding:20px;align-items:center;border:1px solid #e4e1df;border-radius:8px;transition:.2s}.agent-card:hover{transform:translateY(-3px);border-color:var(--red);box-shadow:0 9px 24px #2221}.agent-card img,.initial{width:62px;height:62px;border-radius:50%;object-fit:cover;flex-shrink:0}.initial{background:#f8e6eb;display:grid;place-items:center;color:var(--red);font-size:26px}.agent-card h3{font-size:17px;line-height:1.25}.agent-card p,.agent-card small{font-size:13px;color:#61646a}.agent-card>span:last-child{margin-left:auto}.profile-grid{display:flex;gap:35px;margin:30px 0}.profile-photo{width:220px;height:280px;object-fit:cover;border-radius:8px}.actions{display:flex;gap:12px;flex-wrap:wrap}.share-label{display:block;margin-top:20px;font-size:13px}.video-frame{aspect-ratio:16/9;background:#17191e;border-radius:12px;overflow:hidden;max-width:900px;margin:20px 0 10px}.video-frame iframe{width:100%;height:100%;border:0}#profile{background:white;padding:30px;border-radius:12px;margin-bottom:30px;scroll-margin-top:15px}#agent-map{height:450px;border-radius:10px;margin:20px 0}footer{padding:35px 0;background:#202329;color:#ddd}footer a{color:white}.fine{font-size:12px;color:#74777a;margin-top:25px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e89817;outline-offset:3px}@media(max-width:800px){#results{grid-template-columns:repeat(2,1fr)}.brand{align-items:start;flex-direction:column}.hero{padding:35px 0}}@media(max-width:520px){#results{grid-template-columns:1fr}.wrap{padding:0 18px}.searchbar{flex-wrap:wrap}.searchbar label{flex-basis:100%}.profile-grid{flex-direction:column}.profile-photo{width:140px;height:175px}#profile{padding:20px}.brand strong{font-size:18px}#agent-map{height:360px}}

/* Map-first layout: the original San Diego map's blue pins and grouped markets. */
[hidden]{display:none!important}
.directory-views{display:inline-flex;align-items:center;gap:3px;padding:4px;background:#f0eeed;border:1px solid #ded8d6;border-radius:9px}
.directory-views button{background:transparent;color:#333844;padding:10px 17px;min-height:44px;font-weight:700}
.directory-views button[aria-pressed=true]{background:#a51c38;color:white}
.market-map{background:#fff;border:1px solid #e4e4e2;padding:clamp(12px,2.6vw,24px);border-radius:16px;box-shadow:0 10px 25px #162e4010;margin-bottom:20px}
.map-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:13px}
.map-heading h2{font-size:clamp(20px,4vw,26px);line-height:1.2;margin:0 0 4px;color:#17384a}
.map-heading p{font-size:14px;color:#526a78;margin:0}
.map-count{padding:5px 10px;background:#e6f2f6;color:#155a75;border-radius:999px;font-size:13px;font-weight:800;white-space:nowrap}
#agent-map{height:clamp(400px,56vh,605px);border:1px solid #c9d8df;border-radius:12px;margin:0;background:#dae8ed}
#agent-map.has-tile-error{background:#e4edf1}
.map-message{margin:12px 0 0;color:#435964;font-size:14px}
.market-pin-icon{background:transparent;border:0}
.market-pin{display:grid;place-items:center;width:36px;height:36px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#176b87;color:#fff;box-shadow:0 2px 7px #17384a70;transform:rotate(-45deg)}
.market-pin-face{display:grid;place-items:center;width:28px;height:28px;overflow:hidden;position:relative;border-radius:50%;transform:rotate(45deg);font:800 10px/1 system-ui,sans-serif}
.market-pin-face img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:1}
.market-cluster{display:grid;place-items:center;background:#c5e3ed;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 8px #17384a45}
.market-cluster span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#176b87;color:white;font:750 13px/1 system-ui,sans-serif}
.market-popup{display:grid;gap:3px;min-width:110px}.market-popup strong{color:#17384a}.market-popup a{font-weight:750}
@media(max-width:600px){#agent-map{height:clamp(330px,53vh,470px)}.market-map{margin-inline:-4px}.map-count{font-size:12px}}
