/* Public estate profiles; the image viewer is shared with factory profiles. */
.estate-profile{--estate-surface:#f6f8fb;--estate-border:#dce5f0;padding-block:24px 32px}
.estate-profile .breadcrumbs{margin-bottom:18px}
.estate-profile .estate-profile-heading{gap:20px;margin-bottom:20px}
.estate-profile .estate-profile-heading h1{font-size:28px;line-height:1.7;margin:0}
.estate-profile .estate-heading-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin-top:6px}
.estate-profile .estate-profile-heading .location-line{font-size:13px;margin:0;flex-wrap:wrap}
.estate-profile .estate-profile-heading>.button-row{flex-direction:row;gap:8px}
.estate-profile .button{min-height:44px;gap:8px;font-size:13px;padding:10px 16px;text-decoration:none}
.estate-profile .button:hover,.estate-profile .estate-contact-link:hover{text-decoration:none}
.estate-profile .estate-statistics{padding:16px 0;margin-bottom:20px;border-color:var(--estate-border);background:var(--estate-surface)}
.estate-profile .estate-statistics strong{font-size:18px;margin-top:2px}
.estate-profile .estate-profile-grid{grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.estate-profile .estate-main,.estate-profile .estate-rail{gap:20px;min-width:0}
.estate-profile .estate-main>.panel,.estate-profile .estate-rail>.panel{padding:20px;margin:0;border-color:var(--estate-border);background:#fff}
.estate-profile h2,.estate-profile .estate-main h2,.estate-profile .estate-rail h2{font-size:18px;line-height:1.8;margin:0 0 14px}
.estate-profile .section-heading{gap:12px;margin:0 0 14px;align-items:center}
.estate-profile .section-heading h2{margin:0}
.estate-profile .estate-main .prose{font-size:14px;line-height:2.05}
.estate-profile .prose>:first-child{margin-top:0}.estate-profile .prose>:last-child{margin-bottom:0}
.estate-profile .estate-map-panel .map{height:300px;margin:0;border-radius:10px}
.estate-profile .estate-map-footer{padding-top:12px}
.estate-profile .estate-map-address{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:12px;line-height:1.9}
.estate-profile .estate-map-address>.icon{flex-shrink:0;width:18px;height:18px;margin-top:3px}
.estate-profile .estate-map-footer .estate-route-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.estate-profile .estate-route-actions .button{border-radius:10px;min-height:46px;font-size:13px;box-shadow:none}
.estate-profile .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:10px}
.estate-profile .estate-contacts h2{display:flex;align-items:center;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--estate-border);margin-bottom:0;font-size:16px}
.estate-profile .estate-contacts h2>.icon{width:20px;height:20px;flex-shrink:0}
.estate-profile .estate-contacts dl{margin:0}
.estate-profile .estate-contact-row{padding-block:12px;border-bottom:1px solid var(--estate-border)}
.estate-profile .estate-contact-row:last-child{border-bottom:0;padding-bottom:0}
.estate-profile .estate-contacts dt{font-size:12px;margin:0 0 4px;color:var(--muted)}
.estate-profile .estate-contacts dd{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.95;margin:0;min-width:0}
.estate-profile .estate-contacts dd>span,.estate-profile .estate-contacts dd>bdi{min-width:0;flex:1;overflow-wrap:anywhere}
.estate-profile .estate-contact-link{display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;flex:1;padding:8px 10px;border:1px solid var(--estate-border);border-radius:9px;background:var(--estate-surface);font-size:13px;line-height:1.8;transition:background-color .16s,border-color .16s}
.estate-profile .estate-contact-link>bdi{min-width:0;overflow-wrap:anywhere}
.estate-profile .estate-contact-link>.icon{width:17px;height:17px;flex-shrink:0}
.estate-profile .estate-contact-phone .estate-contact-link{font-size:16px;font-weight:600}
.estate-profile .estate-contacts .icon-button{align-self:center;flex-shrink:0;border:1px solid var(--estate-border);background:#fff;color:var(--muted)}
.estate-profile .estate-contacts .icon-button>.icon{width:18px;height:18px}
.estate-profile .estate-contact-link:hover,.estate-profile .estate-contacts .icon-button:hover{background:#edf3fa;border-color:#9fb7d4;color:var(--navy)}
.estate-profile .amenity-panel h2{font-size:16px;margin-bottom:8px}
.estate-profile .amenity-panel li{padding-block:8px;font-size:12px}
.estate-profile .estate-profile-section{margin:24px 0 0;padding:0;min-width:0;scroll-margin-top:24px}
.estate-profile .estate-section-note{font-size:12px;color:var(--muted)}
.estate-profile .estate-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.estate-profile .estate-gallery:not(:has(>figure:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}
.estate-profile .estate-gallery figure{margin:0;min-width:0}
.estate-profile .estate-gallery .gallery-link{position:relative;display:block;border-radius:12px;overflow:hidden;border:1px solid var(--estate-border);background:var(--estate-surface)}
.estate-profile .estate-gallery img{display:block;width:100%;aspect-ratio:1.8;height:auto;border-radius:0;object-fit:cover}
.estate-profile .estate-photo-open{position:absolute;inset-inline-end:10px;bottom:10px;width:36px;height:36px;display:grid;place-items:center;background:#fffffff2;border:1px solid var(--estate-border);border-radius:9px;color:var(--navy);transition:background-color .16s}
.estate-profile .estate-photo-open>.icon{width:18px;height:18px}
.estate-profile .gallery-link:hover .estate-photo-open{background:#eaf2fc}
.estate-profile .estate-gallery figcaption{font-size:12px;line-height:1.9;padding:6px 2px 0}
.estate-profile .estate-faq{padding-top:20px;border-top:1px solid var(--estate-border)}
.estate-profile .estate-faq-list{display:grid;gap:8px}
.estate-profile .estate-faq details{border:1px solid var(--estate-border);border-radius:11px;background:#fff;overflow:hidden}
.estate-profile .estate-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:12px 16px;font-size:14px;line-height:1.9;font-weight:600;list-style:none;cursor:pointer;transition:background-color .16s}
.estate-profile .estate-faq summary::-webkit-details-marker{display:none}
.estate-profile .estate-faq summary::marker{content:''}
.estate-profile .estate-faq summary:hover{background:var(--estate-surface)}
.estate-profile .estate-faq-toggle{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;background:var(--estate-surface);color:var(--muted)}
.estate-profile .estate-faq-toggle>.icon{width:16px;height:16px;transition:transform .16s}
.estate-profile .estate-faq details[open]{border-color:#bdcfe4;background:var(--estate-surface)}
.estate-profile .estate-faq details[open] .estate-faq-toggle{background:#e5edf7;color:var(--navy)}
.estate-profile .estate-faq details[open] .estate-faq-toggle>.icon{transform:rotate(45deg)}
.estate-profile .estate-faq-answer{padding:0 16px 14px}
.estate-profile .estate-faq-answer p{margin:0;padding:10px 0 0;border-top:1px solid var(--estate-border);font-size:13px;line-height:2;color:var(--muted);max-width:95ch;overflow-wrap:anywhere}
.estate-profile .estate-register{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--estate-surface);border:1px solid var(--estate-border);color:var(--navy);padding:18px 20px;margin-top:24px;border-radius:12px}
.estate-profile .estate-register h2{font-size:16px;color:var(--navy);margin:0 0 4px}
.estate-profile .estate-register p{font-size:13px;color:var(--muted);line-height:1.9;margin:0}
.estate-profile .estate-register .button{flex-shrink:0}
.estate-profile .estate-updated{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:12px;line-height:1.9;margin:0;color:var(--muted)}
.estate-profile .estate-updated>.icon{width:15px;height:15px;flex-shrink:0}
.estate-profile :is(a,button,summary):focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.estate-profile .estate-faq summary:focus-visible{outline-offset:-4px}
@media(max-width:1023px){
  .estate-profile .estate-profile-grid{grid-template-columns:1fr}
  .estate-profile .estate-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .estate-profile .estate-profile-heading h1{font-size:25px}
}
@media(max-width:699px){
  .estate-profile{padding-block:18px 24px}
  .estate-profile .estate-profile-heading{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:16px}
  .estate-profile .estate-profile-heading h1{font-size:23px}
  .estate-profile .estate-profile-heading>.button-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .estate-profile .estate-statistics{row-gap:14px;margin-bottom:16px}
  .estate-profile .estate-statistics strong{font-size:16px}
  .estate-profile .estate-profile-grid,.estate-profile .estate-main,.estate-profile .estate-rail{gap:16px}
  .estate-profile .estate-rail{grid-template-columns:1fr}
  .estate-profile .estate-main>.panel,.estate-profile .estate-rail>.panel{padding:16px}
  .estate-profile h2,.estate-profile .estate-main h2{font-size:17px}
  .estate-profile .estate-main .prose{font-size:13px}
  .estate-profile .estate-map-panel .map{height:240px}
  .estate-profile .estate-map-footer .estate-route-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .estate-profile .estate-route-actions .button{padding:9px 6px;gap:5px;font-size:12px}
  .estate-profile .estate-route-actions .icon{width:17px;height:17px;flex-shrink:0}
  .estate-profile .estate-profile-section{margin-top:20px}
  .estate-profile .section-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .estate-profile .estate-gallery,.estate-profile .estate-gallery:not(:has(>figure:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .estate-profile .estate-gallery>figure:only-child{grid-column:1/-1}
  .estate-profile .estate-photo-open{width:28px;height:28px;bottom:6px;inset-inline-end:6px}
  .estate-profile .estate-faq summary{padding:12px;font-size:13px;gap:10px}
  .estate-profile .estate-faq-answer{padding:0 12px 12px}
  .estate-profile .estate-register{align-items:stretch;flex-direction:column;gap:12px;padding:16px;margin-top:20px}
}
@media(max-width:359px){.estate-profile .estate-map-footer .estate-route-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.estate-profile *{transition:none!important}}
