:root {
  --green: #1F4A3A; --green-2: #2d6a52; --gold: #C9A24B; --terra: #B5532A; --cream: #FBF7F0; --sand: #f1e8d8;
  --ink: #23201b; --muted: #6a6256; --line: #e3d8c4; --white: #fff; --danger: #a12a1c; --ok: #1d6b3b;
  --radius: 14px; --shadow: 0 6px 24px rgba(40, 30, 10, .12);
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: 1.5rem; }
a { color: var(--green-2); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.link { background: none; border: 0; color: var(--green-2); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.opt { color: var(--muted); font-weight: 400; }

/* header */
.top { background: #fff; border-bottom: 3px solid var(--gold); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.brand img { display: block; height: 60px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.phone { font-weight: 700; text-decoration: none; color: var(--green); white-space: nowrap; }

/* buttons */
.btn { font: inherit; font-weight: 700; border-radius: 999px; border: 2px solid var(--green); padding: 12px 24px; cursor: pointer; background: #fff; color: var(--green); min-height: 48px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--green-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.big { width: 100%; font-size: 1.1rem; padding: 14px; }

/* hero */
.hero { position: relative; background: var(--green); color: #fff; padding: 44px 0 52px; overflow: visible; }
.hero-art { position: absolute; inset: 0; background: url('../images/desert-strip.jpg') center / cover; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,74,58,.55), rgba(31,74,58,.2) 60%, rgba(31,74,58,.65)); }
.hero-in { position: relative; z-index: 2; }
.hero h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.lede { font-size: 1.2rem; max-width: 36rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); margin: 0 0 24px; }
.search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 4px; position: relative; }
.field.grow { flex: 1 1 280px; }
label, .field > label { font-weight: 600; font-size: .9rem; color: var(--muted); }
input, textarea { font: inherit; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; min-height: 48px; width: 100%; }
input:focus, textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(201,162,75,.45); }
input.bad, textarea.bad { border-color: var(--danger); }
.date-btn { display: flex; align-items: center; gap: 10px; font: inherit; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; min-height: 48px; text-align: left; }
.date-btn .ph { color: var(--muted); } .date-btn span:not(.ph):not(.arrow) { color: var(--ink); font-weight: 600; }
.date-btn .arrow { color: var(--gold); }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; background: #fff; min-height: 48px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.4rem; color: var(--green); cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff3ef; color: var(--danger); border: 1px solid #e8b9ae; }
.msg.info { background: #eef6f1; color: var(--ok); border-color: #bcd9c7; }

/* calendar */
.cal-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; width: min(94vw, 680px); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 700; color: var(--green); min-height: 40px; }
.cal-head button { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: .75rem; color: var(--muted); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; min-height: 38px; border: 0; background: none; border-radius: 8px; font: inherit; cursor: pointer; color: var(--ink); }
.cal-grid button:hover:not(:disabled) { background: var(--sand); }
.cal-grid button:disabled { color: #c0b8a8; cursor: not-allowed; text-decoration: line-through; }
.cal-grid .in-range { background: #e8efe9; border-radius: 0; }
.cal-grid .edge { background: var(--green); color: #fff; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* results */
.results { padding-top: 28px; padding-bottom: 36px; }
.site-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.site-art { min-height: 260px; background: var(--green) url('../images/desert-strip.jpg') center / cover; position: relative; }
.site-art .badge { position: absolute; left: 14px; top: 14px; background: var(--gold); color: #2b2210; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .85rem; }
.site-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.amen li { background: var(--sand); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.price-lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-lines td { padding: 4px 0; } .price-lines td:last-child { text-align: right; }
.price-lines tr.total td { border-top: 2px solid var(--line); font-weight: 700; font-size: 1.15rem; padding-top: 8px; }
.sold { text-align: center; padding: 30px 20px; }
.sold h2 { color: var(--terra); }

/* checkout */
.checkout { padding-top: 20px; padding-bottom: 40px; }
.co-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.timer { font-weight: 700; color: var(--terra); }
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.co-main { display: grid; gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-top: 14px; font-weight: 400; color: var(--ink); }
.check input { width: 22px; min-height: 22px; margin-top: 2px; flex: none; }
#card-container { min-height: 100px; margin-bottom: 8px; }
.co-side { position: sticky; top: 12px; }
.co-side .row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.co-side .site-line { font-family: var(--serif); font-size: 1.15rem; color: var(--green); }
.co-side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* confirmation */
.confirm { padding-top: 28px; padding-bottom: 44px; }
.conf-card { max-width: 720px; margin: 0 auto; text-align: center; }
.conf-num { font-family: var(--serif); font-size: 2.6rem; color: var(--green); letter-spacing: 2px; margin: 4px 0 8px; }
.conf-rows { text-align: left; margin: 18px 0; }
.conf-rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.conf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 8px; }

/* footer, dialogs */
.foot { background: var(--green); color: #f3ecda; padding: 26px 0; font-size: .92rem; }
.foot a { color: var(--gold); }
.foot-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
dialog { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; width: min(94vw, 520px); }
dialog::backdrop { background: rgba(20, 30, 25, .55); }
.dlg-x { position: absolute; right: 10px; top: 8px; margin: 0; } .dlg-x button { border: 0; background: none; font-size: 1.8rem; cursor: pointer; }
#lookup-form { display: grid; gap: 12px; margin-top: 10px; }
#lookup-out { margin-top: 14px; }
#rules-body ul { padding-left: 20px; }

@media (max-width: 820px) {
  html { font-size: 17px; }
  .site-card, .co-grid, .foot-in { grid-template-columns: 1fr; }
  .site-art { min-height: 170px; }
  .co-side { position: static; order: -1; }
  .grid2 { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; } .cal-months > :nth-child(2) { display: none; }
  .search .btn { width: 100%; }
  .top-nav .link { display: none; }
}
@media print {
  .top, .foot, .conf-actions, .skip, #open-lookup { display: none !important; }
  body { background: #fff; } .card { box-shadow: none; }
}

/* gallery */
.site-art-wrap { position: relative; background: var(--sand); }
.gal { display: flex; flex-direction: column; height: 100%; }
.gal-main { width: 100%; flex: 1 1 auto; min-height: 0; height: 0; object-fit: cover; display: block; }
.site-art-wrap { min-height: 320px; }
.gal-thumbs { display: flex; gap: 6px; padding: 6px; background: var(--sand); }
.gal-thumbs button { flex: 1; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; height: 58px; }
.gal-thumbs button[aria-current] { border-color: var(--gold); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-art-wrap .badge { position: absolute; left: 14px; top: 14px; background: var(--gold); color: #2b2210; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .85rem; }

/* unit */
select { font: inherit; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; min-height: 48px; }
.field.narrow { width: 110px; }
/* notes */
.banner { background: var(--terra); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .95rem; }
.banner a { color: #fff; white-space: nowrap; }
.age-note { margin: 14px 0 0; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); max-width: 46rem; }
