/* Public estate directory; scoped to this listing, independent of estate profiles. */
.estate-explorer { padding-block: 32px 40px; }
.estate-explorer [hidden] { display: none !important; }
.estate-explorer-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.estate-explorer-heading h1 { margin: 0; font-size: 28px; font-weight: 750; line-height: 1.7; }
.estate-explorer-heading p { margin: 6px 0 0; font-size: 14px; line-height: 1.9; color: #526780; }
.estate-explorer-heading .button { font-size: 14px; min-height: 48px; flex-shrink: 0; gap: 9px; }
.estate-explorer-heading .button.accent, .estate-explorer-heading .button.accent:hover { color: #fff; }
.estate-explorer-heading .button .icon { width: 20px; height: 20px; }
.estate-explorer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 16px; background: #f5f8fc; border-radius: 12px; }
.estate-explorer-search { position: relative; flex: 1 1 320px; min-width: 0; }
.estate-explorer-search input { width: 100%; height: 48px; padding-inline: 14px 44px; border: 1px solid #b7c8dc; border-radius: 9px; background: #fff; font-size: 14px; }
.estate-explorer-search > .icon { position: absolute; inset-inline-end: 14px; top: 14px; width: 20px; height: 20px; color: #526780; pointer-events: none; }
.estate-explorer-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.estate-province-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.estate-province-filters > span { font-size: 13px; margin-inline-end: 4px; }
.estate-province-filters button { min-height: 44px; padding: 8px 16px; background: #fff; color: #002b66; border: 1px solid #b7c8dc; border-radius: 8px; font: 550 13px/1.8 Vazirmatn, sans-serif; cursor: pointer; }
.estate-province-filters button[aria-pressed=true] { background: #002b66; border-color: #002b66; color: #fff; }
.estate-province-filters button[aria-pressed=false]:hover { border-color: #002b66; background: #edf3fa; }
.estate-explorer-resultbar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.estate-explorer-resultbar p { margin: 0; font-size: 13px; font-weight: 600; }
.estate-explorer-resultbar > span { height: 1px; background: #dce5ef; flex: 1; }
.estate-reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; background: transparent; color: #002b66; font: 500 12px/1.8 Vazirmatn, sans-serif; cursor: pointer; padding: 6px; }
.estate-reset .icon { width: 16px; height: 16px; }
.estate-explorer-list { display: grid; gap: 12px; }
.estate-directory-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) 230px; gap: 22px; align-items: center; padding: 20px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; transition: border-color .16s ease; }
.estate-directory-row:hover { border-color: #a9bbd2; }
.estate-directory-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.estate-directory-identity > div { min-width: 0; }
.estate-directory-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: #edf3fa; color: #526f95; }
.estate-directory-symbol .icon { width: 25px; height: 25px; }
.estate-directory-identity h2 { font-size: 18px; line-height: 1.8; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.estate-directory-identity h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.estate-directory-location { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: 12px; color: #526780; line-height: 1.9; }
.estate-directory-location .icon { width: 16px; height: 16px; flex-shrink: 0; }
.estate-directory-description { margin: 0; border-inline-start: 1px solid #e5ebf3; padding-inline-start: 22px; color: #526780; font-size: 13px; line-height: 2; overflow-wrap: anywhere; }
.estate-directory-access { border-inline-start: 1px solid #e5ebf3; padding-inline-start: 22px; }
.estate-directory-count { display: flex; align-items: center; gap: 6px; min-height: 24px; margin: 0 0 10px; color: #526780; font-size: 12px; line-height: 1.8; }
.estate-directory-count.has-factories { color: #002b66; }
.estate-directory-count strong { font-size: 14px; font-weight: 700; }
.estate-directory-count .icon { width: 16px; height: 16px; }
.estate-directory-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.estate-profile-link, .estate-map-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #a9bbd2; border-radius: 8px; background: #fff; color: #002b66; font-size: 13px; font-weight: 600; line-height: 1.8; transition: background-color .16s ease; }
.estate-profile-link { flex: 1; padding: 8px 12px; }
.estate-profile-link .icon { width: 18px; height: 18px; }
.estate-map-link { width: 44px; flex-shrink: 0; }
.estate-map-link .icon { width: 20px; height: 20px; }
.estate-profile-link:hover, .estate-map-link:hover { background: #edf3fa; color: #002b66; }
.estate-explorer :is(a, button, input):focus-visible { outline: 3px solid #002b66; outline-offset: 3px; }
.estate-explorer-empty { padding: 32px 20px; background: #f5f8fc; border: 1px dashed #b7c8dc; border-radius: 12px; text-align: center; }
.estate-explorer-empty > .icon { width: 28px; height: 28px; margin-bottom: 12px; color: #526780; }
.estate-explorer-empty h2 { font-size: 18px; margin: 0; line-height: 1.8; }
.estate-explorer-empty p { font-size: 14px; line-height: 1.9; color: #526780; margin: 6px 0 16px; }
.estate-explorer-empty .button { font-size: 13px; min-height: 44px; }
.estate-explorer-note { font-size: 12px; line-height: 1.9; color: #526780; margin: 16px 0 0; }
@media (max-width: 1100px) {
    .estate-directory-row { grid-template-columns: minmax(0, 1fr) 230px; gap: 12px 20px; }
    .estate-directory-identity { grid-column: 1; grid-row: 1; }
    .estate-directory-description { grid-column: 1; grid-row: 2; border: 0; padding: 0; }
    .estate-directory-access { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 600px) {
    .estate-explorer { padding-block: 24px 32px; }
    .estate-explorer-heading { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
    .estate-explorer-heading h1 { font-size: 23px; }
    .estate-explorer-heading .button { min-height: 44px; font-size: 13px; padding: 8px 14px; }
    .estate-explorer-tools { padding: 12px; gap: 12px; }
    .estate-explorer-search { flex-basis: 100%; }
    .estate-explorer-search input { font-size: 13px; }
    .estate-province-filters { gap: 6px; }
    .estate-province-filters > span { flex-basis: 100%; margin: 0; font-size: 12px; }
    .estate-province-filters button { font-size: 12px; padding-inline: 12px; }
    .estate-directory-row { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
    .estate-directory-identity { gap: 10px; }
    .estate-directory-identity h2 { font-size: 17px; }
    .estate-directory-access { grid-column: 1; grid-row: 3; border-inline-start: 0; border-top: 1px solid #e5ebf3; padding: 12px 0 0; }
    .estate-directory-actions { width: 100%; }
    .estate-profile-link:only-child { grid-column: 1 / -1; }
    .estate-directory-count { margin-bottom: 8px; }
    .estate-explorer-resultbar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .estate-directory-row, .estate-profile-link, .estate-map-link { transition: none; }
}
