/* Galerie Teplice — styly 3D mapy centra (/mapa, /en/map).
   Sdílené oběma jazykovými verzemi; tokeny drží řeč webu (site-base.css). */

.gtm-wrap {
  --gtm-ink: #0e0e0e;
  --gtm-muted: #626262;
  --gtm-line: #e3e6e4;
  --gtm-accent: #e60044;
  --gtm-card: #ffffff;
  --gtm-radius: 18px;
  --gtm-shadow: 0 2px 6px rgba(14, 14, 14, 0.03), 0 16px 40px rgba(14, 14, 14, 0.08);
  position: relative;
  border-radius: var(--gtm-radius);
  overflow: hidden;
  border: 1px solid rgba(14, 14, 14, 0.07);
  box-shadow: var(--gtm-shadow);
  background: linear-gradient(180deg, #f7f9f8 0%, #eef1f0 100%);
  height: max(560px, calc(100dvh - 205px));
}

.gtm-stage {
  position: absolute;
  inset: 0;
  touch-action: none;
  outline: none;
}

/* ------------------------------------------- 2D plán (kopie původní mapy) -- */
.gtm-plan {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  outline: none;
}
/* na stránce mapy je vlevo plovoucí panel — plán se centruje do zbývající plochy */
.gtm-wrap .gtm-plan { padding: 20px 78px 26px 410px; }
.gtm-plan svg { width: 100%; height: 100%; }
.gtm-plan text { font-family: 'Manrope', 'Quicksand', system-ui, sans-serif; }
.gtm-plan .gtm-plan-store { cursor: pointer; }
.gtm-plan .gtm-plan-store:hover [id^='unit-'] { fill: #fde3ec; }
.gtm-plan .gtm-plan-sel [id^='unit-'] { fill: #e60044 !important; animation: gtmSelPulse 1.6s ease-in-out infinite; }
@keyframes gtmSelPulse { 0%, 100% { fill-opacity: 1; } 50% { fill-opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .gtm-plan .gtm-plan-sel [id^='unit-'] { animation: none; } }
.gtm-plan .gtm-plan-sel [id^='logo-'] { fill: #ffffff !important; }
.gtm-plan .gtm-plan-sel text { fill: #ffffff; }
/* výsledky hledání/filtru (map-plan setHighlight → .gtm-plan-filtering na SVG):
   odpovídající jednotky růžově s linkou, u ostatních se ztlumí jen logo a číslo.
   Celou skupinu průhlednou udělat nejde — prosvítal by tmavý podklad stěn.
   Vybraný obchod si drží své zvýraznění; bez filtru se nic z toho neuplatní. */
.gtm-plan .gtm-plan-filtering g[id^='s-']:not(.gtm-plan-hit):not(.gtm-plan-sel) > text,
.gtm-plan .gtm-plan-filtering g[id^='s-']:not(.gtm-plan-hit):not(.gtm-plan-sel) > [id^='logo-'] { opacity: 0.3; }
.gtm-plan .gtm-plan-filtering g[id^='s-'].gtm-plan-store:not(.gtm-plan-hit):hover > text,
.gtm-plan .gtm-plan-filtering g[id^='s-'].gtm-plan-store:not(.gtm-plan-hit):hover > [id^='logo-'] { opacity: 1; }
.gtm-plan .gtm-plan-filtering .gtm-plan-hit [id^='unit-'] {
  fill: #fcd9e4;
  stroke: #e60044;
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}
.gtm-plan .gtm-plan-filtering .gtm-plan-hit:hover [id^='unit-'] { fill: #f9c2d3; }
.gtm-plan:focus-visible::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 3px solid var(--gtm-accent);
  border-radius: calc(var(--gtm-radius) - 4px);
  pointer-events: none;
}

/* režimy zobrazení: plán je výchozí, 3D na přepnutí */
.gtm-wrap[data-mode='plan'] .gtm-stage { visibility: hidden; }
.gtm-wrap[data-mode='3d'] .gtm-plan { display: none; }
.gtm-wrap[data-mode='plan'] .gtm-fbtn[data-overview] { display: none; }
.gtm-wrap[data-mode='plan'] #gtmFacilitiesSection { display: none; }
.gtm-wrap[data-mode='plan'] .gtm-chip:has(#gtmGhost) { display: none; }
.gtm-vbtn--toggle { font-size: 13px; font-weight: 750; letter-spacing: 0.02em; }
.gtm-stage canvas { display: block; outline: none; }
.gtm-stage:focus-visible::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 3px solid var(--gtm-accent);
  border-radius: calc(var(--gtm-radius) - 4px);
  pointer-events: none;
}

/* ------------------------------------------------------------- načítání -- */
.gtm-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(180deg, #f7f9f8 0%, #eef1f0 100%);
  color: var(--gtm-muted);
  transition: opacity 0.5s;
  text-align: center;
  padding: 24px;
}
.gtm-loading.is-hidden { opacity: 0; pointer-events: none; }
.gtm-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(14, 14, 14, 0.12);
  border-top-color: var(--gtm-accent);
  animation: gtmspin 0.8s linear infinite;
}
.gtm-loading p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.gtm-loading a { color: var(--gtm-accent); font-weight: 800; text-decoration: none; }
.gtm-loading a:hover { text-decoration: underline; }
@keyframes gtmspin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- panel -- */
.gtm-panel {
  position: absolute;
  z-index: 30;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 372px;
  display: flex;
  flex-direction: column;
  background: var(--gtm-card);
  border: 1px solid rgba(14, 14, 14, 0.07);
  border-radius: var(--gtm-radius);
  box-shadow: var(--gtm-shadow);
  overflow: hidden;
}
.gtm-sheet-handle { display: none; }

.gtm-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--gtm-line);
}
.gtm-search-row input[type='search'] {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gtm-line);
  border-radius: 100px;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: var(--gtm-ink);
}
/* jen vlastní tlačítko × (.gtm-search-clear) — nativní „zrušit“ prohlížeče by bylo druhé (9. 10. 2026) */
.gtm-search-row input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.gtm-search-row input[type='search']:focus-visible { border-color: var(--gtm-accent); box-shadow: 0 0 0 3px rgba(230, 0, 68, 0.14); }
.gtm-search-clear {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 100px;
  background: #f2f3f2;
  font-size: 15px;
  font-weight: 800;
  color: var(--gtm-muted);
  cursor: pointer;
}
.gtm-search-clear:hover { background: #e8eae9; color: var(--gtm-ink); }

.gtm-filter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gtm-line);
}
.gtm-select,
select.gtm-select {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--gtm-line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--gtm-ink);
}
.gtm-select:focus-visible { border-color: var(--gtm-accent); outline: none; box-shadow: 0 0 0 3px rgba(230, 0, 68, 0.14); }
.gtm-sort {
  display: flex;
  gap: 6px;
}
.gtm-sort button {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--gtm-line);
  background: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gtm-muted);
  cursor: pointer;
}
.gtm-sort button.is-active { background: var(--gtm-ink); border-color: var(--gtm-ink); color: #fff; }
.gtm-sort button:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 1px; }

/* filtr kategorií — přepínací štítky v rozbalovací řádce. Nativní select
   s 15 položkami se na iOS otevíral jako dlouhé „kolečko" a byl nepřehledný. */
.gtm-catsel > summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--gtm-line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--gtm-ink);
}
.gtm-catsel > summary::-webkit-details-marker { display: none; }
.gtm-catsel > summary::after { content: '▾'; font-size: 11px; color: var(--gtm-muted); transition: transform 0.18s; }
.gtm-catsel[open] > summary { border-color: var(--gtm-ink); }
.gtm-catsel[open] > summary::after { transform: rotate(180deg); }
.gtm-catsel > summary:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 1px; }
.gtm-catgrid { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 2px 4px; }
.gtm-catchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--gtm-line);
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--gtm-ink);
  cursor: pointer;
}
.gtm-catchip i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--gtm-muted); }
.gtm-catchip.is-on { background: var(--gtm-ink); border-color: var(--gtm-ink); color: #fff; }
.gtm-catchip.is-on i { color: rgba(255, 255, 255, 0.65); }
.gtm-catchip:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 1px; }

/* filtr pater — segment (Vše · 2 · 1 · 0 · −1) místo selectu */
.gtm-floorseg { display: flex; gap: 6px; }
.gtm-floorseg button {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--gtm-line);
  background: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gtm-muted);
  cursor: pointer;
}
.gtm-floorseg button i { width: 8px; height: 8px; border-radius: 2px; background: #ccc; }
.gtm-floorseg button[data-floor='2'] i { background: #d8308f; }
.gtm-floorseg button[data-floor='1'] i { background: #2d7dd2; }
.gtm-floorseg button[data-floor='0'] i { background: #69b245; }
.gtm-floorseg button[data-floor='-1'] i { background: #f0842d; }
.gtm-floorseg button.is-active { background: var(--gtm-ink); border-color: var(--gtm-ink); color: #fff; }
.gtm-floorseg button:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 1px; }

/* počet výsledků hledání/filtru u tlačítek pater (map-ui setFloorCounts) —
   odznak v rohu; bez filtru se nevkládá vůbec. Patro bez výsledků: šedá „0“
   a vybledlý čtvereček barvy patra, text drží kontrast a tlačítko jde kliknout. */
.gtm-floorseg button,
.gtm-fbtn { position: relative; }
.gtm-fcount {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 100px;
  background: var(--gtm-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.is-empty > .gtm-fcount { background: #e3e6e4; color: var(--gtm-muted); }
.gtm-floorseg button.is-empty:not(.is-active) i { opacity: 0.35; }

.gtm-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  overscroll-behavior: contain;
  padding-bottom: 10px;
}

/* seznam */
.gtm-floorhead {
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gtm-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #fff 82%, rgba(255, 255, 255, 0));
  z-index: 2;
}
.gtm-floorhead i { width: 10px; height: 10px; border-radius: 3px; background: #ccc; }
.gtm-floorhead[data-f='2'] i { background: #d8308f; }
.gtm-floorhead[data-f='1'] i { background: #2d7dd2; }
.gtm-floorhead[data-f='0'] i { background: #69b245; }
.gtm-floorhead[data-f='-1'] i { background: #f0842d; }

.gtm-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--gtm-ink);
  transition: background 0.15s;
}
.gtm-item:hover { background: #f2f5f4; }
.gtm-item:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: -3px; border-radius: 10px; }
.gtm-item.is-active { background: rgba(230, 0, 68, 0.08); }
.gtm-item.is-active .gtm-item-name { color: var(--gtm-accent); }
.gtm-item-name { font-size: 13.5px; font-weight: 700; }
/* zvýrazněná shoda dotazu v nápovědě při psaní */
.gtm-item-name .gtm-hl { color: var(--gtm-accent); font-weight: 800; }
.gtm-item-meta { font-size: 11.5px; font-weight: 600; color: var(--gtm-muted); flex: 0 0 auto; }
.gtm-empty { padding: 18px 16px; color: var(--gtm-muted); font-size: 13.5px; }

/* detail obchodu */
.gtm-detail { padding: 12px 16px 18px; }
.gtm-back {
  border: 0;
  background: none;
  color: var(--gtm-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 0;
}
.gtm-back:hover { color: var(--gtm-ink); }
.gtm-d-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 10px; }
.gtm-d-head > div { min-width: 0; }
.gtm-d-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--gtm-line);
  border-radius: 14px;
  padding: 6px;
  background: #fff;
  flex: 0 0 auto;
}
.gtm-d-name { margin: 0; font-family: 'Novatica', 'Century Gothic', system-ui, sans-serif; font-size: 22px; font-weight: 600; line-height: 1.1; }
.gtm-d-meta { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--gtm-muted); }
.gtm-d-block h3, .gtm-lab {
  margin: 12px 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gtm-muted);
  display: block;
}
.gtm-d-hours { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.65; }
.gtm-d-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0; font-size: 13px; }
.gtm-d-row span { color: var(--gtm-muted); font-weight: 700; flex: 0 0 auto; }
/* dlouhé hodnoty (URL, e-mail) se musí zalomit, jinak roztáhnou celý panel */
.gtm-d-row a { color: var(--gtm-ink); font-weight: 700; text-decoration: none; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.gtm-d-row a:hover { color: var(--gtm-accent); }
.gtm-d-desc {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gtm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gtm-d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gtm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--gtm-line);
  background: #fff;
  color: var(--gtm-ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.gtm-btn:hover { transform: translateY(-1px); border-color: var(--gtm-ink); }
.gtm-btn:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 1px; }
.gtm-btn--primary { background: var(--gtm-accent); border-color: var(--gtm-accent); color: #fff; }
.gtm-btn--primary:hover { border-color: var(--gtm-accent); filter: brightness(0.94); }
.gtm-btn[disabled] { opacity: 0.5; pointer-events: none; }

/* sekce panelu */
.gtm-section { border-top: 1px solid var(--gtm-line); padding: 12px 16px; }
.gtm-section > summary {
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gtm-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}
.gtm-section > summary::-webkit-details-marker { display: none; }
.gtm-section > summary::after { content: '+'; font-size: 15px; }
.gtm-section[open] > summary::after { content: '−'; }
.gtm-section > summary:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 2px; border-radius: 6px; }

.gtm-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin: 3px 4px 3px 0;
  border: 1px solid var(--gtm-line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gtm-ink);
  cursor: pointer;
  background: #fff;
}
.gtm-chip:has(input:checked) { border-color: var(--gtm-ink); background: #f4f6f5; }
.gtm-chip input { accent-color: var(--gtm-accent); margin: 0; }
.gtm-chip:has(input:focus-visible) { outline: 3px solid rgba(230, 0, 68, 0.35); outline-offset: 1px; }
.gtm-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--gtm-muted); }
.gtm-note--warn { color: #b8002f; font-weight: 700; }

.gtm-route-out { margin-top: 8px; }
.gtm-steps { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.gtm-steps li::marker { color: var(--gtm-accent); font-weight: 800; }

.gtm-legend-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--gtm-muted); margin-bottom: 8px; }
.gtm-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.gtm-legend-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gtm-legend-route { background: repeating-linear-gradient(90deg, #e60044 0 6px, #fff 6px 9px); width: 18px !important; }
.gtm-legend-row i.gtm-legend-hit { background: #fcd9e4; box-shadow: inset 0 0 0 1.5px #e60044; }

/* ------------------------------------------------ plovoucí ovládání mapy -- */
.gtm-floors {
  position: absolute;
  z-index: 25;
  right: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gtm-fbtn {
  min-width: 46px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid rgba(14, 14, 14, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  color: var(--gtm-muted);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(14, 14, 14, 0.06);
}
.gtm-fbtn:hover { border-color: var(--gtm-ink); color: var(--gtm-ink); }
.gtm-fbtn.is-active { background: var(--gtm-ink); border-color: var(--gtm-ink); color: #fff; }
.gtm-fbtn:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.4); outline-offset: 2px; }

.gtm-view {
  position: absolute;
  z-index: 25;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gtm-vbtn {
  width: 42px;
  height: 42px;
  border-radius: 100px;
  border: 1px solid rgba(14, 14, 14, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 17px;
  font-weight: 800;
  color: var(--gtm-ink);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(14, 14, 14, 0.06);
}
.gtm-vbtn:hover { border-color: var(--gtm-ink); }
.gtm-vbtn:focus-visible { outline: 3px solid rgba(230, 0, 68, 0.4); outline-offset: 2px; }

/* nápověda na střed plochy VEDLE panelu (16 + 372 px) — vycentrovaná na celou mapu
   na 1180 px zajížděla levým koncem pod panel (kontrola zobrazení 9. 10. 2026) */
.gtm-hint {
  position: absolute;
  z-index: 20;
  left: calc(50% + 194px);
  bottom: 14px;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 14, 14, 0.08);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gtm-muted);
  pointer-events: none;
  white-space: nowrap;
  max-width: min(560px, calc(100% - 420px));
  overflow: hidden;
  text-overflow: ellipsis;
}

.gtm-tip {
  position: absolute;
  z-index: 45;
  pointer-events: none;
  transform: translate(-50%, -135%);
  background: rgba(14, 14, 14, 0.92);
  color: #fff;
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
}

/* nápověda */
.gtm-help {
  border: 0;
  border-radius: 18px;
  padding: 22px 24px;
  max-width: min(92vw, 560px);
  box-shadow: 0 24px 80px rgba(14, 14, 14, 0.25);
}
.gtm-help::backdrop { background: rgba(14, 14, 14, 0.45); }
.gtm-help h2 { margin: 0 0 12px; font-family: 'Novatica', 'Century Gothic', system-ui, sans-serif; font-size: 22px; }
.gtm-help table { border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.gtm-help th { text-align: left; padding: 6px 14px 6px 0; vertical-align: top; white-space: nowrap; color: var(--gtm-accent, #e60044); }
.gtm-help td { padding: 6px 0; }
.gtm-help form { margin-top: 14px; text-align: right; }

/* čtečky */
.gtm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- mobil --- */
@media (max-width: 1080px) {
  .gtm-panel { width: 340px; }
  .gtm-hint { left: calc(50% + 178px); width: max-content; max-width: calc(100% - 388px); white-space: normal; text-align: center; border-radius: 14px; }   /* úzká plocha: zalomit, ne useknout */
  .gtm-wrap .gtm-plan { padding-left: 376px; }
}
@media (max-width: 760px) {
  /* Statické rozložení: karta plánu nahoře, panel se seznamem hned pod ní,
     obojí v jednom kartovém rámu v toku stránky. Dřívější bottom-sheet se
     kotvil ke kartě, zatímco dock k viewportu — podle pozice scrollu se
     míjely a hledání/konec seznamu mizely pod dockem. */
  .gtm-wrap { height: auto; border-radius: 14px; scroll-margin-top: 10px; }
  .gtm-wrap .gtm-plan {
    position: relative;
    inset: auto;
    height: 330px;
    padding: 58px 10px 14px;
  }
  .gtm-stage { height: 330px; bottom: auto; }
  .gtm-loading { position: absolute; }
  .gtm-floors { top: 10px; right: 10px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100vw - 56px); }
  .gtm-fbtn { min-height: 38px; min-width: 42px; padding: 0 12px; font-size: 13px; }
  /* ovládání pohledu — vodorovná řádka v pravém dolním rohu plánu */
  .gtm-view {
    top: 330px;
    right: 10px;
    bottom: auto;
    transform: translateY(calc(-100% - 10px));
    flex-direction: row;
  }
  .gtm-vbtn { width: 40px; height: 40px; font-size: 16px; }
  .gtm-panel {
    position: static;
    width: auto;
    height: auto;
    border: 0;
    border-top: 1px solid var(--gtm-line);
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    transition: none;
  }
  .gtm-sheet-handle { display: none; }
  /* seznam roluje uvnitř panelu, ať stránka nenaroste o 90 položek */
  .gtm-scroll { max-height: 56dvh; }
  .gtm-hint { display: none; }
}

/* ------------------------------------------------------------ embed ------ */
html.gtmap-embed .utility,
html.gtmap-embed .skip-link,
html.gtmap-embed header.header,
html.gtmap-embed header.topbar,
html.gtmap-embed footer.footer,
html.gtmap-embed footer.foot,
html.gtmap-embed .gtm-pagehead { display: none !important; }
html.gtmap-embed main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
html.gtmap-embed .gtm-wrap { height: 100dvh; border-radius: 0; border: 0; box-shadow: none; }

/* --------------------------------------------------- redukce animací ----- */
@media (prefers-reduced-motion: reduce) {
  .gtm-spinner { animation-duration: 2.4s; }
  .gtm-panel { transition: none; }
  .gtm-btn, .gtm-fbtn { transition: none; }
}

/* --- dočasně bez 3D modelu (GT_MAP_PAGE.enable3d: false) --------------------
   Mapa zůstává u 2D plánu, který je přehlednější. Skrývá se proto i akce
   „Navigovat k obchodu" – orientační trasa se kreslí jen ve 3D scéně. */
.gtmap-no3d [data-act="route"] { display: none; }

/* (dřívější kompenzace docku u bottom-sheetu už není potřeba — panel je
   na mobilu ve statickém toku stránky a dock ho nepřekrývá) */
