:root {
    color-scheme: light;
    --paper: #f7f5ed;
    --white: #fffefa;
    --green: #20372a;
    --muted: #526456;
    --line: #d7dbcd;
    --accent: #d8ef9d;
    --tint: #e8eedc;
    --ink: #1f2e23;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p, ul { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .7rem; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 6vw, 4rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #65781c; outline-offset: 3px; }

.wrap { width: min(1152px, calc(100% - 3rem)); margin-inline: auto; }
.narrow { max-width: 36rem; }
.wide-form { max-width: 52rem; }
.page-space { padding-block: 3rem 4.6rem; min-height: 65vh; }
.muted, .optional, small { color: var(--muted); }
.optional { font-size: .74rem; font-weight: 500; margin-left: .35rem; }
.skip { position: absolute; left: .7rem; top: .7rem; transform: translateY(-200%); z-index: 3; background: var(--white); padding: .5rem .8rem; }
.skip:focus { transform: none; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.nav, .footer-inner { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .45rem 1.15rem; }
.nav nav > a:not(.button), .plain { text-decoration: none; font-weight: 640; }
.nav nav > a:hover, .plain:hover, .text-link:hover { text-decoration: underline; }
.brand { display: inline-block; color: var(--green); font-weight: 850; letter-spacing: -.07em; font-size: clamp(1.25rem, 4vw, 1.7rem); text-decoration: none; white-space: nowrap; }
.brand span { color: #66831b; }
.plain { border: 0; background: transparent; color: inherit; padding: 0; }
.button { display: inline-flex; min-height: 2.7rem; align-items: center; justify-content: center; gap: .8rem; border: 1px solid transparent; padding: .62rem 1rem; text-align: center; border-radius: .6rem; text-decoration: none; font-weight: 750; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #345740; }
.button.secondary { border-color: #879584; background: var(--white); color: var(--green); }
.button.secondary:hover { background: var(--tint); }

.hero { background: var(--green); color: white; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(17rem, 26rem); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-copy h1 { font-size: clamp(3rem, 6.5vw, 5.9rem); letter-spacing: -.068em; line-height: .98; }
.hero-copy h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: normal; }
.hero-copy p { margin: 1.35rem 0 0; max-width: 26rem; font-size: 1.12rem; color: #e6eee1; }
.search { background: var(--white); color: var(--ink); padding: clamp(1rem, 3vw, 1.7rem); border-radius: 1rem; display: grid; gap: .95rem; }
.search .primary { justify-content: space-between; }
.search-location, .two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

label { display: grid; gap: .32rem; font-size: .92rem; font-weight: 700; min-width: 0; }
label .optional { display: inline; }
input:not([type=checkbox]), select, textarea { background: var(--white); color: var(--ink); width: 100%; min-width: 0; border: 1px solid #9ca797; border-radius: .45rem; padding: .65rem .75rem; font-weight: 450; }
input:placeholder-shown, textarea:placeholder-shown { color: var(--ink); }
input[type=checkbox] { accent-color: var(--green); width: 1.1rem; height: 1.1rem; flex: none; }
small { font-weight: 500; }

.results { padding-block: 2.6rem 4.5rem; min-height: 45vh; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.card, .surface, .empty { border: 1px solid var(--line); background: var(--white); border-radius: .75rem; overflow: hidden; }
.card-cover { display: grid; aspect-ratio: 16 / 10; place-items: center; position: relative; background: repeating-linear-gradient(140deg, #e9efde, #e9efde 13px, #e4ebd7 13px, #e4ebd7 26px); text-decoration: none; color: var(--green); text-align: center; }
.card-cover span { background: var(--white); padding: .4rem .65rem; border-radius: .4rem; }
.card-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.card-body, .form-panel { padding: clamp(1rem, 3vw, 1.6rem); }
.card h3 a { text-decoration: none; overflow-wrap: anywhere; }
.card h3 a:hover { text-decoration: underline; }
.kicker, .want-label { color: var(--muted); font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin-bottom: 0; }
.chips li, .state { display: inline-flex; align-items: center; background: var(--tint); color: var(--green); border-radius: 2rem; font-size: .8rem; font-weight: 650; padding: .24rem .63rem; }
.empty { padding: 2rem; text-align: center; }
.text-link { color: #31543a; font-weight: 700; text-underline-offset: .18em; }
.pagination, .actions, .message-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.pagination { justify-content: center; }
.footer-inner { min-height: 5.5rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner p { color: var(--muted); margin: 0; }

.fields { display: grid; gap: 1rem; margin-top: .75rem; }
.fields > .button { justify-self: start; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: .55rem; margin: 0; padding: .85rem; }
legend { font-weight: 750; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.check-grid label, .edit-photos label span { display: flex; align-items: center; gap: .45rem; }
.edit-photos { display: flex; flex-wrap: wrap; gap: .75rem; }
.edit-photos img { width: 6rem; height: 4.5rem; border-radius: .3rem; object-fit: cover; }
.flash { padding-top: .8rem; }
.notice { background: var(--tint); color: var(--green); margin: 0 0 .5rem; border-radius: .5rem; padding: .75rem 1rem; }
.notice.error { background: #f7e8e3; color: #711f18; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.split-form { margin-top: 1rem; }
.back-link { display: inline-block; margin-bottom: 1.25rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .46fr); gap: 1.7rem; }
.detail-aside { align-self: start; }
.detail-aside h2, .detail-copy h2 { font-size: 1.45rem; }
.detail-copy { margin-top: 1.25rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.gallery a { border-radius: .55rem; overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery a:first-child img { aspect-ratio: 16 / 10; object-fit: contain; }
.contact, .report { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.report summary { color: var(--muted); cursor: pointer; font-weight: 700; }
.report .fields { margin-top: .75rem; }
.rows > a { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .9rem 1rem; text-decoration: none; }
.rows > a + a { border-top: 1px solid var(--line); }
.rows > a:hover { background: var(--tint); }
.rows > a span { color: var(--muted); }
.messages { display: grid; gap: .7rem; margin-block: 1.2rem; }
.message { width: min(100%, 37rem); background: var(--white); border: 1px solid var(--line); border-radius: .65rem; padding: .8rem 1rem; }
.message.outgoing { background: var(--tint); justify-self: end; }
.message > p:last-child { margin-bottom: 0; }

@media (max-width: 840px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { gap: 1.5rem; }
}
@media (max-width: 640px) {
    .wrap { width: min(100% - 1.5rem, 1152px); }
    .nav { min-height: 4rem; align-items: flex-start; padding-block: .55rem; }
    .nav nav { gap: .35rem .65rem; font-size: .86rem; }
    .nav-action { padding: .35rem .6rem; min-height: 2rem; }
    .hero-inner, .detail-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
    .cards { grid-template-columns: 1fr; }
    .two-cols { grid-template-columns: 1fr; }
    .results, .page-space { padding-block: 1.75rem 3rem; }
    .footer-inner { gap: .5rem; flex-wrap: wrap; padding-block: 1rem; }
}
