.lot-explorer{overflow:hidden;background:#fff;border:1px solid #d8e3e1;border-radius:16px;box-shadow:0 12px 40px #0d3b5610}
.lot-explorer{--lot-overview-height:auto;--lot-overview-min-height:clamp(490px,66vh,690px);--lot-overview-ratio:1.76}
.lot-explorer [hidden]{display:none!important}
.lot-explorer h2,.lot-explorer h3,.lot-explorer p{margin:0}
.lot-explorer .lot-header{padding:clamp(14px,2.5vw,24px);background:linear-gradient(180deg,#f2f8ee,#fff 96px)}
.lot-explorer h2{color:var(--navy);font-size:clamp(23px,3vw,31px);line-height:1.16;letter-spacing:-.035em}
.lot-explorer:not(:has(>.lot-layout:not(.is-overview)))>.lot-header>#map-title{display:none}
.lot-explorer .lot-intro,.lot-explorer .lot-load-status{margin-top:5px;color:var(--muted);font-size:14px;line-height:1.5}
.lot-explorer .lot-navigation{box-sizing:content-box;display:grid;align-content:start;justify-items:start;border-top:1px solid #d8e3e1}
.lot-explorer .lot-navigation>:first-child{margin-top:12px}
.lot-explorer .lot-navigation>*{margin-inline:16px}
.lot-explorer .lot-navigation>.lot-external{margin-bottom:12px}
.lot-explorer .lot-retry{min-height:44px;margin-block-start:8px;padding:6px 14px;border:0;border-radius:8px;background:var(--navy);color:#fff;font-size:14px;font-weight:750}
.lot-explorer .lot-retry[aria-disabled="true"]{background:#e4edf1;color:#345065;cursor:default}
@media(scripting:enabled){
 html:has(#contacto:target):has(.lot-navigation:not(.is-unavailable):has(>.lot-retry)){scroll-behavior:auto}
 .lot-explorer .lot-navigation:not(.is-unavailable):has(>.lot-retry){height:var(--lot-overview-height);min-height:var(--lot-overview-min-height);aspect-ratio:var(--lot-overview-ratio);background:#f4f7f4}
}
.lot-explorer .lot-external{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.lot-explorer .lot-layout{border-top:1px solid #d8e3e1}
.lot-explorer button{font:inherit;cursor:pointer}
.lot-explorer button:focus-visible,.lot-explorer a:focus-visible,.lot-explorer .lot-share-address:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.lot-explorer .lot-plan{position:relative;margin:0;min-width:0;background:#f4f7f4}
.lot-explorer figcaption{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 14px;min-height:32px;padding:6px 12px;border-top:1px solid #d8e3e1;background:#f0f5ef;color:#365047;font-size:11px;line-height:1.4}
@media(max-width:430px){
 .lot-explorer .lot-plan[data-view="satellite"] figcaption{display:grid;justify-content:start}
}
.lot-explorer figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.lot-explorer .lot-satellite-feedback{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px 8px}
.lot-explorer .lot-satellite-retry{min-height:44px;padding:4px 7px;border:0;border-radius:5px;background:none;color:var(--blue);font-weight:750;text-decoration:underline;text-underline-offset:3px}
.lot-explorer .lot-satellite-retry[aria-disabled="true"]{color:var(--muted);cursor:default}
.lot-explorer .lot-map-credit:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.lot-explorer .lot-map-scale{display:inline-flex;align-items:center;gap:7px;color:#153b2c;font-weight:750;white-space:nowrap}
.lot-explorer .lot-scale-line{display:block;box-sizing:border-box;height:6px;border:2px solid currentColor;border-top:0}
.lot-explorer .lot-road-width{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.4}
.lot-explorer .lot-sector-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;margin-top:5px}
.lot-explorer .lot-sector-availability{color:#18472c;font-size:13px;font-weight:750;line-height:1.4}
.lot-explorer .lot-sector-start{display:inline-grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;gap:1px 6px;max-width:100%;min-height:44px;padding:2px 8px;border:1px solid #729467;border-radius:8px;background:#e8f4df;color:#18472c;text-decoration:none}
.lot-explorer .lot-sector-start-arrow{font-size:1.1em}
.lot-explorer .lot-sector-start-count{grid-column:1/-1;color:#3c5940;font-size:11px;font-weight:650;line-height:1.2}
.lot-explorer .lot-sector-copy-status,.lot-explorer .lot-sector-share-fallback{grid-column:1/-1}
.lot-explorer .lot-route-status:empty,.lot-explorer .lot-sector-copy-status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lot-explorer .lot-route-status:not(:empty){padding:8px 10px;border-inline-start:3px solid #789581;border-radius:5px;background:#edf4ef;color:#264638}
.lot-explorer .lot-sector-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px clamp(12px,2.5vw,24px);border-top:1px solid #d8e3e1;background:#fbfcf9}
.lot-explorer .lot-sector-navigation a{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:6px 11px;border:1px solid #7e9aab;border-radius:8px;background:#fff;color:var(--navy);font-size:13px;font-weight:750;text-decoration:none}
.lot-explorer .lot-sector-next{margin-inline-start:auto}
.lot-explorer .lot-map-frame{position:relative;overflow:hidden;background:#263b32}
.lot-explorer canvas{display:block;width:100%;max-height:530px;aspect-ratio:1.76;cursor:crosshair;touch-action:pan-y}
.lot-explorer .lot-markers,.lot-explorer .lot-parcel-symbols{position:absolute;inset:0;pointer-events:none}
.lot-explorer .lot-marker{position:absolute;display:grid;place-items:center;min-height:44px;padding:0;border:0;background:transparent;color:#fff;font-size:13px;font-weight:800;transform:translate(-50%,-50%);isolation:isolate;pointer-events:auto;touch-action:manipulation}
.lot-explorer .lot-marker::before{content:"";position:absolute;z-index:-1;width:24px;height:24px;border-radius:50%;background:#123421;border:1px solid #e2f2d9}
.lot-explorer .lot-marker[data-lot]::before{transform:translateY(2px)}
.lot-explorer .lot-marker-number{line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;transform:translateY(5px);pointer-events:none}
.lot-explorer .lot-marker[aria-pressed="true"]{color:#163206}
.lot-explorer .lot-marker[aria-pressed="true"]::before{background:#d7fc9d;border-color:#fff;box-shadow:0 0 0 1px #193b2c,0 0 0 2px #f2ffe1}
.lot-explorer .lot-marker:focus-visible{z-index:1;outline:2px solid #073768;outline-offset:-1px;box-shadow:inset 0 0 0 3px #fff;border-radius:7px}
.lot-explorer .lot-north{position:absolute;top:10px;left:10px;padding:4px 7px;background:#142f23e6;color:#fff;border-radius:6px;font-size:12px;font-weight:700;pointer-events:none}
.lot-explorer .lot-road-label{position:absolute;transform:translate(-50%,-50%);padding:4px 8px;white-space:nowrap;border:1px solid #f6df9a;border-radius:6px;background:#182820;color:#fff7de;font-size:13px;font-weight:800;line-height:1.2;box-shadow:0 1px 4px #091a1380;pointer-events:none}
.lot-explorer .lot-zoom{position:absolute;right:10px;top:10px;display:flex;gap:3px;background:#142f23a8;padding:3px;border-radius:9px}
.lot-explorer .lot-zoom button{width:44px;min-height:44px;border:0;background:#fff;color:var(--navy);font-size:20px;font-weight:700;border-radius:6px;scroll-margin-block:6px}
.lot-explorer .lot-zoom button:disabled{color:#61756b;cursor:default;background:#e9eee9}
.lot-explorer .lot-detail{padding:clamp(15px,2.5vw,25px);min-width:0;border-top:1px solid #d8e3e1;background:#fbfcf9;scroll-margin-top:12px}
.lot-explorer .lot-detail :is(h3,button,a,.lot-share-address){scroll-margin-block:6px}
.lot-explorer .lot-detail h3{font-size:22px;color:var(--navy);line-height:1.2}
.lot-explorer .lot-detail h3:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.lot-explorer .lot-dimensions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;max-width:420px;margin:10px 0 0}
.lot-explorer .lot-dimensions>div{padding:7px 10px;border:1px solid #d8e3e1;border-radius:8px;background:#f0f5ee}
.lot-explorer .lot-dimensions dt{color:var(--muted);font-size:12px;line-height:1.3}
.lot-explorer .lot-dimensions dd{margin:2px 0 0;color:var(--navy);font-size:18px;font-weight:750;line-height:1.25;font-variant-numeric:tabular-nums}
.lot-explorer .lot-facts{margin-top:6px;color:var(--muted);font-size:14px;line-height:1.5}
.lot-explorer .lot-contact{min-width:0;max-width:420px;margin-top:14px}
.lot-explorer .lot-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;text-align:center}
.lot-explorer .lot-actions a,.lot-explorer .lot-actions button,.lot-explorer .lot-sector-share{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:8px;font-size:13px;font-weight:750;padding:6px 4px}
.lot-explorer .lot-actions a{grid-column:1/-1;min-height:48px;background:var(--navy);color:#fff;font-size:14px}
.lot-explorer .lot-actions button{border:0;background:transparent;color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.lot-explorer .lot-sector-share{padding-inline:12px;border:1px solid #7e9aab;color:var(--navy);background:#fff}
.lot-explorer .lot-copy-status,.lot-explorer .lot-sector-copy-status{font-size:13px;color:var(--navy);overflow-wrap:anywhere}
.lot-explorer .lot-copy-status:not(:empty){margin-top:6px}
.lot-explorer .lot-share-address{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:40rem;min-height:44px;margin-top:4px;padding:8px 12px;border:1px solid #7e9aab;border-radius:8px;background:#fff;color:var(--navy);font:inherit;font-size:16px}
.lot-explorer .lot-detail-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px 8px;max-width:420px;margin-top:6px;padding-top:4px;border-top:1px solid #d8e3e1}
.lot-explorer .lot-detail-navigation>*{grid-row:1}
.lot-explorer .lot-detail-navigation a{display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:44px;padding:4px;color:var(--blue);font-size:13px;font-weight:750;text-decoration:none}
.lot-explorer .lot-detail-navigation [data-link-label]{text-decoration:underline;text-underline-offset:3px}
.lot-explorer .lot-available-prev{grid-column:1}
.lot-explorer .lot-available-position{grid-column:2;align-self:center;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.lot-explorer .lot-available-next{grid-column:3;justify-content:flex-end;text-align:end}
@media(max-width:369px){
 .lot-explorer .lot-sector-start{padding-inline:6px}
}
@media(max-width:300px){
 .lot-explorer .lot-detail-navigation{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:4px}
 .lot-explorer .lot-detail-navigation a{grid-row:2}
 .lot-explorer .lot-available-position{grid-column:1/-1;text-align:center}
 .lot-explorer .lot-available-next{grid-column:2}
}
@media(max-width:700px){
 .lot-explorer canvas{min-height:300px;aspect-ratio:1.14}
}

/* Mapa general y acercamiento a cada sector. */
.lot-explorer .lot-layout.is-overview canvas{height:var(--lot-overview-height);min-height:var(--lot-overview-min-height);max-height:none;aspect-ratio:var(--lot-overview-ratio)}
@media(min-width:760px){
 .lot-explorer .lot-layout.is-overview .lot-plan[data-view="plan"] canvas{height:clamp(275px,26vw,330px);min-height:0;aspect-ratio:auto}
 .lot-explorer .lot-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,340px);gap:0 28px;align-items:start}
 .lot-explorer .lot-contact{align-self:center;margin-top:0}
 .lot-explorer .lot-detail-navigation{grid-column:1/-1;width:100%}
}
@media(min-width:760px) and (scripting:enabled){
 .lot-explorer .lot-navigation:not(.is-unavailable):has(>.lot-retry){height:clamp(275px,26vw,330px);min-height:0;aspect-ratio:auto}
}
.lot-explorer .lot-plan.has-road canvas{height:clamp(350px,49vh,540px);aspect-ratio:auto}
.lot-explorer .lot-map-controls{position:absolute;z-index:2;top:10px;right:10px;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.lot-explorer .lot-map-controls .lot-zoom{position:static}
.lot-explorer .lot-overview{min-height:44px;padding:6px 10px;border:0;border-radius:7px;color:var(--navy);background:#fff;font-size:13px;font-weight:750}
.lot-explorer .lot-marker[data-group]::before{width:100%;height:31px;border-radius:9px}
.lot-explorer .lot-status{display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:3px 8px 3px 4px;border-radius:6px;background:var(--lot-state-bg);color:var(--lot-state-ink);font-size:13px;font-weight:750}
@media(max-width:700px){
 .lot-explorer{--lot-overview-height:520px;--lot-overview-min-height:0;--lot-overview-ratio:auto}
 .lot-explorer .lot-map-controls{max-width:calc(100% - 60px)}
}

/* Estados identificables por texto y símbolo, dentro de la cabecera del mapa. */
.lot-explorer .lot-intro{min-height:21px}
.lot-explorer .lot-legend{display:flex;flex-wrap:wrap;align-content:center;gap:4px 10px;min-width:0;color:var(--ink);font-size:12px;line-height:1.4}
.lot-explorer .lot-legend-item{display:inline-flex;align-items:center;gap:5px;max-width:100%}
.lot-explorer .lot-state-symbol,.lot-explorer .lot-marker-state{display:grid;place-items:center;flex:none;border:1px solid currentColor;border-radius:var(--lot-state-radius,3px);background:var(--lot-state-bg);color:var(--lot-state-ink);font-weight:800;line-height:1;pointer-events:none}
.lot-explorer .lot-state-symbol{width:20px;height:20px;font-size:13px}
.lot-explorer .lot-marker-state{position:absolute;top:-2px;right:0;width:14px;height:14px;font-size:11px}
.lot-explorer .lot-parcel-symbol{position:absolute;transform:translate(-50%,-50%);width:var(--lot-parcel-size);height:var(--lot-parcel-size);padding:0;border:0;box-shadow:inset 0 0 0 .5px currentColor;font-size:calc(var(--lot-parcel-size)*.9)}
.lot-explorer .lot-marker[data-status="sold"]::before{border-radius:5px}
.lot-explorer :is(.lot-state-symbol,.lot-marker-state,.lot-status)[data-status="reported"]{--lot-state-bg:#e5f5e8;--lot-state-ink:#155237;--lot-state-radius:50%}
.lot-explorer :is(.lot-state-symbol,.lot-marker-state,.lot-status)[data-status="sold"]{--lot-state-bg:#fbecef;--lot-state-ink:#7c2d38}
.lot-explorer :is(.lot-state-symbol,.lot-marker-state,.lot-status)[data-status="public"]{--lot-state-bg:#e8f4fa;--lot-state-ink:#154767}
.lot-explorer :is(.lot-state-symbol,.lot-marker-state,.lot-status)[data-status="verify"]{--lot-state-bg:#fff1d2;--lot-state-ink:#754100;--lot-state-radius:50%}
.lot-explorer .lot-marker[data-lot]:not([data-status="reported"])::before{border-color:#e7ebe8;background:#414a44}
.lot-explorer .lot-marker[data-lot]:not([data-status="reported"])[aria-pressed="true"]::before{border-color:#fff;background:#e3ebe5}
@media(max-width:580px){
 .lot-explorer .lot-intro{min-height:42px}
 .lot-explorer .lot-legend{display:grid;grid-template-columns:repeat(2,minmax(0,max-content))}
}

.lot-explorer .lot-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;margin-top:8px}
.lot-explorer .lot-view-switch{display:inline-flex;border:1px solid #74947e;border-radius:8px;background:#edf3eb}
.lot-explorer .lot-view-switch button{min-height:44px;min-width:44px;padding:4px 8px;border:0;background:transparent;color:#18472c;font-size:13px;font-weight:750}
.lot-explorer .lot-view-switch button:first-child{border-radius:7px 0 0 7px}
.lot-explorer .lot-view-switch button:last-child{border-radius:0 7px 7px 0}
.lot-explorer .lot-view-switch button[aria-pressed="true"]{background:#18472c;color:#fff}
.lot-explorer .lot-view-switch button:focus-visible{outline-offset:-3px}
.lot-explorer .lot-view-switch button[aria-pressed="true"]:focus-visible{outline-color:#effbdc;outline-offset:-4px}
@media(hover:hover){
 .lot-explorer .lot-actions a:hover{background:var(--blue)}
 .lot-explorer .lot-actions button:hover{background:#eef4f7}
 .lot-explorer .lot-sector-start:hover{background:#dceece}
 .lot-explorer .lot-view-switch button[aria-pressed="false"]:hover{background:#e0ede0}
}
@media(max-width:580px){
 .lot-explorer .lot-toolbar{display:grid;grid-template-columns:minmax(0,1fr)}
 .lot-explorer .lot-view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-self:stretch}
}
@media(forced-colors:active){
 .lot-explorer .lot-view-switch button[aria-pressed="true"]{text-decoration:underline;text-underline-offset:4px}
 .lot-explorer .lot-marker[aria-pressed="true"]::before{outline:2px solid Highlight;outline-offset:1px}
}
.lot-explorer .lot-marker[data-group]{display:flex;align-items:center;justify-content:center;gap:2px}
.lot-explorer .lot-available-count{display:inline-grid;place-items:center;min-width:14px;height:16px;padding-inline:2px;border-radius:4px;background:#dcf4ab;color:#183d20;font-size:10px;font-weight:800;line-height:1}
.lot-explorer .lot-available-count[data-empty="true"]{background:#e5e9e6;color:#344039}

@media(min-width:520px) and (max-width:759px) and (max-height:420px) and (orientation:landscape){
 html{scroll-padding-top:0}
 #mapa.map-section{scroll-margin-top:6px}
 .lot-explorer .lot-layout.is-overview .lot-plan[data-view="plan"] canvas{height:clamp(168px,59vh,242px);min-height:0;aspect-ratio:auto}
 .lot-explorer:has(>.lot-layout.is-overview .lot-plan[data-view="plan"]) .lot-header{padding:8px 12px}
 .lot-explorer:has(>.lot-layout.is-overview .lot-plan[data-view="plan"]) .lot-toolbar{display:flex;margin-top:0}
 .lot-explorer:has(>.lot-layout.is-overview .lot-plan[data-view="plan"]) .lot-view-switch{display:inline-flex}
}

