/* Componente "Gerar PDF" do imóvel (property_pdf_report.js): seletor de
 * seções, progresso da geração e pré-visualização do relatório. Carregado
 * pelo include components_template/_property_pdf_report.jinja. */

.rr-pn-mapa-detail__pdf-picker {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.rr-pn-mapa-detail__pdf-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
}
.rr-pn-mapa-detail__pdf-picker-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: min(88vh, 560px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    overflow: hidden;
}
.rr-pn-mapa-detail__pdf-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #eef2f6;
}
.rr-pn-mapa-detail__pdf-picker-head h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1F4035;
}
.rr-pn-mapa-detail__pdf-picker-head p {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.45;
}
.rr-pn-mapa-detail__pdf-picker-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
}
.rr-pn-mapa-detail__pdf-picker-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.rr-pn-mapa-detail__pdf-picker-actions-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 0;
    font-size: 11px;
    color: #64748b;
}
.rr-pn-mapa-detail__pdf-picker-link {
    border: none;
    background: none;
    padding: 0;
    color: #356854;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rr-pn-mapa-detail__pdf-picker-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}
.rr-pn-mapa-detail__pdf-picker-list {
    padding: 10px 14px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rr-pn-mapa-detail__pdf-picker-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e8efeb;
    border-radius: 9px;
    background: #fafcfb;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-opt:hover {
    border-color: #c9ddd2;
    background: #f3f8f5;
}
.rr-pn-mapa-detail__pdf-picker-opt input {
    margin-top: 2px;
    accent-color: #356854;
    flex-shrink: 0;
}
.rr-pn-mapa-detail__pdf-picker-opt-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.rr-pn-mapa-detail__pdf-picker-opt-label {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}
.rr-pn-mapa-detail__pdf-picker-opt-hint {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.35;
}
.rr-pn-mapa-detail__pdf-picker-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #eef2f6;
    background: #fafcfb;
}
.rr-pn-mapa-detail__pdf-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #d8e4dd;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-btn--primary {
    background: #356854;
    border-color: #356854;
    color: #fff;
}
.rr-pn-mapa-detail__pdf-picker-btn--primary:hover {
    background: #2d5746;
}
.rr-pn-mapa-detail__pdf-picker-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}
.rr-pn-mapa-detail__pdf-picker.is-generating .rr-pn-mapa-detail__pdf-picker-card {
    max-height: none;
}
.rr-pn-mapa-detail__pdf-picker.is-generating .rr-pn-mapa-detail__pdf-picker-head {
    border-bottom: none;
    padding-bottom: 4px;
}
.rr-pn-mapa-detail__pdf-picker.is-generating .rr-pn-mapa-detail__pdf-picker-backdrop {
    pointer-events: none;
}
.rr-pn-mapa-detail__pdf-picker-progress {
    padding: 8px 22px 28px;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.rr-pn-mapa-detail__pdf-picker-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
}
.rr-pn-mapa-detail__pdf-picker-stage-visual {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f8f5;
    color: #356854;
}
.rr-pn-mapa-detail__pdf-picker-stage-visual i {
    position: relative;
    z-index: 1;
    font-size: 24px;
    transition: opacity .2s ease, transform .25s ease;
}
.rr-pn-mapa-detail__pdf-picker-stage-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #356854;
    border-right-color: rgba(53, 104, 84, .35);
    animation: rr-pn-pdf-stage-spin 1.1s linear infinite;
}
.rr-pn-mapa-detail__pdf-picker-stage-ring--delayed {
    inset: -10px;
    border-top-color: rgba(53, 104, 84, .45);
    border-right-color: transparent;
    border-bottom-color: rgba(53, 104, 84, .2);
    animation-duration: 1.7s;
    animation-direction: reverse;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="prepare"] .rr-pn-mapa-detail__pdf-picker-stage-visual {
    background: #f3f8f5;
    color: #356854;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="fetch"] .rr-pn-mapa-detail__pdf-picker-stage-visual {
    background: #eef6f2;
    color: #2d5746;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="maps"] .rr-pn-mapa-detail__pdf-picker-stage-visual {
    background: #e8f1ec;
    color: #1F4035;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="build"] .rr-pn-mapa-detail__pdf-picker-stage-visual {
    background: #e4efe9;
    color: #1F4035;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="finish"] .rr-pn-mapa-detail__pdf-picker-stage-visual {
    background: #356854;
    color: #fff;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="finish"] .rr-pn-mapa-detail__pdf-picker-stage-ring {
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, .35);
    animation-duration: .9s;
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="finish"] .rr-pn-mapa-detail__pdf-picker-stage-ring--delayed {
    border-top-color: rgba(255, 255, 255, .45);
    border-bottom-color: rgba(255, 255, 255, .2);
}
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="maps"] .rr-pn-mapa-detail__pdf-picker-stage-visual i,
.rr-pn-mapa-detail__pdf-picker-stage[data-stage="build"] .rr-pn-mapa-detail__pdf-picker-stage-visual i {
    animation: rr-pn-pdf-stage-pulse 1.4s ease-in-out infinite;
}
@keyframes rr-pn-pdf-stage-spin {
    to { transform: rotate(360deg); }
}
@keyframes rr-pn-pdf-stage-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .88; }
}
.rr-pn-mapa-detail__pdf-picker-progress-track {
    height: 6px;
    border-radius: 999px;
    background: #e8efeb;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
}
.rr-pn-mapa-detail__pdf-picker-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #356854;
    transition: width .25s ease;
}
.rr-pn-mapa-detail__pdf-picker-progress-label {
    margin: 0;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.45;
    text-align: center;
    min-height: 1.45em;
}

/* ===== Seletor redesenhado: imóvel no topo, seções em duas colunas, opções de satélite ===== */
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-card { width: min(100%, 640px); max-height: min(92vh, 760px); border-radius: 18px; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-head { padding: 18px 18px 12px; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-head h3 { font-size: 17px; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-head p { font-size: 12px; }
.rr-pdfpk-prop { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; padding: 7px 10px; border-radius: 10px; background: #f1f7f3; color: #1F4035; }
.rr-pdfpk-prop i { color: #356854; }
.rr-pdfpk-prop span { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.rr-pdfpk-prop b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-pdfpk-prop small { font-size: 11px; color: #5b7a6c; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-actions-top { padding: 10px 18px 0; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 18px 14px; align-content: start; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-opt { padding: 10px 11px; border-radius: 11px; transition: border-color .12s, background .12s; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-opt:has(input:checked) { border-color: #9cc4b0; background: #eef6f1; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-opt-label { font-size: 12.5px; }
.rr-pdfpk-paid { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #fff4db; color: #8a5a00; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.rr-pdfpk-sat { grid-column: 1 / -1; padding: 12px 12px 4px; border: 1px solid #cfe2d7; border-radius: 12px; background: linear-gradient(180deg, #f6fbf8, #fff); }
.rr-pdfpk-sat[hidden] { display: none; }
.rr-pdfpk-sat__title { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #1F4035; }
.rr-pdfpk-sat__title i { color: #356854; margin-right: 4px; }
.rr-pdfpk-sat__field { margin: 0 0 10px; }
.rr-pdfpk-sat__label { display: block; margin: 0 0 5px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.rr-pdfpk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rr-pdfpk-seg__op { position: relative; cursor: pointer; }
.rr-pdfpk-seg__op input { position: absolute; opacity: 0; pointer-events: none; }
.rr-pdfpk-seg__box { display: flex; align-items: center; gap: 9px; height: 100%; padding: 8px 10px; border: 1.5px solid #e2e8e4; border-radius: 10px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.rr-pdfpk-seg__op input:checked + .rr-pdfpk-seg__box { border-color: #356854; box-shadow: 0 0 0 3px rgba(53, 104, 84, .14); }
.rr-pdfpk-seg__op input:focus-visible + .rr-pdfpk-seg__box { outline: 2px solid #356854; outline-offset: 2px; }
.rr-pdfpk-seg__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rr-pdfpk-seg__txt b { font-size: 12px; color: #1e293b; }
.rr-pdfpk-seg__txt small { font-size: 10.5px; color: #64748b; }
.rr-pdfpk-swatch { flex-shrink: 0; width: 30px; height: 22px; border-radius: 5px; }
.rr-pdfpk-swatch--rgb { background: linear-gradient(135deg, #6f8f4e 0%, #a99a6b 45%, #4d6b3a 100%); }
.rr-pdfpk-swatch--duo { background: linear-gradient(90deg, #6f8f4e 0 50%, #1a9850 50%, #fee08b 80%, #d73027 100%); }
.rr-pdfpk-ico { flex-shrink: 0; width: 34px; height: 26px; color: #356854; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-foot { padding: 14px 18px; }
.rr-pdfpk .rr-pn-mapa-detail__pdf-picker-btn { padding: 9px 16px; border-radius: 10px; font-size: 13px; }
@media (max-width: 560px) {
    .rr-pdfpk .rr-pn-mapa-detail__pdf-picker-list, .rr-pdfpk-seg { grid-template-columns: 1fr; }
}
.rr-pdfpk-sat__preco { margin: 2px 0 10px; padding: 8px 10px; border-radius: 9px; background: #fff7e6; color: #6b4a00; font-size: 11.5px; line-height: 1.4; }
.rr-pdfpk-seg__txt small:empty { display: none; }
