/* GSF04 v13: flat selected colors and raised selection overlay.
   A previously oversized 3.3–3.8 SVG-unit stroke covered almost all of
   each ~7.3-unit booth and made a yellow keyhole appear inside a red frame.
   Use a uniform selected fill with a thin inset-feeling outline instead.
*/
#boothLayer .booth.mergedSource {
  opacity: 0 !important;
  pointer-events: none !important;
}
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth {
  cursor: pointer;
  fill: #e9ad73;
  stroke: #b08251;
  stroke-width: .65;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth.blue { fill: #9dc8dc; stroke: #5c91ab; }
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth:hover:not(.selected),
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth:focus-visible:not(.selected) {
  fill: #ffd876;
  stroke: #225886;
  stroke-width: .95;
  outline: none;
}
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth.favorite:not(.selected) { fill: #e77a96; stroke: #a82f58; }
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth.done:not(.selected) { fill: #80909d; stroke: #4c6372; }
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth.search-hit:not(.selected) {
  fill: #ffdd68;
  stroke: #e2536a;
  stroke-width: .9;
}
/* Override app-level yellow fill and oversized stroke for BOTH single and
   merged sources; selected always outranks searched/favorite/done. */
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth.selected,
#boothLayer .booth.selected:not(.mergedSource) {
  fill: #df4968 !important;
  fill-opacity: 1 !important;
  stroke: #962944 !important;
  stroke-opacity: 1 !important;
  stroke-width: .85 !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
}
:is(#mergedBoothLayer, #selectedMergedBoothLayer) .mergedBooth.hiddenGroup { opacity: .10; pointer-events: none; }
/* Number labels remain in #numberLayer, the topmost interactive-map group.
   Do not apply text-background highlighting or fill changes to numbers. */
#numberLayer { pointer-events: none; }

/* Active group is painted AFTER single booths and BEFORE labels. */
#selectedMergedBoothLayer { isolation: isolate; }
#selectedMergedBoothLayer .mergedBooth { pointer-events: auto; }
