/* ===================================================================
   4AL.app — Reservation Flow (shared across all models)
   /modelos/_shared/reserva/reserva-flow.css

   Inclui estilos para:
     - /propriedade?disponibilidade (cards de selecção)
     - /reserva (form + sticky summary)
     - /confirmacao (Stripe redirect landing)

   Skin via CSS custom properties em :root — cada modelo pode redefinir
   as variáveis no seu próprio CSS para alterar cores/border-radius sem
   tocar neste ficheiro. Defaults abaixo. Modelos típicos só precisam
   de mexer em --resv-primary.
   =================================================================== */

:root {
    /* Cores */
    --resv-primary:        #0c4727;          /* CTA principal */
    --resv-primary-hover:  #0e5230;
    --resv-primary-soft:   #f3f7f5;          /* hover / background suave */
    --resv-primary-border: #d8e8df;
    --resv-text:           #222;
    --resv-text-muted:     #666;
    --resv-text-soft:      #888;
    --resv-border:         #ececec;
    --resv-border-input:   #d8d8d8;
    --resv-bg-page:        #fafafa;
    --resv-bg-card:        #fff;
    --resv-success:        #2e8348;
    --resv-success-bg:     #e7f5ec;
    --resv-warn:           #d97706;
    --resv-warn-bg:        #fff0e8;
    --resv-error:          #cc0000;
    --resv-error-bg:       #fff8f8;
    --resv-info:           #3b5bdb;
    --resv-info-bg:        #eef2ff;

    /* Forma */
    --resv-radius-card:    16px;
    --resv-radius-input:   10px;
    --resv-radius-pill:    50px;

    /* Sombras */
    --resv-shadow-card:    0 1px 3px rgba(0,0,0,.03), 0 6px 22px rgba(0,0,0,.03);
    --resv-shadow-hover:   0 4px 12px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.06);
    --resv-shadow-sticky:  0 1px 3px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.06);
}

/* Summary bar (topo de /propriedade modo disponibilidade)
   Defensivo: width 100%, clear:both, position:relative, display:block — para
   neutralizar floats / position absolute que o legacy CSS possa ter aplicado
   ao .reservasform (que é hidden em disp mode) ou ao parent. */
.resv-summary-bar {
    display:block !important;
    width:100% !important;
    box-sizing:border-box;
    clear:both;
    position:relative;
    float:none !important;
    background:var(--resv-bg-card);
    border:1px solid #e7e7e7;
    border-radius:var(--resv-radius-card);
    padding:18px 22px; margin:30px 0 40px;
    box-shadow:var(--resv-shadow-card);
}
.resv-summary-bar-row {
    /* Belt-and-braces: combinamos flex E grid auto-fit como redundância.
       Se algum reset do framework legacy esmagar `display:flex`, o `display:grid`
       no `>* nth` ou `auto-fit minmax` mantém o layout horizontal funcional. */
    display:flex !important;
    flex-direction:row !important;
    align-items:center; gap:30px; flex-wrap:wrap;
    width:100%;
}
.resv-summary-pill {
    display:inline-flex !important;
    flex-direction:row !important;
    align-items:center; gap:12px;
    flex:1 1 auto; min-width:160px;
    float:none !important;
    /* width:auto explícito porque o legacy CSS pode ter `.div-100 { width:100% }`
       ou similar que matcham parcialmente e quebram o flex. */
    width:auto !important;
}
.resv-summary-pill > i { font-size:1.6em; color:var(--resv-primary); flex-shrink:0; }
.resv-summary-pill-label { font-size:.78em; color:var(--resv-text-soft); text-transform:uppercase; letter-spacing:.5px; }
.resv-summary-pill-value { font-size:1.02em; color:var(--resv-text); font-weight:600; }
.resv-summary-edit {
    margin-left:auto; color:var(--resv-primary); font-size:.9em; font-weight:500;
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 14px; border-radius:var(--resv-radius-pill);
    background:var(--resv-primary-soft);
    transition:background .2s; text-decoration:none;
}
.resv-summary-edit:hover { background:#e6efe9; }

.resv-section-title {
    font-size:1.5em; color:var(--resv-primary); font-weight:500;
    margin:0 0 24px; letter-spacing:.3px;
}

/* Cards de opções */
.resv-cards-grid { display:grid; grid-template-columns:1fr; gap:24px; margin-bottom:50px; }
.resv-card {
    display:grid; grid-template-columns:280px 1fr;
    background:var(--resv-bg-card); border:1px solid var(--resv-border);
    border-radius:18px; overflow:hidden;
    transition:transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.resv-card:hover {
    transform:translateY(-2px);
    box-shadow:var(--resv-shadow-hover);
    border-color:#d8d8d8;
}
.resv-card-media { background:#f0f0f0; min-height:220px; position:relative; }
.resv-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
.resv-card-body { padding:24px 26px; display:flex; flex-direction:column; }
.resv-card-head { margin-bottom:14px; }
.resv-card-title { margin:0 0 10px; font-size:1.3em; font-weight:600; color:var(--resv-text); letter-spacing:.2px; }
.resv-card-meta { display:flex; flex-wrap:wrap; gap:14px; font-size:.92em; color:var(--resv-text-muted); }
.resv-meta-item { display:inline-flex; align-items:center; gap:6px; }
.resv-meta-item i { font-size:1em; color:var(--resv-primary); }
.resv-meta-badge {
    background:var(--resv-primary-soft); color:var(--resv-primary);
    padding:4px 10px; border-radius:var(--resv-radius-pill); font-weight:500;
}
.resv-card-features {
    list-style:none; padding:0; margin:0 0 18px;
    display:grid; grid-template-columns:1fr 1fr; gap:8px 16px;
    font-size:.9em; color:#555;
}
.resv-card-features li { display:flex; align-items:center; gap:8px; }
.resv-card-features i { color:var(--resv-primary); font-size:.85em; flex-shrink:0; }
.resv-card-foot {
    margin-top:auto;
    display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
    padding-top:14px; border-top:1px solid #f1f1f1;
}
.resv-card-price-night { font-size:1.1em; font-weight:600; color:var(--resv-text); }
.resv-card-price-night span { font-weight:400; font-size:.85em; color:var(--resv-text-soft); }
.resv-card-price-total { margin-top:4px; font-size:.85em; color:var(--resv-text-soft); }
.resv-card-price-total span { color:#aaa; }

/* Botões — !important defensivo porque o legacy aplica `a { color: green }`
   e `a:hover { color: ... }` com especificidade que vence as nossas classes. */
.resv-btn {
    display:inline-flex !important;
    align-items:center; justify-content:center; gap:8px;
    padding:12px 22px; border-radius:var(--resv-radius-pill);
    font-weight:500; font-size:.95em;
    text-decoration:none !important; cursor:pointer;
    transition:all .2s ease; border:0; line-height:1.2;
}
.resv-btn,
.resv-btn:link,
.resv-btn:visited { text-decoration:none !important; }
.resv-btn i { line-height:1; color:inherit !important; }

.resv-btn-primary,
.resv-btn-primary:link,
.resv-btn-primary:visited {
    background:var(--resv-primary) !important;
    color:#fff !important;
}
.resv-btn-primary:hover,
.resv-btn-primary:focus,
.resv-btn-primary:active {
    background:var(--resv-primary-hover) !important;
    color:#fff !important;
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(12,71,39,.25);
}
.resv-btn-primary:disabled,
.resv-btn-primary.is-disabled {
    background:#9c9c9c !important; color:#fff !important;
    cursor:not-allowed; transform:none; box-shadow:none;
}

.resv-btn-secondary,
.resv-btn-secondary:link,
.resv-btn-secondary:visited {
    background:#fff !important;
    color:var(--resv-primary) !important;
    border:1px solid var(--resv-primary) !important;
}
.resv-btn-secondary:hover,
.resv-btn-secondary:focus {
    background:var(--resv-primary) !important;
    color:#fff !important;
}

.resv-btn-ghost,
.resv-btn-ghost:link,
.resv-btn-ghost:visited {
    background:transparent !important;
    color:#555 !important;
}
.resv-btn-ghost:hover,
.resv-btn-ghost:focus { color:var(--resv-primary) !important; }

.resv-btn-lg { padding:16px 30px; font-size:1.05em; }
.resv-btn-lock { margin-left:4px; opacity:.85; }

/* Trust strip */
.resv-trust {
    display:flex; justify-content:center; gap:30px; flex-wrap:wrap;
    padding:24px; margin:30px 0 60px;
    background:var(--resv-bg-page); border-radius:12px;
    font-size:.92em; color:var(--resv-text-muted);
}
.resv-trust-item { display:inline-flex; align-items:center; gap:8px; }
.resv-trust-item i { color:var(--resv-success); font-size:1.1em; }

/* Empty state */
.resv-empty {
    text-align:center; padding:80px 20px;
    background:var(--resv-bg-page); border-radius:12px;
    margin:30px 0 60px;
}
.resv-empty-icon i { font-size:60px; color:#cc4040; }
.resv-empty-title { margin-top:24px; font-size:1.25em; color:#444; font-weight:500; }
.resv-empty-help { margin:14px auto 30px; font-size:1em; color:var(--resv-text-soft); max-width:520px; }

/* Reserva page (split layout) */
.resv-page { background:var(--resv-bg-page); padding:0 0 80px; margin-top:-30px; }
.banner-page-slim .banner-static { height:32vh !important; min-height:220px; }

/* Progress indicator */
.resv-progress {
    display:flex; align-items:center;
    background:var(--resv-bg-card); padding:24px 26px;
    border-radius:14px; border:1px solid var(--resv-border);
    margin:30px 0 28px;
    overflow-x:auto;
}
.resv-progress-step {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    flex-shrink:0; min-width:90px;
}
.resv-progress-num {
    width:32px; height:32px; border-radius:50%;
    background:var(--resv-border); color:var(--resv-text-soft);
    display:flex; align-items:center; justify-content:center;
    font-size:.95em; font-weight:600;
}
.resv-progress-label { font-size:.82em; color:#999; text-align:center; }
.resv-progress-step.is-done .resv-progress-num { background:var(--resv-success); color:#fff; }
.resv-progress-step.is-done .resv-progress-label { color:var(--resv-success); }
.resv-progress-step.is-active .resv-progress-num {
    background:var(--resv-primary); color:#fff;
    box-shadow:0 0 0 4px rgba(12,71,39,.15);
}
.resv-progress-step.is-active .resv-progress-label { color:var(--resv-primary); font-weight:600; }
.resv-progress-line {
    flex:1 1 auto; height:2px; background:var(--resv-border);
    margin:0 6px; margin-top:-22px; min-width:30px;
}
.resv-progress-line.is-done { background:var(--resv-success); }

/* Layout split — `align-items: stretch` (default) é necessário para o
   `position: sticky` do .resv-summary-card funcionar: a coluna direita
   estica até à altura da coluna esquerda (form longo), dando ao card
   espaço de scroll onde se agarrar quando o user faz scroll. */
.resv-grid { display:grid; grid-template-columns:1fr 380px; gap:30px; align-items:stretch; }
.resv-form-col { min-width:0; }
.resv-summary-col {
    min-width:0;
    /* `align-self: stretch` força a coluna a esticar até à altura da row do
       grid (= altura da coluna do form, normalmente mais alta). Esse stretch
       é o que dá ao `position:sticky` do .resv-summary-card o espaço de
       scroll necessário para "agarrar-se" durante o scroll do user. */
    align-self:stretch;
}

/* Form sections */
.resv-form { display:block; }
.resv-section {
    background:var(--resv-bg-card); border:1px solid var(--resv-border);
    border-radius:14px;
    padding:28px 30px; margin-bottom:18px;
}
.resv-section-h {
    margin:0 0 6px; font-size:1.15em; font-weight:600; color:var(--resv-text);
    display:flex; align-items:center; gap:12px;
}
.resv-section-num {
    width:28px; height:28px; border-radius:50%;
    background:var(--resv-primary); color:#fff;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:.9em; font-weight:600;
}
.resv-section-optional { color:#aaa; font-weight:400; font-size:.85em; }
.resv-section-help { margin:0 0 22px; color:#777; font-size:.92em; }

.resv-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px 22px; }
.resv-field { display:flex; flex-direction:column; min-width:0; }
.resv-field-wide { grid-column:1 / -1; }
.resv-field label { font-size:.88em; color:#444; font-weight:500; margin-bottom:6px; }
.resv-field label .req { color:var(--resv-error); }
.resv-field input, .resv-field textarea, .resv-field select {
    padding:12px 14px;
    border:1px solid var(--resv-border-input); border-radius:var(--resv-radius-input);
    background:#fff; font-size:1em; color:var(--resv-text);
    transition:border-color .2s ease, box-shadow .2s ease;
    font-family:inherit;
}
.resv-field input:focus, .resv-field textarea:focus, .resv-field select:focus {
    outline:none; border-color:var(--resv-primary);
    box-shadow:0 0 0 3px rgba(12,71,39,.12);
}
.resv-field-help { font-size:.82em; color:var(--resv-text-soft); margin-top:6px; }
.resv-field-error {
    font-size:.85em; color:var(--resv-error); margin-top:6px;
    display:flex; align-items:center; gap:6px;
}
.resv-field.has-error input, .resv-field.has-error textarea {
    border-color:var(--resv-error); background:var(--resv-error-bg);
}

.resv-checkbox {
    background:var(--resv-bg-card); border:1px solid var(--resv-border);
    border-radius:12px; padding:18px 22px;
    display:flex; gap:12px; align-items:flex-start;
}
.resv-checkbox input[type=checkbox] { margin-top:3px; width:18px; height:18px; cursor:pointer; }
.resv-checkbox label { font-size:.95em; color:#444; cursor:pointer; }
.resv-checkbox label a { color:var(--resv-primary); text-decoration:underline; }
.resv-checkbox.has-error { border-color:var(--resv-error); background:var(--resv-error-bg); }

.resv-actions { display:flex; justify-content:space-between; gap:14px; margin-top:24px; flex-wrap:wrap; }

/* Alerts */
.resv-alert {
    display:flex; gap:14px; align-items:center;
    padding:16px 20px; border-radius:12px;
    margin:20px 0 24px; font-size:.95em;
}
.resv-alert i { font-size:1.6em; flex-shrink:0; }
.resv-alert-error { background:#fff3f3; border:1px solid #ffd4d4; color:#8b0000; }
.resv-alert-error i { color:var(--resv-error); }

/* Sticky summary card — fica sempre visível ao fazer scroll na página.
   Requisitos para funcionar (todos garantidos no CSS deste ficheiro):
     - O parent `.resv-summary-col` tem `align-self: stretch` para esticar
       até à altura da coluna do form (caso contrário não há "trilho" para
       o sticky agarrar-se).
     - Nenhum ancestor tem `overflow:hidden|auto|scroll` (sticky precisa
       que o viewport seja o scrolling element). Se algum ancestor legacy
       impuser overflow, sticky degrada graciosamente para position:static. */
.resv-summary-card {
    position:sticky;
    top:30px;             /* respiro do topo da viewport quando agarrado */
    background:var(--resv-bg-card); border:1px solid var(--resv-border);
    border-radius:var(--resv-radius-card); overflow:hidden;
    box-shadow:var(--resv-shadow-sticky);
    z-index:1;
}
.resv-summary-image { height:160px; background-size:cover; background-position:center; }
.resv-summary-body { padding:22px 24px; }
.resv-summary-name { font-size:1.15em; font-weight:600; color:var(--resv-text); margin-bottom:2px; }
.resv-summary-aloj { font-size:.88em; color:var(--resv-text-soft); margin-bottom:18px; }
.resv-summary-dates {
    display:flex; align-items:center; gap:8px;
    margin:18px 0; padding:14px;
    background:var(--resv-bg-page); border-radius:10px;
}
.resv-summary-date-block { flex:1 1 auto; }
.resv-summary-date-label {
    font-size:.72em; text-transform:uppercase; letter-spacing:.5px;
    color:var(--resv-text-soft); margin-bottom:3px;
}
.resv-summary-date-value { font-size:.95em; font-weight:600; color:var(--resv-text); }
.resv-summary-date-arrow { color:#bbb; font-size:1em; flex-shrink:0; }
.resv-summary-occup { font-size:.92em; color:#555; display:flex; align-items:center; gap:8px; }
.resv-summary-occup i { color:var(--resv-primary); }

.resv-summary-sep { border:0; border-top:1px solid #eee; margin:18px 0; }
.resv-summary-line {
    display:flex; justify-content:space-between;
    font-size:.94em; color:#555; margin-bottom:10px;
}
.resv-summary-line:last-child { margin-bottom:0; }
.resv-summary-total {
    display:flex; justify-content:space-between; align-items:center;
    font-size:1em; font-weight:600; color:var(--resv-text);
}
.resv-summary-total-amount { font-size:1.5em; color:var(--resv-primary); font-weight:700; }

.resv-summary-adiantamento {
    margin-top:18px;
    background:var(--resv-primary-soft); border:1px solid var(--resv-primary-border);
    border-radius:12px; padding:14px 16px;
}
.resv-summary-adiantamento-row { display:flex; gap:10px; align-items:flex-start; }
.resv-summary-adiantamento-row i { color:var(--resv-primary); font-size:1.2em; margin-top:2px; }
.resv-summary-adiantamento-val { font-size:1.05em; color:var(--resv-primary); font-weight:600; }
.resv-summary-adiantamento-msg {
    margin-top:6px; font-size:.85em; color:var(--resv-text-muted); line-height:1.45;
}
.resv-summary-adiantamento-rest {
    margin-top:10px; padding-top:10px;
    border-top:1px solid var(--resv-primary-border);
    font-size:.88em; color:var(--resv-text-muted);
}

/* Variante offline (sem Stripe): mesma forma, tom mais neutro/informativo */
.resv-summary-adiantamento-offline {
    background:var(--resv-warn-bg);
    border-color:#fbd1a3;
}
.resv-summary-adiantamento-offline .resv-summary-adiantamento-row i { color:var(--resv-warn); }
.resv-summary-adiantamento-offline strong { color:#9a4d00; }
.resv-summary-adiantamento-offline .resv-summary-adiantamento-rest {
    border-top-color:#fbd1a3;
}

.resv-summary-trust { margin-top:18px; padding-top:18px; border-top:1px solid #eee; }
.resv-trust-mini { display:flex; align-items:center; gap:8px; font-size:.83em; color:#777; margin:6px 0; }
.resv-trust-mini i { color:var(--resv-success); }

/* Confirmation page */
.resv-conf { max-width:680px; margin:50px auto; text-align:center; padding:40px 30px; }
.resv-conf-icon {
    width:88px; height:88px; border-radius:50%;
    margin:0 auto 26px;
    display:flex; align-items:center; justify-content:center;
    font-size:42px;
}
.resv-conf-icon-success { background:var(--resv-success-bg); color:var(--resv-success); }
.resv-conf-icon-warn    { background:var(--resv-warn-bg); color:var(--resv-warn); }
.resv-conf-icon-info    { background:var(--resv-info-bg); color:var(--resv-info); }
.resv-conf-spinner {
    width:48px; height:48px;
    border:5px solid #e0e7ff; border-top-color:var(--resv-info);
    border-radius:50%;
    animation:resvSpin 1s linear infinite;
}
@keyframes resvSpin { to { transform:rotate(360deg); } }

.resv-conf-title { font-size:1.8em; color:var(--resv-text); font-weight:600; margin:0 0 12px; }
.resv-conf-subtitle {
    color:var(--resv-text-muted); font-size:1.05em; line-height:1.55;
    margin:0 auto 30px; max-width:540px;
}

.resv-conf-card {
    text-align:left;
    background:var(--resv-bg-card); border:1px solid var(--resv-border);
    border-radius:14px; overflow:hidden;
    margin:24px auto; max-width:520px;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.resv-conf-card-muted { background:var(--resv-bg-page); }
.resv-conf-card-head {
    padding:14px 20px; background:var(--resv-bg-page);
    border-bottom:1px solid var(--resv-border);
    display:flex; justify-content:space-between; align-items:center;
    font-size:.9em;
}
.resv-conf-card-ref { color:var(--resv-text-muted); }
.resv-conf-card-ref strong { color:var(--resv-text); margin-left:6px; }
.resv-conf-print {
    color:var(--resv-primary); text-decoration:none;
    display:inline-flex; align-items:center; gap:5px;
}
.resv-conf-print:hover { text-decoration:underline; }
.resv-conf-card-body { padding:18px 20px; }
.resv-conf-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:10px 0; border-bottom:1px solid #f3f3f3;
}
.resv-conf-row:last-child { border-bottom:0; }
.resv-conf-row-total {
    padding-top:16px; margin-top:6px;
    border-top:2px solid var(--resv-border); border-bottom:0;
}
.resv-conf-label { color:#777; font-size:.92em; }
.resv-conf-value { color:var(--resv-text); font-weight:500; }
.resv-conf-total { font-size:1.3em; color:var(--resv-primary); font-weight:700; }

.resv-conf-next {
    text-align:left;
    background:#f9fbfa; border:1px solid var(--resv-primary-border);
    border-radius:12px;
    padding:20px 24px; margin:30px auto; max-width:520px;
}
.resv-conf-next h3 {
    margin:0 0 12px; font-size:1em; color:var(--resv-primary);
    text-transform:uppercase; letter-spacing:.5px;
}
.resv-conf-next ol { margin:0; padding-left:20px; color:#555; font-size:.94em; line-height:1.65; }
.resv-conf-next li { margin-bottom:6px; }

.resv-conf-actions { display:flex; justify-content:center; gap:14px; margin-top:30px; flex-wrap:wrap; }
.resv-conf-pending-ref { font-size:.92em; color:var(--resv-text-muted); margin-top:12px; }

/* Alert box no estado "checkin" (pagamento na chegada) — destaque visual */
.resv-conf-alert {
    text-align:left;
    background:var(--resv-warn-bg);
    border:1px solid #fbd1a3;
    border-left:4px solid var(--resv-warn);
    border-radius:12px;
    padding:18px 22px;
    margin:24px auto;
    max-width:520px;
    display:flex; gap:14px; align-items:flex-start;
}
.resv-conf-alert > i {
    color:var(--resv-warn); font-size:1.6em; flex-shrink:0; margin-top:2px;
}
.resv-conf-alert strong {
    display:block; color:#9a4d00;
    margin-bottom:6px; font-size:1em;
}
.resv-conf-alert p {
    margin:0; color:#6b3a0e; font-size:.92em; line-height:1.5;
}

/* ===================================================================
   Daterangepicker — destaque dos dias INDISPONÍVEIS
   (alimentado via isInvalidDate / isCustomDate em propriedade.php)
   =================================================================== */

/* Dias inválidos (já reservados): vermelho claro com strikethrough,
   visíveis mas não clicáveis. */
.daterangepicker td.off.disabled.reservado-cell,
.daterangepicker td.disabled.reservado-cell {
    background:#fde2e2 !important;
    color:#a94545 !important;
    text-decoration:line-through;
    cursor:not-allowed;
    opacity:1;             /* anula o "off" cinza-pálido default */
}

/* Hover sobre dia reservado: explícito que NÃO é clicável */
.daterangepicker td.reservado-cell:hover {
    background:#f5c1c1 !important;
    color:#7a2c2c !important;
}

/* Dias livres por defeito do daterangepicker — verde-claro para reforçar
   "available" (uma escolha visual: muitos sites de booking usam isto). */
.daterangepicker td.available:not(.off):not(.disabled):not(.in-range):not(.active) {
    background:#e8f5ec;
    color:#0c4727;
}
.daterangepicker td.available:not(.off):not(.disabled):not(.in-range):not(.active):hover {
    background:#cdebd6;
    color:#0c4727;
}
.resv-badge-warn {
    background:var(--resv-warn-bg); color:var(--resv-warn);
    padding:4px 10px; border-radius:var(--resv-radius-pill);
    font-size:.85em; font-weight:600;
}

/* Responsive */
@media (max-width:1023px) {
    .resv-grid { grid-template-columns:1fr; gap:24px; }
    .resv-summary-col { order:-1; }
    .resv-summary-card { position:static; }
    .resv-card { grid-template-columns:1fr; }
    .resv-card-media { min-height:200px; }
    .resv-progress { padding:18px 16px; }
    .resv-progress-label { font-size:.72em; }
    .resv-summary-bar-row { gap:18px; }
    .resv-summary-pill { min-width:140px; }
}
@media (max-width:768px) {
    .resv-progress-line { min-width:20px; }
    .resv-progress-step { min-width:75px; }
    .resv-form-grid { grid-template-columns:1fr; }
    .resv-section { padding:22px 20px; }
    .resv-actions { flex-direction:column-reverse; }
    .resv-actions .resv-btn { width:100%; justify-content:center; }
    .resv-conf-actions .resv-btn { width:100%; }
    .resv-trust { flex-direction:column; gap:14px; }
    .resv-card-features { grid-template-columns:1fr; }
    .resv-summary-edit { margin-left:0; width:100%; justify-content:center; }
}
@media (max-width:600px) {
    .resv-progress-label { display:none; }
    .resv-progress-step { min-width:48px; }
    .resv-card-body { padding:18px 20px; }
    .resv-card-foot { flex-direction:column; align-items:stretch; gap:14px; }
    .resv-card-foot .resv-btn { width:100%; justify-content:center; }
}
