.private-plan-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin-top:16px; padding:10px 16px; border:1px solid #dec176; border-radius:24px; background:#dec176; color:#123d32; font:700 14px/1.2 system-ui,sans-serif; text-decoration:none; }
.private-plan-link:focus-visible { outline:3px solid white; outline-offset:3px; }
@media(max-width:760px) {
  .subpage-copy:has(.private-plan-link) { padding-right:130px; }
  .subpage-hero .private-plan-link { position:absolute; right:14px; top:50%; transform:translateY(-50%); margin:0; min-height:40px; padding:10px; font-size:12px; }
}
.plan-page { margin:0; background:#f5f6f2; color:#173d32; font:14px/1.45 system-ui,sans-serif; }
.plan-page * { box-sizing:border-box; }
.plan-page .plan-header { min-height:76px; padding:12px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:#123d32; color:white; }
.plan-page .plan-header a { color:#ead393; font-weight:650; text-decoration:none; }
.plan-page .plan-header span { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#d6dccd; }
.plan-page .plan-header h1 { margin:2px 0 0; font-size:20px; }
.plan-page .plan-header button { border:1px solid #d8c58b; background:transparent; color:#f3e8bf; padding:10px 12px; min-height:44px; border-radius:10px; cursor:pointer; }
.plan-page a:focus-visible,.plan-page button:focus-visible { outline:3px solid #c99432; outline-offset:3px; }
.plan-page .plan-note { padding:16px 24px 24px; color:#52635b; font-size:12px; }
.plan-page .plan-note p { margin:0 0 8px; }
.plan-page .plan-note a { color:#173d32; display:inline-flex; align-items:center; min-height:44px; margin-right:20px; font-weight:700; }
.plan-page [hidden] { display:none; }
.plan-page main { max-width:1440px; margin:auto; padding:0 24px; }
.plan-page .plan-intro { padding:18px 0 12px; }
.plan-page .plan-intro p { margin:0 0 7px; }
.plan-page #plan-status { font-size:12px; color:#50715f; }
.plan-page #plan-status.is-stale { color:#8a401e; font-weight:700; }
.plan-page .plan-filters { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.plan-page .plan-filters label { display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:700; flex:1; min-width:140px; }
.plan-page .plan-filters input,.plan-page .plan-filters select { min-width:0; width:100%; padding:11px; min-height:44px; border:1px solid #cdd6cc; border-radius:10px; color:#183d32; background:white; font:14px system-ui; }
.plan-page .plan-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
.plan-page .plan-map-section { min-width:0; background:white; border:1px solid #d8dfd4; border-radius:16px; overflow:hidden; }
.plan-page .map-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:12px; font-size:12px; border-bottom:1px solid #d8dfd4; }
.plan-page .map-toolbar > div { display:flex; align-items:center; gap:6px; }
.plan-page button { font-family:inherit; cursor:pointer; }
.plan-page .map-toolbar button,.plan-page #show-more { min-height:44px; min-width:44px; padding:8px; border:1px solid #ccd6ca; border-radius:9px; background:#f3f5ef; color:#173d32; }
.plan-page button:disabled { opacity:.45; cursor:default; }
.plan-page #zoom-value { min-width:44px; text-align:center; }
/* Continue scrolling the page when the fitted map or a zoomed edge cannot scroll. */
.plan-page #map-viewport { height:clamp(350px,58vh,650px); overflow:auto; background:#f3f5f1; touch-action:pan-x pan-y; overscroll-behavior:auto; }
.plan-page #map-message { padding:20px; }
.plan-page #map-canvas { margin:0 auto; }
.plan-page .lot-map { width:100%; display:block; height:auto; }
.plan-page .lot-map :is(path,rect,polygon,polyline,circle,ellipse) { fill:transparent; }
.plan-page .map-lot { cursor:pointer; fill:var(--lot-color); stroke:var(--lot-color); fill-opacity:.5; stroke-width:2; }
.plan-page .map-lot :is(path,rect,polygon,polyline,circle,ellipse) { fill:inherit; stroke:inherit; }
.plan-page .map-lot.is-selected,.plan-page .map-lot:focus { fill-opacity:.8; stroke:#122f24; stroke-width:9; outline:none; }
.plan-page .map-lot.is-filtered { opacity:.15; }
.plan-page .map-label { display:none; fill:#11291f; stroke:white; stroke-width:.6; paint-order:stroke; fill-opacity:1; pointer-events:none; font-weight:750; }
.plan-page .show-labels .map-label { display:block; }
.plan-page .map-notice { margin:8px 12px; font-size:12px; color:#755533; }
.plan-page .map-notice:empty { display:none; }
.plan-page .plan-legend { display:flex; flex-wrap:wrap; gap:8px 16px; padding:12px; border-top:1px solid #e5e9e0; font-size:12px; }
.plan-page .plan-legend span::before,.plan-page .unit-state::before,.plan-page .detail-state::before { content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--state-color); margin-right:6px; }
.plan-page .unit-detail { background:#fff; border:1px solid #d6dfd1; border-radius:16px; padding:22px; }
.plan-page .unit-detail .eyebrow { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#687c68; margin-top:0; }
.plan-page .unit-detail h2 { font-size:25px; line-height:1.2; margin:14px 0 8px; }
.plan-page .unit-detail h3 { font-size:21px; margin:0 0 14px; }
.plan-page .detail-state { display:inline-block; border:1px solid #d2dace; padding:7px 10px; border-radius:30px; font-weight:700; font-size:12px; }
.plan-page .detail-contact { display:flex; min-height:46px; align-items:center; justify-content:center; padding:10px 12px; background:#173d32; color:white; border-radius:10px; text-decoration:none; text-align:center; font-weight:700; margin-top:20px; }
.plan-page .detail-warning { color:#8a401e; }
@media(max-width:600px) {
  .plan-page .plan-header { padding:10px 12px; gap:6px 12px; flex-wrap:wrap; }
  .plan-page .plan-header > div { order:-1; flex-basis:100%; }
  .plan-page .plan-header h1 { font-size:18px; }
  .plan-page .plan-header > a { font-size:12px; }
  .plan-page .plan-header span { font-size:10px; }
  .plan-page .plan-header button { font-size:12px; min-height:40px; padding:8px; }
  .plan-page .plan-note { padding:14px 12px; }
  .plan-page main { padding:0 12px; }
  .plan-page .plan-intro { padding-top:12px; }
  .plan-page .plan-intro p { font-size:12px; }
  .plan-page .plan-filters { gap:8px; margin-bottom:12px; }
  .plan-page .plan-filters label { min-width:calc(50% - 8px); }
  .plan-page .plan-filters label:last-child { flex-basis:100%; }
  .plan-page .plan-filters input,.plan-page .plan-filters select { font-size:16px; }
  .plan-page .plan-layout { grid-template-columns:1fr; gap:12px; }
  .plan-page #map-viewport { height:320px; }
  .plan-page .map-toolbar { gap:8px; padding:8px; }
  .plan-page .map-toolbar > span { font-size:11px; }
  .plan-page .unit-detail { padding:18px; }
  .plan-page #unit-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .plan-page .unit-row { padding:10px; }
  .plan-page .plan-note { padding:18px 0; }
}
@media(min-width:601px) and (max-width:980px){.plan-page .plan-layout {grid-template-columns:minmax(0,1fr) 260px}.plan-page #unit-list {grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Visual map browsing: names and colors stay on the map, details are a single card. */
.plan-page main {max-width:1760px;padding:0 28px}
.plan-page .plan-intro {display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 0 14px}
.plan-page .plan-intro p {margin:0}.plan-page .plan-filters {max-width:740px;margin-bottom:16px}
.plan-page .plan-layout {grid-template-columns:minmax(0,1fr) 310px;gap:24px}
.plan-page #map-viewport {height:clamp(460px,70vh,900px)}
.plan-page .map-toolbar {padding:8px 14px}.plan-page .map-toolbar button {background:white}
.plan-page .map-lot.is-filtered {opacity:1;fill:#f2f3f1;stroke:#dce0d8;fill-opacity:.96;pointer-events:none}
.plan-page .map-lot.is-filtered .map-label {fill:#a6ada3;stroke:#f2f3f1}

.plan-page .map-lot:hover {fill-opacity:.8}.plan-page .map-label {font-family:system-ui,sans-serif}
.plan-page .plan-legend {gap:6px;padding:10px 12px}
.plan-page .legend-choice {border:1px solid transparent;border-radius:24px;background:transparent;color:#52635b;min-height:40px;padding:8px 11px;font-size:12px}
.plan-page .legend-choice::before {content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--state-color);margin-right:7px}
.plan-page .legend-choice[aria-pressed=true] {border-color:#173d32;background:#edf2eb;color:#173d32;font-weight:700}
.plan-page .unit-detail {padding:22px;overflow:hidden;box-shadow:0 12px 35px #173d3208}
.plan-page .unit-detail.is-empty {border-style:dashed;background:transparent;box-shadow:none;padding:32px 24px}
.plan-page .detail-facade {display:block;width:calc(100% + 44px);height:290px;object-fit:contain;margin:-22px -22px 24px;padding:20px;background:radial-gradient(ellipse,#e6ecdf,#f7f8f4)}
.plan-page .facade-placeholder {padding:32px 12px;background:#f1f4ee;color:#69776a;text-align:center;border-radius:12px}
.plan-page .unit-detail h2 {font-size:28px;margin:6px 0 16px}.plan-page .unit-detail p {color:#667568;line-height:1.6}
.plan-page .detail-contact {background:#dec176;color:#173d32;border-radius:24px}
.plan-page .plan-note {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0}.plan-page .plan-note p {margin:0}.plan-page .plan-note a {margin:0}
.plan-page #filter-note:empty {display:none}.plan-page #filter-note {color:#755533}
@media(max-width:900px){.plan-page .plan-layout {grid-template-columns:1fr}.plan-page .unit-detail {max-width:none}.plan-page .unit-detail.is-empty {padding:18px 22px}.plan-page .detail-facade {height:280px}.plan-page .plan-intro {display:block}.plan-page .plan-intro p+p {margin-top:6px}}
@media(max-width:600px){.plan-page main {padding:0 12px}.plan-page .plan-header>div {flex-basis:auto;order:0}.plan-page .plan-header {display:grid;grid-template-columns:1fr auto;padding:14px 16px}.plan-page .plan-header>a {grid-column:1/-1;margin-bottom:8px}.plan-page .plan-header h1 {font-size:23px}.plan-page .plan-header button {font-size:12px}.plan-page .plan-intro {padding:16px 0 12px}.plan-page .plan-filters label:last-child {flex-basis:0}.plan-page .plan-filters {gap:10px}.plan-page .plan-filters label {min-width:0}.plan-page .plan-filters select {font-size:14px}.plan-page #level-label {flex-basis:100%}.plan-page .map-toolbar>span {display:none}.plan-page .map-toolbar {justify-content:flex-end}.plan-page #map-viewport {height:clamp(400px,64svh,650px)}.plan-page .plan-note {display:block}.plan-page .plan-legend {gap:2px}.plan-page .legend-choice {padding:8px;font-size:11px}.plan-page .unit-detail h2 {font-size:26px}}
@media(max-width:600px){.plan-page #map-viewport {height:320px}}


.plan-page .plan-header a { display:inline-flex;align-items:center;min-height:48px;padding:10px 16px;border:2px solid #ead393;border-radius:12px;background:#ead393;color:#123d32;font-size:16px;font-weight:800; }

.plan-page .unit-detail .detail-area {display:grid;gap:8px;margin:14px 0 8px;padding:12px 14px;border:1px solid #e2e7dc;border-radius:12px;background:#f5f7f2;color:#516354;font-size:13px;line-height:1.35}
.plan-page .unit-detail .detail-area-row {display:flex;justify-content:space-between;align-items:center;gap:12px}
.plan-page .unit-detail .detail-area strong {color:#173d32;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.plan-page .unit-detail .detail-area-excess {padding-top:8px;border-top:1px solid #dfe5da;color:#49653b}

/* Distinción de lotes en esquina y cargo registrado, independiente del excedente. */
.plan-page .lot-map .map-lot.is-corner :is(path,rect,polygon,polyline,circle,ellipse) { stroke:#bb8f2c; stroke-width:9; }
.plan-page .lot-map .map-lot.is-corner.is-selected :is(path,rect,polygon,polyline,circle,ellipse) { stroke:#87661c; stroke-width:13; }
.plan-page .detail-state-line { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.plan-page .detail-corner { display:inline-flex; align-items:center; min-height:30px; padding:5px 10px; border:1px solid #caa84e; border-radius:20px; background:#fbf7e8; color:#785d16; font-size:12px; font-weight:750; }
.plan-page .detail-area-corner { padding-top:8px; border-top:1px solid #dfe5da; color:#785d16; }
.plan-page .detail-area-corner strong { color:#785d16; }
