/* Editorial real estate design. Uses existing Aurea Terra brand fonts. */
body {background:#f8f6f0;color:#173447}
header {box-shadow:0 2px 24px #17344706}
::selection {background:#d8c596;color:#173447}
.catalog-intro {padding-top:72px;padding-bottom:48px}
.catalog-intro h1 {font-family:"Cormorant Garamond",serif;font-size:clamp(42px,5.5vw,76px);line-height:1.03;letter-spacing:-.025em;margin:22px 0}
.catalog-intro p {max-width:560px;line-height:1.8;color:#58666c}
.catalog-section {padding-bottom:90px}
.catalog-filters {display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr auto;gap:16px;align-items:end;padding:26px;background:white;border:1px solid #17344712;border-radius:18px;box-shadow:0 12px 40px #17344708}
.catalog-filters label {display:block;font-size:12px;font-weight:600;margin-bottom:9px}
.catalog-filters .field {width:100%;min-width:0}
.catalog-results {display:flex;justify-content:space-between;gap:16px;margin:32px 0 22px;font-size:14px;color:#58666c}
.catalog-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.catalog-grid article {border-radius:18px;box-shadow:0 4px 20px #17344707}
.catalog-empty {grid-column:1/-1;text-align:center;padding:60px 20px;border:1px dashed #17344730;border-radius:18px}
.catalog-empty h2 {font-family:"Cormorant Garamond",serif;font-size:36px}
.catalog-empty p {margin:16px 0 24px}
.catalog-pagination {display:flex;justify-content:center;gap:24px;align-items:center;margin-top:42px;font-size:14px}
.catalog-link {display:inline-block;margin-top:22px;font-weight:600;border-bottom:1px solid #ae8c49;padding-bottom:6px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {outline:3px solid #ae8c49;outline-offset:4px}
@media(max-width:1100px){.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filters button{grid-column:1/-1}}
@media(max-width:760px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-intro{padding-top:44px}}
@media(max-width:520px){.catalog-grid,.catalog-filters{grid-template-columns:1fr}.catalog-filters{padding:20px}.catalog-pagination{gap:14px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.reveal{opacity:1!important;transform:none!important}}

.cookie-consent {position:fixed;bottom:22px;left:22px;z-index:100;max-width:460px;padding:24px;background:white;box-shadow:0 8px 60px #17344730;border-radius:18px;font-size:14px;line-height:1.7}
.cookie-consent[hidden]{display:none}.cookie-consent div{display:flex;gap:12px;margin-top:16px}.cookie-consent a{text-decoration:underline}.cookie-settings{background:#173447;color:white;border-radius:6px;padding:7px 10px;font-size:11px;margin:0 0 16px 16px}

/* Property photos: every admin-uploaded photo is reachable. */
.gallery-stage{position:relative;overflow:hidden;border-radius:20px;background:#e8e5dd}
.gallery-open{display:block}.gallery-open img{width:100%;aspect-ratio:16/10;object-fit:cover}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;background:#fff;color:#173447;box-shadow:0 3px 18px #0002;font-size:24px;z-index:2}
.gallery-arrow[hidden]{display:none}.gallery-prev{left:14px}.gallery-next{right:14px}
.gallery-count{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:6px 14px;border-radius:30px;background:#173447df;color:white;font-size:13px}
.gallery-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:14px 3px;scroll-snap-type:x mandatory}
.gallery-thumbnails a{flex:0 0 106px;border:3px solid transparent;border-radius:12px;overflow:hidden;scroll-snap-align:start}
.gallery-thumbnails a[aria-current]{border-color:#ae8c49}.gallery-thumbnails img{width:100%;height:74px;object-fit:cover}
.photo-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;background:#0d202bf5;color:white;padding:60px 64px;overflow:hidden}
.photo-dialog[open]{display:flex;align-items:center;justify-content:center}.photo-dialog:not([open]){display:none}.photo-dialog::backdrop{background:#0d202b}
.photo-dialog img{max-width:100%;max-height:calc(100dvh - 140px);object-fit:contain}.photo-close{position:absolute;right:20px;top:18px;width:44px;height:44px;border-radius:50%;background:white;color:#173447;font-size:22px}.photo-dialog .gallery-count{bottom:22px}
body.photo-modal-open{overflow:hidden}
.home-carousel{margin-top:30px}.carousel-controls{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-bottom:18px}.carousel-controls[hidden]{display:none}.carousel-controls span{font-size:12px;color:#58666c}.carousel-controls button{width:44px;height:44px;border-radius:50%;border:1px solid #17344730;font-size:22px;background:white}.carousel-controls button:disabled{opacity:.3;cursor:default}
.carousel-track{display:flex;gap:28px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 20px;overscroll-behavior-x:contain}.carousel-item{flex:0 0 calc((100% - 56px)/3);min-width:0;scroll-snap-align:start}.carousel-item article{height:100%}
.catalog-pagination{flex-wrap:wrap;gap:10px}.catalog-pagination a,.pagination-current{padding:8px 12px;border-radius:8px}.pagination-current{background:#173447;color:white}
@media(max-width:900px){.carousel-item{flex-basis:calc((100% - 28px)/2)}}
@media(max-width:560px){.carousel-item{flex-basis:88%}.carousel-track{gap:16px}.gallery-arrow{width:40px;height:40px}.gallery-thumbnails a{flex-basis:84px}.gallery-thumbnails img{height:60px}.photo-dialog{padding:65px 48px}}

/* Keep photo min-content widths from squeezing the contact sidebar. */
.property-detail-layout{grid-template-columns:minmax(0,1fr)}
.property-detail-layout>div,.property-detail-layout>aside,.property-gallery{min-width:0;max-width:100%}
.gallery-stage,.gallery-thumbnails{max-width:100%;min-width:0}
.gallery-open img{display:block;max-width:100%;height:auto}
.gallery-thumbnails a{flex:0 0 calc((100% - 20px)/3)}
.gallery-thumbnails img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
@media(min-width:1024px){.property-detail-layout{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}}

/* Private owner intake: independent from buyer lead forms. */
.owner-intro{padding-top:60px;padding-bottom:38px;max-width:1000px}.owner-intro h1{font-family:"Cormorant Garamond",serif;font-size:clamp(42px,5vw,68px);line-height:1.05;margin:20px 0}.owner-intro>p{max-width:720px;line-height:1.8;margin:16px 0;color:#58666c}.owner-note{padding:16px 20px;background:#edece3;border-left:3px solid #ae8c49;border-radius:8px;font-size:14px}
.owner-wrap{max-width:1000px;padding-bottom:80px}.owner-form{background:white;padding:36px;border:1px solid #17344718;border-radius:22px;box-shadow:0 10px 40px #17344705}.owner-section{margin:26px 0;padding:24px 0;border-top:1px solid #17344718;min-width:0}.owner-section legend{font-size:20px;font-weight:600;padding-right:16px}.owner-section legend span{font-size:13px;color:#8b713f;margin-right:8px}.owner-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.owner-field{min-width:0}.owner-field label{display:block;font-size:14px;font-weight:600;margin-bottom:9px}.owner-field .field{width:100%;max-width:100%}.owner-wide{grid-column:1/-1}.owner-help,.owner-required{font-size:12px;color:#647177;line-height:1.7;margin-top:7px}.owner-terms{padding:22px;background:#f8f6f0;border-radius:14px;font-size:14px;line-height:1.9;margin:16px 0 24px}.owner-section h2{font-weight:600}.owner-consent{display:flex;align-items:flex-start;gap:12px;margin-top:25px;font-size:13px;line-height:1.9}.owner-consent input{margin-top:6px;flex-shrink:0;width:18px;height:18px}.owner-consent a{text-decoration:underline;color:#176454}.owner-submit{display:flex;gap:24px;align-items:center;justify-content:space-between}.owner-submit p{font-size:13px;color:#647177}.owner-errors{background:#fff2f0;border:1px solid #b94034;border-radius:10px;padding:20px;margin-bottom:24px}.owner-errors a{text-decoration:underline}.owner-field-errors,.owner-form .errorlist{font-size:13px;color:#a72e22;margin-top:6px}
@media(max-width:640px){.owner-fields{grid-template-columns:minmax(0,1fr)}.owner-form{padding:22px 18px}.owner-submit{flex-direction:column;align-items:stretch}.owner-intro{padding-top:35px}.owner-section legend{font-size:18px}}
