/* ==========================================================================
   "Find us" module — rebuilt from the existing Chinaski custom module
   (icon+text list + illustrated map with pulsing hotspots)
   ========================================================================== */

.findus { padding: clamp(4rem, 9vw, 8rem) var(--pad-x); }
.findus--light { background: var(--cream); color: var(--plum); }
.findus--plum { background: var(--plum); color: var(--blush); }

.findus__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-areas:
    "head map"
    "list map";
  gap: clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.findus__head { grid-area: head; }
.findus__mapcol { grid-area: map; }
.findus__list { grid-area: list; display: grid; gap: 1.5rem; }

.findus__title { font-size: clamp(2.4rem, 6vw, 5rem); margin: 0.3rem 0 1.4rem; }
.findus__addr { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin: 0 0 0.5rem; }
.findus__addr-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.findus__addr-link:hover { color: var(--coral); }
.findus--plum .findus__addr-link:hover { color: var(--white); }

/* icon + text rows (reproduction of .iwithtext) */
.iwt { position: relative; padding-left: 55px; min-height: 35px; }
.iwt__icon { position: absolute; left: 0; top: -2px; width: 35px; }
.iwt__icon img { width: 35px; height: auto; display: block; }
.iwt__text { font-size: 1rem; line-height: 1.5; }
.iwt__text a { text-decoration: underline; text-underline-offset: 3px; }
.iwt__text a:hover { color: var(--coral); }
.findus--plum .iwt__text a:hover { color: var(--white); }

/* plum theme: invert dark icons so they read on dark bg */
.findus--plum .iwt__icon img { filter: brightness(0) saturate(100%) invert(86%) sepia(18%) saturate(700%) hue-rotate(305deg) brightness(101%) contrast(96%); }

/* Map with pulsing hotspots */
.findus__map { position: relative; border-radius: 18px; overflow: hidden; background: var(--white); }
.findus--plum .findus__map { background: rgba(255,255,255,0.04); }
.findus__mapimg { width: 100%; height: auto; display: block; }
.findus__mapnote { margin-top: 0.7rem; font-size: 0.75rem; opacity: 0.55; }

.findus__deli-cone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.findus__deli-cone polygon {
  /* Exakt die Farbe der eingebrannten Trichter, aus dem PNG gemessen.
     Deckend: die eingebrannten sind es auch, die 0.94 liessen die
     Strassenlinien durchscheinen und den Trichter blasser wirken. */
  fill: #da7341;
}

.hotspot { position: absolute; z-index: 4; width: 22px; height: 22px; transform: translate(-50%, -50%); }
.hotspot__dot { position: absolute; inset: 0; border-radius: 50%; background: var(--coral); display: block; }
.hotspot__dot::before, .hotspot__dot::after { content: ""; position: absolute; background: #fff; }
.hotspot__dot::before { height: 2px; width: 10px; left: 6px; top: 10px; }
.hotspot__dot::after { width: 2px; height: 10px; left: 10px; top: 6px; }
.hotspot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--coral); z-index: -1;
  animation: pulsate 3s cubic-bezier(.2,1,.2,1) infinite;
}
@keyframes pulsate { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(3); } }

/* The new deli hotspot gets a distinct red color if desired, or we just use coral */
.hotspot--new .hotspot__dot, .hotspot--new::after {
  background: #d90b17; /* The specific red requested for Deli */
}

/* Die dritte Blase soll von den zwei eingebrannten nicht zu unterscheiden sein.
   Aus dem PNG gemessen (Karte 1102px breit): Aussendurchmesser 250px = 22.7 %
   der Kartenbreite, Ring 4px = 0.363 %. Beide skalieren mit dem Bild.

   Vorher haengte die Breite an clamp(78px, 13vw, 128px) -- also am Viewport,
   waehrend die anderen an der Karte haengen. Das Groessenverhaeltnis verschob
   sich damit bei jeder Fensterbreite und konnte nie passen. Prozent bezieht
   sich hier auf .findus__map, also auf dieselbe Bezugsgroesse wie das Bild.

   Der Ring liegt als padding + Hintergrund an, nicht als border: border-width
   kennt kein Prozent und waere wieder eine feste Pixelzahl. Padding in Prozent
   rechnet gegen die Breite des Containers und skaliert daher korrekt mit.
   Kein Schlagschatten -- die eingebrannten haben keinen. */
.findus__deli-bubble {
  position: absolute;
  z-index: 5;
  width: 22.7%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  padding: 0.363%;
  background: #da7341;
}
.findus__deli-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Ohne Bild: unsichtbar ueber einer eingebrannten Blase, nur zum Klicken. */
.findus__deli-bubble--ghost { background: transparent; }
a.findus__deli-bubble { cursor: pointer; transition: transform .3s var(--ease); }
a.findus__deli-bubble:hover { transform: translate(-50%, -50%) scale(1.04); }
/* Name unter jeder Blase, als Pille auf dem Ring. */
.findus__bubble-name {
  position: absolute;
  z-index: 6;
  padding: .3em .75em .26em;
  border-radius: 999px;
  background: #da7341;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(.62rem, 1.1vw, .8rem);
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  /* mittig auf den unteren Rand der Blase: Radius 11,35 % der Kartenbreite */
  transform: translate(-50%, calc(11.35cqw - 50%));
  /* nur beim Zeigen (Patrick: keine festen Labels) */
  opacity: 0;
  transition: opacity .2s ease;
}
a.findus__deli-bubble:hover + .findus__bubble-name,
a.findus__deli-bubble:focus-visible + .findus__bubble-name { opacity: 1; }
.findus__map { container-type: inline-size; }

@media (max-width: 860px) {
  .findus__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "map"
      "list";
    gap: clamp(1.5rem, 5vw, 2rem);
  }
  .findus__addr { margin-bottom: 0; }
}
