/* Map-first opportunity workspace, scoped to the existing market page. */
#page-oportunidades .opp-map-workspace[hidden],
#page-oportunidades .opp-map-split[hidden],
#page-oportunidades #oppMapSave[hidden],
#page-oportunidades #oppMapMessage[hidden],
#page-oportunidades #oppMapMore[hidden] { display:none!important; }
#page-oportunidades.opp-map-active :is(#oppTop,#oppResultsHead) { display:none!important; }
#page-oportunidades .opp-map-workspace { margin:0 0 18px; }
#page-oportunidades .opp-map-switch { display:flex;gap:6px;margin-bottom:10px; }
#page-oportunidades .opp-map-switch button { min-height:44px; }
#page-oportunidades .opp-map-switch [aria-pressed="true"] { background:var(--product-green,#123b30);color:#fff;border-color:transparent; }
@media(min-width:901px) and (max-width:1350px) {
  #page-oportunidades #oppTools { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #page-oportunidades #oppTools>:first-child { grid-column:span 2; }
}
#page-oportunidades .opp-map-split {
  display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  min-height:560px;border:1px solid var(--product-line-strong,#bdc9c2);
  border-radius:12px;overflow:hidden;background:var(--product-surface,#fff);
}
.opp-map-stage { position:relative;isolation:isolate;min-width:0;background:#e8ece5; }
.opp-map-canvas { position:absolute;inset:0;z-index:0; }
.opp-map-message {
  position:absolute;left:12px;bottom:26px;z-index:1;margin:0;max-width:calc(100% - 24px);
  padding:9px 12px;border-radius:7px;background:#102e26;color:#fff;font-size:13px;pointer-events:none;
}
.opp-map-results {
  display:flex;flex-direction:column;min-width:0;height:clamp(560px,68vh,900px);padding:16px;
  border-inline-start:1px solid var(--product-line,#dbe4df);
}
.opp-map-results header { padding:2px 2px 14px; }
.opp-map-results h2 { margin:0;font-size:20px;line-height:1.2; }
.opp-map-results header p { margin:5px 0 0;font-size:13px;color:var(--product-muted,#51655c); }
#oppMapRows { overflow:auto;min-height:0;overscroll-behavior:contain; }
.opp-map-empty { margin:0;padding:20px 4px;font-size:14px;color:var(--product-muted,#51655c); }
.opp-map-row {
  display:flex;align-items:flex-start;gap:12px;padding:14px 9px;
  border-block-end:1px solid var(--product-line,#dbe4df);
  border-inline-start:3px solid transparent;
}
.opp-map-row.is-selected { background:var(--product-teal-soft,#e3f2ed);border-inline-start-color:var(--product-teal,#168b77); }
.opp-map-row>img { width:34%;max-width:150px;aspect-ratio:4/3;object-fit:cover;border-radius:7px; }
.opp-map-row>div { flex:1;min-width:0;display:grid;justify-items:start;gap:5px;overflow-wrap:anywhere; }
.opp-map-row>div>span { font-size:13px;color:var(--product-muted,#51655c); }
.opp-map-row strong { color:var(--product-ink,#102e26);font-size:18px; }
.opp-map-row-focus,.opp-map-detail {
  text-align:start;border:0;background:none;color:var(--product-ink,#102e26);font:inherit;cursor:pointer;padding:0;
}
.opp-map-row-focus { font-weight:700; }
.opp-map-detail { font-size:13px;text-decoration:underline;text-underline-offset:3px; }
#oppMapMore { margin-top:10px;min-height:44px;align-self:flex-start; }
.opp-map-pin span {
  display:block;width:max-content;transform:translate(-50%,-100%);padding:5px 9px;
  background:#086b59;color:#fff;border:2px solid #fff;border-radius:99px;font:700 12px/1.25 system-ui,sans-serif;
  box-shadow:0 2px 5px #102e2640;white-space:nowrap;
}
.opp-map-pin.is-selected span,.opp-map-pin:focus-visible span { background:#102e26;outline:2px solid #008a72; }
@media(max-width:900px) {
  #page-oportunidades .opp-map-split { grid-template-columns:minmax(0,1fr);min-height:0; }
  .opp-map-stage { min-height:clamp(280px,48svh,440px); }
  .opp-map-results { height:auto;border-inline-start:0;border-top:1px solid var(--product-line,#dbe4df);padding:12px; }
  #oppMapRows { max-height:410px; }
  .opp-map-row-focus,.opp-map-detail { min-height:44px; }
}
.opp-map-empty-actions { display:flex;flex-wrap:wrap;gap:8px;padding:0 4px 16px; }
.opp-map-empty-actions .btn { min-height:44px; }
