/* Wimberley Vintage Lodging - limestone, firehouse red, barnwood. Mobile first. */
:root {
  --limestone: #efe8d8;
  --limestone-2: #e3d9c3;
  --paper: #faf7f0;
  --ink: #2a2420;
  --ink-2: #5a4f45;
  --red: #9e2a20;
  --red-dark: #7c1f17;
  --barnwood: #6b5442;
  --barnwood-2: #8a7059;
  --brass: #a8833b;
  --oak: #4f5e43;
  --line: #d6cab0;
  --radius: 4px;
  --wrap: 1120px;
  --serif: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.band { padding: 56px 0; }
.band-stone {
  background-color: var(--limestone);
  /* limestone grain: an inline noise texture, no image request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .27 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band-red { background: var(--red); color: #fff; }
.band-red a:not(.btn) { color: #fff; }

/* --- header --- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(250,247,240,.96); border-bottom: 3px solid var(--red); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font: 700 .82rem/1 var(--serif); letter-spacing: .12em; color: #fff; background: var(--red); padding: 7px 7px 6px; border-radius: 2px;
  box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px #f3d9c9; }
.brand-name { font: 700 1.05rem/1.1 var(--serif); }
.menu { font: 600 .95rem var(--sans); background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 6px 12px; color: var(--ink); }
#nav ul { list-style: none; margin: 0; padding: 0; }
#nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--red); }
#nav.open { display: block; }
#nav a { display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
#nav a[aria-current] { color: var(--red); }
@media (min-width: 860px) {
  .menu { display: none; }
  #nav { display: block; position: static; border: 0; background: none; }
  #nav ul { display: flex; gap: 4px; }
  #nav a { border: 0; padding: 8px 12px; border-radius: var(--radius); }
  #nav a:hover { background: var(--limestone); }
  #nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
}

/* --- hero --- */
.hero, .house-hero { position: relative; color: #fff; background: var(--ink); }
.hero-img img { width: 100%; height: 72vh; min-height: 420px; max-height: 760px; object-fit: cover; }
.house-hero .hero-img img { height: 58vh; min-height: 340px; max-height: 620px; }
.hero-text { position: absolute; inset: auto 0 0 0; padding: 72px 16px 28px;
  background: linear-gradient(to top, rgba(28,22,18,.9) 15%, rgba(28,22,18,.55) 60%, rgba(28,22,18,0)); }
.hero-text > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.hero-text h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-text p { max-width: 640px; margin-left: 0; font-size: 1.1rem; }
@media (min-width: 1152px) { .hero-text p { margin-left: calc((100% - var(--wrap)) / 2); } }
.eyebrow { font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
.eyebrow-light { color: #fff3ea; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.facts { font-weight: 600; color: var(--barnwood); }
.facts-light { color: #f1e7d6; }

/* --- buttons --- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); text-decoration: none; padding: 14px 20px; border-radius: var(--radius);
  border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--red); }
.btn-ghost { border-color: var(--line); width: 100%; }
.btn-book { display: block; width: 100%; background: var(--ink); color: #fff; margin-bottom: 10px; }
.btn-book:hover { background: #000; }
.btn-book.is-missing { background: var(--limestone-2); color: var(--ink-2); border-color: var(--line); cursor: not-allowed; }

/* --- draft markers (unsupplied facts) --- */
.draft { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .06em; color: #7a4b00; background: #ffe9a8;
  border: 1px dashed #b07b00; padding: 3px 6px; border-radius: 3px; vertical-align: middle; }

/* --- home: house cards --- */
.houses { display: grid; gap: 28px; }
@media (min-width: 900px) { .houses { grid-template-columns: 1fr 1fr; } }
.house-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(42,36,32,.45); display: flex; flex-direction: column; }
.house-card-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.house-card-body { padding: 22px 20px 24px; border-top: 6px solid var(--red); display: flex; flex-direction: column; flex: 1; }
.house-rockhouse .house-card-body { border-top-color: var(--barnwood); }
.house-card h2 a { color: var(--ink); text-decoration: none; }
.house-card .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg); }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; } }
.distances table { width: 100%; border-collapse: collapse; background: var(--limestone); border-radius: var(--radius); overflow: hidden; }
.distances th, .distances td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.distances thead th { font-family: var(--serif); background: var(--barnwood); color: #fff; }
.cta { text-align: center; }
.cta p { max-width: 560px; margin: 0 auto 1.2em; }
.cta .btn { margin: 4px; }

/* --- house page --- */
.house-layout { display: grid; gap: 36px; }
.house-layout { gap: 28px; }
@media (min-width: 900px) {
  .house-layout { grid-template-columns: 1fr 360px; grid-template-areas: "intro side" "main side"; align-items: start; column-gap: 36px; row-gap: 0; }
  .house-intro { grid-area: intro; } .house-main { grid-area: main; }
  .house-side { grid-area: side; position: sticky; top: 84px; }
}
.house-main h2:first-child { margin-top: .4em; }
.house-main h2 { margin-top: 1.6em; padding-bottom: .25em; border-bottom: 2px solid var(--limestone-2); }
.amenities, .rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 600px) { .amenities { grid-template-columns: 1fr 1fr; } }
.amenities li { background: var(--limestone); padding: 10px 12px; border-left: 4px solid var(--brass); border-radius: 2px; }
.amenities li span { display: block; font-size: .9rem; color: var(--ink-2); }
.rules li { padding-left: 22px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 10px; height: 2px; background: var(--red); }
.book-box { background: var(--limestone); border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: var(--radius); padding: 22px 20px; }
.house-rockhouse .book-box, .book-box { }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 20px; }
.details div { border-bottom: 1px dotted var(--barnwood-2); padding-bottom: 6px; }
.details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.details dd { margin: 0; font-weight: 600; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; border-radius: 2px; overflow: hidden; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: rgba(20,16,13,.96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(20,16,13,.9); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); margin: 40px auto 0; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(0,0,0,.35); color: #fff; border: 0; font-size: 2.2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; }
.lb-next { right: 10px; top: 50%; }
.lb-cap { text-align: center; padding: 10px 16px; font-size: .95rem; color: #e6dccb; }

/* --- guide + contact --- */
.page-head { padding: 56px 0 40px; }
.places { display: grid; gap: 22px; }
@media (min-width: 800px) { .places { grid-template-columns: 1fr 1fr; } }
.place { border: 1px solid var(--line); border-top: 6px solid var(--oak); border-radius: var(--radius); padding: 20px; background: #fff; }
.place-dist { font-weight: 600; color: var(--barnwood); }

/* --- form --- */
.inquiry { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--barnwood-2); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(158,42,32,.25); border-color: var(--red); }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field-sm { grid-column: span 2; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr 110px; } .field-sm { grid-column: auto; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--oak); }
.form-status.err { color: var(--red); }

/* --- footer --- */
.foot { background: var(--ink); color: #e9dfcd; padding: 40px 0 48px; border-top: 6px solid var(--red); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.foot-name { font: 700 1.3rem var(--serif); color: #fff; margin-bottom: .2em; }
.foot-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #f3c8b6; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img { transition: none; } }
.place-featured { border-top-color: var(--red); }
@media (min-width: 800px) { .place-featured { grid-column: 1 / -1; } }
.perk { font-weight: 600; }
