:root {
    --bg: #f5f6f3;
    --panel: #ffffff;
    --text: #20261f;
    --muted: #667085;
    --border: #d7ddd5;

    --available: #18a66a;
    --reserved: #e7a327;
    --sold: #c95d54;

    --accent: #46654b;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
}


button,
input,
select {
    font: inherit;
}


/* ==========================================================
   APP
========================================================== */

.montecitos-app {
    width: 100%;
    margin: 0 auto;
}


/* ==========================================================
   HEADER
========================================================== */

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 26px 32px;

    background: white;
    border-bottom: 1px solid var(--border);
}


.map-header h1 {
    margin: 0;

    font-size: 30px;
    font-weight: 700;
}


.map-header p {
    margin: 5px 0 0;

    color: var(--muted);
}


.summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


.summary-badge {
    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: white;

    font-size: 13px;
}


/* ==========================================================
   TOOLBAR
========================================================== */

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

    padding: 14px 32px;

    background: white;

    border-bottom: 1px solid var(--border);
}


.search-box {
    display: flex;
    gap: 6px;
}


.toolbar input,
.toolbar select,
.toolbar button {
    min-height: 42px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: white;
}


.toolbar input,
.toolbar select {
    padding: 0 12px;
}


.toolbar button {
    padding: 0 14px;

    cursor: pointer;
}


.toolbar button:hover {
    background: #f3f5f2;
}


.zoom-controls {
    display: flex;
    gap: 5px;

    margin-left: auto;
}


/* ==========================================================
   LAYOUT
========================================================== */

.layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 16px;

    padding: 16px;

    max-width: 1800px;

    margin: auto;
}


/* ==========================================================
   MAPA
========================================================== */

.map-card {
    min-width: 0;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;
}


.map-viewport {
    position: relative;

    width: 100%;

    min-height: 700px;

    overflow: hidden;

    background: #dfe4dd;

    cursor: grab;

    touch-action: none;
}


.map-viewport.dragging {
    cursor: grabbing;
}


#mapSvg {
    display: block;

    width: 100%;
    height: 100%;

    user-select: none;
}


#aerialImage {
    pointer-events: none;
}


/* ==========================================================
   LOTES
========================================================== */

.lot {
    cursor: pointer;

    stroke-width: 3;

    vector-effect: non-scaling-stroke;

    transition:
        opacity 150ms ease,
        fill 150ms ease,
        stroke 150ms ease;
}


.lot.disponible {
    fill: rgba(24, 166, 106, 0.34);
    stroke: #05764b;
}


.lot.reservado {
    fill: rgba(231, 163, 39, 0.40);
    stroke: #9e6910;
}


.lot.vendido {
    fill: rgba(201, 93, 84, 0.32);
    stroke: #8f3832;
}


.lot:hover,
.lot.selected {
    stroke: white;

    stroke-width: 7;

    filter:
        drop-shadow(
            0 0 4px rgba(0, 0, 0, 0.7)
        );
}


.lot.filtered {
    opacity: 0.06;

    pointer-events: none;
}


/* ==========================================================
   LEYENDA
========================================================== */

.legend {
    display: flex;
    gap: 25px;

    padding: 12px 15px;

    border-top: 1px solid var(--border);

    font-size: 13px;

    color: var(--muted);
}


.dot {
    display: inline-block;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    margin-right: 5px;
}


.dot.disponible {
    background: var(--available);
}


.dot.reservado {
    background: var(--reserved);
}


.dot.vendido {
    background: var(--sold);
}


/* ==========================================================
   PANEL LOTE
========================================================== */

.lot-panel {
    align-self: start;

    position: sticky;
    top: 16px;

    padding: 22px;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 12px;
}


.lot-panel h2 {
    margin: 0;

    font-size: 30px;
}


.lot-meta {
    margin-top: 4px;

    color: var(--muted);

    font-size: 14px;
}


.surface {
    margin: 24px 0;

    font-size: 37px;
    font-weight: 700;
}


.info-row {
    padding: 16px 0;

    border-top: 1px solid #eaeeea;
}


.info-label {
    margin-bottom: 6px;

    color: var(--muted);

    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.06em;
}


.info-value {
    font-size: 18px;
    font-weight: 600;
}


.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    border-radius: 100px;

    font-weight: 700;
}


.status::before {
    content: "";

    width: 9px;
    height: 9px;

    border-radius: 50%;
}


.status.disponible {
    color: #05764b;
    background: #eaf8f1;
}


.status.disponible::before {
    background: var(--available);
}


.status.reservado {
    color: #91600b;
    background: #fff6dc;
}


.status.reservado::before {
    background: var(--reserved);
}


.status.vendido {
    color: #8f3832;
    background: #fbeceb;
}


.status.vendido::before {
    background: var(--sold);
}


.empty-panel {
    color: var(--muted);

    line-height: 1.6;
}


.empty-panel h2 {
    color: var(--text);

    font-size: 22px;
}


/* ==========================================================
   CALIBRADOR
========================================================== */

.calibration {
    position: fixed;

    z-index: 100;

    right: 20px;
    bottom: 20px;

    width: 370px;

    padding: 18px;

    background: rgba(20, 24, 20, 0.95);

    color: white;

    border-radius: 12px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}


.calibration.hidden {
    display: none;
}


.calibration h3 {
    margin: 0 0 5px;
}


.calibration p {
    margin: 0 0 14px;

    opacity: 0.75;

    font-size: 13px;
}


.calibration-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;
}


.calibration label {
    font-size: 12px;
}


.calibration input {
    display: block;

    width: 100%;

    margin-top: 4px;

    padding: 7px;

    border: 0;
    border-radius: 5px;
}


.calibration-actions {
    display: flex;

    gap: 7px;

    margin-top: 12px;
}


.calibration button {
    padding: 8px 10px;

    border: 0;
    border-radius: 6px;

    cursor: pointer;
}


#calibrationOutput {
    width: 100%;
    height: 80px;

    margin-top: 12px;

    padding: 8px;

    resize: none;

    font-family: monospace;
    font-size: 11px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .layout {
        grid-template-columns: 1fr;
    }


    .lot-panel {
        position: static;
    }


    .map-viewport {
        min-height: 560px;
    }


    .zoom-controls {
        margin-left: 0;
    }

}


@media (max-width: 600px) {

    .map-header,
    .toolbar {
        padding-left: 14px;
        padding-right: 14px;
    }


    .layout {
        padding: 8px;
    }


    .map-viewport {
        min-height: 470px;
    }


    .calibration {
        left: 10px;
        right: 10px;

        width: auto;
    }

}
/* ==========================================================
   MODO CALIBRACION FULLSCREEN
   ========================================================== */

body.calibration-mode {
    overflow: hidden;
    background: #111;
}

body.calibration-mode .map-header,
body.calibration-mode .toolbar,
body.calibration-mode .legend,
body.calibration-mode .lot-panel {
    display: none;
}

body.calibration-mode .layout {
    display: block;
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: 0;
}

body.calibration-mode .map-card {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
}

body.calibration-mode .map-viewport {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    background: #111;
}

body.calibration-mode #mapSvg {
    display: block;
    width: 100vw;
    height: 100vh;
}

body.calibration-mode .calibration {
    right: 18px;
    bottom: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
}

/* ==========================================================
   CALIBRACION AFIN
========================================================== */

.affine-calibration {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.affine-calibration h4 {
    margin: 0 0 5px;
}

.affine-calibration > p {
    margin: 0 0 12px;

    font-size: 12px;
    line-height: 1.4;

    opacity: 0.75;
}

.cal-point-row {
    display: grid;

    grid-template-columns:
        58px
        1fr
        1fr;

    gap: 6px;

    align-items: center;

    margin-bottom: 8px;
}

.cal-point-row strong {
    font-size: 12px;
}

.cal-point-row span {
    grid-column: 1 / -1;

    font-size: 11px;

    opacity: 0.7;
}

.capture-point.active {
    background: #ffd54a;
    color: #111;
}

.affine-status {
    margin-top: 10px;

    padding: 8px;

    border-radius: 5px;

    background: rgba(255,255,255,0.08);

    font-size: 11px;
    line-height: 1.4;
}


/* Mientras esperamos un clic */

body.calibration-picking #mapViewport {
    cursor: crosshair !important;
}


/* Puntos de calibracion sobre el mapa */

.cal-marker-line {
    stroke: white;
    stroke-width: 3;

    stroke-dasharray: 12 8;

    vector-effect: non-scaling-stroke;

    pointer-events: none;
}

.cal-marker-source {
    fill: #35d07f;
    stroke: white;
    stroke-width: 4;

    vector-effect: non-scaling-stroke;

    pointer-events: none;
}

.cal-marker-target {
    fill: #ff4d4f;
    stroke: white;
    stroke-width: 4;

    vector-effect: non-scaling-stroke;

    pointer-events: none;
}

.cal-marker-label {
    fill: white;

    font-size: 36px;
    font-weight: 800;

    stroke: #111;
    stroke-width: 7;

    paint-order: stroke;

    pointer-events: none;
}
/* ==========================================================
   MONTECITOS — PUBLIC MAP EXPERIENCE
========================================================== */

:root {
    --mc-bg: #f1efe8;
    --mc-paper: #f8f7f3;

    --mc-green: #394d3a;
    --mc-green-dark: #26362a;
    --mc-green-soft: #71816c;

    --mc-sand: #cbbd9f;
    --mc-sand-light: #e9e3d7;

    --mc-text: #242923;
    --mc-muted: #747970;

    --mc-shadow:
        0 18px 50px rgba(27, 39, 29, 0.10);
}


body {
    background:
        var(--mc-bg);
}


/* ==========================================================
   HERO / HEADER
========================================================== */

.map-header-montecitos {
    position: relative;

    align-items: flex-end;

    overflow: hidden;

    min-height: 290px;

    padding:
        42px
        clamp(24px, 5vw, 72px)
        38px;

    color: white;

    border: 0;

    background:
        linear-gradient(
            105deg,
            rgba(25, 39, 29, 0.96) 0%,
            rgba(49, 70, 51, 0.88) 55%,
            rgba(67, 87, 64, 0.74) 100%
        );
}


.map-header-montecitos::after {
    content: "";

    position: absolute;

    top: -250px;
    right: -150px;

    width: 600px;
    height: 600px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    box-shadow:
        0 0 0 90px rgba(255,255,255,.018),
        0 0 0 180px rgba(255,255,255,.012);

    pointer-events: none;
}


.map-heading {
    position: relative;

    z-index: 2;

    max-width: 780px;
}


.back-home {
    display: inline-block;

    margin-bottom: 26px;

    color:
        rgba(255, 255, 255, 0.64);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .04em;

    text-decoration: none;

    transition:
        color .2s ease;
}


.back-home:hover {
    color: white;
}


.map-kicker {
    display: block;

    margin-bottom: 9px;

    color:
        #d4c6a6;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.map-header-montecitos h1 {
    margin: 0;

    color: white;

    font-size:
        clamp(
            38px,
            5vw,
            64px
        );

    font-weight: 500;

    letter-spacing: -.045em;

    line-height: .98;
}


.map-header-montecitos p {
    max-width: 610px;

    margin:
        18px
        0
        0;

    color:
        rgba(255, 255, 255, .70);

    font-size: 15px;

    line-height: 1.65;
}


/* ==========================================================
   ATRIBUTOS DEL DESARROLLO
========================================================== */

.map-features {
    display: flex;

    gap: 30px;

    flex-wrap: wrap;

    margin-top: 28px;
}


.map-features span {
    display: flex;

    flex-direction: column;

    color:
        rgba(255, 255, 255, .54);

    font-size: 11px;

    letter-spacing: .03em;
}


.map-features strong {
    margin-bottom: 2px;

    color: white;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0;
}


/* ==========================================================
   RESUMEN
========================================================== */

.map-header-montecitos .summary {
    position: relative;

    z-index: 2;

    justify-content: flex-end;

    max-width: 390px;
}


.map-header-montecitos .summary-badge {
    color:
        rgba(255,255,255,.88);

    border:
        1px solid
        rgba(255,255,255,.15);

    background:
        rgba(255,255,255,.08);

    backdrop-filter:
        blur(12px);
}


/* ==========================================================
   TOOLBAR
========================================================== */

.toolbar {
    position: relative;

    z-index: 10;

    max-width: 1450px;

    margin:
        -20px
        auto
        0;

    padding:
        12px;

    border:
        1px solid
        rgba(57,77,58,.10);

    border-radius: 14px;

    background:
        rgba(255,255,255,.94);

    box-shadow:
        0 14px 45px
        rgba(32,44,34,.10);

    backdrop-filter:
        blur(14px);
}


.toolbar input,
.toolbar select,
.toolbar button {
    border-color:
        rgba(57,77,58,.14);

    border-radius: 9px;
}


.toolbar button {
    color:
        var(--mc-green-dark);

    font-weight: 600;
}


.toolbar button:hover {
    background:
        var(--mc-sand-light);
}


/* ==========================================================
   MAIN
========================================================== */

.layout {
    max-width: 1500px;

    gap: 18px;

    padding:
        24px
        20px
        40px;
}


/* ==========================================================
   MAPA
========================================================== */

.map-card {
    position: relative;

    border:
        1px solid
        rgba(57,77,58,.12);

    border-radius: 18px;

    box-shadow:
        var(--mc-shadow);

    background:
        var(--mc-paper);
}


.map-viewport {
    min-height:
        min(
            76vh,
            900px
        );

    background:
        #d8d7cf;

    border-radius:
        18px
        18px
        0
        0;
}


/*
 * Difuminado suave en los bordes de la visualización.
 *
 * NO modifica ortofoto ni geometría.
 */

.map-viewport::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 20;

    pointer-events: none;

    border-radius:
        inherit;

    box-shadow:
        inset 0 0 55px
        rgba(28, 42, 31, .16);
}


/* ==========================================================
   LOTES — TRAZADO MÁS ORGÁNICO
========================================================== */

.lot {
    stroke-width: 1.35;

    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect:
        non-scaling-stroke;

    transition:
        fill .16s ease,
        stroke .16s ease,
        opacity .16s ease,
        filter .16s ease;
}


.lot.disponible {
    fill:
        rgba(70, 145, 89, .22);

    stroke:
        rgba(255,255,255,.62);
}


.lot.reservado {
    fill:
        rgba(202, 161, 79, .23);

    stroke:
        rgba(255,255,255,.55);
}


.lot.vendido {
    fill:
        rgba(112, 112, 105, .19);

    stroke:
        rgba(255,255,255,.40);
}


.lot:hover {
    stroke: white;

    stroke-width: 3;

    filter:
        drop-shadow(
            0 1px 4px
            rgba(0,0,0,.35)
        );
}


.lot.selected {
    stroke:
        #ffffff;

    stroke-width:
        4;

    filter:
        drop-shadow(
            0 0 6px
            rgba(0,0,0,.42)
        );
}


.lot.filtered {
    opacity: .08;

    pointer-events: none;
}


/* ==========================================================
   LEYENDA
========================================================== */

.legend {
    justify-content: center;

    gap: 30px;

    padding:
        13px
        18px;

    color:
        var(--mc-muted);

    border-top:
        1px solid
        rgba(57,77,58,.09);

    background:
        var(--mc-paper);
}


/* ==========================================================
   FICHA DEL LOTE
========================================================== */

.lot-panel {
    top: 24px;

    padding: 26px;

    border:
        1px solid
        rgba(57,77,58,.11);

    border-radius: 18px;

    box-shadow:
        0 16px 44px
        rgba(32,44,34,.08);
}


.lot-panel h2 {
    color:
        var(--mc-green-dark);

    font-size: 36px;

    font-weight: 500;

    letter-spacing: -.04em;
}


.surface {
    color:
        var(--mc-green);

    font-weight: 500;

    letter-spacing: -.035em;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .map-header-montecitos {
        align-items:
            flex-start;

        min-height:
            auto;

        padding:
            32px 22px
            52px;

        flex-direction:
            column;
    }


    .map-header-montecitos .summary {
        justify-content:
            flex-start;

        margin-top:
            28px;
    }


    .toolbar {
        margin:
            -20px 14px
            0;
    }


    .layout {
        padding:
            18px 10px
            30px;
    }


    .map-viewport {
        min-height:
            65vh;
    }

}


@media (max-width: 600px) {

    .map-features {
        display:
            grid;

        grid-template-columns:
            1fr 1fr;

        width:
            100%;

        gap:
            18px;
    }


    .map-header-montecitos h1 {
        font-size:
            42px;
    }

}
/* ==========================================================
   REFERENCIAS DEL ENTORNO
========================================================== */

.landmark {
    pointer-events: none;
}


.landmark-anchor {
    fill: var(--mc-green-dark);

    stroke: white;

    stroke-width: 2.5;

    vector-effect:
        non-scaling-stroke;
}


.landmark-line {
    stroke:
        rgba(255, 255, 255, .88);

    stroke-width: 1.5;

    vector-effect:
        non-scaling-stroke;
}


.landmark-label-bg {
    fill:
        rgba(248, 247, 243, .92);

    stroke:
        rgba(38, 54, 42, .18);

    stroke-width: 1;

    vector-effect:
        non-scaling-stroke;
}


.landmark-label {
    fill:
        var(--mc-green-dark);

    font-size: 20px;

    font-weight: 700;

    letter-spacing: .01em;
}


.landmark-river .landmark-anchor {
    fill: #52758a;
}


.landmark-golf .landmark-anchor {
    fill: #476e43;
}


.landmark-mountains .landmark-anchor {
    fill: #7a725e;
}


.landmark-roundabout .landmark-anchor {
    fill: #76624d;
}


/* ==========================================================
   EDITOR REFERENCIAS
========================================================== */

.reference-editor {
    position: fixed;

    z-index: 200;

    right: 20px;
    bottom: 20px;

    width: 360px;

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    padding: 20px;

    color: white;

    background:
        rgba(35, 49, 38, .96);

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 16px;

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.30);

    backdrop-filter:
        blur(18px);
}


.reference-editor.hidden {
    display: none;
}


.reference-editor-header {
    display: flex;

    justify-content:
        space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.reference-editor h3 {
    margin: 3px 0 0;

    font-size: 19px;
}


.editor-kicker {
    color: #cdbf9f;

    font-size: 10px;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.reference-mode-badge {
    align-self: flex-start;

    padding: 5px 8px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.10);

    font-size: 10px;
}


.reference-editor label {
    display: block;

    margin-bottom: 14px;

    color:
        rgba(255,255,255,.68);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.reference-editor select,
.reference-editor input {
    width: 100%;

    min-height: 40px;

    margin-top: 6px;

    padding: 0 10px;

    border: 0;

    border-radius: 8px;

    background: white;

    color: #26362a;
}


.reference-editor-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;
}


.reference-editor button {
    min-height: 40px;

    padding: 0 11px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 8px;

    color: white;

    background:
        rgba(255,255,255,.08);

    cursor: pointer;
}


.reference-editor button:hover {
    background:
        rgba(255,255,255,.15);
}


.reference-editor .reference-primary {
    color:
        #26362a;

    background:
        #d7c9a9;

    border-color:
        #d7c9a9;

    font-weight: 700;
}


.reference-status {
    margin: 14px 0;

    padding: 10px;

    border-radius: 8px;

    background:
        rgba(0,0,0,.15);

    color:
        rgba(255,255,255,.72);

    font-size: 12px;

    line-height: 1.5;
}


.reference-export {
    width: 100%;
}


#referenceOutput {
    width: 100%;

    height: 135px;

    margin-top: 10px;

    padding: 10px;

    resize: vertical;

    border: 0;

    border-radius: 8px;

    background:
        rgba(0,0,0,.28);

    color:
        #e7e2d7;

    font-family: monospace;

    font-size: 10px;
}


body.reference-picking .map-viewport {
    cursor: crosshair;
}


@media (max-width: 600px) {

    .reference-editor {
        left: 10px;
        right: 10px;
        bottom: 10px;

        width: auto;
    }

}
/* ==========================================================
   AJUSTE FINAL - REFERENCIAS DEL ENTORNO
========================================================== */

#landmarksLayer {
    pointer-events: none;
}

.landmark {
    pointer-events: none;
}

.landmark-anchor {
    fill: var(--mc-green-dark);
    stroke: white;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;

    filter:
        drop-shadow(
            0 3px 8px rgba(0, 0, 0, .28)
        );
}

.landmark-core {
    fill: white;
}

.landmark-line {
    stroke: rgba(255, 255, 255, .95);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.landmark-label-bg {
    fill: rgba(248, 247, 243, .94);
    stroke: rgba(38, 54, 42, .20);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
}

.landmark-label {
    fill: var(--mc-green-dark);
    font-size: 72px;
    font-weight: 700;
    letter-spacing: .01em;
}
/* Ocultar nombres de referencias en la vista pública */

.landmark-line,
.landmark-label-bg,
.landmark-label {
    display: none;
}


/* Mostrar nombres solamente en modo edición */

body.reference-mode .landmark-line,
body.reference-mode .landmark-label-bg,
body.reference-mode .landmark-label {
    display: block;
}
.references-toggle {
    margin-left: auto;

    padding: 6px 11px;

    border:
        1px solid
        rgba(57, 77, 58, .16);

    border-radius: 999px;

    color:
        var(--mc-green-dark);

    background:
        rgba(255, 255, 255, .7);

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.references-toggle:hover {
    background:
        var(--mc-sand-light);
}


.references-toggle.active {
    color: white;

    background:
        var(--mc-green);

    border-color:
        var(--mc-green);
}


/* Etiquetas ocultas normalmente */

.landmark-line,
.landmark-label-bg,
.landmark-label {
    display: none;
}


/* Mostrar durante edición o si el visitante lo solicita */

body.reference-mode .landmark-line,
body.reference-mode .landmark-label-bg,
body.reference-mode .landmark-label,

body.show-reference-labels .landmark-line,
body.show-reference-labels .landmark-label-bg,
body.show-reference-labels .landmark-label {
    display: block;
}
/* ==========================================================
   FICHA FLOTANTE DEL LOTE
========================================================== */

.layout {
    position: relative;

    display: block;
}


.map-card {
    width: 100%;
}


.lot-panel {
    position: absolute;

    z-index: 40;

    top: 48px;
    right: 44px;

    width: 330px;
    max-width:
        calc(100% - 88px);

    padding: 26px;

    background:
        rgba(248, 247, 243, .96);

    border:
        1px solid
        rgba(57, 77, 58, .14);

    border-radius: 20px;

    box-shadow:
        0 22px 65px
        rgba(25, 38, 28, .20);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);


    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(12px);

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}


.lot-panel.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}


/* ==========================================================
   CABECERA FICHA
========================================================== */

.lot-panel-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}


.lot-panel-header h2 {
    margin: 0;
}


.lot-panel-close {
    display: grid;

    place-items: center;

    flex:
        0 0 auto;

    width: 34px;
    height: 34px;

    padding: 0;

    border:
        1px solid
        rgba(57, 77, 58, .12);

    border-radius: 50%;

    background:
        rgba(255,255,255,.70);

    color:
        var(--mc-green-dark);

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}


.lot-panel-close:hover {
    background:
        var(--mc-sand-light);

    transform:
        scale(1.05);
}


/* ==========================================================
   PANTALLAS CHICAS — FICHA CENTRADA SOBRE EL MAPA
========================================================== */

@media (max-width: 1400px) {

    .lot-panel {
        position: fixed;

        z-index: 100;

        width:
            min(
                330px,
                calc(100vw - 24px)
            );

        max-width:
            calc(100vw - 24px);

        max-height:
            calc(100vh - 32px);

        overflow-y: auto;

        border-radius: 22px;
    }

}


.lot-contact-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 22px;

    padding: 13px 18px;

    border-radius: 999px;

    background:
        var(--mc-green);

    color: white;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.lot-contact-button:hover {
    background:
        var(--mc-green-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(38, 54, 42, .20);
}
/* ==========================================================
   FICHA ANCLADA AL LOTE
========================================================== */

@media (min-width: 701px) {

    .lot-panel {
        position: absolute;

        top: 0;
        left: 0;
        right: auto;
        bottom: auto;

        width: 330px;

        margin: 0;
    }

}