.estatehub-listing__empty { margin: 1rem 0; }
.estatehub-grid { display: grid; grid-template-columns: repeat(var(--eh-columns, 3), minmax(0, 345px)); gap: 1rem; justify-content: center; }
.estatehub-list, .estatehub-category { display: grid; gap: 1rem; }
.estatehub-carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.estatehub-carousel > * { scroll-snap-align: start; min-width: 260px; }
.eh-property-card { border: 1px solid #d9e2ec; border-radius: 8px; overflow: hidden; background: #fff; }
.eh-property-card__media img { width: 100%; height: auto; display: block; }
.eh-property-card--grid .eh-property-card__media { display: block; height: 260px; overflow: hidden; }
.eh-property-card--grid .eh-property-card__media img { width: 100%; height: 260px; object-fit: cover; }
.eh-property-card__body { padding: 1rem; }
.eh-property-card__title { margin: 0 0 .5rem; font-size: 1.1rem; }
.eh-property-card__price { font-weight: 600; margin: .5rem 0; }
.eh-property-card__price-link { color: var(--eh-property-accent, #0F766E); text-decoration: underline; text-underline-offset: 2px; }
.eh-property-card__price-link:hover, .eh-property-card__price-link:focus { color: var(--eh-property-accent, #0F766E); text-decoration-thickness: 2px; }
.eh-property-card__specs { display: flex; gap: .75rem; list-style: none; padding: 0; margin: .5rem 0; font-size: .9rem; }
.eh-property-card__excerpt { font-size: .95rem; color: #444; }
.eh-property-card__amenities { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.eh-property-card__amenities li { background: #f1f5f9; padding: .2rem .5rem; border-radius: 999px; font-size: .8rem; }
.estatehub-pagination { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.estatehub-property-detail__title { margin-bottom: .5rem; }
.estatehub-property-detail__hero img { max-width: 100%; height: auto; }
.estatehub-property-detail__price { font-weight: 700; font-size: 1.2rem; }
.estatehub-property-detail__price-link { color: var(--eh-property-accent, #0F766E); text-decoration: underline; text-underline-offset: 2px; }
.estatehub-property-detail__specs { display: flex; gap: 1rem; list-style: none; padding: 0; }
.estatehub-gallery { display: grid; gap: .75rem; }
.estatehub-gallery__thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.estatehub-gallery__thumb { border: 0; padding: 0; background: none; cursor: pointer; }
.estatehub-gallery__thumb img { width: 80px; height: auto; border-radius: 4px; }
.estatehub-empty-state { padding: 1rem; border: 1px dashed #cbd5e1; border-radius: 8px; }
.estatehub-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.estatehub-modal.is-open { display: block; }
.estatehub-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.72); }
.estatehub-modal__panel { position: relative; max-width: 920px; max-height: 90vh; margin: 5vh auto; overflow: auto; background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35); }
.estatehub-modal__close { position: absolute; top: .75rem; right: .75rem; border: 0; background: #e2e8f0; width: 2rem; height: 2rem; border-radius: 999px; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.estatehub-modal__media img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 1rem; }
.estatehub-modal__price { font-weight: 700; font-size: 1.25rem; }
.estatehub-modal__price a { color: var(--eh-property-accent, #0F766E); text-decoration: underline; text-underline-offset: 2px; }
.estatehub-modal__specs, .estatehub-modal__amenities { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; }
.estatehub-modal__description { margin-top: 1rem; line-height: 1.6; white-space: pre-wrap; }
body.estatehub-modal-open { overflow: hidden; }
@media (max-width: 720px) { .estatehub-grid { grid-template-columns: 1fr; } .estatehub-modal__panel { margin: 0; max-height: 100vh; border-radius: 0; } }

/* Property detail page and enquiry */
.estatehub-property-page { display: grid; gap: 1.5rem; }
.eh-enquiry { margin-top: 2rem; padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; display: grid; gap: 1rem; }
.eh-enquiry__title { margin: 0; font-size: 1.35rem; }
.eh-enquiry__property { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 0; padding: .75rem 1rem; border-radius: 10px; background: #f8fafc; }
.eh-enquiry__price { font-weight: 700; color: var(--eh-property-accent, #0F766E); }
.eh-enquiry__location { color: #64748b; }
.eh-enquiry__notice { padding: .85rem 1rem; border-radius: 10px; border: 1px solid transparent; }
.eh-enquiry__notice.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.eh-enquiry__notice.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.eh-enquiry__form { display: grid; gap: 1rem; }
.eh-enquiry__field { display: grid; gap: .3rem; }
.eh-enquiry__field label { font-weight: 600; font-size: .9rem; color: #334155; }
.eh-enquiry__field input, .eh-enquiry__field textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: #0f172a; box-sizing: border-box; }
.eh-enquiry__field input:focus, .eh-enquiry__field textarea:focus { outline: 2px solid var(--eh-property-accent, #0F766E); outline-offset: 1px; border-color: var(--eh-property-accent, #0F766E); }
.eh-enquiry__field input[aria-invalid="true"], .eh-enquiry__field textarea[aria-invalid="true"] { border-color: #dc2626; }
.eh-enquiry__error { margin: 0; font-size: .82rem; color: #b91c1c; }
.eh-enquiry__field--captcha input { max-width: 8rem; }
.eh-enquiry__actions { margin: 0; }
.eh-enquiry__submit { display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--eh-property-accent, #0F766E); background: var(--eh-property-accent, #0F766E); color: #fff; font-weight: 600; cursor: pointer; }
.eh-enquiry__submit:hover, .eh-enquiry__submit:focus { filter: brightness(.94); }
.eh-enquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tenant portal */
.estatehub-portal { --eh-accent: var(--eh-portal-accent, #0369A1); color: #0f172a; font-size: 1rem; }
.estatehub-portal * { box-sizing: border-box; }
.eh-portal-header { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1.5rem; border-radius: 14px; background: #0f172a; color: #f8fafc; }
.eh-portal-header__eyebrow { margin: 0 0 .25rem; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; opacity: .75; }
.eh-portal-header__title { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.eh-portal-header__meta { margin: .5rem 0 0; font-size: .9rem; opacity: .85; }
.eh-portal-header__reference { display: inline-block; margin-left: .5rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(248,250,252,.16); font-size: .75rem; }
.eh-portal-header__logout { color: #f8fafc; text-decoration: none; font-weight: 600; border: 1px solid rgba(248,250,252,.4); border-radius: 8px; padding: .4rem .8rem; }
.eh-portal-header__logout:hover, .eh-portal-header__logout:focus { background: rgba(248,250,252,.12); color: #fff; }
.eh-portal-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: .35rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.eh-portal-nav__link { padding: .45rem .8rem; border-radius: 8px; color: #334155; text-decoration: none; font-size: .9rem; font-weight: 600; }
.eh-portal-nav__link:hover, .eh-portal-nav__link:focus { background: #f1f5f9; color: #0f172a; }
.eh-portal-nav__link.is-active { color: #fff; }
.eh-portal-content { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.eh-portal-alert { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; border: 1px solid transparent; }
.eh-portal-alert p { margin: 0; }
.eh-portal-alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.eh-portal-alert--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.eh-portal-section { display: grid; gap: 1rem; }
.eh-portal-section__heading { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.eh-portal-section__title { margin: 0; font-size: 1.25rem; }
.eh-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.eh-portal-card { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.eh-portal-card__header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid #eef2f7; background: #fbfdff; }
.eh-portal-card__title { margin: 0; font-size: 1rem; }
.eh-portal-card__link { font-size: .85rem; font-weight: 600; color: var(--eh-accent); text-decoration: none; }
.eh-portal-card__body { padding: 1.1rem; }
.eh-portal-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.eh-portal-kpi { display: grid; gap: .25rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; }
a.eh-portal-kpi:hover, a.eh-portal-kpi:focus { border-color: var(--eh-accent); box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.eh-portal-kpi__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.eh-portal-kpi__value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.eh-portal-kpi__hint { font-size: .8rem; color: #64748b; }
.eh-portal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem 1rem; margin: 0; }
.eh-portal-stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.eh-portal-stats dd { margin: .15rem 0 0; font-weight: 600; }
.eh-portal-property { margin: 0 0 .9rem; font-weight: 600; }
.eh-portal-muted { margin: 0; color: #64748b; }
.eh-portal-description { margin-top: 1rem; line-height: 1.6; color: #334155; }
.eh-portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.eh-portal-list__item { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #eef2f7; }
.eh-portal-list__item:last-child { border-bottom: 0; }
.eh-portal-list__main { font-weight: 600; color: #0f172a; text-decoration: none; }
.eh-portal-list__main:hover, .eh-portal-list__main:focus { color: var(--eh-accent); }
.eh-portal-list__meta { font-size: .8rem; color: #64748b; }
.eh-portal-badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #e2e8f0; color: #334155; }
.eh-portal-badge--success { background: #dcfce7; color: #166534; }
.eh-portal-badge--warning { background: #fef3c7; color: #92400e; }
.eh-portal-badge--danger { background: #fee2e2; color: #991b1b; }
.eh-portal-badge--info { background: #e0f2fe; color: #075985; }
.eh-portal-badge--neutral { background: #e2e8f0; color: #334155; }
.eh-portal-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.eh-portal-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.eh-portal-table th, .eh-portal-table td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.eh-portal-table thead th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.eh-portal-table tbody tr:last-child td { border-bottom: 0; }
.eh-portal-form { display: grid; gap: .9rem; }
.eh-portal-field { display: grid; gap: .3rem; }
.eh-portal-field label { font-size: .85rem; font-weight: 600; color: #334155; }
.eh-portal-field input, .eh-portal-field select, .eh-portal-field textarea { width: 100%; padding: .55rem .65rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: #0f172a; }
.eh-portal-field input:focus, .eh-portal-field select:focus, .eh-portal-field textarea:focus { outline: 2px solid var(--eh-accent); outline-offset: 1px; border-color: var(--eh-accent); }
.eh-portal-form__actions { margin: 0; }
.eh-portal-button { display: inline-block; padding: .55rem .95rem; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font-weight: 600; text-decoration: none; cursor: pointer; }
.eh-portal-button:hover, .eh-portal-button:focus { background: #f1f5f9; }
.eh-portal-button--primary { background: var(--eh-accent); border-color: var(--eh-accent); color: #fff; }
.eh-portal-button--primary:hover, .eh-portal-button--primary:focus { filter: brightness(.94); color: #fff; }
.eh-portal-button--small { padding: .35rem .65rem; font-size: .82rem; }
.eh-portal-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.eh-portal-back { margin: 0; font-size: .9rem; }
.eh-portal-back a { color: var(--eh-accent); text-decoration: none; font-weight: 600; }
.eh-portal-thread { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.eh-portal-thread__message { padding: .75rem .9rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; }
.eh-portal-thread__message--tenant { background: #f0f9ff; border-color: #bae6fd; }
.eh-portal-thread__meta { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin: 0 0 .35rem; font-size: .78rem; color: #64748b; }
.eh-portal-thread__meta strong { color: #0f172a; }
.eh-portal-thread__body { line-height: 1.55; color: #1e293b; }
.eh-portal-thread__body p { margin: 0 0 .5rem; }
.eh-portal-thread__body p:last-child { margin-bottom: 0; }
.eh-portal-notifications { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.eh-portal-notification { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: flex-start; padding: .9rem 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.eh-portal-notification.is-unread { border-color: var(--eh-accent); box-shadow: inset 3px 0 0 var(--eh-accent); }
.eh-portal-notification__title { margin: 0; font-weight: 700; }
.eh-portal-notification__text { margin: .3rem 0 0; color: #334155; line-height: 1.5; }
.eh-portal-notification__meta { margin: .4rem 0 0; font-size: .78rem; color: #64748b; }
.eh-portal-login { max-width: 460px; margin: 0 auto; padding: 2rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-align: center; }
.eh-portal-login__title { margin: .25rem 0 .75rem; }
.eh-portal-login__text { color: #475569; line-height: 1.6; }
.eh-portal-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 820px) { .eh-portal-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .eh-portal-header { flex-direction: column; } .eh-portal-kpis { grid-template-columns: 1fr; } }
