/* The Madison — shared styles. Keeneland green, cream, black. */
:root {
  --green: #154734;
  --green-deep: #0E3324;
  --cream: #F5EFE1;
  --cream-light: #FBF8F0;
  --sand: #E6DDC8;
  --rule: #DDD3BC;
  --field: #B9AE95;
  --ink: #1D2A23;
  --muted: #4F5D55;
  --on-dark: #CFC8B8;
  --black: #000000;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream-light); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--serif); line-height: 1.05; color: var(--green); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--cream-light); padding: 8px 12px; }
:focus-visible { outline: 3px solid #B9883A; outline-offset: 2px; }

/* Header */
.site-header { background: var(--cream-light); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #000; line-height: 1; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.18em; }
.brand-sub { display: block; font-size: 11px; letter-spacing: 0.3em; margin-top: 6px; color: #333; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav a { color: #000; text-decoration: none; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; font-weight: 500; }
.nav a.btn { padding: 12px 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 2px; border: 1px solid var(--green); background: var(--green); color: var(--cream-light) !important; font: inherit; font-size: 15px; letter-spacing: 0.06em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-outline { background: transparent; color: var(--green) !important; }
.btn-outline:hover { background: var(--green); color: var(--cream-light) !important; }
.btn-cream { background: var(--cream); border-color: var(--cream); color: var(--green) !important; }
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero (Ayres) */
.hero-dark { background: var(--black); color: var(--cream); }
.hero-dark .wrap { padding-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.hero-top { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.hero-top .logo { flex: 1 1 420px; min-width: 0; }
.hero-top .logo img { width: 100%; max-width: 560px; height: auto; }
.hero-top p { flex: 1 1 320px; min-width: 0; font-size: 18px; line-height: 1.65; color: var(--on-dark); }
.hero-photo { width: 100%; height: clamp(260px, 42vw, 480px); object-fit: cover; object-position: center 40%; }

/* Search bar */
.book { background: linear-gradient(var(--black) 0, var(--black) 64px, var(--cream-light) 64px); }
.book-card { background: var(--green); color: var(--cream); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; margin-top: -64px; position: relative; }
.book-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.book-head h2 { font-family: var(--serif); font-size: 30px; }
.book-head span, .book-note { font-size: 13px; color: #D8D0BC; }
.book-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.field { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #D8D0BC; }
.field input, .field select { height: 50px; padding: 0 12px; border: 0; border-radius: 2px; background: var(--cream-light); color: var(--ink); font: inherit; font-size: 16px; width: 100%; }
.book-form .btn { flex: 1 1 200px; height: 50px; }
.status { background: var(--cream-light); color: var(--ink); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.status[hidden] { display: none; }
.status.error { border-left: 0; background: #FCEDEA; color: #7A1F12; }

/* Listings */
.listings { padding: 88px 0; }
.listings-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.listings-head h2 { font-size: clamp(36px, 4.5vw, 56px); }
.listings-head p { color: var(--muted); max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { background: var(--cream-light); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.card img { width: 100%; height: 240px; object-fit: cover; background: var(--sand); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.tag.group { color: var(--green); font-weight: 500; }
.card h3 { font-family: var(--serif); font-size: 30px; color: var(--green); line-height: 1.1; }
.card .meta, .card .perk { font-size: 15px; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 10px; font-size: 16px; }
.card .price strong { font-weight: 500; font-size: 20px; }
.card .btn { margin-top: 8px; width: 100%; }
.card.is-unavailable { opacity: 0.6; }
.card.is-unavailable img { filter: grayscale(0.6); }
.subhead { margin: 48px 0 20px; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* Feature trio */
.trio { background: var(--cream); padding: 88px 0; }
.trio h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 40px; }
.trio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.trio-grid div { border-top: 2px solid var(--green); padding-top: 20px; }
.trio-grid h3 { font-size: 20px; margin-bottom: 8px; }
.trio-grid p { color: var(--muted); }

/* Bands and footer */
.band { background: var(--green); color: var(--cream); padding: 72px 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; }
.band h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; flex: 1 1 420px; }
.site-footer { background: var(--black); color: var(--on-dark); padding: 52px 0 40px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }
.site-footer .foot-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.18em; color: var(--cream); text-decoration: none; }
.site-footer a { color: var(--on-dark); }
.site-footer small { font-size: 13px; }

/* Property page */
.prop-hero img { width: 100%; height: clamp(240px, 45vw, 520px); object-fit: cover; }
.prop { padding: 56px 0 88px; }
.prop .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.prop-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.prop-info h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); line-height: 1; color: var(--green); }
.prop-info .meta { font-size: 17px; color: var(--muted); }
.prop-info ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prop-info .back { font-size: 15px; padding: 10px 0; }
.prop-book { flex: 1 1 360px; min-width: 0; background: var(--cream); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.prop-book h2 { font-family: var(--serif); font-size: 30px; color: var(--green); }
.your-stay { font-size: 15px; background: var(--cream-light); border: 1px solid var(--rule); padding: 12px 14px; }
.your-stay[hidden] { display: none; }
#booking { min-height: 120px; }
#booking iframe { width: 100%; min-width: 300px; border: 0; }
.fallback { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 560px) {
  .brand-name { font-size: 21px; letter-spacing: 0.14em; }
  .brand img { height: 44px; }
  .listings, .trio { padding: 64px 0; }
}

/* Landing page */
.hero-green { background: var(--green); color: var(--cream); }
.hero-green .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .eyebrow { color: #D8D0BC; }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: 1.02; }
.hero-copy p { font-size: 18px; line-height: 1.65; color: #D8D0BC; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-ghost-light { background: transparent; border-color: var(--cream); color: var(--cream) !important; }
.btn-ghost-light:hover { background: var(--cream); color: var(--green) !important; }
.hero-img { flex: 1 1 380px; min-width: 0; height: clamp(300px, 40vw, 480px); object-fit: cover; object-position: center 55%; border: 1px solid #2E6049; }
.props { background: var(--cream); padding: 96px 0; }
.props h2 { font-size: clamp(36px, 4.5vw, 56px); max-width: 680px; margin-top: 12px; }
.props-grid { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; }
.prop-card { flex: 1 1 340px; min-width: 0; background: var(--cream-light); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.prop-card img { width: 100%; height: 320px; object-fit: cover; object-position: center 60%; }
.prop-card-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prop-card h3 { font-family: var(--serif); font-size: 40px; line-height: 1.05; color: var(--green); }
.prop-card ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.prop-card .more { align-self: flex-start; margin-top: auto; padding: 12px 0; font-size: 15px; letter-spacing: 0.06em; text-underline-offset: 6px; }
.steps { padding: 96px 0; }
.steps h2 { font-size: clamp(34px, 4vw, 52px); max-width: 720px; margin-bottom: 44px; }
.steps .trio-grid span { font-family: var(--serif); font-size: 28px; color: var(--green); }
.band-dark { background: var(--black); }
.band p { color: var(--on-dark); max-width: 560px; margin-top: 12px; }
.band .band-text { flex: 1 1 420px; min-width: 0; }
.band .band-text h2 { flex: none; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; width: 100%; }
.foot-cols > div { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; }
.foot-cols > div:first-child { flex-basis: 260px; }
.foot-label { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--cream); }
.foot-bottom { width: 100%; border-top: 1px solid #2A2A2A; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.site-footer.full .wrap { flex-direction: column; align-items: stretch; gap: 40px; }

/* Madison Hall */
.hall-hero { background: var(--black); color: var(--cream); }
.hall-hero .wrap { padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.hall-hero h1 { font-family: var(--serif); font-size: clamp(52px, 8vw, 104px); line-height: 0.98; }
.hall-hero .eyebrow, .hall-hero p { color: var(--on-dark); }
.hall-hero p.lead { font-size: 19px; max-width: 600px; }
.hall-hero img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center 55%; }
.space { padding: 96px 0; }
.space .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.space-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.space-copy h2 { font-size: clamp(36px, 4.5vw, 56px); }
.space-copy p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 20px; }
.gallery { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery figure.wide img { height: 300px; }
.gallery figcaption { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hosts { background: var(--cream); padding: 96px 0; }
.hosts h2 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 40px; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.host-grid div { background: var(--cream-light); border: 1px solid var(--rule); padding: 30px; }
.host-grid h3 { font-family: var(--serif); font-size: 30px; color: var(--green); margin-bottom: 8px; }
.host-grid p { color: var(--muted); }
.inquire { padding: 96px 0; }
.inquire .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.inquire-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.inquire-intro h2 { font-size: clamp(36px, 4.5vw, 56px); }
.inquire-intro p { font-size: 17px; color: var(--muted); }
.inquire-intro ol { list-style: none; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.inquire-intro li { display: flex; gap: 16px; }
.inquire-intro li span:first-child { font-family: var(--serif); font-size: 24px; color: var(--green); line-height: 1.1; }
.form-card { flex: 1.4 1 460px; min-width: 0; background: var(--cream); border: 1px solid var(--rule); padding: clamp(22px, 4vw, 44px); }
.form { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.f { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.f label, .form legend { font-size: 14px; font-weight: 500; }
.f input, .f select, .f textarea { min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 2px; background: var(--cream-light); color: var(--ink); font: inherit; font-size: 16px; width: 100%; }
.f textarea { resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { padding: 0; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field); background: var(--cream-light); font-size: 15px; }
.pills input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream-light); }
.pills input:focus-visible + span { outline: 3px solid #B9883A; outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 13px; color: var(--muted); }
.form .btn { align-self: flex-start; min-height: 52px; padding: 0 32px; }
.form-error { background: #FCEDEA; color: #7A1F12; padding: 12px 16px; font-size: 15px; }
.form-error[hidden], .thanks[hidden], .form[hidden] { display: none; }
.thanks { display: flex; flex-direction: column; gap: 14px; padding: 16px 0; }
.thanks h3 { font-family: var(--serif); font-size: 40px; color: var(--green); }
.thanks .btn { align-self: flex-start; }
