/* legacyacres.com. Look carried over from Patrick's old site: Rubik, blue, charcoal, green
   prices, tan form buttons, listing rows with a price column. Measurements (sizes, weights,
   colors) were read off the old pages; the rules themselves are written for this site. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/rubik-latin.woff2) format("woff2");
}

:root {
  --ink: #242424;
  --grey: #9b9b9b;
  --blue: #147dc8;
  --blue-dark: #0f63a0;
  --tan: #c9a578;
  --green: #569863;
  --line: #e9e9e9;
  --tint: #f3f4f6;
  --field: #f1f1f1;
  --shadow: 0 1px 8px rgba(0, 0, 0, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.25rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 500; }
h3 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
s { text-decoration: line-through; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(800px, 100% - 2rem); }
.center { text-align: center; }
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.tint { background: var(--tint); }
.sub { color: var(--grey); margin-top: -.6em; }

.btn { display: inline-block; background: var(--blue); color: #fff; font: 500 15px/1.5 "Rubik", sans-serif; letter-spacing: .5px; padding: 11px 20px; border: 0; border-radius: 3px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-tan { background: var(--tan); color: #fff; font-weight: 700; }
.btn-tan:hover { background: #b99262; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; }
.logo img { width: 150px; }
.nav { display: none; margin-left: auto; gap: 1.6rem; }
.nav a, .nav-small a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav-small a:hover { color: var(--blue); }
.btn-call { margin-left: auto; white-space: nowrap; font-weight: 700; letter-spacing: 0; }
.nav-small { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; padding: .5rem 1rem .7rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .logo img { width: 200px; }
  .nav { display: flex; }
  .btn-call { margin-left: 0; }
  .nav-small { display: none; }
}

/* Home hero with the signup card */
.hero { background: #2f3a2c url(/img/hero.jpg) center/cover no-repeat; padding: clamp(2rem, 6vw, 4rem) 0; }
.hero h1 { color: #fff; text-align: center; font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.hero-card { background: #fff; padding: clamp(1.1rem, 3vw, 1.8rem); max-width: 900px; margin: 0 auto; }
.hero-card h2 { text-align: center; font-size: 1.25rem; }

/* Forms */
.field { margin-bottom: 1rem; flex: 1 1 220px; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
label { display: block; font-weight: 500; margin-bottom: .3rem; font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--field); border: 2px solid var(--field); border-radius: 3px; padding: .65em .8em; min-height: 46px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; outline: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #b3261e; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .3rem 0 .8rem; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.consent label { font-weight: 400; font-size: 13px; margin: 0; }
.consent.bad label { color: #b3261e; }
.fine { font-size: 13px; }
.form-error { background: #fdecea; border: 1px solid #f1b5ae; color: #7a1a12; border-radius: 3px; padding: .7em 1em; font-size: 14px; }
.form-done { background: #eef7f0; border: 1px solid #b9dcc0; border-radius: 3px; padding: 1em 1.2em; font-weight: 500; color: #1f5a2c; }
.form-done p { margin: 0; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Search bar above the listings */
.search { display: grid; gap: 10px; background: #fff; box-shadow: var(--shadow); padding: 15px; margin: 1.2rem auto 2rem; max-width: 1080px; }
.search select { font-size: 14px; font-weight: 500; color: #777; min-height: 44px; }
.search .btn { font-weight: 700; min-height: 44px; }
@media (min-width: 800px) { .search { grid-template-columns: repeat(5, 1fr); } }
.no-results { padding: 2rem 0; }

/* Listing rows */
.listings { display: grid; gap: 28px; margin-bottom: 2rem; }
.listing { display: grid; background: #fff; box-shadow: var(--shadow); }
.listing[hidden] { display: none; }
.listing-photo { position: relative; display: block; background: var(--tint); min-height: 220px; }
.listing-photo picture, .listing-photo img, .no-photo { width: 100%; height: 100%; }
.listing-photo img { object-fit: cover; aspect-ratio: 4 / 3; }
.featured { position: absolute; left: 20px; top: 20px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 1px; padding: 6px 18px; border-radius: 3px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; line-height: 32px; padding: 0 18px; border-radius: 100px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f04b4b; }
.pill-for-sale::before { background: #2fe08a; }
.pill-under-contract::before { background: #f5c518; }
.pill-off-market::before { background: #bbb; }
.listing-photo .pill { position: absolute; left: 20px; bottom: 20px; }
.listing-main { padding: 22px 26px; }
.listing-main h3 { font-size: 20px; line-height: 1.25; text-transform: uppercase; margin-bottom: 14px; }
.listing-main h3 a { color: var(--ink); text-decoration: none; }
.listing-main h3 a:hover { color: var(--blue); }
.listing-excerpt { color: var(--grey); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.listing-items { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.item { display: flex; align-items: center; gap: 12px; }
.tile { display: grid; place-items: center; width: 42px; height: 42px; background: #e9f0ee; color: #5c6f6a; border-radius: 3px; flex: none; }
.item strong { display: block; font-size: 16px; line-height: 1.2; }
.item small { color: var(--grey); font-size: 11px; }
.listing-price { padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.price-item { display: flex; flex-direction: column; }
.price-title { font-size: 12px; text-transform: uppercase; color: var(--grey); }
.price-main { font-size: 26px; font-weight: 500; color: var(--green); line-height: 1.15; }
.price-note { font-size: 14px; }
.price-note b { font-weight: 700; }
.price-note s { font-weight: 700; }
.listing-price .view { align-self: flex-start; margin-top: auto; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 14px 26px; }
@media (min-width: 800px) {
  .listing:not(.stacked) { grid-template-columns: 30% 1fr 30%; min-height: 290px; }
  .listing:not(.stacked) .listing-photo img { aspect-ratio: auto; position: absolute; inset: 0; }
  .listing:not(.stacked) .listing-price { text-align: right; }
  .listing:not(.stacked) .price-item { align-items: flex-end; }
  .listing:not(.stacked) .listing-price .view { align-self: flex-end; }
}
/* The same row turned into a narrow card (listing page side column) */
.stacked .listing-main, .stacked .listing-price { padding: 18px 20px; }
.stacked .listing-main { padding-bottom: 0; }
.stacked .listing-main h3 { font-size: 17px; }
.stacked .listing-excerpt { font-size: 13px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; }
@media (min-width: 800px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.steps li { background: #fff; box-shadow: var(--shadow); padding: 1.8rem 1.3rem; text-align: center; }
.steps h3 { font-weight: 500; }
.steps p { color: var(--grey); font-size: 14px; margin: 0; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 1.3rem; }

/* Story, plain pages */
.story { display: grid; gap: 2rem; align-items: start; }
.story-photo { margin-top: 1.5rem; max-width: 420px; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 420px; gap: 3rem; } }
.prose { font-size: 15px; line-height: 1.6; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; font-size: 1.05rem; }
.prose li { margin-bottom: .35em; }
.post-date { color: var(--grey); font-size: 14px; }
.legal { overflow-wrap: anywhere; }

/* One listing: photo carousel */
.listing-page { padding-top: 0; }
.carousel { margin-bottom: 14px; }
.carousel-main { background: var(--tint); }
.carousel-main .slide { display: block; }
.carousel-main .slide[hidden] { display: none; }
.carousel-main img { width: 100%; aspect-ratio: 4 / 3; max-height: 78vh; object-fit: cover; }
.carousel-strip { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 6px; }
.thumbs { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; max-width: 720px; padding: 2px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 108px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .75; }
.thumb img { width: 108px; height: 68px; object-fit: cover; }
.thumb.on { opacity: 1; outline: 3px solid var(--ink); }
.arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 16px; cursor: pointer; }

/* One listing: boxed sections and side column */
.listing-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .listing-layout { grid-template-columns: 1fr 333px; gap: 40px; } }
.listing-body { border: 1px solid var(--line); }
.box { padding: 22px 20px; border-bottom: 1px solid var(--line); }
.box:last-child { border-bottom: 0; }
@media (min-width: 700px) { .box { padding: 26px 40px; } }
.box h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 18px 0 14px; }
.box h2 { font-size: 24px; font-weight: 400; margin-bottom: 18px; }
.box.prose h2 { margin-top: 0; }
.listing-lede { color: var(--grey); font-size: 13px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 10px; text-align: center; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .features { grid-template-columns: repeat(5, 1fr); } }
.feature svg { color: #7b8a86; margin: 0 auto 8px; display: block; }
.feature-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #a4a4a4; margin: 0 0 4px; }
.feature-value { color: var(--green); margin: 0; overflow-wrap: anywhere; }
.option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.option:first-of-type { border-top: 0; padding-top: 0; }
.option p { margin: 0; font-size: 15px; }
.option-price { font-size: 24px; font-weight: 500; color: var(--green); margin-right: 6px; }
.reserve { letter-spacing: 1px; }
.reserve.off { background: var(--grey); cursor: default; }
.map { padding: 0; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.side-card { box-shadow: var(--shadow); padding: 20px; margin-bottom: 28px; }
.side-card h3 { font-size: 20px; }
.side-card .field-row { display: block; }
.side-card .btn-tan { width: 100%; }
.owner p { margin: 0 0 4px; font-size: 13px; }
.owner .owner-name { font-size: 16px; font-weight: 700; }
.owner .owner-title { color: var(--grey); font-size: 12px; }
.owner .owner-bio { color: var(--green); font-weight: 500; font-size: 12px; margin: 6px 0 8px; }

/* Full-screen photo viewer */
.viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.viewer img { max-width: 100%; max-height: 92vh; }
.viewer button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; font-size: 1.8rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.viewer .close { top: 1rem; right: 1rem; }
.viewer .prev { left: 1rem; top: 50%; }
.viewer .next { right: 1rem; top: 50%; }

/* Footer */
.site-footer { background: var(--ink); color: #ddd; padding: 2.2rem 0 1.4rem; font-size: 14px; }
.site-footer a { color: #fff; font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-row { display: grid; gap: 1.2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 2.5rem; }
.site-footer p { margin: 0 0 .3em; }
.social a { margin-right: 1rem; }
.copyright { text-align: center; margin-top: 1.6rem !important; font-size: 12px; font-weight: 500; color: #fff; }
@media (min-width: 800px) { .footer-row { grid-template-columns: 1fr auto auto; gap: 3rem; } }
