.agencies-page{--agency-ink:#102332;--agency-gold:#cd932e;--agency-muted:#8190a5;position:relative;z-index:1;color:var(--agency-ink);background:linear-gradient(150deg,#f7f9fb,#fff 65%);padding-bottom:20px}
body:has(.agencies-page) .site-shell{background:#fafbfc}
body:has(.agencies-page) .site-shell>.pointer-events-none.absolute{display:none}
.agencies-container{width:90%;max-width:1320px;margin-inline:auto}
.agencies-hero{height:510px;position:relative;overflow:hidden;background:#f8f9fb}
.agencies-hero-photo{position:absolute;inset:0 42% 0 0;background:url('../img/estate-interior.webp') center/cover;clip-path:polygon(0 0,100% 0,83% 100%,0 100%)}
.agencies-hero:after{content:'';position:absolute;bottom:-52px;left:-5%;width:110%;height:95px;background:#fafbfc;border-radius:50% 50% 0 0}
.agencies-hero-content{position:relative;z-index:1;padding-top:34px;padding-bottom:90px}
.agencies-hero-content>h1,.agencies-hero-content>h2,.agencies-hero-content>p,.agencies-benefits{max-width:51%;margin-left:0}
.agencies-breadcrumb{font-size:12px;color:var(--agency-muted);margin-bottom:30px}
.agencies-label{display:inline-flex;align-items:center;gap:5px;background:#fff0d5;color:#b98225;border-radius:20px;padding:4px 12px;font-size:11px;font-weight:700}
.agencies-hero h1{font-size:44px;font-weight:900;line-height:1.5;margin:12px 0 4px}
.agencies-hero h2{font-size:27px;font-weight:700;color:var(--agency-gold);line-height:1.6;margin:0 0 14px}
.agencies-hero p{font-size:14px;line-height:2;color:#67758c}
.agencies-benefits{display:flex;justify-content:space-between;gap:15px;margin-top:34px}
.agencies-benefits>div{display:flex;align-items:center;gap:10px;font-size:11px;color:#66758b;font-weight:700}
.agencies-benefits i,.agencies-stats i{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:50%;background:#fcf5e9;color:#cc8b22;font-size:27px}
.agencies-search{position:relative;margin-top:-66px;z-index:2;background:#ffffffed;border:1px solid #f0f2f5;border-radius:17px;padding:13px 20px 23px;box-shadow:0 12px 35px #223c5510}
.agencies-search-tabs{display:flex;background:#f5f6f8;padding:5px;border-radius:10px;gap:6px;margin-left:auto;width:66%;margin-bottom:20px}
.agencies-search-tabs button{flex:1;padding:12px 8px;border-radius:9px;color:#66758c;font-size:12px;font-weight:700;cursor:pointer}
.agencies-search-tabs button i{color:var(--agency-gold);margin-left:8px;font-size:17px}
.agencies-search-tabs button.is-active{background:#102332;color:#fff}
.agencies-search form{display:grid;grid-template-columns:2fr 1.25fr 1.25fr 1fr .85fr;gap:12px}
.agencies-search select,.agencies-search-input{min-width:0;border:1px solid #e4eaf1;background:white;border-radius:9px;box-shadow:0 3px 8px #17273506;padding:12px;color:#6b7b91;font-size:12px}
.agencies-search-input{display:flex;align-items:center;gap:9px}
.agencies-search-input i{font-size:22px;color:var(--agency-gold)}
.agencies-search-input input{min-width:0;width:100%;background:transparent;outline:none}
.agencies-gold-button{display:inline-flex;justify-content:center;align-items:center;gap:16px;padding:13px 24px;color:#fff;background:linear-gradient(115deg,#dfa83d,#bc852c);border:1px solid #d99d37;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer}
.agencies-gold-button:hover{filter:brightness(1.08)}
.agencies-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:25px;padding:44px 15px 48px}
.agencies-stats>div{display:flex;gap:16px;align-items:center;justify-content:center}
.agencies-stats i{width:65px;height:65px;font-size:34px}
.agencies-stats strong{font-size:25px;font-weight:900;display:block;direction:ltr;text-align:right}
.agencies-stats small{display:block;font-size:11px;color:var(--agency-muted);margin-top:5px}
.agencies-section{margin:22px 0 30px}
.agencies-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}
.agencies-section-heading h2,.agencies-discovery h2,.agencies-bottom-cta h2{font-size:23px;font-weight:900;line-height:1.6;margin:10px 0 6px}
.agencies-section-heading p,.agencies-discovery p,.agencies-bottom-cta p{color:var(--agency-muted);font-size:13px;line-height:1.9}
.agencies-outline-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e5ebf0;background:white;border-radius:24px;padding:9px 15px;white-space:nowrap;font-size:11px;font-weight:700}
.agencies-outline-link i{color:var(--agency-gold)}
.agents-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.agency-card{border:1px solid #edf1f6;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 4px 15px #17304c06;text-align:center;transition:transform .2s}
.agency-card:hover{transform:translateY(-4px)}
.agency-card-cover{display:block;height:172px;position:relative;background-size:cover;background-position:center}
.agency-card-cover span{position:absolute;top:13px;right:12px;background:#f6c64c;border-radius:20px;padding:5px 11px;color:#172735;font-size:10px;font-weight:700}
.agency-card-logo{position:relative;display:block;margin:-46px auto 0;border-radius:50%;width:88px;height:88px;object-fit:cover;border:5px solid white;background:#142c3a;box-shadow:0 3px 10px #10233210}
.agency-card-body{padding:9px 16px 18px}
.agency-card h3{font-size:16px;font-weight:900;margin:5px 0}
.agency-card-location{font-size:11px;color:#96a0b3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agency-card-location i{color:var(--agency-gold)}
.agencies-stars{display:flex;gap:2px;align-items:center;justify-content:center;color:#efa915;font-size:14px;margin:8px 0}
.agencies-stars span{color:#576980;font-size:11px;margin-right:9px}
.agency-card-tags{display:flex;justify-content:center;gap:9px;margin:13px 0}
.agency-card-tags a{border-radius:20px;background:#f4f6f9;color:#6c7d91;font-size:10px;padding:4px 12px}
.agency-card-count{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#6b7c91;margin:16px 0}
.agency-card-count i{font-size:19px;color:#172c3d}
.agency-card-details{display:flex;justify-content:space-between;align-items:center;border:1px solid #edcf99;color:#bb8329;background:#fcf6ea;border-radius:9px;font-size:12px;font-weight:700;padding:10px 20px}
.agencies-pagination{margin:25px 0}
.agencies-empty{grid-column:1/-1;text-align:center;padding:45px;border:1px dashed #ddd;border-radius:12px;color:#728196}
.agencies-empty>i{font-size:32px}.agencies-empty h3{font-weight:700;margin:10px}.agencies-empty p{margin-bottom:20px}
.agencies-discovery{display:grid;grid-template-columns:1fr 1.7fr;gap:20px;margin:30px 0}
.agencies-join{position:relative;isolation:isolate;overflow:hidden;border-radius:17px;background:#142c3b url('../img/estate-hero.webp') center/cover;padding:25px;color:white}
.agencies-join:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#10233270,#102332f0);z-index:-1}
.agencies-join h2{font-size:27px}.agencies-join p{color:#d1dbe6;font-size:12px;margin-bottom:16px}.agencies-join ul{margin-top:15px;font-size:12px;line-height:2.3}.agencies-join li i{color:#eab04b;font-size:22px;margin-left:9px}
.agencies-regions{display:grid;grid-template-columns:1.2fr 1fr;direction:ltr;align-items:center;gap:20px;border:1px solid #e3eaf2;background:#f3f6fa;border-radius:17px;padding:22px;overflow:hidden}
.agencies-regions>div:last-child{direction:rtl}.agencies-regions h2{font-size:20px}.agencies-regions p{font-size:12px;margin-bottom:15px}
.agencies-city-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0 20px}.agencies-city-grid a{background:#fff;padding:10px 3px;text-align:center;font-size:11px;border-radius:7px;border:1px solid #e8edf4;color:#79869b}.agencies-city-grid a:hover,.agencies-city-grid a.is-active{color:white;background:var(--agency-gold)}
.agencies-map-art{height:300px;position:relative;background:linear-gradient(135deg,#c4eaff 20%,#f6e9c9 21%,#f6e9c9 67%,#bfe4f5 68%);clip-path:polygon(12% 0,90% 7%,95% 44%,75% 56%,91% 100%,0 100%,0 23%);display:flex;align-items:center;justify-content:center;gap:17px;flex-direction:column;color:#a27838;font-size:32px}.agencies-map-art span{font-size:23px;font-weight:900}.agencies-map-art i:last-child{margin-left:90px}
.agencies-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.agencies-categories>a{overflow:hidden;border-radius:9px;border:1px solid #e5ebf2;background:#fff}.agencies-category-photo{height:120px;background-position:center;background-size:cover}.agencies-categories a>div:last-child{display:flex;align-items:center;gap:10px;padding:15px 10px}.agencies-categories i{font-size:25px;color:var(--agency-gold);background:#fff5e6;border-radius:50%;padding:7px}.agencies-categories strong{display:block;font-size:12px}.agencies-categories small{font-size:10px;color:#8b99ae}
.agencies-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.agencies-review-grid>a{position:relative;border:1px solid #e4ebf2;border-radius:10px;background:white;padding:24px}.agencies-review-grid>a>i{position:absolute;left:15px;top:12px;font-size:33px;color:#ccd5e2}.agencies-review-grid p{font-size:13px;margin-left:25px;color:#76879c}.agencies-review-grid .agencies-stars{justify-content:flex-start}.agencies-review-person{display:flex;align-items:center;gap:12px;margin-top:15px}.agencies-review-person img{width:45px;height:45px;object-fit:cover;border-radius:50%}.agencies-review-person strong{display:block;font-size:12px}.agencies-review-person small{display:block;font-size:11px;color:#8b99ae}
.agencies-bottom-cta{border:1px solid #e9edf3;border-radius:14px;padding:30px;margin-top:24px;min-height:190px;background:linear-gradient(90deg,#ffffff05,#fffffff5 65%),url('../img/estate-hero.webp') left center/cover}.agencies-bottom-cta p{margin-bottom:17px}
.dark .agencies-page{background:#0b1623;color:#e8eef7}.dark .agencies-hero{background:#132333}.dark .agencies-hero:after{background:#0b1623}.dark .agencies-search,.dark .agency-card,.dark .agencies-review-grid>a,.dark .agencies-categories>a{background:#142333;border-color:#29394b}.dark .agencies-search-tabs,.dark .agencies-regions{background:#172a3d}.dark .agencies-search select,.dark .agencies-search-input,.dark .agencies-outline-link,.dark .agencies-city-grid a{background:#203345;color:#e4ebf4;border-color:#344658}.dark .agency-card-logo{border-color:#142333}.dark .agencies-bottom-cta{background:linear-gradient(90deg,#10233210,#102332f5 65%),url('../img/estate-hero.webp') center/cover}
@media(max-width:1100px){.agencies-hero h1{font-size:36px}.agencies-hero h2{font-size:22px}.agencies-benefits{gap:8px}.agencies-benefits i{width:37px;height:37px;font-size:22px}.agencies-stats{gap:12px;padding-inline:0}.agencies-stats i{width:48px;height:48px}.agencies-stats strong{font-size:21px}.agency-card-cover{height:135px}.agency-card-body{padding-inline:10px}.agencies-categories{grid-template-columns:repeat(3,1fr)}.agencies-discovery{grid-template-columns:1fr 1.5fr}.agencies-regions{grid-template-columns:1fr}.agencies-map-art{display:none}}
@media(max-width:767px){.agencies-container{width:92%}.agencies-hero{height:auto;min-height:560px}.agencies-hero-photo{inset:0;clip-path:none;opacity:.14}.agencies-hero-content{padding-bottom:110px}.agencies-hero-content>h1,.agencies-hero-content>h2,.agencies-hero-content>p,.agencies-benefits{max-width:100%}.agencies-hero h1{font-size:35px}.agencies-hero h2{font-size:23px}.agencies-search{padding:12px;margin-top:-65px}.agencies-search-tabs{width:100%}.agencies-search-tabs button{font-size:10px;padding:9px 3px}.agencies-search-tabs button i{margin-left:3px}.agencies-search form{grid-template-columns:1fr 1fr}.agencies-search-input{grid-column:1/-1}.agencies-stats{grid-template-columns:1fr 1fr;padding:30px 0;gap:22px}.agencies-stats>div{justify-content:flex-start}.agencies-stats strong{font-size:20px}.agencies-stats small{font-size:10px}.agencies-section-heading{align-items:flex-start;gap:10px}.agencies-section-heading h2{font-size:19px}.agencies-section-heading p{font-size:11px}.agencies-outline-link{font-size:10px;padding:8px}.agents-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agency-card h3{font-size:13px}.agency-card-logo{width:70px;height:70px;margin-top:-35px}.agency-card-tags{gap:4px}.agency-card-tags a{padding:4px 8px}.agency-card-details{padding:9px 12px;font-size:11px}.agencies-discovery{grid-template-columns:1fr}.agencies-join{min-height:330px}.agencies-regions{padding:22px}.agencies-categories{gap:10px;grid-template-columns:repeat(2,1fr)}.agencies-review-grid{grid-template-columns:1fr}.agencies-bottom-cta{padding:22px}.agencies-bottom-cta h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.agency-card{transition:none}}

body:has(.agencies-page) .estate-header{background:#f8f9fb;padding-bottom:0}
body:has(.agencies-page) .estate-topbar{background:transparent;margin-bottom:12px}
body:has(.agencies-page) .estate-topbar-inner{width:90%;max-width:1320px}
body:has(.agencies-page) .estate-navbar-inner{width:90%;max-width:1320px;min-height:82px;background:white;border-radius:16px;padding:8px 18px;box-shadow:0 4px 20px #10233205}
body:has(.agencies-page) .estate-topbar-inner{min-height:36px}
.agencies-benefits>div span{max-width:95px}
.agencies-map-art{clip-path:none;background:#d7eaf0;border-radius:12px;height:300px;display:block}
.agencies-map-art iframe{width:100%;height:100%;border:0}
.dark body:has(.agencies-page) .estate-header{background:#132333}
.dark body:has(.agencies-page) .estate-navbar-inner{background:#142333}
@media(max-width:767px){body:has(.agencies-page) .estate-navbar-inner{width:94%;min-height:70px;padding:6px 10px}.agencies-map-art{display:none}}

/* Agency hero: the navigation floats over the full-height office photograph. */
body:has(.agencies-page) .estate-header{position:absolute;inset:0 0 auto;z-index:140;background:transparent;padding:10px 0 0}
body:has(.agencies-page) .estate-topbar{background:transparent}
body:has(.agencies-page) .estate-topbar-inner,
body:has(.agencies-page) .estate-navbar-inner,
.agencies-container{width:85%;max-width:1320px}
body:has(.agencies-page) .estate-topbar-inner{min-height:38px}
body:has(.agencies-page) .estate-navbar-inner{min-height:82px;border-radius:16px;background:#fffffff5;box-shadow:0 10px 35px #14243008}
body:has(.agencies-page) .estate-topbar-inner>div:last-child{background:#ffffffd9;border-radius:24px;padding:7px 13px}
.agencies-hero{height:clamp(650px,54.3vw,820px);min-height:0;background:radial-gradient(ellipse at 76% 5%,#fff 0,#f9fafb 48%,#f2f4f6 100%)}
.agencies-hero-photo{inset:0 40% 0 0;background-image:url('../img/agencies-office-hero.webp');background-position:47% center;clip-path:polygon(0 0,100% 0,78% 100%,0 100%);opacity:1}
.agencies-hero:before{content:'';position:absolute;top:130px;bottom:0;left:47%;width:8%;background:linear-gradient(100deg,#ecd19b88,#faf1de);transform:skewX(-18deg);border-radius:55px 55px 0 0}
.agencies-hero:after{bottom:-76px;height:125px;background:#fafbfc;transform:rotate(-2deg)}
.agencies-hero-content{padding-top:clamp(170px,14vw,210px);padding-bottom:0}
.agencies-hero-content>h1,.agencies-hero-content>h2,.agencies-hero-content>p,.agencies-benefits{max-width:47%}
.agencies-breadcrumb{margin-bottom:30px}
.agencies-hero h1{font-size:clamp(35px,3.3vw,49px);margin-top:17px;margin-bottom:9px}
.agencies-hero h2{font-size:clamp(23px,2.22vw,33px);line-height:1.6;margin-bottom:18px}
.agencies-hero p{font-size:clamp(12px,1.1vw,16px);line-height:2}
.agencies-benefits{margin-top:42px;gap:15px}
.agencies-benefits>div{font-size:12px;line-height:1.8;gap:10px}
.agencies-benefits>div span{max-width:100px}
.agencies-benefits i{width:53px;height:53px;font-size:29px}
.agencies-search{margin-top:-125px;padding:12px 22px 24px;border-radius:20px;background:#ffffffee;box-shadow:0 12px 40px #223c550b}
.agencies-search-tabs{width:66%;margin-bottom:25px}
.agencies-search form{padding-top:10px;border-top:1px solid #f3f5f8}
.agencies-search select,.agencies-search-input{padding:14px 12px}
.agencies-stats{padding-top:45px;padding-bottom:48px}
.dark body:has(.agencies-page) .estate-header{background:transparent}
.dark body:has(.agencies-page) .estate-navbar-inner{background:#142333f5}
.dark body:has(.agencies-page) .estate-topbar-inner>div:last-child{background:#142333df}
.dark .agencies-hero{background:#132333}
.dark .agencies-hero:before{background:linear-gradient(100deg,#95733070,#132333)}
@media(max-width:1100px) and (min-width:768px){.agencies-hero{height:660px}.agencies-hero-content{padding-top:155px}.agencies-hero h1{font-size:36px}.agencies-hero h2{font-size:23px}.agencies-benefits{gap:9px}.agencies-benefits>div{font-size:10px}.agencies-benefits i{width:40px;height:40px;font-size:23px}}
@media(max-width:767px){
    body:has(.agencies-page) .estate-header{padding-top:10px}
    body:has(.agencies-page) .estate-navbar-inner{width:calc(100% - 24px);min-height:64px;padding:7px 12px;border-radius:15px;background:#ffffffed}
    body:has(.agencies-page) .estate-topbar-inner{width:calc(100% - 24px)}
    .agencies-container{width:calc(100% - 32px)}
    .agencies-hero{height:auto;min-height:0;background:#f8fafc}
    .agencies-hero-photo{inset:0 0 auto;height:330px;clip-path:none;opacity:1;background-position:center 38%}
    .agencies-hero:before{display:block;inset:0;left:0;width:100%;transform:none;border-radius:0;background:linear-gradient(180deg,transparent 120px,#f8fafc00 185px,#f8fafce8 290px,#f8fafc 345px);z-index:0}
    .agencies-hero:after{display:none}
    .agencies-hero-content{padding-top:278px;padding-bottom:70px}
    .agencies-hero-content>h1,.agencies-hero-content>h2,.agencies-hero-content>p,.agencies-benefits{max-width:100%}
    .agencies-breadcrumb{font-size:11px;margin-bottom:16px}
    .agencies-label{font-size:11px;padding:5px 11px}
    .agencies-hero h1{font-size:clamp(27px,7.2vw,36px);line-height:1.45;margin:12px 0 8px}
    .agencies-hero h2{font-size:clamp(19px,5.1vw,25px);line-height:1.7;margin-bottom:12px}
    .agencies-hero p{font-size:13px;line-height:1.95;color:#607186}
    .agencies-hero p br{display:none}
    .agencies-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:22px}
    .agencies-benefits>div{flex-direction:column;text-align:center;font-size:11px;gap:8px;padding:12px 6px;background:#ffffffbc;border:1px solid #eee8dc;border-radius:12px;line-height:1.7}
    .agencies-benefits>div span{max-width:100%;overflow-wrap:anywhere}
    .agencies-benefits i{width:39px;height:39px;font-size:24px}
    .agencies-search{margin-top:-38px;padding:12px;border-radius:16px;background:#fff;box-shadow:0 10px 26px #1023320b}
    .agencies-search-tabs{width:100%;gap:3px;padding:4px;margin-bottom:12px}
    .agencies-search-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:62px;padding:8px 4px;font-size:11px;line-height:1.5}
    .agencies-search-tabs button i{font-size:19px;margin:0}
    .agencies-search form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px}
    .agencies-search-input{grid-column:1/-1;min-height:50px}
    .agencies-search select,.agencies-search-input{padding:11px 9px;font-size:13px;border-radius:10px}
    .agencies-search-input input{font-size:16px}
    .agencies-search select{width:100%;min-height:48px}
    .agencies-search select[name=rating]{grid-column:1/-1}
    .agencies-search .agencies-gold-button{grid-column:1/-1;min-height:48px;font-size:14px}
    .agencies-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:24px 0 8px;gap:10px}
    .agencies-stats>div{justify-content:flex-start;gap:10px;padding:14px 10px;border:1px solid #e9edf2;border-radius:12px;background:#fff}
    .agencies-stats i{width:39px;height:39px;font-size:24px}
    .agencies-stats strong{font-size:19px;white-space:nowrap}
    .agencies-stats small{font-size:10px;line-height:1.7;margin-top:4px}
    .agencies-section{margin:28px 0}
    .agencies-section-heading{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:18px}
    .agencies-section-heading h2{font-size:20px;line-height:1.6}
    .agencies-section-heading p{font-size:12px;line-height:1.9}
    .agencies-outline-link{font-size:12px;min-height:42px;padding:10px 14px}
    .agents-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .agency-card{border-radius:14px}
    .agency-card-cover{height:145px}
    .agency-card-body{padding:10px 12px 14px}
    .agency-card-logo{width:74px;height:74px;margin-top:-37px}
    .agency-card h3{font-size:15px;line-height:1.7;overflow-wrap:anywhere}
    .agency-card-location{font-size:12px}
    .agency-card-tags{gap:6px;flex-wrap:wrap}
    .agency-card-tags a{padding:8px 12px;min-height:36px;font-size:12px}
    .agency-card-count{font-size:12px;margin:14px 0}
    .agency-card-details{font-size:12px;min-height:44px;padding:10px 14px}
    .agencies-discovery{grid-template-columns:1fr;gap:16px;margin:28px 0}
    .agencies-join{min-height:0;padding:24px}
    .agencies-join h2{font-size:25px}
    .agencies-join p,.agencies-join ul{font-size:13px}
    .agencies-join .agencies-gold-button{width:100%;min-height:48px;font-size:13px}
    .agencies-regions{padding:20px;gap:0;grid-template-columns:1fr}
    .agencies-map-art{display:none}
    .agencies-regions h2{font-size:20px}
    .agencies-regions p{font-size:13px}
    .agencies-city-grid a{min-height:44px;font-size:12px;display:grid;place-items:center}
    .agencies-regions .agencies-outline-link{width:100%;white-space:normal}
    .agencies-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .agencies-category-photo{height:110px}
    .agencies-categories a>div:last-child{padding:12px 8px;gap:7px}
    .agencies-categories strong{font-size:12px;line-height:1.7}
    .agencies-categories i{font-size:22px;padding:6px;flex-shrink:0}
    .agencies-review-grid{grid-template-columns:1fr;gap:12px}
    .agencies-review-grid>a{padding:20px}
    .agencies-review-grid p{font-size:14px}
    .agencies-review-person strong{font-size:13px}
    .agencies-bottom-cta{padding:23px 18px;background:linear-gradient(90deg,#ffffffe6,#fffffffa),url('../img/estate-hero.webp') center/cover}
    .agencies-bottom-cta h2{font-size:21px}
    .agencies-bottom-cta p{font-size:13px}
    .agencies-bottom-cta .agencies-gold-button{width:100%;min-height:48px;font-size:14px}
    .agencies-page{padding-bottom:24px}
    .dark .agencies-hero{background:#132333}
    .dark .agencies-hero:before{background:linear-gradient(180deg,transparent 120px,#13233300 185px,#132333e8 290px,#132333 345px)}
    .dark .agencies-benefits>div,.dark .agencies-stats>div{background:#172a3d;border-color:#344658}
    .dark .agencies-hero p{color:#b0c0d2}
    .dark .agencies-search{background:#142333}
    .dark body:has(.agencies-page) .estate-navbar-inner{background:#142333ed}
}
@media(max-width:480px){
    .agents-results-grid{grid-template-columns:minmax(0,1fr)}
    .agency-card-cover{height:180px}
    .agency-card h3{font-size:18px}
    .agency-card-body{padding-inline:20px}
}
@media(max-width:360px){
    .agencies-container{width:calc(100% - 24px)}
    .agencies-stats>div{gap:7px;padding:12px 7px}
    .agencies-stats i{width:32px;height:32px;font-size:21px}
    .agencies-stats strong{font-size:16px}
    .agencies-search-tabs button{font-size:10px}
}

@media(max-width:767px){.agencies-hero-photo{z-index:0}.agencies-hero:before{z-index:1}.agencies-hero-content{z-index:2}}

/* Discovery cards share the reference's proportions and alignment. */
.agencies-discovery{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:20px;align-items:stretch}
.agencies-discovery .agencies-join{min-height:400px;padding:23px 24px 20px;border:2px solid #dce4eb;border-radius:18px;background:#112936 url('../img/agencies-registration-tower.webp') left center/cover;isolation:isolate}
.agencies-discovery .agencies-join:before{background:linear-gradient(90deg,#132c3a05 0%,#10263345 32%,#102633dc 65%,#102633f5 100%)}
.agencies-join-content{position:relative;z-index:1;text-align:right}
.agencies-discovery .agencies-join .agencies-label{background:#fffdf3;color:#b98637;padding:5px 15px;border:1px solid #e8dbc1;box-shadow:0 2px 5px #0001;font-size:12px}
.agencies-discovery .agencies-join h2{font-size:clamp(23px,2.1vw,30px);line-height:1.45;margin:20px 0 13px;font-weight:700}
.agencies-discovery .agencies-join p{font-size:12px;line-height:1.9;color:#c5d2dd;max-width:300px;margin:0 0 19px}
.agencies-discovery .agencies-join .agencies-gold-button{min-width:210px;min-height:47px;padding:10px 18px;border:2px solid #e5be6d;background:linear-gradient(100deg,#ebbd61,#dea748);color:#493211;font-size:13px;border-radius:9px;justify-content:space-between;box-shadow:0 3px 14px #0002}
.agencies-discovery .agencies-join ul{display:flex;flex-direction:column;gap:13px;margin:18px 0 0;line-height:1.9;font-size:12px}
.agencies-discovery .agencies-join li{display:flex;align-items:center;gap:12px}
.agencies-discovery .agencies-join li i{display:grid;place-items:center;flex-shrink:0;margin:0;width:45px;height:45px;border:2px solid #bc8a31;border-radius:17px;background:#173443c9;color:#e8b04a;font-size:27px;box-shadow:inset 0 0 0 3px #183645}
.agencies-discovery .agencies-regions{min-height:400px;padding:0;grid-template-columns:1fr 1fr;gap:0;border:2px solid #e5eaf1;border-radius:18px;background:linear-gradient(110deg,#f0f5fa,#f7f9fc);position:relative}
.agencies-discovery .agencies-map-art{display:block;position:relative;width:100%;height:100%;min-height:400px;border-radius:0;background:#eff5fa;overflow:hidden;clip-path:none}
.agencies-discovery .agencies-map-art:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 65%,#f5f8fc)}
.agencies-discovery .agencies-map-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}
.agencies-map-marker{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;gap:4px;color:#1b2d37;transform:translate(-50%,-50%)}
.agencies-map-marker--alexandria{left:35%;top:29%}
.agencies-map-marker--cairo{left:56%;top:44%}
.agencies-map-marker span{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #eee7d9;box-shadow:0 3px 8px #14243017;border-radius:22px;padding:8px 14px;white-space:nowrap;font-size:12px;font-weight:700;direction:rtl}
.agencies-map-marker span i{font-size:17px;color:#d29a38}
.agencies-map-marker>i{font-size:30px;color:#233744;filter:drop-shadow(0 2px 2px #fff)}
.agencies-discovery .agencies-region-content{direction:rtl;padding:25px 24px 25px 8px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.agencies-discovery .agencies-region-content h2{font-size:clamp(18px,1.55vw,22px);line-height:1.6;margin:0 0 6px;font-weight:900}
.agencies-discovery .agencies-region-content p{font-size:12px;line-height:1.9;margin:0;color:#7c899b}
.agencies-discovery .agencies-city-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:24px 0}
.agencies-discovery .agencies-city-grid a{display:grid;place-items:center;min-height:40px;padding:8px 4px;border:1px solid #e8edf4;border-radius:8px;background:#ffffffb5;font-size:12px;color:#7c899b;box-shadow:0 3px 7px #263c5304}
.agencies-discovery .agencies-city-grid a.is-active,.agencies-discovery .agencies-city-grid a:hover{background:linear-gradient(110deg,#dca749,#c68c2d);border-color:#e7bd6e;color:white}
.agencies-discovery .agencies-region-content>.agencies-outline-link{width:100%;min-height:56px;border:1px solid #eadcc3;border-radius:10px;background:#fff;color:#c58b30;font-size:13px;gap:12px;cursor:pointer}
.agencies-map-dialog{width:min(920px,calc(100% - 24px));max-height:85dvh;padding:16px;border:1px solid #e0e6ee;border-radius:16px;background:white;color:#172735}
.agencies-map-dialog::backdrop{background:#071827b3}
.agencies-map-dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}
.agencies-map-dialog-header h2{font-size:18px;font-weight:700}
.agencies-map-dialog-header button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#f1f4f8;font-size:24px;cursor:pointer}
.agencies-map-dialog iframe{width:100%;height:60dvh;border:0;border-radius:10px}
.dark .agencies-discovery .agencies-regions{background:#172a3d;border-color:#344658}
.dark .agencies-discovery .agencies-map-art:after{background:linear-gradient(90deg,transparent 65%,#172a3d)}
.dark .agencies-discovery .agencies-city-grid a{background:#203345;border-color:#344658;color:#c7d3e0}
.dark .agencies-discovery .agencies-city-grid a.is-active{background:#c68c2d;color:white}
.dark .agencies-discovery .agencies-region-content>.agencies-outline-link{background:#203345;border-color:#6c583a;color:#e2b266}
@media(max-width:1100px) and (min-width:768px){.agencies-discovery{grid-template-columns:1fr 1.5fr;gap:14px}.agencies-discovery .agencies-join{padding:20px 16px}.agencies-discovery .agencies-region-content{padding:20px 15px 20px 6px}.agencies-discovery .agencies-regions{grid-template-columns:.8fr 1fr}.agencies-discovery .agencies-region-content h2{font-size:18px}.agencies-discovery .agencies-city-grid a{font-size:10px}.agencies-map-marker span{font-size:10px;padding:6px 9px}}
@media(max-width:767px){.agencies-discovery{grid-template-columns:minmax(0,1fr);gap:16px}.agencies-discovery .agencies-join{min-height:390px;padding:23px;background-position:left center}.agencies-discovery .agencies-join h2{font-size:27px}.agencies-discovery .agencies-join p{font-size:13px}.agencies-discovery .agencies-join .agencies-gold-button{width:auto;min-width:210px}.agencies-discovery .agencies-regions{grid-template-columns:1fr;min-height:0}.agencies-discovery .agencies-region-content{grid-row:1;padding:23px}.agencies-discovery .agencies-region-content h2{font-size:20px}.agencies-discovery .agencies-region-content p br{display:none}.agencies-discovery .agencies-city-grid{margin:18px 0}.agencies-discovery .agencies-city-grid a{min-height:44px;font-size:12px}.agencies-discovery .agencies-map-art{height:260px;min-height:260px;grid-row:2}.agencies-discovery .agencies-map-art img{object-position:center 25%}.agencies-discovery .agencies-map-art:after{background:linear-gradient(0deg,transparent 70%,#f5f8fc)}.agencies-map-marker--alexandria{top:25%}.agencies-map-marker--cairo{top:43%}.dark .agencies-discovery .agencies-map-art:after{background:linear-gradient(0deg,transparent 70%,#172a3d)}}

.agencies-load-more{display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px 0 8px;text-align:center}
.agencies-loaded-count{font-size:14px;color:#7c899b}
.agencies-loaded-count strong{font-weight:700;color:#bf862b}
.agencies-load-more .agencies-gold-button{min-width:245px;min-height:48px;gap:10px;font-size:13px}
.agencies-load-more .agencies-gold-button i{font-size:21px}
.agencies-load-more button:disabled{opacity:.7;cursor:wait}
.agencies-load-more button[aria-busy=true] i{animation:agencies-loading-spin 1s linear infinite}
.agencies-load-complete{font-size:12px;color:#7c899b}
.agencies-load-error{font-size:13px;color:#b45309;max-width:420px;line-height:1.8}
.agencies-load-more [hidden]{display:none!important}
@keyframes agencies-loading-spin{to{transform:rotate(360deg)}}
@media(max-width:767px){.agencies-load-more{padding-top:23px}.agencies-load-more .agencies-gold-button{width:100%;font-size:14px}.agencies-loaded-count{font-size:13px}}
@media(prefers-reduced-motion:reduce){.agencies-load-more button[aria-busy=true] i{animation:none}}
