/* Edna custom: when the dark contact section is the last thing on a page, it runs straight into the footer with no cream gap */
.al-sec-contact-form:last-child{margin-bottom:0!important;padding-bottom:0!important}
:has(> .al-sec-contact-form:last-child){padding-bottom:0!important;margin-bottom:0!important}
.ep-ft{margin-top:0!important;border-top:1px solid rgba(255,255,255,.1)}
.ep-ft .ep-ft__in{padding-top:clamp(48px,6vw,80px)}
/* Edna custom: footer wordmark - about 80% of the letters show by default so 'Edna Porca' stays legible; hovering it reveals the full letters. Touch screens (no hover) always show it in full. */
.ep-ft .ep-ft__mark{aspect-ratio:auto!important;height:17.6vw;transition:height .9s cubic-bezier(.2,.8,.1,1)}
.ep-ft .ep-ft__mark:hover{height:21.6vw}
@media (hover:none){.ep-ft .ep-ft__mark{height:21.6vw}}
@media (prefers-reduced-motion:reduce){.ep-ft .ep-ft__mark{transition:none}}
/* Edna custom: the homepage blog teaser (no category pills) shows only its first posts, with no 'Show more' button */
.ep-bl:has(.ep-bl__all) .al-blg-more{display:none!important}
/* Edna custom: stronger, soft shading behind hero text (left side + bottom) so white text always reads on bright photos */
.ep-hero__scrim{background:linear-gradient(90deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,.28) 35%,rgba(0,0,0,0) 65%),linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.12) 14%,rgba(0,0,0,0) 28%,rgba(0,0,0,0) 42%,rgba(0,0,0,.1) 52%,rgba(0,0,0,.28) 64%,rgba(0,0,0,.5) 78%,rgba(0,0,0,.72) 92%,rgba(0,0,0,.8) 100%)!important}
.ep-hero__title,.ep-hero__sub{text-shadow:0 2px 24px rgba(0,0,0,.25)}
/* Edna custom: centre the 'Get to know Edna' button under the stat cards */
.ep-ab__in>p:last-child{grid-column:1 / -1!important;justify-self:center;text-align:center;margin-top:clamp(28px,3vw,48px)!important}
/* Edna custom: stat cards get the hero's soft black gradient - strongest at the top (behind the number) and the bottom (behind the caption), clear in the middle */
.ep-ab__in>ul>li::after{background:linear-gradient(180deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.42) 12%,rgba(0,0,0,.2) 24%,rgba(0,0,0,.06) 34%,rgba(0,0,0,0) 42%,rgba(0,0,0,0) 54%,rgba(0,0,0,.08) 62%,rgba(0,0,0,.24) 72%,rgba(0,0,0,.46) 84%,rgba(0,0,0,.7) 100%)!important}
.ep-ab__in>ul>li strong,.ep-ab__in>ul>li{text-shadow:0 2px 22px rgba(0,0,0,.25)}
/* Edna custom: footer's filled button keeps dark text (the platform's footer link colour was turning it cream-on-cream) */
.site-footer.ep-ft a.ep-ft__btn--solid,.site-footer.ep-ft a.ep-ft__btn--solid:visited,.site-footer.ep-ft a.ep-ft__btn--solid *{color:var(--foot-bg)!important}
.site-footer.ep-ft a.ep-ft__btn--solid{background:var(--foot-ink)!important}
/* Edna custom: header menu never wraps onto a second row - it stays on one line so the 'More' overflow can take the items that don't fit */
@media (min-width:901px){.ep-hdr .hdr-bar,.ep-hdr .site-nav{flex-wrap:nowrap!important}.ep-hdr .site-logo{min-width:170px!important}.ep-hdr .site-nav{overflow:visible}}
/* Edna custom: home value arc hero - switch off the platform's own address-box card styling (white card, two-column grid) so the centred layout shows */
.ep-hv .ep-hv__body.al-lcw{display:block!important;grid-template-columns:none!important;width:min(860px,100%)!important;max-width:860px!important;margin:0 auto!important;padding:clamp(260px,38vh,380px) 0 0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:center!important;min-height:0!important;overflow:visible!important}
.ep-hv .ep-hv__body.al-lcw>*{grid-column:auto!important;grid-row:auto!important;width:auto;max-width:none;margin-left:auto;margin-right:auto;text-align:center!important}
.ep-hv .ep-hv__body.al-lcw>.ep-hv__eyebrow{display:inline-flex!important}
.ep-hv .ep-hv__body.al-lcw .ep-hv__title{max-width:15ch!important;font-size:clamp(40px,5.6vw,84px)!important;line-height:1!important}
.ep-hv .ep-hv__body.al-lcw .ep-hv__text{max-width:560px!important}
.ep-hv .ep-hv__body.al-lcw .ep-hv__form{max-width:620px!important}
.ep-hv .ep-hv__body.al-lcw .ep-hv__feats{max-width:820px!important}
@media (max-width:700px){.ep-hv .ep-hv__body.al-lcw{padding-top:clamp(200px,34vh,260px)!important}}
/* Edna custom: contact page split screen - rounded, inset photo frame and a circular agent photo */
.ep-cs .ep-cs__photo{margin:12px;border-radius:28px;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(white,black)}
@media (min-width:960px){.ep-cs .ep-cs__photo{top:12px!important;height:calc(100vh - 24px)!important}}
@media (max-width:959px){.ep-cs .ep-cs__photo{margin:8px;border-radius:20px}}
.ep-cs .ep-cs__photo-sm{border-radius:50%!important}
/* Edna custom: featured listing cards (homepage) - big photo on top, details below, to match the market snapshot cards */
.ep-ls .ep-lc__in{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:0!important;padding:10px!important}
.ep-ls .ep-lc__media{aspect-ratio:4/3!important;border-radius:16px!important}
.ep-ls .ep-lc__body{flex:1 1 auto;padding:16px 10px 6px!important}
.ep-ls .ep-lc__price{font-size:clamp(22px,1.9vw,27px)!important}
.ep-ls .ep-lc__addr{margin-top:4px!important}
.ep-ls .ep-lc__specs{margin-top:12px!important;margin-bottom:18px!important}
.ep-ls .ep-lc__foot{margin-top:auto!important;padding-top:16px!important}
.ep-ls .ep-ls__grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important;gap:22px!important}
.ep-ls .ep-ls__grid>.ep-lc{display:block}
/* Edna custom: the 'Filter by price' section sits on a soft sand panel, inset with rounded corners; tighter spacing so the neighbourhoods, price filter and listings read as one flow */
.ep-sp:has(.ep-sp__filter){margin:12px!important;padding:clamp(36px,4.2vw,60px) 0!important;border-radius:28px;background:var(--Sand,var(--card))}
@media (max-width:760px){.ep-sp:has(.ep-sp__filter){margin:8px!important;border-radius:20px}}
.ep-sp:has(.ep-sp__filter) .ep-sp__filter{border-color:rgba(255,255,255,.6)}
.ep-sp:has(.ep-sp__filter) .ep-sp__head{margin-bottom:clamp(18px,2vw,26px)}
.ep-sp{padding-top:clamp(48px,5.5vw,84px)!important;padding-bottom:clamp(36px,4vw,60px)!important}
/* Edna custom: every dropdown on the site ('Newest' sort, form selects) gets its own chevron with proper room on the right, instead of the browser's arrow squeezed against the pill edge */
.ep-sx .al-strip-sort,.ep-cx__form select,.ep-cs__form select,.ep-cf__form select,.ep-hv select,.ep-sm select,.ep-ev select{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;padding-right:52px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23808080' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 22px center!important;background-size:12px 8px!important;cursor:pointer}
.ep-sx .al-strip-sort::-ms-expand{display:none}