/* Phase 6 public profiles/directories. All selectors stay within the new surfaces. */
.az-profile,.az-directory{max-width:1120px;margin:auto;color:var(--az-text,#153b35)}
.az-directory{padding:24px 16px 32px}.az-directory h1,.az-profile h1{font-size:24px;line-height:1.35;margin:8px 0}.az-directory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.az-directory-head p{margin:0;color:var(--az-muted,#6b7c76)}
.az-directory-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 20px}.az-directory-filters label{display:grid;gap:6px;font-size:12px;color:var(--az-muted,#6b7c76)}.az-directory-filters select{width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--az-border,#dce6df);border-radius:12px;background:white;color:var(--az-text,#153b35);font:inherit;font-size:14px}.az-project-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.az-project-card{display:block;min-width:0;background:white;border:1px solid var(--az-border,#dce6df);border-radius:16px;overflow:hidden;color:inherit!important;text-decoration:none!important;box-shadow:0 3px 12px #153b3505}.az-project-card__media{height:138px;background:linear-gradient(125deg,#0b604d,#0d8869);display:grid;place-items:center;overflow:hidden}.az-project-card__media img{width:100%;height:100%;object-fit:cover}.az-project-card__media .az-project-card__mark{width:52px;height:52px;object-fit:contain;opacity:.75}.az-project-card__body{padding:12px}.az-project-card h3{font-size:15px;line-height:1.45;margin:0 0 6px;overflow-wrap:anywhere}.az-project-card p{margin:4px 0}.az-project-card__types{font-size:12px;color:var(--az-muted,#6b7c76)}.az-project-card__price{display:flex;flex-wrap:wrap;gap:4px;font-size:12px;align-items:baseline}.az-project-card__price .az-price__primary{font-size:15px}.az-project-card__price .az-price__secondary{font-size:12px}.az-directory-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px}.az-area-directory-group{margin:12px 0;border:1px solid var(--az-border,#dce6df);border-radius:14px;background:#fff;overflow:hidden}.az-area-directory-group summary{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:56px;padding:12px 16px;font-weight:700;list-style:none;background:#f2f7f1}.az-area-directory-group summary::-webkit-details-marker{display:none}.az-area-directory-group summary .az-icon{margin-inline-start:auto;transform:rotate(90deg)}.az-area-directory-group:not([open]) summary .az-icon{transform:none}.az-area-directory-row{min-height:64px;padding:12px 16px;border-top:1px solid #e8eee9;display:flex;justify-content:space-between;align-items:center;gap:12px;color:inherit!important;text-decoration:none!important}.az-area-directory-row strong{font-size:14px}.az-area-directory-row small{display:block;font-size:12px;color:var(--az-muted,#6b7c76);margin-top:4px}.az-area-directory-row .az-price{flex-shrink:0}.az-area-directory-row .az-price__primary{font-size:14px}
.az-profile{padding-bottom:24px}.az-area-hero{position:relative;height:190px}.az-profile-mini-map{height:100%;min-height:150px;position:relative;overflow:hidden;background:#eaf1e7}.az-profile-map-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:#527266}.az-profile-mini-map[data-ready=true] .az-profile-map-fallback{display:none}.az-profile-map-label{padding:5px 9px;border-radius:10px;border:1px solid #d6c39a;background:#fffdfa;color:#153b35;font:600 12px Vazirmatn,sans-serif;box-shadow:0 2px 8px #1233;max-width:220px;text-align:center}.az-profile-mini-map .maplibregl-control-container{font-size:12px}.az-area-map-link{position:absolute;inset-inline-end:14px;top:14px;z-index:2;background:white!important}.az-profile-heading{position:relative;margin:-26px 16px 0;padding:18px 18px 0;background:white;border:1px solid var(--az-border,#dce6df);border-radius:20px;box-shadow:0 6px 20px #12360608;z-index:2}.az-profile-heading .az-badge{margin-inline-end:6px}.az-profile-location{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--az-muted,#6b7c76);margin:10px 0}.az-profile-location .az-icon{width:16px;height:16px;flex-shrink:0}.az-profile-description{font-size:14px;line-height:1.85;color:#4f625b;margin:12px 0;white-space:pre-line}.az-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px -18px 0;border-top:1px solid #e8eee9;padding:14px 8px;gap:6px}.az-profile-stats>div{text-align:center;min-width:0}.az-profile-stats>div+div{border-inline-start:1px solid #e8eee9}.az-profile-stats dt{font-size:12px;line-height:1.5;color:var(--az-muted,#5b6f73)}.az-profile-stats dd{font-size:13px;font-weight:700;line-height:1.5;margin:5px 0 0}.az-profile-stats .az-price__primary{font-size:16px}.az-profile-stats .az-price__secondary{font-size:12px}.az-profile-flow{padding:20px 16px;display:grid;gap:24px}.az-profile-section{min-width:0;scroll-margin-top:150px}.az-profile-section h2{font-size:18px;line-height:1.5;margin:0 0 14px}.az-profile-section h3{font-size:15px}.az-profile-section p{line-height:1.8}.az-project-strip{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.az-project-strip>.az-project-card{flex:0 0 172px;scroll-snap-align:start}.az-project-strip .az-project-card__media{height:116px}.az-area-no-price{background:#fffbef;border:1px solid #ead7a8;border-radius:18px;padding:22px 18px}.az-area-no-price__icon{width:44px;height:44px;display:grid;place-items:center;color:#a9780d;background:#f9efd4;border-radius:14px;margin:0 auto 12px}.az-area-no-price>h2{font-size:17px;line-height:1.6;text-align:center;margin:8px 0}.az-area-no-price>p{font-size:13px;line-height:1.8;text-align:center;color:#82714c}.az-area-no-price>h3{font-size:13px;margin-top:20px}.az-profile-action-row{width:100%;display:flex;align-items:center;gap:10px;min-height:52px;margin-top:8px;border:1px solid #e4e9e0;background:white;border-radius:12px;padding:10px 12px;color:#185f4c!important;text-align:start;text-decoration:none!important;font:inherit;font-size:13px;cursor:pointer}.az-profile-action-row>span{flex:1}.az-profile-action-row>.az-icon:last-child{width:16px;flex-shrink:0}.az-profile-gate{display:grid;gap:12px;justify-items:center;text-align:center;padding:22px;border:1px solid #dce6df;border-radius:16px;background:#f2f7f3}.az-profile-gate p{font-size:13px;line-height:1.8;margin:0}.az-profile-nearby{display:grid;gap:10px}.az-profile-nearby>a{display:grid;grid-template-columns:1fr auto;gap:8px;background:#f5f8f3;border:1px solid #e0e8de;border-radius:14px;padding:14px;color:inherit!important;text-decoration:none!important}.az-profile-nearby>a>.az-price{grid-column:2;grid-row:1/3}.az-area-children,.az-profile-company-list{display:grid;gap:8px}.az-area-children>a,.az-profile-company-list>a{display:flex;align-items:center;gap:10px;min-height:56px;border:1px solid #e2e9df;border-radius:12px;padding:12px;color:inherit!important;text-decoration:none!important}.az-area-children>a>.az-icon,.az-profile-company-list>a>.az-icon:last-child{margin-inline-start:auto}.az-area-children small{font-size:12px;color:var(--az-muted,#5b6f73)}.az-profile-company-list img{object-fit:contain;border-radius:8px}
.az-profile-price-card{border:1px solid #d5e6d9;border-radius:16px;background:#fff;padding:16px;min-width:0}.az-profile-price-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.az-profile-price-head h3{font-size:14px;margin:0}.az-profile-price-head .az-badge{font-size:12px;flex-shrink:0}.az-profile-price-main{display:flex;align-items:end;flex-wrap:wrap;gap:8px}.az-profile-price-main>.az-price{flex:1}.az-profile-price-reference{display:flex;gap:6px;flex-wrap:wrap;align-items:baseline;font-size:12px;color:#6a7a70;margin:10px 0}.az-profile-price-reference .az-price__primary{font-size:15px}.az-profile-price-reference .az-price__secondary{display:none}.az-profile-price-scale{margin-top:18px;direction:ltr}.az-profile-price-track{height:7px;border-radius:8px;background:linear-gradient(to right,#e2ecdc,#0b7b59);position:relative;margin:0 5px 12px}.az-profile-price-track i{position:absolute;top:50%;transform:translate(-50%,-50%);width:13px;height:13px;background:#d6a33b;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #caa04a}.az-profile-price-anchors{display:flex;justify-content:space-between;gap:5px}.az-profile-price-anchors>div{display:grid;gap:4px;text-align:center;max-width:34%}.az-profile-price-anchors>div>span:first-child{font-size:12px;color:#6a7a70}.az-profile-price-anchors .az-price__primary{font-size:12px;white-space:normal}.az-profile-price-anchors .az-price__secondary{display:none}.az-profile-price-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid #e8eee7;flex-wrap:wrap}.az-profile-price-footer .az-button{min-height:44px;font-size:12px;padding:8px 12px}
.az-project-gallery{height:250px;position:relative;background:linear-gradient(135deg,#0b604d,#0d8869);overflow:hidden}.az-project-gallery-track{height:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.az-project-gallery-track::-webkit-scrollbar{display:none}.az-project-gallery-slide{min-width:100%;height:100%;scroll-snap-align:center;border:0;padding:0;cursor:zoom-in;background:transparent}.az-project-gallery-slide img{height:100%;width:100%;object-fit:cover}.az-project-gallery-empty{height:100%;display:grid;place-items:center}.az-project-gallery-empty img{width:80px;opacity:.6}.az-project-gallery-count{position:absolute;bottom:38px;inset-inline-end:16px;background:#123b35b3;color:white;padding:6px 10px;border-radius:20px;font-size:12px;pointer-events:none}.az-project-gallery-dots{position:absolute;bottom:40px;left:0;right:0;display:flex;justify-content:center;gap:3px;pointer-events:none}.az-project-gallery-dots button{border:0;padding:18px 4px;margin:-18px 0;background:transparent;pointer-events:auto;cursor:pointer;min-width:24px}.az-project-gallery-dots button:after{content:'';display:block;width:6px;height:6px;border-radius:50%;background:#ffffff80;margin:auto}.az-project-gallery-dots button[aria-current=true]:after{background:white;width:18px;border-radius:5px}.az-project-tabs{position:sticky;top:var(--az-header-height,64px);display:flex;gap:8px;overflow-x:auto;padding:12px 16px;background:#f8faf7f5;border-bottom:1px solid #e5ece2;z-index:5;margin-top:12px;scrollbar-width:none}.az-project-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:64px;border-radius:24px;padding:7px 16px;border:1px solid #dce6d8;background:white;color:#4e655a!important;text-decoration:none!important;white-space:nowrap;font-size:12px}.az-project-tabs a.is-active{color:white!important;background:#087a5d;border-color:#087a5d}.az-project-units{display:grid;gap:16px}.az-project-unit{border:1px solid #dce6d8;border-radius:18px;background:white;overflow:hidden}.az-project-unit-head{padding:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e8eee7}.az-project-unit-head h3{font-size:16px;margin:4px 0}.az-project-unit-body{padding:16px;display:grid;gap:12px}.az-project-unit-image{width:100%;max-height:170px;object-fit:cover;border-radius:12px}.az-project-unit-facts{display:flex;gap:8px;flex-wrap:wrap}.az-project-unit-facts span{display:inline-flex;gap:4px;padding:5px 8px;border-radius:6px;background:#f4f7f1;font-size:12px;color:#63756b}.az-project-unit .az-profile-price-card{padding:12px;border-color:#e4ece0;background:#fbfdf9}.az-project-unit-empty{background:#faf8f0;border:1px solid #ede4cc;border-radius:12px;padding:16px}.az-project-unit-empty h4{font-size:15px;margin:0 0 8px;color:#74643f}.az-project-unit-empty p{font-size:12px;margin:6px 0}.az-project-comparison{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.az-project-unit-plans{display:flex;flex-wrap:wrap;gap:8px}.az-project-valuation{border:1px solid #dce8d7;border-radius:16px;background:#edf5e9;padding:18px;display:flex;align-items:center;gap:12px;color:#195c45!important;text-decoration:none!important}.az-project-valuation span{flex:1}.az-project-valuation strong,.az-project-valuation small{display:block}.az-project-valuation small{font-size:12px;line-height:1.8;margin-top:6px}.az-project-location-map{height:150px;border-radius:14px;overflow:hidden;border:1px solid #dde7d8}.az-project-location-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.az-project-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.az-project-details>div{padding:12px;background:white;border:1px solid #e4eae0;border-radius:12px;min-width:0}.az-project-details dt{font-size:12px;color:var(--az-muted,#5b6f73);margin-bottom:6px}.az-project-details dd{font-size:13px;margin:0;overflow-wrap:anywhere}.az-project-description{line-height:1.9;font-size:14px;white-space:pre-line}.az-project-actions{position:fixed;bottom:0;left:0;right:0;z-index:35;background:white;border-top:1px solid #dce6d8;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;gap:10px;box-shadow:0 -4px 20px #153b3508}.az-project-actions .az-button{min-height:48px;padding:10px 13px;font-size:12px}.az-project-actions .az-save{min-width:48px}.az-project-actions .az-advisor{flex:1;max-width:310px}.az-project-actions .az-contact{flex:1;max-width:210px;background:#f7f2e3;color:#856a2c!important;border:1px solid #e4d6b2}.az-project-profile{padding-bottom:90px}.az-project-native-dialog{width:min(95vw,900px);max-height:90dvh;border:1px solid #dce6d8;border-radius:18px;padding:0;background:white;color:#153b35;overflow:auto}.az-project-native-dialog::backdrop{background:#102e26a3}.az-project-dialog-head{padding:10px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e4eae0}.az-project-dialog-head h2{font-size:16px;flex:1;margin:0}.az-project-dialog-body{padding:16px}.az-project-native-dialog iframe{width:100%;height:min(68dvh,650px);border:0}.az-project-native-dialog select{min-height:44px;padding:8px;border:1px solid #dce6d8;border-radius:8px;width:100%;margin-bottom:10px;font:inherit}.az-project-native-dialog [data-gallery-full]{width:100%;max-height:74dvh;object-fit:contain}.az-project-contact-number{display:block;font-size:22px;text-align:center;margin:20px 0}.az-project-gallery [hidden],.az-project-native-dialog [hidden]{display:none!important}
@media(min-width:768px){.az-profile-heading{margin-inline:28px;padding-inline:24px}.az-profile-flow{padding:26px 28px}.az-project-units{grid-template-columns:repeat(2,minmax(0,1fr))}.az-profile-stats{margin-inline:-24px}.az-profile-heading h1{font-size:30px}.az-project-strip>.az-project-card{flex-basis:220px}.az-project-card__media{height:180px}.az-project-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.az-area-no-price{max-width:660px;width:100%;justify-self:center}.az-area-hero{height:230px}}
@media(min-width:1024px){.az-project-gallery{height:340px;border-radius:0 0 20px 20px}.az-project-profile{padding-bottom:110px}.az-project-actions{left:50%;transform:translateX(-50%);bottom:16px;width:min(720px,90vw);border:1px solid #dce6d8;border-radius:16px;padding:12px}.az-directory{padding:32px 24px}.az-project-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.az-project-gallery-track,.az-project-strip{scroll-behavior:auto}}

.az-area-directory-group h2{font-size:15px;margin:0}.az-area-directory-group ul{list-style:none;padding:0;margin:0}.az-area-directory-row>span:first-child{flex:1}.az-area-directory-row>.az-icon{width:16px;flex-shrink:0}.az-area-price-hint{text-align:end}.az-area-municipality-filter{display:grid;gap:6px;font-size:12px;margin:12px 0 20px}.az-area-municipality-filter select{min-height:44px;border:1px solid #dce6df;border-radius:12px;background:white;padding:8px 12px;font:inherit}.az-project-gallery-dots{left:22%;right:22%;overflow:auto;scrollbar-width:none;bottom:26px;pointer-events:auto}.az-project-gallery-dots button{min-width:44px;height:44px;padding:0;margin:0}.az-project-gallery-dots button:after{width:6px}.az-project-valuation{margin-top:16px}

.az-project-actions .az-advisor{color:white!important}.az-profile .az-button:not(.az-button--secondary){color:white!important}

.az-profile-mini-map.maplibregl-map{font:12px/20px Vazirmatn,sans-serif;overflow:hidden;position:relative}.az-profile-mini-map .maplibregl-canvas{position:absolute;left:0;top:0}.az-profile-mini-map .maplibregl-marker{position:absolute;top:0;left:0;will-change:transform}.az-profile-mini-map .maplibregl-control-container .maplibregl-ctrl-bottom-right{position:absolute;right:0;bottom:0;pointer-events:none;z-index:2}.az-profile-mini-map .maplibregl-ctrl{pointer-events:auto;clear:both;float:right}.az-profile-mini-map .maplibregl-ctrl-attrib{padding:2px 5px;background:#fffd;font-size:12px;line-height:16px}.az-profile-mini-map .maplibregl-ctrl-attrib a{color:#285b50}.az-profile-mini-map .maplibregl-ctrl-attrib-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;background:white;border:0}.az-profile-mini-map .maplibregl-ctrl-attrib-inner{display:inline;font-size:12px;line-height:18px}.az-project-page #az-content{padding:0}.az-project-page .az-public-footer{padding:28px 20px 110px}

.az-profile-stats{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}.az-profile-facts-list{padding:12px 20px!important;font-size:13px;line-height:1.9}.az-profile-facts-list p{margin:6px 0}


/* Profile and directory pages provide their own title and navigation context. */
html:has(:is(.az-project-profile,.az-area-profile,.az-directory)) .az-context{display:none}
/* AreaShow owns the one non-empty company group; suppress the legacy injected duplicate. */
html:has(.az-area-profile) [data-co-spa]{display:none}

/* MapLibre loads its own attribution rules asynchronously; preserve the public text/target minimum. */
.az-profile-mini-map :is(.maplibregl-ctrl-attrib,.maplibregl-ctrl-attrib-inner,.maplibregl-ctrl-attrib a){font-size:12px!important}
.az-profile-mini-map .maplibregl-ctrl-attrib-button{width:44px!important;height:44px!important;min-width:44px;min-height:44px}

/* The standalone project Blade does not load the full map workspace stylesheet. */
.az-profile-mini-map .maplibregl-control-container .maplibregl-ctrl-bottom-right{max-width:100%}
.az-profile-mini-map .maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:border-box;position:relative;margin:4px;max-width:calc(100% - 8px);min-height:44px;padding:0;background:#fff;border:1px solid var(--az-line,#dce6e2);border-radius:12px;color:var(--az-ink,#142d32);line-height:18px}
.az-profile-mini-map .maplibregl-ctrl-attrib:not([open]){width:44px;padding:0}
.az-profile-mini-map .maplibregl-ctrl-attrib[open]{width:max-content;padding:8px 50px 8px 10px}
.az-profile-mini-map .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button{position:absolute;right:0;left:auto;top:0;display:grid;place-items:center;list-style:none;appearance:none;margin:0;padding:0;background:#fff!important;border:0;border-radius:11px;color:var(--az-brand,#087a5d);cursor:pointer}
.az-profile-mini-map .maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}
.az-profile-mini-map .maplibregl-ctrl-attrib-button::before{content:'i';display:grid;place-items:center;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;font:700 14px/1 Georgia,serif;background:none}
.az-profile-mini-map .maplibregl-ctrl-attrib-button:focus-visible{outline:3px solid #0f5ccf;outline-offset:1px}
.az-profile-mini-map .maplibregl-ctrl-attrib:not([open]) .maplibregl-ctrl-attrib-inner{display:none}
.az-profile-mini-map .maplibregl-ctrl-attrib[open] .maplibregl-ctrl-attrib-inner{display:block;max-width:270px;line-height:18px}
/* Keep the full attribution target above the overlapping area title card. */
.az-area-hero .az-profile-mini-map .maplibregl-control-container .maplibregl-ctrl-bottom-right{bottom:30px}

/* Keep readable body type and let names and exact price ranges share narrow cards. */
.az-project-card h3,.az-area-directory-row strong,.az-area-directory-group h2,.az-profile-section h3,.az-profile-price-head h3{font-size:16px;line-height:1.6}
.az-profile-description,.az-project-description{font-size:16px;line-height:1.85}
.az-project-card__price .az-price__primary,.az-area-directory-row .az-price__primary{font-size:16px}
.az-project-card__body,.az-project-card__price,.az-area-directory-row>span:first-child,.az-profile-price-head h3,.az-project-unit-head>div{min-width:0;overflow-wrap:break-word}
.az-area-directory-row>.az-price{flex:0 1 46%;min-width:0}
.az-profile-price-head{flex-wrap:wrap;align-items:flex-start}
.az-profile-price-head h3{flex:1 1 120px}
.az-profile-price-head .az-badge{max-width:100%}
.az-profile-nearby>a{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.az-profile-nearby>a>*{min-width:0;max-width:100%;overflow-wrap:break-word}
.az-directory-filters select,.az-area-municipality-filter select,.az-project-native-dialog select{font-size:16px}
.az-profile-stats dd,.az-project-details dd,.az-profile-price-reference .az-price__primary{font-size:16px}
