:root {
  --ink: #1b2924;
  --muted: #777d77;
  --paper: #f8f7f4;
  --white: #fff;
  --green: #294d40;
  --line: #e8e7e1;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header { height: 78px; background: var(--paper); }
.nav, .nav nav { display: flex; align-items: center; }
.nav { height: 100%; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -1px; }
.brand__mark { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--green); font-family: var(--serif); font-size: 21px; font-weight: 500; }
.brand__light { font-weight: 400; }
.nav nav { gap: 35px; margin-left: 105px; color: #515953; font-size: 13px; }
.nav nav a:hover, .nav__contact:hover { color: var(--green); }
.nav__contact { padding: 11px 16px; border: 1px solid #d9ddd7; font-size: 13px; }
.nav__contact span { margin-left: 9px; }

.hero { position: relative; min-height: 565px; overflow: hidden; color: var(--white); background: #43574b url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2200&q=85") center 55% / cover no-repeat; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 34, 28, .72), rgba(25, 38, 31, .27) 70%), linear-gradient(0deg, rgba(17, 28, 23, .2), transparent 60%); }
.hero__content { position: relative; z-index: 1; padding-top: 96px; }
.eyebrow { display: block; color: #6a8274; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow--light { color: #d1ddd2; }
.hero h1 { margin: 17px 0 14px; font: 500 clamp(50px, 6vw, 76px)/1.07 var(--serif); letter-spacing: -2px; }
.hero h1 em { color: #d0d9c9; font-weight: 500; }
.hero__content > p { margin: 0; color: rgba(255,255,255,.84); font-size: 15px; }
.search-panel { display: flex; align-items: end; gap: 0; width: fit-content; margin-top: 38px; padding: 12px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px #0b201a33; }
.search-field { display: flex; width: 230px; flex-direction: column; gap: 8px; padding: 4px 18px; border-right: 1px solid var(--line); }
.search-field span, .filters label { color: #727a73; font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.search-field input, .search-field select, .filters input, .filters select { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 13px var(--sans); }
.search-panel .button { margin-left: 12px; }
.hero__note { position: absolute; right: max(24px, calc((100% - 1160px) / 2)); bottom: 28px; z-index: 1; font: italic 14px var(--serif); color: #fff; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; border: 0; font: 600 12px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.button--primary { color: #fff; background: var(--green); }
.button--primary:hover { background: #1d3d32; }
.button--outline { border: 1px solid #d5d8d1; color: var(--ink); background: transparent; }
.button--outline:hover { border-color: var(--green); color: var(--green); }
.button--light { color: var(--ink); background: #fff; }
.button--light:hover { background: #e7ebe4; }

.section { padding-top: 84px; padding-bottom: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .callout h2, .detail h1, .detail__description h2 { margin: 11px 0 8px; font: 500 38px/1.2 var(--serif); letter-spacing: -.6px; }
.muted { color: var(--muted); }
.section-heading p { margin: 0; font-size: 13px; }
.result-count { padding-bottom: 6px; color: var(--muted); font-size: 12px; }
.property-results__header { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.filter-error { padding: 18px; color: #8b2929; background: #fff; font-size: 13px; }
.filters { display: flex; align-items: end; gap: 12px; margin-bottom: 27px; padding: 15px 18px; border: 1px solid var(--line); background: #fff; }
.filters label { display: grid; width: 180px; gap: 8px; }
.filters input, .filters select { min-height: 25px; }
.filters .button { min-height: 39px; margin-left: auto; }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.property-card { min-width: 0; background: #fff; }
.property-card__image { position: relative; display: block; height: 230px; overflow: hidden; background: #e8e9e3; }
.property-card__image img, .detail__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.property-card:hover .property-card__image img { transform: scale(1.035); }
.badge { position: absolute; top: 15px; left: 15px; padding: 8px 10px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 600; }
.favorite { position: absolute; top: 14px; right: 15px; display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--green); background: white; }
.property-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #708277; background: linear-gradient(135deg, #e5e8e1, #d4ddd5); }
.property-card__placeholder span { font: 500 38px var(--serif); opacity: .55; }
.property-card__body { padding: 17px 18px 18px; }
.property-card__location { margin: 0 0 8px; color: #778078; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; }
.property-card__location span { padding: 0 4px; }
.property-card h3 { margin: 0 0 16px; font: 500 19px var(--serif); }
.property-card__features { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: #6c746e; font-size: 10px; }
.property-card__price { margin: 0; color: var(--green); font-weight: 700; font-size: 17px; }
.property-card__price small, .detail__price small { color: var(--muted); font-size: 11px; font-weight: 400; }
.empty-state { padding: 68px 24px; text-align: center; background: #fff; }
.empty-state__icon { color: var(--green); font: 52px var(--serif); }
.empty-state h3 { margin: 15px 0 8px; font: 500 25px var(--serif); }
.empty-state p { margin: 0 auto 23px; color: var(--muted); font-size: 13px; }

.callout { padding: 58px 0; color: #fff; background: var(--green); }
.callout__inner { display: flex; align-items: center; justify-content: space-between; }
.callout h2 { margin-bottom: 0; font-size: 35px; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; }
.footer__inner p, .footer__inner > span { color: var(--muted); font-size: 11px; }
.brand--footer { font-size: 18px; }
.brand--footer .brand__mark { width: 29px; height: 29px; font-size: 19px; }

.detail { padding-top: 34px; padding-bottom: 90px; }
.back-link { display: inline-block; margin-bottom: 23px; color: #68746c; font-size: 12px; }
.detail__gallery { position: relative; overflow: hidden; background: #e5e8e1; }
.detail__track { height: min(52vw, 520px); min-height: 300px; }
.detail__image { position: relative; display: none; width: 100%; height: 100%; overflow: hidden; background: #e5e8e1; }
.detail__image.is-active { display: block; }
.carousel-control { position: absolute; top: 50%; display: inline-flex; min-height: 46px; align-items: center; gap: 10px; padding: 0 15px; transform: translateY(-50%); border: 0; color: var(--ink); background: rgba(255,255,255,.58); backdrop-filter: blur(5px); font: 600 11px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.carousel-control:hover { color: #fff; background: rgba(41,77,64,.8); }
.carousel-control span[aria-hidden="true"] { font-size: 19px; line-height: 1; }
.carousel-control--back { left: 16px; }
.carousel-control--next { right: 16px; }
.carousel-count { position: absolute; right: 16px; bottom: 16px; padding: 8px 11px; color: #fff; background: rgba(27,41,36,.72); font-size: 11px; }
.detail__content { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 23px; border-bottom: 1px solid var(--line); }
.detail h1 { margin: 8px 0; font-size: 39px; }
.detail__content .muted { margin: 0; font-size: 12px; }
.detail__published { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.detail__price { color: var(--green); font-size: 25px; font-weight: 700; }
.detail__facts { display: flex; gap: 60px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.detail__facts div { display: grid; gap: 6px; }
.detail__facts strong { font: 500 22px var(--serif); }
.detail__facts span { color: var(--muted); font-size: 11px; }
.detail__description { display: grid; grid-template-columns: 1fr 330px; gap: 70px; padding-top: 42px; }
.detail__description h2 { font-size: 30px; }
.detail__description > div > p { max-width: 650px; color: #626a64; font-size: 14px; line-height: 1.8; }
.detail__description aside { align-self: start; padding: 23px; background: #fff; }
.detail__description aside h3 { margin: 0 0 8px; font: 500 20px var(--serif); }
.detail__description aside p { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail__description aside .button { width: 100%; }
.messages { margin-bottom: 20px; padding: 15px 18px; border-left: 3px solid var(--green); background: #e8efe9; font-size: 13px; }
.messages p { margin: 0; }
.seller-page { min-height: 55vh; padding-top: 34px; }
.contact-fab { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: inline-flex; min-height: 54px; align-items: center; gap: 18px; padding: 0 20px; border: 0; color: #fff; background: rgba(41,77,64,.8); box-shadow: 0 8px 26px #16271f3b; font: 600 12px var(--sans); cursor: pointer; transition: background .2s; }
.contact-fab:hover { background: rgba(29,61,50,.9); }
.contact-dialog { width: min(480px, calc(100% - 28px)); max-width: none; max-height: min(90vh, 760px); padding: 30px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 22px 80px #0b201a4d; }
.contact-dialog::backdrop { background: rgba(15, 28, 22, .58); backdrop-filter: blur(3px); }
.contact-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.contact-dialog__header h2 { margin: 8px 0 0; font: 500 27px/1.2 var(--serif); }
.contact-dialog__close { width: 34px; height: 34px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 23px; cursor: pointer; }
.contact-dialog__intro { margin: 12px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; font-size: 11px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #d9ddd7; border-radius: 0; outline-color: var(--green); color: var(--ink); background: #fff; font: 400 13px/1.5 var(--sans); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .button { width: 100%; }
.contact-form ul { margin: 0; padding-left: 17px; color: #9a3737; font-size: 11px; font-weight: 400; }
.form-errors { padding: 10px 12px; color: #8b2929; background: #f9e9e7; font-size: 12px; }
.form-errors ul { margin: 0; padding-left: 17px; }

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 560px); }
  .site-header { height: 68px; }
  .nav nav { display: none; }
  .nav__contact { padding: 9px 11px; }
  .hero { min-height: 610px; background-position: 61% center; }
  .hero__content { padding-top: 78px; }
  .hero h1 { font-size: clamp(49px, 13vw, 68px); }
  .search-panel { width: 100%; flex-direction: column; align-items: stretch; gap: 13px; margin-top: 31px; padding: 17px; }
  .search-field { width: 100%; min-height: 55px; justify-content: center; padding: 3px 4px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .search-panel .button { margin: 0; }
  .hero__note { right: 16px; bottom: 20px; }
  .section { padding-top: 61px; padding-bottom: 68px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 32px; }
  .result-count { padding-top: 25px; white-space: nowrap; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .filters label { width: 100%; }
  .filters .button { grid-column: 1 / -1; margin: 0; }
  .property-grid { grid-template-columns: 1fr; gap: 17px; }
  .property-card__image { height: 250px; }
  .callout__inner { align-items: start; gap: 25px; flex-direction: column; }
  .callout h2 { font-size: 31px; }
  .footer__inner { align-items: start; gap: 12px; flex-direction: column; }
  .footer__inner p { margin: 0; }
  .detail { padding-top: 24px; }
  .detail__track { min-height: 220px; height: 64vw; }
  .carousel-control { min-height: 42px; gap: 7px; padding: 0 11px; font-size: 10px; }
  .carousel-control--back { left: 10px; }
  .carousel-control--next { right: 10px; }
  .carousel-count { right: 10px; bottom: 10px; }
  .detail__content { align-items: start; gap: 12px; flex-direction: column; }
  .detail h1 { font-size: 32px; }
  .detail__price { margin: 7px 0; }
  .detail__facts { justify-content: space-between; gap: 10px; }
  .detail__description { grid-template-columns: 1fr; gap: 25px; }
  .contact-fab { right: 14px; bottom: 14px; min-height: 49px; padding: 0 15px; }
  .contact-dialog { padding: 23px 19px; }
  .contact-dialog__header h2 { font-size: 24px; }
}
