/* Checkout nou (/rezerva) — mobil întâi, identitatea Refugiul Sidor. Fără build. */

.rz {
    --rz-blue: #1d5d8f;
    --rz-blue-dark: #14456b;
    --rz-blue-soft: #dbe8f3;
    --rz-cream: #f7f5f0;
    --rz-sand: #e8e2d6;
    --rz-line: #c9c1b2;
    --rz-green: #2e7d4f;
    --rz-ink: #2b3a44;
    --rz-muted: #5b6b76;
    --rz-busy: #a39a8a;
    --rz-busy-bg: #f0ebe1;

    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 120px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--rz-ink);
}

body:has(.rz) { background: #f7f5f0; }

/* ── UI1.1: fără stilurile globale din site.css (section / h2 / p sunt făcute pentru prima pagină).
   :where() ține specificitatea la nivelul etichetei, deci clasele rz-* de mai jos au în continuare prioritate. ── */
:where(.rz) section { padding: 0; }
:where(.rz) h2 {
    display: block; width: auto; margin: 0; text-align: left;
    font-family: inherit; font-size: inherit;
}
:where(.rz) h2::after { content: none; }
:where(.rz) p { margin: 0; font-size: inherit; }

/* ── Antet + progres ── */
.rz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 8px; }
.rz-brand { font-family: 'Merriweather', Georgia, serif; font-weight: 900; font-size: 18px; color: var(--rz-blue-dark); }
.rz-step { font-size: 13px; color: var(--rz-muted); }
.rz-top-text { flex: 1; min-width: 0; }
.rz-top-main { font-weight: 600; font-size: 15px; }
.rz-progress { height: 4px; margin: 0 16px; background: var(--rz-sand); border-radius: 999px; overflow: hidden; }
.rz-progress span { display: block; height: 4px; background: var(--rz-blue); border-radius: 999px; }

/* ── Conținut ── */
.rz-main { display: flex; flex-direction: column; gap: 18px; padding: 20px 16px; }
.rz-title { margin: 0; font-family: 'Merriweather', Georgia, serif; font-size: 24px; line-height: 1.25; color: var(--rz-blue-dark); }
.rz-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--rz-muted); }
.rz-muted { font-size: 13px; color: var(--rz-muted); }
.rz-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--rz-blue); text-decoration: none; }
.rz-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a2a1f; font-size: 14px; }
.rz-card { background: #fff; border: 1px solid var(--rz-sand); border-radius: 16px; padding: 16px; }
.rz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rz-icon-btn {
    width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; background: transparent; color: var(--rz-ink); cursor: pointer;
}
.rz-icon-btn:hover:not(:disabled) { background: var(--rz-busy-bg); }
.rz-icon-btn:disabled { opacity: .3; cursor: default; }

/* ── Calendar ── */
.rz-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rz-cal-month { font-weight: 600; font-size: 16px; text-transform: capitalize; }
.rz-cal-week, .rz-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.rz-cal-week { gap: 2px; margin-bottom: 4px; font-size: 12px; color: var(--rz-muted); text-transform: capitalize; }
.rz-cal-grid { row-gap: 2px; font-size: 15px; }
.rz-day {
    height: 42px; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; background: transparent; color: var(--rz-ink); font: inherit; cursor: pointer;
}
.rz-day:hover:not(:disabled) { outline: 1px solid var(--rz-blue); outline-offset: -1px; }
.rz-day:focus-visible { outline: 2px solid var(--rz-blue); outline-offset: -2px; }
.rz-day:disabled { color: #c3bcae; cursor: default; }
.rz-day.is-busy { color: var(--rz-busy); background: var(--rz-busy-bg); text-decoration: line-through; }
.rz-day.is-range { background: var(--rz-blue-soft); color: var(--rz-blue-dark); font-weight: 600; border-radius: 0; text-decoration: none; }
.rz-day.is-edge { background: var(--rz-blue); color: #fff; font-weight: 600; text-decoration: none; }
.rz-cal-grid.is-loading { opacity: .5; }
.rz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--rz-muted); }
.rz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rz-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rz-dot-sel { background: var(--rz-blue); }
.rz-dot-busy { background: var(--rz-sand); }
.rz-hint { margin: 10px 0 0; min-height: 20px; font-size: 14px; color: var(--rz-blue-dark); }
.rz-hint.is-error { color: #a33b2b; }

/* ── Persoane ── */
.rz-people { padding: 4px 16px; }
.rz-people-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.rz-people-row + .rz-people-row { border-top: 1px solid var(--rz-busy-bg); }
.rz-people-label { font-weight: 600; font-size: 15px; }
.rz-counter { display: flex; align-items: center; gap: 14px; }
.rz-counter output { min-width: 18px; text-align: center; font-weight: 600; font-size: 17px; }
.rz-round {
    width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rz-blue); background: #fff;
    color: var(--rz-blue); font-size: 20px; line-height: 1; cursor: pointer;
}
.rz-round:disabled { border-color: var(--rz-line); color: var(--rz-line); cursor: default; }

/* ── Cod ── */
.rz-code summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--rz-blue); list-style: none; }
.rz-code summary::-webkit-details-marker { display: none; }
.rz-field input {
    width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--rz-line); border-radius: 12px;
    background: #fff; color: var(--rz-ink); font: inherit; font-size: 16px; text-transform: uppercase; letter-spacing: .05em;
}
.rz-field input::placeholder { text-transform: none; letter-spacing: 0; }
.rz-field input:focus { outline: 2px solid var(--rz-blue); outline-offset: 0; border-color: var(--rz-blue); }
.rz-code-row { display: flex; gap: 8px; align-items: stretch; }
.rz-code-row .rz-field { flex: 1; min-width: 0; }
.rz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.rz-chips:empty { display: none; }
.rz-chip {
    display: inline-flex; align-items: center; gap: 2px; padding: 0 0 0 12px; border-radius: 999px;
    background: var(--rz-blue-soft); color: var(--rz-blue-dark); font-size: 14px; font-weight: 600; letter-spacing: .05em;
}
.rz-chip.is-error { background: #fdecea; color: #8a2a1f; }
.rz-chip.is-reward { background: #fbf3e4; color: #7a5a1c; }
.rz-chip-x {
    min-width: 36px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
    color: inherit; font-size: 18px; line-height: 1; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.rz-chip-x:hover { background: rgba(0, 0, 0, .06); }
.rz-notes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.rz-note { padding: 10px 14px; border-radius: 12px; background: var(--rz-blue-soft); color: var(--rz-blue-dark); }

/* ── Rezumat (pasul 2 provizoriu) ── */
.rz-summary { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.rz-summary div { display: flex; justify-content: space-between; gap: 12px; }
.rz-summary dt { color: var(--rz-muted); }
.rz-summary dd { margin: 0; font-weight: 600; text-align: right; }

/* ── Bara de jos ── */
.rz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--rz-sand); }
.rz-bar-inner { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.rz-bar-text { flex: 1; min-width: 0; }
.rz-bar-main { font-weight: 600; font-size: 15px; min-height: 20px; }
.rz-btn {
    min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--rz-blue); color: #fff;
    font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
}
.rz-btn:hover:not(:disabled) { background: var(--rz-blue-dark); }
.rz-btn:disabled { background: var(--rz-line); cursor: default; }

/* ── Pasul 2: variante ── */
.rz-group { display: flex; flex-direction: column; gap: 12px; }
.rz-h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--rz-ink); }
.rz-opt { position: relative; display: block; cursor: pointer; }
.rz-opt-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rz-opt-body {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--rz-sand); border-radius: 16px; overflow: hidden;
}
.rz-opt-input:checked + .rz-opt-body { border: 2px solid var(--rz-blue); padding: 13px 15px; }
.rz-opt-input:checked + .rz-opt-body::after {
    content: '✓'; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 999px;
    background: var(--rz-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rz-opt-input:focus-visible + .rz-opt-body { outline: 2px solid var(--rz-blue); outline-offset: 2px; }
.rz-opt-photo { padding: 0; }
.rz-opt-input:checked + .rz-opt-photo { padding: 0; }
.rz-photo { position: relative; display: block; aspect-ratio: 16 / 9; background: #c9d9e6; }
.rz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rz-photo-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
    background: var(--rz-green); color: #fff; font-size: 12px; font-weight: 600;
}
.rz-opt-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; cursor: pointer; }
.rz-opt-offer { background: #fbf3e4; border-color: #e8d9bb; }
.rz-opt-offer .rz-opt-text { padding: 0; }
.rz-opt-name { font-size: 17px; font-weight: 700; padding-right: 32px; }
.rz-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-badge { padding: 3px 10px; border-radius: 999px; background: var(--rz-green); color: #fff; font-size: 12px; font-weight: 600; }
.rz-badge-dark { background: var(--rz-blue-dark); }
.rz-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.rz-price s { margin-right: 4px; }
.rz-price-total { font-size: 20px; font-weight: 700; color: var(--rz-blue-dark); white-space: nowrap; }
.rz-included summary { min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--rz-blue); cursor: pointer; }
.rz-included ul { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; }
.rz-included p { margin: 0 0 8px; font-size: 14px; color: var(--rz-muted); }
.rz-empty p { margin: 0 0 12px; }
.rz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.rz-btn-ghost { background: #fff; color: var(--rz-blue); border: 1px solid var(--rz-blue); }
.rz-btn-ghost:hover:not(:disabled) { background: var(--rz-blue-soft); }
.rz-bar-total { font-weight: 700; font-size: 18px; color: var(--rz-blue-dark); }
.rz-alert a { color: inherit; font-weight: 600; }

/* ── Devizul ── */
.rz-quote { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 14px; }
.rz-quote-line { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--rz-busy-bg); }
.rz-quote-row { display: flex; justify-content: space-between; gap: 12px; }
.rz-quote-row > span:last-child { white-space: nowrap; }
.rz-quote-head { font-weight: 600; }
.rz-quote-total { font-weight: 700; font-size: 16px; color: var(--rz-blue-dark); padding-top: 4px; }
.rz-good { color: var(--rz-green); }

/* ── Pasul 4: formular ── */
.rz-fold summary { display: flex; justify-content: space-between; align-items: center; min-height: 32px; cursor: pointer; list-style: none; }
.rz-fold summary::-webkit-details-marker { display: none; }
.rz-fold-total { font-weight: 700; color: var(--rz-blue-dark); }
.rz-fields { display: flex; flex-direction: column; gap: 12px; }
.rz-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rz-field { display: flex; flex-direction: column; }
.rz-fields .rz-field input, .rz-fields .rz-field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rz-line); border-radius: 12px;
    background: #fff; color: var(--rz-ink); font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0;
}
.rz-fields .rz-field textarea { min-height: 88px; resize: vertical; }
.rz-field [aria-invalid="true"] { border-color: #c0392b; }
.rz-field-error { margin-top: 4px; font-size: 13px; color: #a33b2b; }
.rz-choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rz-choices-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.rz-choices-row legend { grid-column: 1 / -1; }
.rz-choice {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px;
    background: #fff; border: 1px solid var(--rz-line); border-radius: 12px; cursor: pointer;
}
.rz-choice:has(input:checked) { border: 2px solid var(--rz-blue); padding: 7px 13px; }
.rz-choice input { width: 20px; height: 20px; accent-color: var(--rz-blue); flex-shrink: 0; }
.rz-choice-text { flex: 1; display: flex; flex-direction: column; }
.rz-choice-amount { font-weight: 700; color: var(--rz-blue-dark); white-space: nowrap; }
.rz-choice-center { justify-content: center; min-height: 48px; }
.rz-bar-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.rz-btn-wide { width: 100%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rz-center { text-align: center; }

/* ── Pagina rezervării ── */
.rz-hero { padding: 24px 16px; color: #fff; background: var(--rz-blue-dark); display: flex; flex-direction: column; gap: 8px; }
.rz-hero-cancelled { background: #6b5a56; }
.rz-status { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #b7791f; }
.rz-hero-confirmed .rz-status { background: var(--rz-green); }
.rz-hero-cancelled .rz-status { background: #8a2a1f; }
.rz-hero-title { margin: 0; font-family: 'Merriweather', Georgia, serif; font-size: 22px; line-height: 1.3; }
.rz-hero-sub { font-size: 14px; opacity: .9; }
.rz-transfer p { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.rz-deadline { padding: 8px 12px; border-radius: 10px; background: #fdf3e1; color: #7a4d0b; font-weight: 600; }
.rz-transfer .rz-summary dd { display: flex; align-items: center; gap: 8px; word-break: break-all; }
.rz-copy { min-height: 32px; padding: 0 10px; border: 1px solid var(--rz-blue); border-radius: 999px; background: #fff; color: var(--rz-blue); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.rz-btn-wa { border-color: var(--rz-green); color: #1f5c39; }

/* ── C2 PR 3 — pasul 3: extra-urile ── */
.rz-extra { display: flex; flex-direction: column; gap: 10px; }
.rz-extra.is-on { border-color: var(--rz-blue); box-shadow: 0 0 0 1px var(--rz-blue); }
.rz-extra-head { display: flex; align-items: center; gap: 12px; }
.rz-extra-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.rz-extra-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rz-extra-name { font-size: 16px; }
.rz-extra-toggle { flex: none; }
.rz-extra-note { font-size: 13px; line-height: 1.45; color: var(--rz-muted); white-space: pre-line; }
.rz-extra-days { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 1px solid var(--rz-busy-bg); }
.rz-extra-days[hidden] { display: none; }
.rz-extra-all { align-self: flex-start; padding: 0; min-height: 36px; }
.rz-extra-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rz-extra-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.rz-extra-day.is-busy { color: var(--rz-busy); }
.rz-extra-check, label.rz-extra-day { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; }
.rz-extra-day input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--rz-blue); flex: none; }
.rz-extra-date { text-transform: capitalize; }
.rz-extra-persons {
    min-height: 40px; padding: 0 10px; border: 1px solid var(--rz-line); border-radius: 10px;
    background: #fff; color: var(--rz-ink); font: inherit; font-size: 14px;
}

/* ── UI1.2 — rezumatul (pașii 3–4): pe telefon sub pași, pe desktop fix în dreapta ── */
.rz-summary-card { display: flex; flex-direction: column; gap: 6px; }
.rz-summary-card .rz-quote { margin-top: 6px; }
.rz-fold-details { margin-top: 8px; }
.rz-fold-details summary { min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--rz-blue); cursor: pointer; }
.rz-aside { padding: 0 16px 24px; }

@media (min-width: 960px) {
    .rz.rz-wide { max-width: 1040px; }
    .rz-wide .rz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
    .rz-wide .rz-aside { position: sticky; top: 16px; padding: 20px 16px 0 0; }
    .rz-wide .rz-bar-inner { max-width: 1040px; }
}
div.rz-fold { display: flex; justify-content: space-between; align-items: center; }
.rz-quote-row[hidden] { display: none; }
/* Transfer v2: dus / întors, cursa la alegere */
.rz-extra-leg { margin: 0; padding: 6px 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.rz-extra-leg-title { padding: 0; font-weight: 600; font-size: 14px; }
.rz-extra-runs { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-run { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rz-line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.rz-run:has(input:checked) { border-color: var(--rz-blue); background: var(--rz-blue-soft); color: var(--rz-blue-dark); font-weight: 600; }
.rz-run input { accent-color: var(--rz-blue); }
/* PR 4: „necesită confirmarea noastră” (extra cerut aproape de dată) */
.rz-tag-confirm { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fbf3e4; color: #7a5a1c; font-size: 12px; font-weight: 600; }
/* PR 4: pagina rezervării — informații utile */
.rz-info { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.rz-info-title { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--rz-blue-dark); }
.rz-info a { color: var(--rz-blue); font-weight: 600; }

/* ── RZ2 — pașii 1–2 pe desktop: două luni, panoul „De știut”, cazările pe două coloane ── */
.rz-cal-month { flex: 1; text-align: center; }
.rz-cal-month2, .rz-cal-pane2 { display: none; }
.rz-panel { gap: 4px; }
.rz-panel p { margin: 0; }
.rz-panel .rz-info-title:first-child { margin-top: 0; }
.rz-save { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rz-save li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--rz-blue-soft); color: var(--rz-blue-dark); }
.rz-save strong { white-space: nowrap; color: var(--rz-green); }
.rz-panel .rz-btn-wa { margin-top: 8px; align-self: flex-start; }

@media (min-width: 960px) {
    .rz-wide .rz-cal-month2, .rz-wide .rz-cal-pane2 { display: block; }
    .rz-wide .rz-cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .rz-wide .rz-group:has(> .rz-opt) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
    .rz-wide .rz-group:has(> .rz-opt) > .rz-h2 { grid-column: 1 / -1; }
    .rz-wide .rz-group > .rz-opt > .rz-opt-body { height: 100%; }
}
