/* Leburić — reservation: room + table, with a key-fob and a table-tent summary */

.rez { padding-bottom: var(--sec); }

/* ---------- tabs ---------- */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .6rem 1.2rem; border: 0; border-radius: 999px; background: transparent; font-weight: 500; transition: color .3s; }
.tabs button svg { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { color: var(--bg); }
.tabs-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }

/* ---------- layout ---------- */
.rez-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: clamp(1.5rem, 1rem + 3vw, 4.5rem); align-items: start; }
.steps { display: grid; }
.step { margin: 0; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0; border: 0; border-top: 1px solid var(--line); min-width: 0; display: grid; gap: 1.1rem; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 1.1rem; font-size: var(--t-lg); font-weight: 600; letter-spacing: -.01em; display: flex; align-items: baseline; gap: .8rem; }
.step legend .mono { color: var(--accent); }
.step legend + * { clear: both; }
.hint { color: var(--muted); text-transform: none; letter-spacing: 0; line-height: 1.6; }
.field-err { color: #c2412d; font-style: normal; font-size: var(--t-sm); min-height: 0; }
[data-tone="dark"] .field-err { color: #ff9b85; }
.field-err:empty { display: none; }
@media (max-width: 900px) { .rez-grid { grid-template-columns: 1fr; } }

/* ---------- calendar ---------- */
.cal { display: grid; gap: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cal-nav { display: flex; gap: .5rem; }
.cal-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.1rem; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, .5rem + 2vw, 2.5rem); }
@media (max-width: 760px) { .cal-months { grid-template-columns: 1fr; } .cal-month + .cal-month { display: none; } }
.cal-month h3 { font-size: var(--t-base); font-weight: 600; margin-bottom: .75rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow { font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: .4rem; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 40px; border: 0; background: transparent; font-variant-numeric: tabular-nums;
  border-radius: 50%; font-size: .95rem; transition: background-color .15s, color .15s;
}
.cal-day:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.cal-day:disabled { opacity: .28; cursor: default; text-decoration: line-through; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 18%; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-day.in-range { background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--ink); color: var(--bg); border-radius: 50%; }
.cal-day.is-start.has-end { border-radius: 50% 0 0 50%; }
.cal-day.is-end { border-radius: 0 50% 50% 0; }
.cal-day.is-start.is-end { border-radius: 50%; }
.cal-legend { color: var(--muted); }

/* ---------- steppers ---------- */
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .steppers { grid-template-columns: 1fr; } }
.stepper { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .5rem; padding: .6rem .6rem .6rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.stepper-label { display: grid; font-weight: 500; line-height: 1.25; }
.stepper-label small { font-weight: 350; color: var(--muted); font-size: var(--t-sm); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.25rem; line-height: 1; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper button:not(:disabled):hover { background: var(--ink); color: var(--bg); }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--f-mono); font-weight: 600; font-size: 1.1rem; }
.kid-ages { display: flex; flex-wrap: wrap; gap: .75rem; }
.kid-ages:empty { display: none; }
.kid-ages label { display: grid; gap: .3rem; font-size: var(--t-sm); color: var(--muted); }

/* ---------- inputs ---------- */
.field { display: grid; gap: .45rem; }
.field > span { font-weight: 500; }
.field input, .field textarea, .kid-ages select {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, #fff 30%);
  font-size: 16px;
}
[data-tone="dark"] .field input, [data-tone="dark"] .field textarea, [data-tone="dark"] .kid-ages select { background: color-mix(in srgb, var(--bg) 85%, #fff 15%); }
.kid-ages select { min-width: 9rem; }
.field input:focus, .field textarea:focus, .kid-ages select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #c2412d; }
.field textarea { resize: vertical; min-height: 96px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--terra); }
.check span { display: grid; gap: .15rem; }
.check b { font-weight: 550; }
.check small { color: var(--muted); font-size: var(--t-sm); }
.check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--gold) 10%, transparent); }

/* ---------- room picker ---------- */
.room-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.rp { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; padding: .6rem .8rem .6rem .6rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.rp input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rp-plate { width: 38px; height: 50px; border-radius: 3px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.2rem; background: linear-gradient(165deg, #67432d, #3f2717); box-shadow: 0 0 0 3px var(--c, #1d3a5c); }
.rp-txt { display: grid; line-height: 1.25; }
.rp-txt b { font-weight: 550; font-size: .95rem; }
.rp-txt small { color: var(--muted); font-size: .78rem; }
.rp:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.rp:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp.is-small .rp-txt small { color: #c2412d; }
[data-tone="dark"] .rp.is-small .rp-txt small { color: #ff9b85; }
.rp-any .rp-plate { background: transparent; color: var(--ink); border: 1px dashed var(--line); box-shadow: none; font-size: 1rem; }

/* ---------- arrival ---------- */
.arrive { display: flex; align-items: center; gap: 1.25rem; }
.arrive input { flex: 1; accent-color: var(--gold); height: 44px; }
.arrive-out { font-size: 1.4rem; font-weight: 600; min-width: 5ch; text-align: right; }
.arrive-scale { display: flex; justify-content: space-between; color: var(--muted); margin-top: -.6rem; padding-right: calc(5ch + 1.25rem); }

/* ---------- summary ---------- */
.summary { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1.5rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: 14px; background: var(--bg-2); transition: background-color .5s linear; }
.sum-list { margin: 0; display: grid; text-transform: none; letter-spacing: 0; }
.sum-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; text-align: right; font-weight: 600; }
.btn--block { width: 100%; }
.demo-note { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .66rem; line-height: 1.6; }
@media (max-width: 900px) { .summary { position: static; } }

/* key fob: the red house tag from their keys */
.fob { position: relative; justify-self: center; width: 170px; height: 220px; transform-origin: 50% 14px; animation: swing 3.6s ease-in-out infinite; }
.fob.bump { animation: bump .7s var(--ease); }
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes bump { 0% { transform: rotate(-9deg); } 50% { transform: rotate(6deg); } 100% { transform: rotate(0); } }
.fob-ring { position: absolute; left: 50%; top: 0; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 4px solid #c9c6c0; box-shadow: inset 0 1px 2px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2); }
.fob-house {
  position: absolute; left: 0; right: 0; top: 26px; bottom: 0;
  clip-path: polygon(50% 0, 100% 36%, 100% 100%, 0 100%, 0 36%);
  background: linear-gradient(170deg, #d63a2c, #a5221a 70%);
  color: #fff; display: grid; place-content: center; text-align: center; padding-top: 30%;
  -webkit-mask: radial-gradient(circle at 50% 22px, transparent 9px, #000 9.5px);
  mask: radial-gradient(circle at 50% 22px, transparent 9px, #000 9.5px);
}
.fob-house b { font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.fob-house small { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: .4rem; max-width: 140px; }
@media (prefers-reduced-motion: reduce) { .fob { animation: none; } }

/* table tent card */
.tent { justify-self: center; width: min(100%, 300px); perspective: 900px; }
.tent-face {
  display: grid; gap: .4rem; justify-items: center; text-align: center;
  padding: 1.6rem 1.25rem 1.4rem; border-radius: 4px;
  background: #fbf8f2; color: #1b1a17;
  transform: rotateX(14deg); transform-origin: bottom;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.5);
  position: relative;
}
.tent-face::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(138, 100, 23, .4); border-radius: 2px; pointer-events: none; }
.tent-face > .mono:first-child { color: #8a6417; letter-spacing: .2em; }
.tent-face b { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; word-break: break-word; }
.tent-line { color: rgba(27,26,23,.6); text-transform: none; letter-spacing: 0; }

/* ---------- send dialog ---------- */
.send-dlg { width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.45); overflow: auto; }
.send-dlg::backdrop { background: rgba(8, 10, 14, .62); backdrop-filter: blur(4px); }
.send-dlg[open] { animation: dlg-up .5s var(--ease) both; }
@keyframes dlg-up { from { opacity: 0; transform: translateY(24px); } }
.send-in { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.1rem; }
.send-in h2 { font-size: var(--t-xl); }
.send-msg { margin: 0; padding: 1rem; border-radius: 10px; background: var(--bg-2); white-space: pre-wrap; word-break: break-word; text-transform: none; letter-spacing: 0; font-size: .74rem; line-height: 1.7; max-height: 40vh; overflow: auto; }
.send-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.send-btns .btn { flex: 1 1 140px; }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 1.5rem; line-height: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; padding-top: 0; }
.faq .sec-head { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 1rem 0; font-size: var(--t-lg); font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq-list details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 60ch; }
.faq-list details[open] p { animation: faq-in .45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
