/* La Casa Temporal Guest Reservations: guest site styles */
:root {
  --cream: #FBF6EA; --ink: #2B2118; --terra: #B5442A; --terra-dark: #8E3320; --gold: #F0B13A;
  --green: #2E6B3C; --green-dark: #1F5F33; --green-bg: #E4F0E2; --sand: #F1E7D0; --line: #E6D9BC; --muted: #6B5D4F;
  --field: #FFFDF8; --field-line: #BDAE96; --white: #fff;
  --display: Fraunces, Georgia, serif; --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #1D1812; --ink: #F4EBD9; --terra: #E0765A; --terra-dark: #F29A83; --gold: #F0B13A;
    --green: #6DBE7E; --green-dark: #8FD39E; --green-bg: #1F3326; --sand: #2B241A; --line: #3F3626; --muted: #BDAF98;
    --field: #241E16; --field-line: #6B5D4F; --white: #272017;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--terra); }
a:hover { color: var(--terra-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.banner { background: var(--gold); color: #2B2118; font-size: 14px; font-weight: 500; padding: 10px 24px; text-align: center; }

header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 76px; height: 44px; object-fit: contain; }
.brand b { font-family: var(--display); font-size: 20px; display: block; line-height: 1.1; }
.brand span { font-size: 13px; color: var(--muted); }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 15px; font-weight: 500; }
nav.main a { color: var(--ink); text-decoration: none; padding: 8px 2px; }
nav.main a:hover { color: var(--terra); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--terra); color: #fff; text-decoration: none; border: 0; padding: 14px 26px; border-radius: 999px; font: 600 16px var(--body); cursor: pointer; min-height: 48px; transition: transform .15s, background .15s; }
.btn:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--field-line); }
.btn.ghost:hover { background: var(--sand); color: var(--ink); }
.btn.small { padding: 10px 18px; min-height: 40px; font-size: 14px; }
.btn.block { display: flex; width: 100%; }

.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.chip.free { background: var(--green-bg); color: var(--green-dark); }
.chip.pending { background: #FBE9BE; color: #6B4400; }
.chip.approved { background: var(--green-bg); color: var(--green-dark); }
.chip.waitlist { background: #DCE8F7; color: #1D4C85; }
.chip.declined, .chip.cancelled, .chip.expired { background: #F6DAD3; color: #7A2412; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 28px 0 56px; }
.hero .text { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.4vw, 56px); letter-spacing: -.5px; margin: 20px 0 16px; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts small { display: block; font-size: 13px; color: var(--muted); }
.facts b { font-family: var(--display); font-size: 21px; }
.carousel { flex: 1 1 420px; min-width: 0; position: relative; border-radius: 32px; overflow: hidden; height: 500px; background: var(--line); }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.carousel img.on { opacity: 1; }
.carousel .tag { position: absolute; left: 18px; bottom: 18px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.carousel .dots { position: absolute; right: 18px; bottom: 26px; display: flex; gap: 8px; }
.carousel .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(251,246,234,.5); }
.carousel .dots i.on { background: var(--cream); }

section.block { padding: 16px 0 52px; }
section.block h2 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 8px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.card .eyebrow { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .6px; text-transform: uppercase; }
.card .big { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 8px 0 4px; }
.photo { height: 220px; border-radius: 24px; overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dark { background: #2B2118; color: #FBF6EA; border-radius: 32px; padding: 44px; margin-bottom: 52px; }
.dark h2 { margin-bottom: 26px; color: #FBF6EA; }
.dark .n { font-family: var(--display); font-size: 40px; color: var(--gold); font-weight: 700; }
.dark p { color: #E6D9BC; font-size: 15px; margin: 4px 0 0; }
.two { display: flex; flex-wrap: wrap; gap: 36px; padding-bottom: 52px; }
.two > div { flex: 1 1 360px; min-width: 0; }
.help { background: var(--sand); border-radius: 24px; padding: 28px; }
footer.site { background: var(--sand); padding: 26px 24px; text-align: center; font-size: 14px; color: var(--muted); }

/* booking page */
.steps { display: flex; gap: 8px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.steps span { background: var(--sand); border-radius: 999px; padding: 6px 14px; }
.steps span.on { background: var(--terra); color: #fff; }
.book-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 60px; }
.book-main { flex: 1 1 600px; min-width: 0; }
.book-side { flex: 1 1 380px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 26px; position: sticky; top: 12px; }
.cal { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .t { font-family: var(--display); font-weight: 700; font-size: 24px; }
.cal-head button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: 18px; cursor: pointer; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.day { min-height: 56px; border-radius: 14px; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 16px var(--body); padding: 4px 2px; background: transparent; color: var(--ink); cursor: default; }
.day small { font-size: 10.5px; font-weight: 500; }
.day.blank { visibility: hidden; }
.day.none { color: var(--muted); border: 1px dashed var(--field-line); opacity: .7; }
.day.open { background: var(--green-bg); color: var(--green-dark); border-color: var(--green); cursor: pointer; }
.day.open:hover { filter: brightness(.96); }
.day.pend { background: repeating-linear-gradient(135deg, #F0B13A 0 5px, #FBE9BE 5px 10px); color: #2B2118; border-color: #D99A1F; cursor: pointer; }
.day.full { background: #EDE6D8; color: #6B5D4F; border-color: var(--field-line); }
.day.sel { background: var(--terra); color: #fff; border-color: var(--terra); }
.day.out { background: var(--white); color: var(--terra); border: 2px solid var(--terra); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; }
.legend i { display: inline-block; width: 15px; height: 15px; border-radius: 5px; vertical-align: -3px; margin-right: 6px; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.opt { text-align: left; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; cursor: pointer; }
.opt.on { border: 2px solid var(--terra); padding: 17px 19px; }
.opt b { font-size: 18px; display: block; }
.opt span { color: var(--muted); font-size: 14px; }
.apts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.apt { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.apt.on { border: 2px solid var(--terra); padding: 15px; }
.apt.full { opacity: .6; cursor: not-allowed; }
.apt .h { display: flex; justify-content: space-between; align-items: baseline; }
.apt .h b { font-family: var(--display); font-size: 22px; }
.rm { display: flex; justify-content: space-between; gap: 8px; border-radius: 12px; padding: 9px 12px; font-size: 14px; margin-top: 8px; background: var(--green-bg); color: var(--green-dark); }
.rm.taken { background: var(--sand); color: var(--ink); }
.summary { background: var(--sand); border-radius: 16px; padding: 14px 16px; margin: 12px 0 20px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.f label.l, .f .l { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.f .l span { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--field-line); border-radius: 12px; font: 16px var(--body); background: var(--field); color: var(--ink); }
textarea { min-height: 80px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.warn { color: var(--terra-dark); }
.guest-row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--terra); }
.decl { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.err { background: #F6DAD3; color: #7A2412; border-radius: 12px; padding: 12px 14px; font-size: 14px; display: none; }
.err.show { display: block; }
.ok-card { background: var(--green-bg); border-radius: 24px; padding: 24px; }
.ok-card .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.ref { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 36px); }
.kv { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.narrow { max-width: 680px; margin: 0 auto; padding-bottom: 60px; }
.rules h2 { font-size: 24px; margin: 28px 0 8px; }
.rules li { margin: 4px 0; }
.voucher-box { border: 2px dashed var(--terra); border-radius: 20px; padding: 22px; text-align: center; background: var(--white); }
.voucher-box .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: clamp(28px, 6vw, 40px); letter-spacing: 3px; margin: 6px 0; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { gap: 28px; padding-bottom: 36px; }
  .carousel { height: 320px; border-radius: 24px; }
  .dark { padding: 28px 22px; }
  .book-side { position: static; padding: 20px; }
  .cal { padding: 16px; }
  .day { min-height: 46px; font-size: 15px; }
  .guest-row { grid-template-columns: 1fr; }
  nav.main { gap: 4px 16px; font-size: 14px; }
}
@media print {
  .banner, header.top, footer.site, .noprint { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .carousel img { transition: none; } }
@media (max-width: 720px) { .day small { font-size: 9px; letter-spacing: -.2px; } }
