/* V41 · Task 14: the offers on a map (owner, 30/10: «que se vea mucho mejor» and, on hover or tap, what each area holds).
   Map on the left, the area's card and the busiest areas on the right; one column on phones. */
.lbe-jobs-map { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 20px 28px; align-items: start; margin: var(--sp-5, 24px) 0 0; }
.lbe-jobs-map:not(.is-live) { grid-template-columns: minmax(0, 680px); }
.lbe-jobs-map [hidden] { display: none; } /* Parts that only live with the script stay out until it runs. */
@media (max-width: 860px) { .lbe-jobs-map { grid-template-columns: 1fr; } }
.lbe-jobs-map-figure { margin: 0; }
.lbe-jobs-map-stage { padding: clamp(10px, 2vw, 18px); border: 1px solid var(--c-line, #dce3e9); border-radius: 20px; background: radial-gradient(120% 90% at 28% 18%, #ffffff 0%, #f3f8f9 55%, #e9f1f4 100%); box-shadow: var(--e-1, 0 1px 2px rgba(20, 36, 58, .06)); }
.lbe-jobs-map-canvas { position: relative; }
.lbe-jobs-map-canvas > img, .lbe-jobs-map-svg { display: block; width: 100%; height: auto; }
.lbe-jobs-map-svg circle { cursor: pointer; transition: fill-opacity .18s ease, stroke-width .18s ease; }
.lbe-jobs-map-svg.has-active circle { fill-opacity: .36; }
.lbe-jobs-map-svg circle.is-active { fill-opacity: 1; stroke: #14243a; stroke-width: 2.4; }
.lbe-jobs-map figcaption { margin-top: 10px; font-size: .875rem; line-height: 1.55; color: var(--c-text-2, #44566a); }
.lbe-jobs-map figcaption strong { display: block; margin-top: 4px; font-weight: 650; color: var(--c-ink, #14243a); }

/* Pins: the five busiest areas, named. */
.lbe-jobs-map-pins { list-style: none; margin: 0; padding: 0; }
.lbe-jobs-map-pins li { position: absolute; transform: translate(-50%, calc(-100% - 8px)); pointer-events: none; }
.lbe-jobs-map-pins button { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border: 1px solid rgba(20, 36, 58, .12); border-radius: 999px; background: #fff; color: var(--c-ink, #14243a); font: 650 .75rem/1.2 var(--f-text, system-ui, sans-serif); white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(20, 36, 58, .35); cursor: pointer; }
.lbe-jobs-map-pins button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold, #ebad17); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(20, 36, 58, .22); }
.lbe-jobs-map-pins b { color: var(--c-teal-700, #105a63); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .lbe-jobs-map-pins li:nth-child(n+4) { display: none; }
  .lbe-jobs-map-pins button { padding: 3px 8px 3px 6px; font-size: .6875rem; }
}

/* The tip at the point: name and offers. */
.lbe-jobs-map-tip { position: absolute; z-index: 2; display: grid; gap: 2px; min-width: 120px; max-width: 220px; padding: 8px 12px; border-radius: 12px; background: var(--c-ink, #14243a); color: #fff; font-size: .8125rem; line-height: 1.35; text-align: center; box-shadow: 0 12px 28px -12px rgba(20, 36, 58, .6); transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; }
.lbe-jobs-map-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; border-radius: 2px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.lbe-jobs-map-tip.is-left { transform: translate(-14%, calc(-100% - 14px)); }
.lbe-jobs-map-tip.is-left::after { left: 14%; }
.lbe-jobs-map-tip.is-right { transform: translate(-86%, calc(-100% - 14px)); }
.lbe-jobs-map-tip.is-right::after { left: 86%; }
.lbe-jobs-map-tip strong { font-weight: 700; }
.lbe-jobs-map-tip span { color: #cfe6e8; }

/* Side: the area's card, the busiest areas, the legend. */
.lbe-jobs-map-side { display: grid; gap: 12px; }
.lbe-jobs-map-card { min-height: 132px; padding: 18px 18px 16px; border: 1px solid var(--c-line, #dce3e9); border-radius: 18px; background: #fff; box-shadow: var(--e-1, 0 1px 2px rgba(20, 36, 58, .06)); }
.lbe-jobs-map-card > p { margin: 0; color: var(--c-text-2, #44566a); font-size: .9375rem; line-height: 1.5; }
.lbe-jobs-map-card > .lbe-jobs-map-card-title { margin-bottom: 4px; color: var(--c-ink, #14243a); font: 750 1.0625rem/1.25 var(--f-display, inherit); }
.lbe-jobs-map-card > .lbe-jobs-map-card-n { margin: 2px 0 6px; color: var(--c-teal-700, #105a63); font: 750 1.75rem/1.1 var(--f-display, inherit); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lbe-jobs-map-card > .lbe-jobs-map-card-sub { margin: 10px 0 6px; color: var(--c-ink, #14243a); font-size: .8125rem; font-weight: 700; }
.lbe-jobs-map-card-facts { display: grid; gap: 2px; margin: 0 0 4px; padding: 0; list-style: none; color: var(--c-text-2, #44566a); font-size: .875rem; }
.lbe-jobs-map-bars { display: grid; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.lbe-jobs-map-bars li { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: .8125rem; color: var(--c-text-2, #44566a); }
.lbe-jobs-map-bars b { color: var(--c-ink, #14243a); font-variant-numeric: tabular-nums; }
.lbe-jobs-map-bars i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--c-teal, #176b76) var(--w, 0%), var(--c-teal-50, #e7f2f3) var(--w, 0%)); }
.lbe-jobs-map-go { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 12px; background: var(--c-teal, #176b76); color: #fff; font-size: .875rem; font-weight: 700; text-decoration: none; }
.lbe-jobs-map-go:visited { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .lbe-jobs-map-go:hover { background: var(--c-teal-700, #105a63); color: #fff; }
  .lbe-jobs-map-top button:hover { border-color: var(--c-teal, #176b76); }
}
.lbe-jobs-map-go:focus-visible, .lbe-jobs-map-top button:focus-visible, .lbe-jobs-map-pins button:focus-visible { outline: var(--focus-ring, 3px solid #14243a); outline-offset: 3px; }
.lbe-jobs-map-top-title { margin: 6px 0 0; color: var(--c-ink, #14243a); font-size: .875rem; font-weight: 700; }
.lbe-jobs-map-top { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lbe-jobs-map-top button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--c-line, #dce3e9); border-radius: 12px; background: #fff; color: var(--c-ink, #14243a); font: 600 .875rem/1.3 var(--f-text, inherit); text-align: left; cursor: pointer; }
.lbe-jobs-map-top button strong { color: var(--c-teal-700, #105a63); font-variant-numeric: tabular-nums; }
.lbe-jobs-map-top button[aria-pressed="true"] { border-color: var(--c-teal, #176b76); background: var(--c-teal-50, #e7f2f3); }
.lbe-jobs-map-legend { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--c-text-3, #5b6b7d); font-size: .75rem; }
.lbe-jobs-map-legend i { display: inline-block; width: var(--s); height: var(--s); border: 1px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(20, 36, 58, .1); }
@media (prefers-reduced-motion: reduce) { .lbe-jobs-map-svg circle { transition: none; } }
