/* Corrabeg House Hotel — demo theme (claret, brass and cream) */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant.woff2") format("woff2-variations"), url("../fonts/cormorant.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-italic.woff2") format("woff2-variations"), url("../fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2-variations"), url("../fonts/manrope.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --wine: #4a1c26;
  --wine-2: #6b2a37;
  --wine-deep: #2c0f16;
  --brass: #c9a063;
  --brass-2: #dcb87f;
  --cream: #f6efe4;
  --paper: #fbf8f3;
  --card: #ffffff;
  --ink: #24171a;
  --muted: #6a575a;
  --line: #e6dccf;
  --green: #2f6b45;
  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 48px); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
section[id] { scroll-margin-top: 72px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-brass { background: var(--brass); color: var(--wine-deep); }
.btn-brass:hover { background: var(--brass-2); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover:not(:disabled) { background: var(--wine-2); }
.btn-ghost { background: transparent; border-color: var(--wine); color: var(--wine); }
.btn-ghost:hover { background: rgba(74, 28, 38, .06); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.link-btn { background: none; border: 0; padding: 0; color: var(--wine); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; gap: .25em; align-items: baseline; font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--wine); text-decoration: none; line-height: 1; white-space: nowrap; }
.logo span { font-style: italic; font-weight: 500; color: var(--muted); }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top-nav a:hover { color: var(--wine-2); }
@media (max-width: 760px) { .top-nav { display: none; } .top .btn { margin-left: auto; } .logo span { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--wine-deep); }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; padding-block: clamp(48px, 9vw, 110px) 36px; }
.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--brass-2); }
.hero h1 { font-size: clamp(48px, 8vw, 92px); margin: 10px 0 14px; font-weight: 500; }
.hero h1 em { color: var(--brass-2); }
.lede { max-width: 32em; font-size: clamp(16px, 1.6vw, 18px); color: #f3e6dc; }

.search {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr auto; gap: 12px; align-items: end;
  margin-top: 30px; padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,.35); max-width: 900px;
}
.field { display: grid; gap: 4px; }
.field label, legend { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px rgba(201, 160, 99, .45); }
[aria-invalid="true"] { border-color: #b42318 !important; }
.search-err, .err { color: #b42318; font-size: 14px; font-weight: 600; }
.search-err { grid-column: 1 / -1; }
.perks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #f3e6dc; }
.perks li::before { content: "✓"; color: var(--brass-2); margin-right: 6px; }
@media (max-width: 820px) { .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; } .search .field:first-child { grid-column: 1 / -1; } }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 22px; }
.sec-sub { color: var(--muted); }

/* Rooms */
.rooms { padding-block: clamp(48px, 7vw, 80px); }
.room-list { display: grid; gap: 16px; }
.room {
  display: grid; grid-template-columns: 220px 1fr 220px; gap: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.room.is-off .room-art { opacity: .45; filter: grayscale(.6); }
.room.is-off { background: #f7f3ee; }
.room-art { position: relative; min-height: 170px; background: linear-gradient(160deg, #e9d8c4, #c8a983); overflow: hidden; }
.art-garden { background: linear-gradient(160deg, #d9e3cf, #93ac85); }
.art-family { background: linear-gradient(160deg, #e7dccf, #b9a593); }
.art-suite { background: linear-gradient(160deg, #e2cfd2, #9c6f76); }
.room-art .window { position: absolute; top: 18%; left: 58%; width: 26%; height: 38%; border-radius: 60px 60px 4px 4px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 4px rgba(255,255,255,.75); }
.room-art .bed { position: absolute; left: 10%; right: 22%; bottom: 14%; height: 26%; border-radius: 10px 10px 4px 4px; background: #fff; box-shadow: 0 -18px 0 -6px var(--wine-2), 0 10px 18px rgba(0,0,0,.12); }
.room-art .lamp { position: absolute; left: 10%; bottom: 44%; width: 18px; height: 22px; border-radius: 4px 4px 10px 10px; background: var(--brass); }
.room-body { padding: 20px 22px; }
.room-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.room h3 { font-size: 28px; }
.room-size { font-size: 13px; color: var(--muted); font-weight: 600; }
.room-feats { margin-top: 10px; display: grid; gap: 4px; font-size: 15px; }
.room-feats li::before { content: "·"; color: var(--brass); font-weight: 800; margin-right: 8px; }
.room-status { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.room-status.low { color: #b42318; }
.room-status.sold { color: var(--muted); }
.room-price { padding: 20px 22px; border-left: 1px solid var(--line); display: grid; align-content: center; gap: 2px; background: #fdfaf6; }
.room-price .per { font-size: 15px; }
.room-price .per b { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--wine); }
.room-price .tot { font-weight: 700; }
.room-price .ota { font-size: 13px; color: var(--muted); }
.room-price .save { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
@media (max-width: 860px) {
  .room { grid-template-columns: 140px 1fr; }
  .room-price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr auto; column-gap: 12px; }
  .room-price .btn { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}
@media (max-width: 520px) {
  .room { grid-template-columns: 1fr; }
  .room-art { min-height: 120px; }
}

/* Offers */
.offers { padding-block: clamp(48px, 7vw, 80px); background: var(--cream); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.offer h3 { font-size: 30px; }
.offer p { color: var(--muted); }
.offer .offer-tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wine-2); }
.offer .offer-price { margin-top: auto; color: var(--ink); }
.offer .offer-price b { font-family: var(--display); font-size: 36px; color: var(--wine); }
.offer-gift { background: var(--wine); border-color: var(--wine); }
.offer-gift h3, .offer-gift .offer-price, .offer-gift .offer-price b { color: #fff; }
.offer-gift p, .offer-gift .offer-tag { color: #f0dcd6; }
.offer-gift .btn-ghost { border-color: var(--brass); color: var(--brass-2); }
.offer-gift .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }

/* Dine */
.dine { padding-block: clamp(48px, 7vw, 80px); }
.dine-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
.tabs button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.menu-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-list b { font-weight: 700; color: var(--wine); white-space: nowrap; }
.table-book { display: grid; gap: 14px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(74, 28, 38, .08); }
.table-book h3 { font-size: 30px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; background: #fff; }
.slot input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.slot.is-full span { color: #8d7e80; background: #f3eee8; text-decoration: line-through; }
.slot.is-full input { cursor: not-allowed; }
.demo-note { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .dine-grid { grid-template-columns: 1fr; } }

/* Vouchers */
.vouchers { padding-block: clamp(48px, 7vw, 80px); background: var(--cream); }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.v-form { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; }
.chip input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.v-send { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.v-send legend { width: 100%; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--wine); }
.v-total, .stay-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.v-total strong, .stay-total strong { font-family: var(--display); font-size: 32px; color: var(--wine); }
.v-card {
  position: relative; aspect-ratio: 1.6; display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 3vw, 32px);
  border-radius: 20px; color: #fff; background: radial-gradient(120% 120% at 100% 0, var(--wine-2), var(--wine) 50%, var(--wine-deep));
  box-shadow: 0 30px 60px rgba(74, 28, 38, .35); overflow: hidden; transform: rotate(-2deg);
}
.v-card::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(220, 184, 127, .5); border-radius: 12px; pointer-events: none; }
.v-brand { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--brass-2); }
.v-brand span { font-style: italic; font-weight: 500; }
.v-for { margin-top: auto; color: #f0dcd6; }
.v-for b { color: #fff; }
.v-what { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1; font-weight: 600; }
.v-msg { font-style: italic; color: #f0dcd6; overflow-wrap: anywhere; }
.v-code { font-size: 12px; letter-spacing: .06em; color: var(--brass-2); }
.v-hint { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .v-grid { grid-template-columns: 1fr; } .v-preview-wrap { order: -1; max-width: 460px; width: 100%; margin-inline: auto; } }
@media (max-width: 420px) { .v-card { aspect-ratio: auto; min-height: 220px; } }

/* Events */
.events { background: var(--wine); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.ev-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.events p { color: #f0dcd6; max-width: 34em; margin-top: 8px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Find us */
.find { padding-block: clamp(48px, 7vw, 72px); }
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.find p { margin-top: 10px; color: var(--muted); }
.find-links a { color: var(--wine); font-weight: 700; }
.facts { display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); text-align: right; }
@media (max-width: 760px) { .find-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--wine-deep); color: #e8d7d2; padding-block: 26px; font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot a { color: var(--brass-2); font-weight: 700; }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(28, 10, 14, .55); }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 50px rgba(0,0,0,.25);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { display: grid; gap: 14px; padding: 18px 20px 28px; overflow-y: auto; align-content: start; }
.stay-room { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--wine); line-height: 1.1; }
.stay-dates { color: var(--muted); font-weight: 600; font-size: 14px; }
.stay-lines { margin-top: 10px; display: grid; gap: 4px; font-size: 15px; }
.stay-lines li { display: flex; justify-content: space-between; gap: 12px; }
.stay-lines .incl { color: var(--green); font-size: 14px; font-weight: 600; }
.extras { display: grid; gap: 8px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.extra input { width: 20px; height: 20px; accent-color: var(--wine); margin: 0; }
.extra b { display: block; font-size: 15px; }
.extra small { color: var(--muted); font-size: 13px; }
.extra em { font-style: normal; font-weight: 700; color: var(--wine); }
.extra.is-incl { opacity: .75; cursor: default; }
.extra.is-incl em { color: var(--green); }
.extra:has(input:checked) { border-color: var(--wine); }
.saving { font-size: 14px; font-weight: 700; color: var(--green); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(28, 10, 14, .6); }
.modal-card { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border-radius: 20px; background: var(--paper); text-align: center; display: grid; gap: 12px; }
.modal-card h2 { font-size: 36px; }
.tick { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; }
.tick svg { width: 30px; height: 30px; }
.confirm-lines { display: grid; gap: 4px; text-align: left; padding: 12px 0; border-block: 1px solid var(--line); }
.confirm-lines li { display: flex; justify-content: space-between; gap: 12px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

/* Toast */
.toast {
  position: fixed; z-index: 110; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--wine-deep); color: #fff; font-weight: 600; font-size: 14px;
  transition: opacity .25s, transform .25s; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
