/* Centre map add-ons — see /assets/js/floorplan-extras.js */

/* Units that have a shop: pointer cursor + highlight */
.floorplan .map-unit.has-shop { cursor: pointer; pointer-events: all; /* outline-only units (The Green) still respond inside */ }
.floorplan .map-unit.is-hot:not(.map-unit--anchor),
.floorplan .map-unit.is-hot.is-lit:not(.map-unit--anchor) { fill: #f05b4f; stroke: #f05b4f; }
.floorplan .map-unit--anchor.is-hot { stroke: #f05b4f; stroke-width: 3; }
/* multi-piece units: keep the joins hidden while highlighted */
.floorplan .map-unit.map-unit--part.is-hot { stroke: #f05b4f; stroke-width: 1.2; }

/* Pin shown by hover / tap / search (independent of the category filter) */
.floorplan__pins li.is-focus { z-index: 3; }
/* A pin shown only because of hover must not catch the mouse: units are thin,
   so the pin sits over its neighbours and would block hovering them.
   (The name label carries the link instead.) Category pins stay clickable. */
.floorplan__pins li.is-focus:not(.is-visible),
.floorplan__pins li.is-focus.no-transition-delay { pointer-events: none; }
/* main.js leaves the last-hovered pin showing (marked no-transition-delay);
   hide it once our hover has moved on. */
.floorplan__pins li.no-transition-delay:not(.is-focus):not(.is-target) { pointer-events: none; }
.floorplan__pins li.no-transition-delay:not(.is-focus):not(.is-target) a,
.floorplan__pins li.no-transition-delay:not(.is-focus):not(.is-target)::before { opacity: 0 !important; animation: none !important; }
.floorplan__pins li.is-focus a { opacity: 1; transition-delay: 0s; }
.floorplan__pins li.is-focus::before { opacity: 1; transform: translate(0, -50%) scale(1.1, .1); }

/* Name label above the pin */
.floorplan-label {
  position: absolute;
  z-index: 5;
  max-width: 220px;
  padding: 6px 10px;
  background: #414152;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(65, 65, 82, .25);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}
.floorplan-label[hidden] { display: none; }
/* Hover labels let the mouse through to neighbouring units; tapped/searched ones are clickable. */
.floorplan-label { pointer-events: none; }
.floorplan-label.is-sticky { pointer-events: auto; }
@media (max-width: 599px) {
  .floorplan-label { padding: 4px 8px; font-size: 13px; max-width: 160px; }
}
.floorplan-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-x, 50%);
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #414152;
}
.floorplan-label.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #414152;
}
/* !important: the site's own link styles otherwise turn these grey + underlined */
.floorplan .floorplan-label a {
  display: block;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floorplan-label a::after { content: " \203A"; color: #f15b4f; }
.floorplan-label__title { display: block; font-weight: 600; }
.floorplan-label__sub { display: block; font-size: 12px; font-weight: 400; color: #d6d6dc; }
.floorplan .floorplan-label a:hover,
.floorplan .floorplan-label a:focus { text-decoration: underline !important; }

/* Find a shop — matches the What's Here (/units) search box (.uh-search) */
.floorplan-search { margin: 0 0 20px; padding: 20px 24px; background: #e3f4fd; }
.floorplan-search label {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #2c2b3a;
}
.floorplan-search__row { display: flex; gap: 8px; }
.floorplan-search__field { position: relative; flex: 1; min-width: 0; }
.floorplan-search input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #c9d6e2;
  border-radius: 4px;
  font: inherit;
  font-size: 16px; /* stops iOS zooming in on focus */
  color: #2c2b3a;
  background: #fff;
}
.floorplan-search input:focus { outline: 2px solid #2c2b3a; outline-offset: 1px; }
.floorplan-search__clear {
  flex: none;
  padding: 0 16px;
  border: 1px solid #2c2b3a;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #2c2b3a;
  cursor: pointer;
}
.floorplan-search__clear[hidden] { display: none; }
.floorplan-search ul {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #c6c6cb;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(65, 65, 82, .15);
}
.floorplan-search ul[hidden] { display: none; }
.floorplan-search li { padding: 8px 14px; cursor: pointer; color: #414152; }
.floorplan-search li.is-active,
.floorplan-search li[role="option"]:hover { background: #fde1de; }
.floorplan-search li.is-empty { cursor: default; color: #808090; }
