@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #201d19;
  --muted: #6f685f;
  --paper: #f7f5f0;
  --white: #fff;
  --line: #ddd7cd;
  --gold: #cda434;
  --gold-dark: #9e7820;
  --brown: #3f352c;
  --green: #23463b;
  --danger: #a33a30;
  --radius: 6px;
  --shadow: 0 18px 45px rgba(32, 29, 25, .12);
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
body.admin-page { background: #f1efe9; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 1.1em; height: 1.1em; stroke-width: 1.8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: 0; }
h1 { font-size: 4.75rem; }
h2 { font-size: 3.75rem; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 0 5vw; color: var(--ink); transition: .25s ease; }
.home-page .site-header { color: var(--white); }
.site-header.scrolled, .admin-page .site-header, .inner-page .site-header { color: var(--ink); background: rgba(247, 245, 240, .95); border-bottom: 1px solid rgba(32,29,25,.1); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo-frame { display: block; width: 218px; aspect-ratio: 1974 / 624; overflow: visible; background: transparent; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-footer .brand-logo-frame { width: 258px; }
.login-brand-logo { width: 250px; height: auto; margin-bottom: 28px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 48px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.65rem; }
.brand-mark.large { width: 58px; height: 68px; margin-bottom: 24px; font-size: 2.25rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 1.55rem; letter-spacing: 0; }
.brand-copy small { margin-top: 5px; font-size: .58rem; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .88rem; }
.main-nav > a:not(.nav-cta) { position: relative; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; border-bottom: 1px solid var(--gold); transition: width .2s; }
.main-nav > a:hover::after { width: 100%; }
.nav-cta { display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border: 1px solid currentColor; }
.whatsapp-mark { flex: 0 0 auto; width: 18px; height: 18px; color: #25d366; fill: currentColor; }
.menu-toggle { display: none !important; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 3px; }
.icon-button:hover { border-color: var(--gold); color: var(--gold-dark); }
.icon-button.danger { color: var(--danger); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; font-weight: 650; font-size: .84rem; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: #211b10; background: var(--gold); }
.button-gold:hover { background: #dfbb52; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--brown); }
.button-ghost-light { color: var(--white); border-color: rgba(255,255,255,.65); }
.button-ghost { border-color: var(--line); background: transparent; }
.button.full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .83rem; font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.eyebrow { margin-bottom: 16px; color: var(--gold-dark); font-size: .71rem; font-weight: 800; letter-spacing: 0; }

.hero { position: relative; display: flex; align-items: center; min-height: 720px; height: calc(100svh - 24px); max-height: 940px; padding-bottom: 36px; overflow: hidden; color: var(--white); }
.hero-media, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-media { object-fit: cover; object-position: center 48%; }



.hero-overlay { z-index: 1; background: linear-gradient(90deg, rgba(18,17,14,.9) 0%, rgba(18,17,14,.68) 36%, rgba(18,17,14,.18) 78%); }
.hero-content { position: relative; z-index: 2; width: min(720px, calc(100% - 14vw)); margin-left: 7vw; padding-top: 64px; }
.hero-content h1 { max-width: 720px; margin-bottom: 22px; font-size: 5.25rem; line-height: .94; font-weight: 500; }
.hero-content h1 em { display: block; color: #e7c969; font-weight: 500; }
.hero-copy { max-width: 580px; color: rgba(255,255,255,.84); font-size: 1.02rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-signature { position: absolute; z-index: 2; right: 5vw; bottom: 7vh; display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--gold); }
.hero-signature span { font-family: var(--serif); font-size: 3.5rem; color: #e7c969; line-height: 1; }
.hero-signature small { text-transform: uppercase; font-size: .65rem; letter-spacing: 0; }

.property-section { padding: 110px 6vw 125px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-heading h2 { max-width: 700px; margin-bottom: 0; }
.section-heading > p { max-width: 340px; color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto auto; gap: 1px; padding: 8px; margin-bottom: 50px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(32,29,25,.06); }
.filters label { padding: 8px 16px; border-right: 1px solid var(--line); }
.filters label span { display: block; color: var(--muted); font-size: .64rem; text-transform: uppercase; font-weight: 750; }
.filters select { width: 100%; padding: 4px 20px 4px 0; background: transparent; border: 0; color: var(--ink); outline: 0; }
.filters .button { align-self: center; }
.clear-filters { align-self: center; padding: 10px; font-size: .75rem; text-decoration: underline; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.property-card { min-width: 0; background: var(--white); border: 1px solid var(--line); }
.property-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.property-card:hover .property-image img { transform: scale(1.035); }
.property-purpose, .property-featured { position: absolute; top: 14px; padding: 7px 10px; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.property-purpose { left: 14px; color: var(--white); background: rgba(32,29,25,.82); }
.property-featured { right: 14px; background: var(--gold); }
.property-info { padding: 25px; }
.property-info > p { margin-bottom: 9px; color: var(--gold-dark); font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.property-info h3 { min-height: 58px; margin-bottom: 20px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; font-weight: 400; }
.property-stats { display: flex; gap: 15px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.property-stats span { display: inline-flex; align-items: center; gap: 5px; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px dashed var(--line); }
.empty-state svg { width: 34px; height: 34px; color: var(--gold-dark); }

.about-section { display: grid; grid-template-columns: minmax(320px, .9fr) 1.1fr; min-height: 680px; background: var(--ink); color: var(--white); }
.about-image { min-height: 620px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.8); }
.about-content { display: flex; flex-direction: column; justify-content: center; padding: 8vw; }
.about-content h2 { max-width: 670px; font-size: 3.7rem; }
.about-content > p { max-width: 640px; color: rgba(255,255,255,.7); }
.about-content blockquote { margin: 35px 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.broker-signature { display: flex; flex-direction: column; }
.broker-signature span { color: rgba(255,255,255,.56); font-size: .82rem; }
.owner-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; padding: 100px 8vw; background: #eee9df; }
.owner-cta h2 { margin-bottom: 0; }
.owner-cta > div:last-child p { max-width: 520px; color: var(--muted); }

.detail-hero { padding: 130px 5vw 40px; background: var(--white); }
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin: 50px 0 35px; }
.detail-heading h1 { max-width: 900px; margin-bottom: 20px; font-size: 4.5rem; }
.detail-heading p:last-child { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.detail-price { min-width: 250px; text-align: right; }
.detail-price span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.detail-price strong { display: block; font-family: var(--serif); font-size: 2rem; white-space: nowrap; }
.detail-price small { font-family: var(--sans); font-size: .75rem; }
.detail-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; max-height: 650px; overflow: hidden; }
.detail-gallery.single { grid-template-columns: 1fr; }
.gallery-tile { min-width: 0; min-height: 260px; padding: 0; overflow: hidden; background: #ddd7cd; border: 0; }
.detail-gallery img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-tile:hover img { transform: scale(1.015); }
.gallery-all { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid rgba(31,29,25,.18); font-size: .76rem; font-weight: 750; }
.gallery-all span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--paper); border-radius: 50%; font-size: .65rem; }
.gallery-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 0; color: var(--white); background: #11100e; border: 0; }
.gallery-dialog::backdrop { background: rgba(0,0,0,.88); }
.gallery-dialog-shell { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: 64px minmax(0, 1fr) 48px; width: 100%; height: 100%; padding: 12px; }
.gallery-dialog .icon-button { color: var(--white); border-color: rgba(255,255,255,.28); }
.gallery-dialog .icon-button:hover { color: var(--gold); border-color: var(--gold); }
.gallery-close { grid-column: 3; grid-row: 1; justify-self: end; }
.gallery-previous { grid-column: 1; grid-row: 2; align-self: center; justify-self: center; }
.gallery-next { grid-column: 3; grid-row: 2; align-self: center; justify-self: center; }
.gallery-stage { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; min-width: 0; min-height: 0; touch-action: pan-y; }
.gallery-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-counter { grid-column: 2; grid-row: 3; align-self: end; justify-self: center; margin: 0; color: rgba(255,255,255,.72); font-size: .76rem; }.detail-body { display: grid; grid-template-columns: 1fr 380px; gap: 7vw; padding: 70px 8vw 110px; }
.detail-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-stats > span { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 22px 14px; border-right: 1px solid var(--line); }
.detail-stats > span:last-child { border-right: 0; }
.detail-stats svg { grid-row: 1 / 3; color: var(--gold-dark); }
.detail-stats small { color: var(--muted); font-size: .67rem; }
.detail-copy { max-width: 760px; padding: 70px 0 45px; }

.detail-copy > p:last-child { color: var(--muted); font-size: 1.04rem; line-height: 1.8; white-space: pre-line; }
.schedule-panel { position: sticky; top: 110px; align-self: start; padding: 34px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.schedule-panel h2 { font-size: 2.1rem; }
.schedule-panel > p { color: var(--muted); }

label { display: block; color: var(--muted); font-size: .76rem; font-weight: 650; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 12px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 2px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(205,164,52,.12); }
.schedule-panel form { display: grid; gap: 15px; margin-top: 25px; }
.visit-datetime { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 12px; }
.visit-datetime label { min-width: 0; }
input[type="date"], input[type="time"] { min-height: 47px; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .65; }

.form-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; padding: 165px 8vw 100px; }
.form-intro { position: sticky; top: 140px; align-self: start; }
.form-intro h1 { max-width: 620px; font-size: 4.5rem; }
.form-intro > p { max-width: 520px; color: var(--muted); }
.form-benefits { display: grid; gap: 14px; margin-top: 35px; }
.form-benefits span { display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.form-benefits svg { color: var(--gold-dark); }
.owner-form, .property-form { padding: 45px; background: var(--white); border: 1px solid var(--line); }
.form-section { display: flex; gap: 18px; padding: 28px 0 20px; margin-top: 18px; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section h2 { margin-bottom: 2px; font-size: 1.7rem; }
.form-section p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.form-number { color: var(--gold-dark); font-family: var(--serif); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.owner-form > label:not(.upload-zone):not(.consent) { margin-top: 18px; }
.upload-input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; opacity: 0; clip-path: inset(50%); }
.upload-zone { position: relative; display: grid; justify-items: center; padding: 30px; margin-top: 20px; border: 1px dashed #b9af9f; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-zone:hover { border-color: var(--gold-dark); background: #fcfaf4; }
.upload-input:focus + .upload-zone { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(205,164,52,.16); }
.upload-zone svg { width: 30px; height: 30px; margin-bottom: 10px; color: var(--gold-dark); }
.upload-zone span { font-size: .68rem; font-weight: 400; }.consent { display: flex; align-items: start; gap: 10px; margin: 20px 0; }
.consent input { width: 17px; height: 17px; margin: 2px 0 0; }

.site-footer { color: rgba(255,255,255,.75); background: #181613; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 80px; padding: 75px 7vw 55px; }
.brand-footer { color: var(--white); }
.footer-main > div:first-child p { max-width: 400px; margin-top: 24px; }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-label { margin-bottom: 8px; color: var(--gold); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.footer-main a { display: inline-flex; align-items: center; gap: 7px; }
.whatsapp-contact { align-self: flex-start; min-height: 42px; padding: 0 14px; margin: 2px 0 4px; color: var(--white); border: 1px solid rgba(255,255,255,.28); border-radius: 2px; font-size: .8rem; font-weight: 700; transition: border-color .2s, background .2s; }
.whatsapp-contact:hover { border-color: #25d366; background: rgba(37,211,102,.08); }
.whatsapp-contact .whatsapp-mark { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 7vw; border-top: 1px solid rgba(255,255,255,.1); font-size: .69rem; }
.admin-link { opacity: .58; }


.flash-stack { position: fixed; z-index: 100; top: 95px; right: 20px; width: min(400px, calc(100vw - 40px)); }
.flash { padding: 14px 18px; margin-bottom: 8px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.flash.success { background: var(--green); }
.flash.error { background: var(--danger); }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 130px 20px 50px; background: linear-gradient(120deg, #eee9df, #f8f7f3); }
.login-card { width: min(440px, 100%); padding: 50px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { margin-bottom: 10px; font-size: 2.5rem; }
.login-card > p:not(.eyebrow) { color: var(--muted); }
.login-card label { margin-top: 16px; }
.login-card .button { margin-top: 24px; }
.login-card .text-link { margin-top: 25px; }
.admin-shell, .admin-form-shell { padding: 145px 5vw 90px; }
.admin-topbar, .admin-form-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.admin-topbar h1, .admin-form-heading h1 { margin-bottom: 0; font-size: 3.5rem; }
.admin-actions, .table-actions { display: flex; align-items: center; gap: 7px; }
.admin-actions form, .table-actions form { margin: 0; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 35px; background: var(--white); border: 1px solid var(--line); }
.admin-metrics div { padding: 24px; border-right: 1px solid var(--line); }
.admin-metrics div:last-child { border-right: 0; }
.admin-metrics span { display: block; font-family: var(--serif); font-size: 2.2rem; }
.admin-metrics small { color: var(--muted); }
.admin-tabs { display: flex; gap: 25px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-tabs button { padding: 12px 2px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; }
.admin-tabs button.active { color: var(--ink); border-bottom-color: var(--gold); }
.admin-tabs span { padding: 2px 7px; margin-left: 6px; background: #e5dfd2; border-radius: 10px; font-size: .65rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: .8rem; }
th { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.align-right { text-align: right; }
.admin-property { display: flex; align-items: center; gap: 14px; min-width: 320px; }
.admin-property small { display: block; color: var(--muted); }
.admin-thumb { flex: 0 0 72px; width: 72px; aspect-ratio: 4/3; overflow: hidden; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status { display: inline-block; padding: 5px 8px; color: var(--muted); background: #e7e2d9; font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.status.active, .status.contatado { color: #265b3e; background: #dceadf; }
.status.inactive, .status.arquivado { color: #725f4a; background: #ece6dd; }
.status.novo { color: #755c14; background: #f6eabb; }
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lead-card { padding: 24px; background: var(--white); border: 1px solid var(--line); }
.lead-head { display: flex; justify-content: space-between; gap: 10px; }
.lead-head small { display: block; margin-top: 6px; color: var(--muted); }
.lead-head select { margin: 0; padding: 7px; }
.lead-card h3 { margin: 20px 0 5px; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.lead-card > p { color: var(--muted); }
.lead-contacts { display: grid; gap: 7px; font-size: .78rem; }
.lead-contacts a { display: flex; align-items: center; gap: 7px; }
.lead-card blockquote { padding: 12px; margin: 18px 0 0; background: var(--paper); font-size: .78rem; }
.lead-attachments { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.lead-attachments-title { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.lead-attachments-title svg { width: 16px; height: 16px; color: var(--gold-dark); }
.lead-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.lead-photo { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: #ece8df; border: 1px solid var(--line); border-radius: 2px; cursor: zoom-in; }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.lead-photo:hover img { transform: scale(1.03); }
.admin-form-shell { max-width: 1180px; margin: 0 auto; }
.admin-form-shell > .back-link { margin-bottom: 40px; }
.admin-form-heading > p { max-width: 410px; color: var(--muted); }
.property-form fieldset { padding: 30px 0; border: 0; border-bottom: 1px solid var(--line); }
.property-form fieldset:first-child { padding-top: 0; }
.property-form legend { margin-bottom: 20px; font-family: var(--serif); font-size: 1.55rem; }
.property-form label { margin-bottom: 15px; }
.required-note { display: flex; justify-content: flex-end; gap: 5px; margin-bottom: 18px; color: var(--muted); font-size: .7rem; }
.required-note span, .required-mark { color: var(--danger); }
.property-form label small { margin-left: 4px; color: var(--muted); font-weight: 400; }
.upload-selection { min-height: 22px; margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.upload-selection.is-error { color: var(--danger); }
.owner-photo-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.owner-photo-preview[hidden] { display: none; }
.owner-photo-item { min-width: 0; margin: 0; overflow: hidden; background: #faf9f6; border: 1px solid var(--line); border-radius: 4px; }
.owner-photo-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ece8df; }
.owner-photo-media img { width: 100%; height: 100%; object-fit: cover; }
.owner-photo-remove { position: absolute; top: 7px; right: 7px; color: var(--white); background: rgba(24,22,19,.82); border-color: rgba(255,255,255,.35); }
.owner-photo-item figcaption { overflow: hidden; padding: 8px 10px; font-size: .66rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.form-grid.numeric { grid-template-columns: repeat(5, 1fr); }
.image-manager { margin-top: 28px; }
.image-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.image-manager-heading h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.image-manager-heading span { color: var(--muted); font-size: .72rem; }
.image-manager-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.image-manager-item { min-width: 0; overflow: hidden; background: #faf9f6; border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, opacity .2s; }
.image-manager-item.is-cover { border-color: var(--gold-dark); }
.image-manager-item.is-deleted { opacity: .45; }
.image-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ece8df; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-badge { position: absolute; top: 9px; left: 9px; padding: 5px 8px; color: var(--ink); background: var(--gold); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.image-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px; }
.image-controls label { margin: 0; }
.image-controls input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--gold-dark); }
.cover-choice, .delete-choice { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); cursor: pointer; }
.cover-choice span, .delete-choice span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.delete-choice { justify-self: end; color: var(--danger); }
.image-delete-button { padding: 0; color: var(--danger); background: transparent; border: 0; font-size: inherit; font-weight: inherit; }
.image-order-actions { display: flex; gap: 4px; }
.image-order-actions .icon-button { width: 32px; height: 32px; }
.image-order-actions .icon-button:disabled { opacity: .28; cursor: default; }.toggle-row { display: flex; gap: 45px; }
.toggle { display: flex; align-items: center; gap: 12px; }
.toggle input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; opacity: 0; clip-path: inset(50%); }
.toggle:focus-within > span { box-shadow: 0 0 0 3px rgba(205,164,52,.2); }
.toggle > span { position: relative; width: 42px; height: 23px; background: #c9c3ba; border-radius: 12px; transition: .2s; }
.toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; background: var(--white); border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(19px); }
.toggle div { display: flex; flex-direction: column; }
.toggle small { font-weight: 400; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 30px; }

@media (max-width: 1200px) and (min-width: 1001px) {
  h1 { font-size: 4.25rem; }
  h2 { font-size: 3.3rem; }
  .hero-content h1 { font-size: 4.65rem; }
}

@media (max-width: 1000px) {
  .site-header { min-height: 72px; padding: 0 22px; }
  .menu-toggle { display: inline-grid !important; border-color: currentColor; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 20px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px; }
  .nav-cta { margin-top: 8px; justify-content: center; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .filters label { border-bottom: 1px solid var(--line); }
  .detail-body { grid-template-columns: 1fr; }
  .schedule-panel { position: static; }
  .form-page { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .lead-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid.numeric { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.35rem; }
  .brand-copy strong { font-size: 1.22rem; }
.brand-copy small { font-size: .5rem; }
  .brand-logo-frame { width: 170px; }
  .brand-footer .brand-logo-frame { width: 224px; }
  .login-brand-logo { width: 220px; }
  .hero { min-height: 760px; height: calc(100svh - 16px); max-height: none; padding-bottom: 44px; }
  .hero-content { width: calc(100% - 44px); margin: 0 22px; padding: 76px 0 0; }
  .hero-content h1 { font-size: 3rem; line-height: .98; overflow-wrap: anywhere; }
  .hero-content h1 em { display: block; }
  .hero-copy { font-size: .95rem; line-height: 1.65; }
  .hero-actions { margin-top: 24px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(18,17,14,.82), rgba(18,17,14,.4)); }
  .hero-signature { display: none; }
  .hero-actions .button { width: 100%; }
  .property-section { padding: 80px 18px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .filters { grid-template-columns: 1fr; }
  .filters label { border-right: 0; }
  .property-grid { grid-template-columns: 1fr; }
  .property-info h3 { min-height: 0; }
  .about-section { grid-template-columns: 1fr; }
  .about-image { min-height: 480px; }
  .about-content { padding: 70px 24px; }
  .owner-cta { grid-template-columns: 1fr; padding: 70px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; padding: 60px 24px 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 20px 24px; }
  .detail-hero { padding: 110px 18px 25px; }
  .detail-heading { align-items: start; flex-direction: column; margin-top: 35px; }
  .detail-heading > div { width: 100%; min-width: 0; }
  .detail-heading h1 { max-width: 100%; font-size: 2.75rem; overflow-wrap: anywhere; }
  .detail-price { min-width: 0; text-align: left; }
  .detail-gallery { grid-template-columns: 1fr; }
  .gallery-tile:not(:first-child) { display: none; }
  .detail-body { padding: 45px 18px 80px; }
  .visit-datetime { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-stats > span { border-bottom: 1px solid var(--line); }
  .form-page { padding: 120px 18px 70px; }
  .owner-form, .property-form { padding: 24px 18px; }
  .form-grid, .form-grid.numeric { grid-template-columns: 1fr; }
  .admin-shell, .admin-form-shell { padding: 115px 16px 70px; }
  .admin-topbar, .admin-form-heading { align-items: start; flex-direction: column; }
  .admin-actions { width: 100%; justify-content: space-between; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .lead-grid { grid-template-columns: 1fr; }
  .gallery-dialog-shell { grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: 52px minmax(0, 1fr) 44px; padding: 8px; }
  .gallery-dialog .icon-button { width: 44px; height: 44px; }
  .toggle-row { align-items: start; flex-direction: column; gap: 20px; }
  .image-manager-grid { grid-template-columns: 1fr; }
  .owner-photo-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-card { padding: 35px 24px; }
}




.photo-credit { display: block; margin-top: 6px; color: rgba(255,255,255,.48); font-size: .62rem; }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }



/* Responsive refinements */
@media (max-width: 1000px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 3.15rem; }
  .hero { min-height: 700px; height: calc(100svh - 20px); max-height: 880px; }
  .hero-content { width: min(660px, 88vw); margin-left: 6vw; }
  .hero-content h1 { font-size: 4.25rem; }
  .about-section { grid-template-columns: 1fr; }
  .about-image { min-height: 520px; max-height: 720px; }
  .about-content { padding: 72px 8vw; }
  .about-content h2 { font-size: 3.25rem; }
}

@media (max-width: 700px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.35rem; }
  .hero { min-height: 650px; height: calc(100svh - 16px); max-height: none; padding-bottom: 24px; }
  .hero-media { object-position: 50% center; }
  .hero-content { width: calc(100% - 44px); margin: 0 22px; padding: 72px 0 0; }
  .hero-content h1 { font-size: 3rem; line-height: .98; }
  .hero-copy { font-size: .95rem; line-height: 1.6; }
  .hero-actions { margin-top: 22px; }
  .about-image { min-height: 460px; max-height: 600px; }
  .about-content h2 { font-size: 2.65rem; }
}

@media (max-width: 700px) and (max-height: 700px) {
  .hero { min-height: 650px; }
  .hero-content { padding-top: 64px; }
  .hero-content h1 { font-size: 2.55rem; }
  .hero-copy { font-size: .9rem; line-height: 1.5; }
  .hero-actions { margin-top: 16px; }
  .button { min-height: 44px; }
}

video.hero-media {
  display: block;
  object-fit: cover;
  background: #061820;
}

.property-closed {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 18px 20px;
  transform: translateY(-50%);
  color: #fff;
  background: #23463b;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
}
.property-card.is-closed .property-image img { filter: saturate(.58) brightness(.74); }
.property-card.is-closed .property-info h3 { opacity: .82; }
.detail-closed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.closed-panel .button { margin-top: 22px; }
.admin-views { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
.admin-views svg { color: var(--gold-dark); }
.status.deal-open { color: #265b3e; background: #dceadf; }
.status.deal-closed { color: #fff; background: #23463b; }

@media (max-width: 1000px) and (min-width: 701px) {
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics div:nth-child(2) { border-right: 0; }
  .admin-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}