/* SOVA — booking flow */

.booking { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1020px) { .booking { grid-template-columns: 1fr; } .summary { position: static !important; } .summary__img { display: none; } }

/* Progress */
.progress { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.progress li { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); position: relative; }
.progress li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: transparent; transition: background .4s var(--ease); }
.progress li span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.progress li.is-active, .progress li.is-done { color: var(--blue); }
.progress li.is-active::before, .progress li.is-done::before { background: var(--blue); }
.progress li.is-done span { background: var(--blue); color: var(--white); border-color: var(--blue); }
@media (max-width: 560px) { .progress li { font-size: 0; } .progress li span { font-size: 11px; } }

/* Steps */
.bstep { display: none; animation: stepIn .5s var(--ease); }
.bstep.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bstep__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.bstep__head .link { background: none; border: none; border-bottom: 1px solid currentColor; border-radius: 0; padding: 0 0 4px; box-shadow: none; }
.bstep__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.sel-dates { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--ink-soft); }

/* Guests stepper */
.guests { display: flex; align-items: center; gap: 18px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-ink); background: var(--white); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; color: var(--blue); }
.stepper button:hover { background: var(--blue-soft); }
.stepper output { min-width: 36px; text-align: center; font-family: var(--serif); font-size: 20px; }

/* Calendar */
.cal { position: relative; background: var(--white); border: 1px solid var(--line); padding: 28px clamp(16px, 3vw, 36px) 22px; }
.cal__nav { position: absolute; top: 22px; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.cal__btn { pointer-events: auto; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--white); color: var(--blue); font-size: 20px; line-height: 1; }
.cal__btn:hover:not([disabled]) { background: var(--blue); color: var(--white); }
.cal__btn[disabled] { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 680px) { .cal__months { grid-template-columns: 1fr; } .cal__months .month:nth-child(2) { display: none; } }
.month__title { text-align: center; font-family: var(--serif); font-size: 21px; color: var(--blue); margin: 4px 0 18px; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__dow { text-align: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.day {
  position: relative; aspect-ratio: 1 / 0.92; border: 0; background: none; padding: 0;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.day::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: transparent; }
.day.is-summer::after { background: var(--wood); }
.day:hover:not([disabled]) { background: var(--blue-soft); }
.day[disabled] { color: #c3c5cf; cursor: default; }
.day.is-full { text-decoration: line-through; color: #b8bac6; }
.day.is-range { background: var(--blue-soft); }
.day.is-start, .day.is-end { background: var(--blue); color: var(--white); }
.day.is-start::after, .day.is-end::after { background: var(--white); }
.day.is-today { font-weight: 600; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.lg--summer { background: var(--wood); }
.lg--season { background: var(--white); border: 1px solid var(--steel); }
.lg--full { width: 14px; height: 1px; border-radius: 0; background: var(--steel); }

.rule-msg { margin-top: 20px; padding: 16px 20px; background: var(--cream); border-left: 2px solid var(--wood); font-size: 14px; color: var(--ink-soft); }
.rule-msg a { color: var(--blue); text-decoration: underline; }

/* Units */
.units { display: grid; gap: 24px; }
.unit { display: grid; grid-template-columns: 260px 1fr; background: var(--white); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.unit:hover { border-color: var(--blue); box-shadow: 0 24px 48px -32px rgba(2,36,204,.4); }
.unit .frame { aspect-ratio: auto; min-height: 220px; }
.unit__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.unit__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.unit__top h3 { font-size: 30px; }
.unit__avail { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wood); font-weight: 600; }
.unit__avail.is-none { color: var(--muted); }
.unit__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-soft); }
.unit__price { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.unit__price .big { font-family: var(--serif); font-size: 30px; color: var(--blue); line-height: 1; }
.unit__price small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.unit.is-unavailable { opacity: .55; }
@media (max-width: 640px) { .unit { grid-template-columns: 1fr; } .unit .frame { min-height: 0; aspect-ratio: 16 / 9; } }

/* Extras / pay */
.extras, .paymethods { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.extras legend, .paymethods legend { margin-bottom: 14px; }
.extras b { font-weight: 500; color: var(--ink); }
.paymethods { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.pay { position: relative; cursor: pointer; }
.pay input { position: absolute; opacity: 0; }
.pay span { display: flex; align-items: center; justify-content: center; text-align: center; height: 64px; padding: 0 12px; border: 1px solid var(--line-ink); background: var(--white); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.pay input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.pay input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 560px) { .paymethods { grid-template-columns: 1fr; } }

.review { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.review div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.review dd { margin: 0; font-size: 15px; }
@media (max-width: 560px) { .review { grid-template-columns: 1fr; } }

/* Done */
.done { padding: 24px 0; }
.done h2 { margin: 18px 0 20px; }
.done__next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.done__next h3 { margin: 12px 0 8px; font-size: 22px; }
.done__next p { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 760px) { .done__next { grid-template-columns: 1fr; } }

/* Summary */
.summary { position: sticky; top: 108px; background: var(--white); border: 1px solid var(--line); }
.summary__img { aspect-ratio: 16 / 10; }
.summary__body { padding: 28px 28px 30px; }
.summary__body h3 { margin-top: 10px; font-size: 26px; }
.summary__addr { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.summary__dl { margin: 22px 0 0; border-top: 1px solid var(--line); }
.summary__dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary__dl dt { color: var(--muted); }
.summary__dl dd { margin: 0; text-align: right; }
.summary__lines { padding: 8px 0; font-size: 14px; }
.summary__lines div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--ink-soft); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--blue); }
.summary__total span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.summary__total strong { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--blue); }
.summary__fine { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
