:root {
    --forest: #12392b;
    --forest-soft: #1f5843;
    --cream: #f6f3ea;
    --paper: #fffdf8;
    --ink: #1d2923;
    --muted: #69756f;
    --line: #dfe4df;
    --available: #1b8a5a;
    --reserved: #e7a321;
    --sold: #b54a42;
    --shadow: 0 24px 70px rgba(18, 57, 43, .14);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% 5%, rgba(210, 176, 98, .12), transparent 27rem),
        linear-gradient(180deg, #f1f5f0 0, var(--cream) 35rem);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--forest);
    text-decoration: none;
}

.brand img {
    display: block;
    width: 54px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px rgba(18, 57, 43, .15));
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: .96rem;
    letter-spacing: .08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.header-link {
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid rgba(18, 57, 43, .18);
    border-radius: 999px;
    color: var(--forest);
    background: rgba(255, 255, 255, .58);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.header-link:hover {
    transform: translateY(-1px);
    background: white;
}

main {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 48px;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
    gap: 48px;
    margin-bottom: 28px;
}

.eyebrow,
.map-kicker,
.dialog-eyebrow {
    margin: 0 0 8px;
    color: var(--forest-soft);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    text-wrap: pretty;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 5.6vw, 5rem);
    font-weight: 500;
    letter-spacing: -.052em;
    line-height: .98;
}

.intro-copy {
    max-width: 690px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    line-height: 1.65;
}

.how-to {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid rgba(18, 57, 43, .11);
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
}

.how-to > span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.how-to p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
}

.how-to strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: .94rem;
}

.map-card {
    overflow: hidden;
    border: 1px solid rgba(18, 57, 43, .12);
    border-radius: 25px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 21px 14px;
}

.map-kicker {
    margin-bottom: 3px;
    font-size: .66rem;
}

.map-toolbar h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.map-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-button,
.fullscreen-button {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    color: var(--forest);
    background: #edf2ed;
    cursor: pointer;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}

.icon-button {
    width: 42px;
    padding: 0;
    font-size: 1.3rem;
}

.fullscreen-button {
    padding: 0 14px;
    font-size: .8rem;
}

.icon-button:hover,
.fullscreen-button:hover {
    transform: translateY(-1px);
    background: #dfe9e1;
}

.icon-button:disabled {
    opacity: .42;
    cursor: default;
    transform: none;
}

.legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0 21px 15px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #435047;
    font-size: .84rem;
}

.legend-item i {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--status-color);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.legend-item b {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 99px;
    color: var(--muted);
    background: #eff2ee;
    font-size: .7rem;
    text-align: center;
}

.map-shell {
    position: relative;
    overflow: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #bcc9c7;
    overscroll-behavior: contain;
    scrollbar-color: rgba(18, 57, 43, .38) transparent;
}

.map-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 2488 / 849;
    margin: auto;
    overflow: hidden;
    background: #a8b7b5;
}

.map-canvas {
    position: absolute;
    inset: 0;
}

.map-canvas img,
.lot-overlay {
    display: block;
    width: 100%;
    height: 100%;
}

.map-canvas img {
    object-fit: fill;
    user-select: none;
}

.lot-overlay {
    position: absolute;
    inset: 0;
}

.lot-group {
    outline: none;
    cursor: pointer;
}

.lot-shape {
    opacity: .78;
    stroke: rgba(255, 255, 255, .96);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    transition: filter .16s ease, opacity .16s ease, stroke-width .16s ease;
}

.lot-label {
    fill: white;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 29px;
    font-weight: 850;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(18, 42, 30, .66);
    stroke-width: 3px;
    text-anchor: middle;
}

.lot-group:hover .lot-shape,
.lot-group:focus-visible .lot-shape,
.lot-group.is-selected .lot-shape {
    opacity: .98;
    filter: brightness(1.08) drop-shadow(0 0 6px rgba(18, 57, 43, .62));
    stroke-width: 2.5;
}

.map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 21px 15px;
}

.map-footer p,
.map-footer small {
    margin: 0;
    color: var(--muted);
    font-size: .77rem;
}

.map-footer p span {
    display: none;
}

.page-note {
    max-width: 830px;
    margin: 17px auto 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.55;
    text-align: center;
}

.lot-dialog {
    width: min(780px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 32px 100px rgba(7, 30, 21, .38);
}

.lot-dialog::backdrop {
    background: rgba(8, 28, 20, .68);
    backdrop-filter: blur(5px);
}

.dialog-handle {
    display: none;
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--forest);
    background: #edf2ed;
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
}

.dialog-content {
    max-height: calc(100dvh - 28px);
    padding: 28px;
    overflow-y: auto;
}

.dialog-heading {
    padding-right: 52px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--forest);
    background: #e8f4ed;
    font-size: .76rem;
    font-weight: 800;
}

.lot-dialog[data-status="reservado"] .status-pill {
    color: #76500b;
    background: #fff1d1;
}

.lot-dialog[data-status="vendido"] .status-pill {
    color: #7d332e;
    background: #f8e3e1;
}

.status-pill i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dialog-status, var(--available));
}

.dialog-eyebrow {
    margin-bottom: 5px;
    font-size: .68rem;
}

.dialog-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -.035em;
}

.lot-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.lot-facts article {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fafaf6;
}

.lot-facts span,
.lot-facts strong {
    display: block;
}

.lot-facts span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .7rem;
}

.lot-facts strong {
    color: var(--forest);
    font-size: 1.05rem;
}

.payment-heading {
    margin: 26px 0 13px;
}

.payment-heading .eyebrow {
    margin-bottom: 4px;
    font-size: .66rem;
}

.payment-heading h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.42rem;
    font-weight: 500;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.payment-card {
    position: relative;
    min-height: 225px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
}

.payment-card.featured {
    border-color: rgba(27, 138, 90, .3);
    background: #f3f9f5;
}

.payment-tag {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 99px;
    color: var(--available);
    background: #dff1e6;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.payment-tag.neutral {
    color: var(--forest);
    background: #edf1ed;
}

.payment-card h4 {
    margin: 13px 0 5px;
    font-size: 1rem;
}

.payment-lead {
    margin: 0;
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.45;
}

.payment-lead strong {
    display: block;
    margin-top: 2px;
    color: var(--forest);
    font-size: 1.34rem;
}

.payment-card dl {
    display: grid;
    gap: 8px;
    margin: 17px 0 0;
}

.payment-card dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(18, 57, 43, .1);
}

.payment-card dt {
    color: var(--muted);
    font-size: .72rem;
}

.payment-card dd {
    margin: 0;
    color: var(--forest);
    font-size: .85rem;
    font-weight: 800;
    text-align: right;
}

.payment-value {
    display: block;
    margin-top: 10px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -.035em;
}

.conditions-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.5;
}

.dialog-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.primary-action {
    flex: 1;
    color: white;
    background: var(--forest);
}

.secondary-action {
    color: var(--forest);
    background: #edf2ed;
}

.unavailable-content {
    padding: 38px 12px 10px;
    text-align: center;
}

.unavailable-mark {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 50%;
    background: #f8eee0;
    background: color-mix(in srgb, var(--dialog-status, var(--reserved)) 14%, white);
}

.unavailable-mark span {
    width: 25px;
    height: 25px;
    border: 3px solid var(--dialog-status, var(--reserved));
    border-radius: 50%;
}

.unavailable-mark.missing {
    color: var(--forest);
    background: #edf2ed;
    font-size: 1.5rem;
    font-weight: 900;
}

.unavailable-content h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 500;
}

.unavailable-content p {
    max-width: 470px;
    margin: 10px auto 22px;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.6;
}

.unavailable-content .primary-action {
    width: min(100%, 290px);
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .site-header,
    main {
        width: min(100% - 28px, 1380px);
    }

    .site-header {
        padding: 14px 0;
    }

    .brand img {
        width: 45px;
        height: 43px;
    }

    .brand strong {
        font-size: .8rem;
    }

    .brand small {
        font-size: .63rem;
    }

    .header-link {
        display: none;
    }

    main {
        padding: 27px 0 36px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .intro-copy {
        margin-top: 14px;
        font-size: .95rem;
    }

    .how-to {
        padding: 13px;
    }

    .map-card {
        border-radius: 19px;
    }

    .map-toolbar {
        align-items: flex-end;
        padding: 14px 14px 11px;
    }

    .map-toolbar h2 {
        font-size: 1.25rem;
    }

    .fullscreen-button {
        display: none;
    }

    .icon-button {
        width: 44px;
        height: 44px;
    }

    .legend {
        gap: 7px 12px;
        padding: 0 14px 12px;
    }

    .legend-item {
        font-size: .73rem;
    }

    .map-shell {
        max-height: 70svh;
    }

    .map-stage {
        aspect-ratio: 849 / 2488;
    }

    .map-canvas {
        inset: 50% auto auto 50%;
        width: 293.050%;
        height: auto;
        aspect-ratio: 2488 / 849;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .lot-label {
        transform: rotate(-90deg);
        transform-box: fill-box;
        transform-origin: center;
    }

    .map-footer {
        display: block;
        padding: 11px 14px 13px;
    }

    .map-footer p span {
        display: inline;
    }

    .map-footer small {
        display: block;
        margin-top: 4px;
    }

    .lot-dialog {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
        margin: auto 0 0;
        border-radius: 23px 23px 0 0;
    }

    .dialog-handle {
        display: block;
        width: 42px;
        height: 4px;
        margin: 9px auto 0;
        border-radius: 99px;
        background: #cbd3cc;
    }

    .dialog-close {
        top: 17px;
        right: 14px;
    }

    .dialog-content {
        max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - 13px);
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .status-pill {
        margin-bottom: 16px;
    }

    .lot-facts {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .lot-facts article:last-child {
        grid-column: 1 / -1;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .payment-card {
        min-height: 0;
    }

    .dialog-actions {
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .site-header,
    .map-actions,
    .page-note,
    .lot-dialog {
        display: none !important;
    }

    body {
        background: white;
    }

    main {
        width: 100%;
        padding: 0;
    }

    .map-card {
        box-shadow: none;
    }
}

/* Promoção e formas de pagamento */
.discount-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 15px 17px;
    border: 1px solid rgba(183, 137, 45, .28);
    border-radius: 16px;
    color: #5f4513;
    background: linear-gradient(135deg, #fff9e9, #f8edcd);
}
.discount-banner span { font-size: .78rem; font-weight: 700; }
.discount-banner strong { font-size: 1.08rem; text-align: right; }
.standard-proposal { min-height: 0; }
.proposal-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.proposal-values .payment-lead strong { margin-top: 4px; }
.proposal-values s { color: var(--muted); }
.other-payment { border: 1px solid rgba(18, 57, 43, .15); background: white; }

.payment-dialog {
    width: min(900px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 32px 100px rgba(7, 30, 21, .38);
}
.payment-dialog::backdrop { background: rgba(8, 28, 20, .68); backdrop-filter: blur(5px); }
.payment-dialog .dialog-content { max-height: calc(100dvh - 28px); }
.payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 14px;
    padding: 14px 16px;
    border-radius: 14px;
    color: white;
    background: var(--forest);
}
.payment-summary span { font-size: .76rem; font-weight: 700; }
.payment-summary strong { font-size: 1.18rem; }
.payment-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-plan { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.payment-plan.featured-plan { border-color: rgba(27, 138, 90, .3); background: #f3f9f5; }
.payment-plan h3 { margin: 10px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.payment-plan > p { margin: 0 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.entry-field { display: grid; gap: 7px; margin: 13px 0 10px; color: var(--forest); font-size: .76rem; font-weight: 750; }
.currency-input { display: flex; min-height: 46px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.currency-input:focus-within { border-color: var(--available); box-shadow: 0 0 0 3px rgba(27, 138, 90, .12); }
.currency-input b { padding: 0 10px 0 13px; color: var(--muted); font-size: .78rem; }
.currency-input input { width: 100%; min-width: 0; height: 44px; padding: 0 12px 0 0; border: 0; outline: 0; color: var(--forest); background: transparent; font: inherit; font-size: 1rem; font-weight: 800; }
.currency-input input[aria-invalid="true"] { color: var(--sold); }
.entry-error { margin-top: -5px !important; color: var(--sold) !important; font-weight: 700; }
.installment-placeholder { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .75rem; text-align: center; }
.installment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.installment-option { display: grid; gap: 2px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.installment-option span { color: var(--muted); font-size: .7rem; }
.installment-option strong { color: var(--forest); font-size: .9rem; }
.installment-option em { color: var(--available); font-size: .62rem; font-style: normal; font-weight: 800; text-transform: uppercase; }

@media (max-width: 760px) {
    .header-link { display: inline-flex; min-height: 40px; padding: 9px 11px; font-size: .7rem; text-align: center; }
    .brand { gap: 7px; }
    .brand img { width: 49px; height: 47px; }
    .discount-banner { align-items: flex-start; flex-direction: column; gap: 5px; }
    .discount-banner strong { text-align: left; }
    .proposal-values, .payment-plans { grid-template-columns: 1fr; }
    .payment-dialog { width: 100%; max-width: none; max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); margin: auto 0 0; border-radius: 23px 23px 0 0; }
    .payment-dialog .dialog-content { max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); }
    .installment-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .brand span { display: none; }
    .header-link { font-size: .68rem; }
    .installment-grid { grid-template-columns: 1fr; }
}
