/* „Moje rezerwacje” (R187 B): sign-in, then the list with the chosen booking beside it. */

.guest { min-height: 62svh; padding-top: 12px; padding-bottom: 64px; }
.guest__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.guest__head h1 { font-size: clamp(38px, 4vw, 54px); line-height: 1.05; }
.guest__head [hidden] { display: none; }
.guest__note, .guest__error { padding: 10px 13px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.4; }
.guest__error { color: var(--bordo); }
.guest__error[hidden] { display: none; }
.guest__screen { animation: guest-in 0.24s var(--ease); }
.rise { animation: guest-in 0.24s var(--ease); }
@keyframes guest-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .guest__screen, .rise { animation: none; } }

.guest-sign { display: grid; gap: 14px; max-width: 420px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.guest-sign h2 { font-size: 30px; line-height: 1.1; }
.guest-sign p { font-size: 15px; line-height: 1.5; color: var(--soft); }
.booking-field { display: grid; gap: 5px; font-size: 14px; color: var(--muted); }
.booking-field input, .guest-code { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.guest-code { font-size: 26px; font-weight: 500; letter-spacing: 0.32em; text-align: center; font-variant-numeric: tabular-nums; }
.guest-sign .text-link { justify-self: center; border: 0; background: none; cursor: pointer; }

.guest-layout { display: grid; gap: 16px; align-items: start; }
.guest-layout.has-detail { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.guest-side { display: grid; gap: 12px; min-width: 0; }
.guest-tabs { display: inline-flex; justify-self: start; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.guest-tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.guest-tabs button[aria-pressed='true'] { background: var(--surface); color: var(--ink); }
.guest-list { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.guest-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 0.18s; }
.guest-row:hover, .guest-row[aria-current] { background: var(--surface-2); }
.guest-row img { flex: none; width: 76px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.guest-row > span { display: grid; min-width: 0; }
.guest-row b { overflow: hidden; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.guest-row small { font-size: 13.5px; color: var(--muted); }
.guest-row em { font-size: 12.5px; font-style: normal; color: var(--soft); }
.guest-empty { display: grid; gap: 12px; justify-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.guest-empty p { color: var(--soft); }

.guest-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.guest-detail > img { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--surface-2); }
.guest-back { display: none; border: 0; background: none; cursor: pointer; }
.guest-detail__body { display: grid; gap: 10px; padding: 18px; }
.guest-detail h2 { font-size: 30px; line-height: 1.1; }
.guest-detail__when { font-size: 16px; font-weight: 500; }
.guest-detail p { color: var(--soft); }
.guest-detail .guest-detail__when { color: var(--ink); }
.guest-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.guest-actions .button { width: 100%; }
.guest-panel { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; }
.guest-panel b { font-weight: 500; }
.guest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guest-days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.guest-chips button { flex: none; min-height: 40px; padding: 0 13px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.guest-chips button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.guest-chips small { color: var(--muted); }

@media (max-width: 860px) {
  .guest-layout.has-detail { grid-template-columns: minmax(0, 1fr); }
  .guest-layout.has-detail .guest-side { display: none; }
  .guest-back { display: block; padding: 12px 16px 8px; }
  .guest-detail > img { height: 160px; }
}

/* A review after a visit (owner, 2026-11-24, R189 D) */
.guest-review-open { justify-self: start; }
.guest-review-state { display: grid; gap: 4px; justify-items: start; }
.review-form { gap: 12px; }
.review-form textarea, .review-form input:not([type]) { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--field); border-radius: 13px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.review-stars { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.review-stars legend { margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.review-stars label { position: relative; display: grid; place-items: center; width: 44px; height: 44px; font-size: 32px; line-height: 1; color: var(--field); cursor: pointer; transition: color 0.15s; }
.review-stars input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.review-stars label:has(~ label input:checked), .review-stars label:has(input:checked) { color: var(--bordo); }
.review-stars label:has(input:focus-visible) { outline: 2px solid var(--bordo); outline-offset: 1px; border-radius: 9px; }
.review-stars__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.review-form__hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.review-form__consent { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.4; color: var(--soft); cursor: pointer; }
.review-form__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bordo); }
