/* =========================================================
   Einsatzgebiet / Locations (SECTION)
   - Designed to match the bright green/white/gold theme
   - Layout: big visual on top + localities list under it
   - SEO-friendly: all localities are real text in the DOM
   ========================================================= */

.hm-locations{
  padding-top: clamp(40px, 6vw, 88px);
}

/* ==============================
   TOP VISUAL
   ============================== */
.loc-hero{
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  min-height: 360px;
  border-radius: 26px;
}

@media (max-width: 980px){
  .loc-hero{ min-height: 300px; }
}

.loc-hero__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 640px at 18% 22%, rgba(31,138,91,.22), transparent 58%),
    radial-gradient(980px 560px at 86% 18%, rgba(201,162,39,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
}

.loc-hero__bg::after{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px 520px at 50% 30%, rgba(255,255,255,.66), transparent 70%),
    linear-gradient(135deg, rgba(15,23,42,.06), transparent 55%);
  opacity: .95;
}

.loc-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(18px, 3vw, 34px);
  opacity: .92;
  transform: translateZ(0);
  filter: drop-shadow(0 18px 42px rgba(15,23,42,.12));
}

.loc-hero__badge{
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 45px rgba(15,23,42,.10);
  max-width: min(360px, 86%);
}

.loc-hero__badgeKicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(15,23,42,.62);
}

.loc-hero__badgeMain{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(15,23,42,.92);
}

.loc-hero__badgeSub{
  margin-top: 4px;
  font-weight: 700;
  color: rgba(31,138,91,.92);
}

/* ==============================
   LIST PANEL
   ============================== */
.loc-panel{
  margin-top: 18px;
  padding: 18px;
}

.loc-panel__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.loc-panel__title{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .02em;
}

.loc-panel__meta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,138,91,.08);
  border: 1px solid rgba(31,138,91,.18);
  color: rgba(15,23,42,.86);
  font-weight: 800;
  font-size: 13px;
}

.loc-tools{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

@media (max-width: 720px){
  .loc-tools{ grid-template-columns: 1fr; }
}

.loc-search{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.loc-search__ico{
  font-weight: 900;
  opacity: .55;
}

.loc-search input{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: rgba(15,23,42,.92);
}

.loc-clear{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.loc-clear:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
}

.loc-clear:active{ transform: translateY(0); }

/* ==============================
   GROUPS + CHIPS
   ============================== */
.loc-groups{
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.loc-group.is-hide{ display: none; }

.loc-group__title{
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15,23,42,.70);
}

.loc-chips{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loc-chipWrap{
  margin: 0;
}

.loc-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  color: rgba(15,23,42,.92);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.loc-chip:hover{
  transform: translateY(-2px);
  border-color: rgba(31,138,91,.30);
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
}

.loc-chip.is-copied{
  border-color: rgba(201,162,39,.55);
  box-shadow: 0 16px 40px rgba(201,162,39,.18);
}

.loc-chip:active{ transform: translateY(0); }

.loc-chip:focus-visible{
  outline: 3px solid rgba(201,162,39,.45);
  outline-offset: 2px;
}

/* Hidden by filter */
.loc-chipWrap.is-hide{ display: none; }

.loc-note{
  margin-top: 16px;
  color: rgba(15,23,42,.72);
}

/* ==============================
   TOAST
   ============================== */
.loc-toast{
  position: sticky;
  bottom: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15,23,42,.86);
  color: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(15,23,42,.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.loc-toast__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,.2) 45%, rgba(255,255,255,0) 70%),
              radial-gradient(circle at 50% 50%, rgba(201,162,39,1), rgba(31,138,91,.8));
  box-shadow: 0 0 0 6px rgba(201,162,39,.12);
}

.loc-toast.is-show{
  opacity: 1;
  transform: translateY(0);
  animation: loc-toast-in .16s ease-out;
}

@keyframes loc-toast-in{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .loc-chip, .loc-clear{ transition: none; }
  .loc-toast.is-show{ animation: none; }
}


/* Always respect hidden attribute */
.hm-loc__toggle[hidden]{
  display: none !important;
}

/* Default: do not show on desktop */
.hm-loc__toggle{
  display: none;
}

/* Mobile only (touch devices) */
@media (max-width: 960px) and (hover: none) and (pointer: coarse){
  .hm-loc__toggle{
    display: inline-flex;
    align-items: center;
    justify-content: right;
    margin-top: 12px;

    margin-left: auto;   /* ✅ pushes it to the right */
    margin-right: 0;

    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    font-weight: 600;
    cursor: pointer;
  }
}

/* ==============================
   MAP OVERLAY: Pin + towns ring
   ============================== */

.loc-mapOverlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none; /* purely visual */
  z-index: 2;
}

.loc-hub{
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;

  /* You can move the whole overlay slightly if needed */
  transform: translateY(-4px);
}

.loc-pin{
  width: clamp(34px, 5vw, 56px);
  height: auto;
  fill: rgba(255,255,255,.92);
  stroke: rgba(15,23,42,.38);
  stroke-width: 2;
  filter: drop-shadow(0 10px 22px rgba(15,23,42,.18));
}

.loc-centerCity{
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.1;
  color: rgba(15,23,42,.92);
  text-shadow: 0 10px 24px rgba(255,255,255,.7);
  white-space: nowrap;
}

/* Towns ring geometry */
.loc-ring{
  position: absolute;
  inset: 0;
  --loc-ring: clamp(110px, 18vw, 190px); /* distance from center */
}

.loc-town{
  position: absolute;
  left: 43%;
  top: 50%;
  transform:
    rotate(var(--a))
    translateX(var(--loc-ring))
    rotate(calc(var(--a) * -1));
  transform-origin: center;

  font-weight: 800;
  font-size: clamp(11px, 1.4vw, 14px);
  color: rgba(15,23,42,.82);
  text-shadow: 0 10px 24px rgba(255,255,255,.75);
  white-space: nowrap;
  opacity: .95;
}

/* Angles around the circle */
.loc-town.t1{  --a: -90deg; }
.loc-town.t2{  --a: -55deg; }
.loc-town.t3{  --a: -20deg; }
.loc-town.t4{  --a:  10deg; }
.loc-town.t5{  --a:  45deg; }
.loc-town.t6{  --a:  85deg; }
.loc-town.t7{  --a: 125deg; }
.loc-town.t8{  --a: 160deg; }
.loc-town.t9{  --a: 200deg; }
.loc-town.t10{ --a: 235deg; }

/* Ensure badge stays above overlay */
.loc-hero__badge{ z-index: 3; }
.loc-hero__img{ z-index: 1; }
