:root {
    --color-ink: #232b29;
    --color-muted: #727a75;
    --color-green: #315b4c;
    --color-green-dark: #244739;
    --color-cream: #f5f3ed;
    --color-paper: #fff;
    --color-line: #e6e5df;
    --font-body: "DM Sans", sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-ink); background: var(--color-paper); font-family: var(--font-body); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.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; }

.site-header { position: relative; z-index: 5; background: var(--color-paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--color-green); font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; }
.site-nav > a:not(.button):hover, .text-link:hover, .footer-grid a:hover { color: var(--color-green); }
.menu-toggle { display: none; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-dark { color: #fff; background: var(--color-green); }
.button-dark:hover { background: var(--color-green-dark); }
.button-light { color: var(--color-ink); background: #fff; }
.button-light:hover { background: var(--color-cream); }
.button-outline-light { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.button-outline-light:hover { color: var(--color-ink); background: #fff; }
.button-full { width: 100%; }
.nav-cta { min-height: 42px; }

.hero { position: relative; display: flex; min-height: 580px; align-items: center; overflow: hidden; color: #fff; background: #526357 url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2200&q=90") center 52% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,35,29,.72), rgba(20,35,29,.22) 70%, rgba(20,35,29,.05)); }
.hero-content { position: relative; z-index: 1; padding-block: 90px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
.hero h1, .page-hero h1 { margin: 12px 0 18px; font-family: var(--font-display); font-size: clamp(48px, 6vw, 76px); font-weight: 500; letter-spacing: -.045em; }
.hero-copy { margin-bottom: 30px; color: rgba(255,255,255,.85); font-size: 16px; }
.eyebrow { margin-bottom: 12px; color: var(--color-green); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-light { color: #d7e3d9; }
.hero-caption { position: absolute; right: 24px; bottom: 20px; color: rgba(255,255,255,.75); font-size: 10px; letter-spacing: .08em; }
.search-panel-wrap { position: relative; z-index: 2; margin-top: -1px; background: var(--color-cream); }
.search-panel { display: grid; grid-template-columns: 1fr 1.3fr 1.8fr auto; align-items: center; gap: 18px; min-height: 116px; padding-block: 22px; }
.search-intro { display: flex; align-items: center; gap: 13px; }
.search-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e8e8df; font-size: 26px; }
.search-intro strong, .search-intro span { display: block; }
.search-intro strong { font-size: 12px; }
.search-intro div > span { color: var(--color-muted); font-size: 11px; }
.field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.search-panel input, .filter-field input, .filter-field select, .form-field input, .form-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--color-line); border-radius: 2px; outline: none; color: var(--color-ink); background: #fff; }
.search-panel input:focus, .filter-field input:focus, .filter-field select:focus, .form-field input:focus, .form-field textarea:focus { border-color: var(--color-green); box-shadow: 0 0 0 2px rgba(49,91,76,.12); }
.search-panel input::placeholder, .filter-field input::placeholder { color: #9a9d97; }

.section { padding-block: 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .story-inner h2, .cta-card h2, .about-content h2, .contact-copy h2 { margin-bottom: 0; font-family: var(--font-display); font-size: clamp(30px, 3.3vw, 43px); font-weight: 500; letter-spacing: -.035em; }
.text-link { color: var(--color-green); font-size: 12px; font-weight: 700; }
.text-link span { padding-left: 8px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.property-card { overflow: hidden; border: 1px solid var(--color-line); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(33,44,37,.08); }
.property-image-link { position: relative; display: block; overflow: hidden; background: var(--color-cream); }
.property-image { width: 100%; height: 235px; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .property-image { transform: scale(1.035); }
.property-badge, .featured-badge { position: absolute; top: 14px; left: 14px; padding: 5px 10px; color: var(--color-ink); background: #fff; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.featured-badge { right: 14px; left: auto; color: #fff; background: var(--color-green); }
.property-card-content { padding: 18px 19px 16px; }
.property-location { margin-bottom: 5px; color: var(--color-green); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.property-card h3 { margin-bottom: 5px; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.property-card h3 a:hover { color: var(--color-green); }
.property-address { margin-bottom: 18px; color: var(--color-muted); font-size: 11px; }
.property-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid var(--color-line); }
.property-price { font-size: 16px; }
.property-price span { color: var(--color-muted); font-size: 10px; font-weight: 500; }
.property-facts { color: var(--color-muted); font-size: 10px; white-space: nowrap; }
.property-facts span { padding-inline: 3px; color: #b7bab4; }
.empty-state { padding: 45px 20px; border: 1px solid var(--color-line); color: var(--color-muted); text-align: center; }
.empty-state h3 { margin-bottom: 8px; color: var(--color-ink); font-family: var(--font-display); font-size: 24px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.category-card { position: relative; display: block; min-height: 230px; overflow: hidden; background: var(--color-cream); }
.category-card > img, .category-card-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-card > img { object-fit: cover; transition: transform .35s ease; }
.category-card:hover > img { transform: scale(1.04); }
.category-card-shade { background: linear-gradient(0deg, rgba(20,35,29,.78), rgba(20,35,29,.02) 78%); }
.category-card-content { position: absolute; right: 18px; bottom: 17px; left: 18px; display: flex; align-items: end; justify-content: space-between; gap: 10px; color: #fff; }
.category-card-content strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.category-card-content > span { font-size: 11px; }
.location-section, .how-it-works-section { background: var(--color-cream); }
.location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.location-card { display: flex; min-height: 105px; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--color-line); background: #fff; transition: border-color .2s ease, transform .2s ease; }
.location-card:hover { transform: translateY(-2px); border-color: var(--color-green); }
.location-card-pin { color: var(--color-green); font-size: 26px; }
.location-card > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.location-card strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.location-card > span:nth-child(2) > span, .location-card-count { color: var(--color-muted); font-size: 10px; }
.location-card-count { align-self: end; white-space: nowrap; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-card { padding: 27px; border: 1px solid var(--color-line); background: #fff; }
.step-card > span { color: var(--color-green); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.step-card h3 { margin: 20px 0 8px; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.step-card p { margin-bottom: 0; color: var(--color-muted); font-size: 12px; }
.faq-list { max-width: 850px; margin-inline: auto; border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary { position: relative; padding: 20px 42px 20px 0; cursor: pointer; font-family: var(--font-display); font-size: 18px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; right: 5px; content: "+"; color: var(--color-green); font-family: var(--font-body); font-size: 23px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 700px; margin: -4px 0 20px; color: var(--color-muted); font-size: 13px; }

.story-band { padding-block: 76px; color: #fff; background: var(--color-green); }
.story-inner { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 45px; }
.story-inner h2 { font-size: clamp(31px, 3.5vw, 44px); }
.story-inner > p { max-width: 390px; margin-bottom: 0; color: rgba(255,255,255,.76); font-size: 13px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 42px 48px; background: var(--color-cream); }
.cta-card h2 { margin-bottom: 8px; }
.cta-card p:last-child { margin-bottom: 0; color: var(--color-muted); font-size: 13px; }

.page-hero { display: flex; min-height: 350px; align-items: end; padding-block: 70px; color: #fff; background: linear-gradient(90deg, rgba(28,48,39,.76), rgba(28,48,39,.28)), url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=85") center 55% / cover no-repeat; }
.page-hero-small { min-height: 255px; }
.page-hero h1 { margin-bottom: 4px; font-size: clamp(43px, 5vw, 62px); }
.filters-panel { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(100px, .7fr)) auto; align-items: end; gap: 12px; margin-bottom: 40px; padding: 20px; border: 1px solid var(--color-line); background: var(--color-cream); }
.filter-field label, .form-field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.filter-field input, .filter-field select { min-height: 44px; padding-block: 9px; font-size: 12px; }
.filters-panel .button { min-height: 44px; padding-inline: 15px; white-space: nowrap; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.results-heading h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.results-heading > span { color: var(--color-muted); font-size: 12px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination-link { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding-inline: 12px; border: 1px solid var(--color-line); color: var(--color-green); font-size: 12px; font-weight: 600; }
.pagination-link:hover, .pagination-link.is-current { border-color: var(--color-green); color: #fff; background: var(--color-green); }
.pagination-ellipsis { color: var(--color-muted); }

.property-detail { padding-top: 45px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--color-green); font-size: 12px; font-weight: 700; }
.detail-image-wrap { position: relative; display: flex; flex-flow: row nowrap; height: min(45vw, 480px); min-height: 300px; overflow-x: auto; overflow-y: hidden; background: var(--color-cream); scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.detail-image-wrap::-webkit-scrollbar { display: none; }
.detail-image-wrap .property-badge { z-index: 1; }
.detail-image { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.detail-gallery-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--color-ink); cursor: pointer; font-size: 30px; line-height: 1; }
.detail-gallery-arrow:hover { background: #fff; }
.detail-gallery-previous { left: 16px; }
.detail-gallery-next { right: 16px; }
.detail-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.detail-gallery-thumbnails { display: flex; flex-flow: row nowrap; min-width: 0; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.detail-gallery-thumbnail { flex: 0 0 88px; height: 64px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--color-cream); cursor: pointer; }
.detail-gallery-thumbnail.is-active { border-color: var(--color-green); }
.detail-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-count { flex: 0 0 auto; color: var(--color-muted); font-size: 12px; }

.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 65px; padding-top: 42px; }
.detail-main h1 { margin: 5px 0 8px; font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.detail-address { color: var(--color-muted); font-size: 13px; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 30px; margin-block: 26px 40px; padding-block: 17px; border-block: 1px solid var(--color-line); color: var(--color-muted); font-size: 12px; }
.detail-facts strong { color: var(--color-ink); }
.detail-main h2 { margin: 32px 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.detail-description { color: #5f6862; line-height: 1.9; }
.highlight-list { display: flex; flex-wrap: wrap; gap: 10px; }
.highlight-list span { padding: 8px 12px; border: 1px solid var(--color-line); color: #5f6862; font-size: 11px; }
.contact-card { align-self: start; padding: 25px; border: 1px solid var(--color-line); box-shadow: 0 8px 30px rgba(33,44,37,.05); }
.detail-price { margin-bottom: 10px; font-size: 27px; font-weight: 700; letter-spacing: -.04em; }
.detail-price span { color: var(--color-muted); font-size: 12px; font-weight: 400; }
.contact-card > p:not(.eyebrow):not(.detail-price) { color: var(--color-muted); font-size: 12px; }
.phone-link { display: block; margin-top: 17px; color: var(--color-green); font-size: 12px; font-weight: 700; text-align: center; }

.about-content { display: grid; grid-template-columns: .8fr 1fr; gap: 100px; }
.about-content h2 { max-width: 370px; }
.about-copy { max-width: 600px; color: #5f6862; }
.about-copy .lead-copy { color: var(--color-ink); font-family: var(--font-display); font-size: 25px; line-height: 1.4; }
.about-copy p { margin-bottom: 19px; }
.about-copy .button { margin-top: 10px; }

.contact-layout { display: grid; grid-template-columns: .8fr 1fr; gap: 90px; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p:not(.eyebrow) { max-width: 390px; color: var(--color-muted); }
.contact-detail { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; font-size: 13px; font-weight: 600; }
.contact-detail-label { color: var(--color-muted); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.form-card { padding: 30px; border: 1px solid var(--color-line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 17px; }
.form-field label span { color: var(--color-muted); font-weight: 400; }
.form-field input, .form-field textarea { font-size: 12px; }
.form-field textarea { min-height: 130px; resize: vertical; }
.notice { margin-bottom: 18px; padding: 13px 15px; font-size: 12px; }
.notice p { margin-bottom: 5px; font-weight: 700; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-success { color: #24513e; background: #eaf3ed; }
.notice-error { color: #812c2c; background: #faeeee; }
.message-page { min-height: 54vh; padding-top: 100px; }
.message-page h1 { margin-bottom: 12px; font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); font-weight: 500; }
.message-page > p:not(.eyebrow) { margin-bottom: 28px; color: var(--color-muted); }

.site-footer { padding-top: 58px; color: rgba(255,255,255,.78); background: #202a26; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; padding-bottom: 45px; }
.social-icons{display: flex;gap: 8px;}
.social-icons a{color: #fff;text-decoration: none;font-size: 18px;}
.social-icons i{font-size: 18px; color: #fff;}
.brand-light { color: #fff; }
.brand-light .brand-mark { color: var(--color-green-dark); background: #dce7dc; }
.footer-note { margin: 17px 0 0; color: rgba(255,255,255,.57); font-size: 12px; }
.footer-heading { margin-bottom: 14px; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 11px; }
.footer-grid > div:not(:first-child) .footer-heading { margin-bottom: 3px; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 17px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 10px; }

@media (max-width: 980px) {
    .search-panel { grid-template-columns: 1fr 1.5fr auto; }
    .search-intro { display: none; }
    .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-location { grid-column: span 2; }
    .story-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .story-inner .button { justify-self: start; }
    .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-grid { grid-template-columns: 1fr; }
    .detail-grid { gap: 35px; }
    .about-content, .contact-layout { gap: 55px; }
}
@media (max-width: 680px) {
    .container { width: min(100% - 36px, 520px); }
    .header-inner { min-height: 70px; }
    .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--color-line); background: #fff; }
    .menu-toggle > span:not(.sr-only) { width: 17px; height: 1px; background: var(--color-ink); }
    .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-top: 1px solid var(--color-line); background: #fff; box-shadow: 0 10px 20px rgba(30,40,34,.08); }
    .site-nav.is-open { display: flex; flex-direction: column; }
    .site-nav > a:not(.button) { padding: 12px 2px; }
    .site-nav .nav-cta { margin-top: 8px; }
    .hero { min-height: 520px; background-position: 58% center; }
    .hero-content { padding-block: 65px; }
    .hero h1 { font-size: 54px; }
    .search-panel { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; }
    .search-panel .button { width: 100%; }
    .section { padding-block: 62px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .property-grid { grid-template-columns: 1fr; gap: 17px; }
    .property-image { height: 245px; }
    .story-band { padding-block: 57px; }
    .story-inner { grid-template-columns: 1fr; gap: 18px; }
    .story-inner > p { max-width: 100%; }
    .cta-card { align-items: flex-start; flex-direction: column; padding: 30px 25px; }
    .page-hero { min-height: 290px; }
    .page-hero-small { min-height: 220px; }
    .filters-panel { grid-template-columns: 1fr 1fr; padding: 14px; }
    .filter-location { grid-column: 1 / -1; }
    .filters-panel .button { grid-column: 1 / -1; }
    .results-heading h2 { font-size: 24px; }
    .detail-image-wrap { min-height: 240px; height: min(65vw, 340px); }
    .detail-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
    .detail-facts { gap: 13px 20px; }
    .about-content, .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .form-card { padding: 21px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; }
}
