/* ==========================================================================
   More Matcha — Pobočky page (https://www.morematcha.cz/pobocky/)
   Upload to: /user/documents/more-matcha/pobocky/pobocky.css
   Loaded site-wide from the Shoptet HEAD field, so EVERY rule is scoped to
   #more-matcha-pobocky (or :has(#more-matcha-pobocky) for the few Shoptet
   page helpers at the bottom). Nothing here affects the homepage or Kontakt.
   Fonts (Archivo, Lexend) are already loaded site-wide from Google Fonts.

   Branch photo: the page expects
     /user/documents/more-matcha/pobocky/assets/mm-pobocka-maj.webp (+ .jpg)
   Until those files exist, the branded placeholder (.mm-pobocky-photo__placeholder)
   is shown instead. No code change is needed when the photo is uploaded.

   More branches later: copy one <li data-mm-pobocky-location="…"> in pobocky.html
   (name, address, lat/lng, hours, photo, Google Maps link). pobocky.js builds
   the marker and the panel from it automatically.
   ========================================================================== */

#more-matcha-pobocky {
  /* Design tokens — same values as the homepage (more-matcha.css) */
  --mm-ink: #1C1C1E;
  --mm-ink-2: #3A3A3C;
  --mm-sage: #718A6E;
  --mm-sage-mid: #8EA48A;
  --mm-sage-light: #BED0BB;
  --mm-sage-deep: #3E4C3C;
  --mm-paper: #F4F6F4;
  --mm-white: #FFFFFF;
  --mm-cream: #F3ECE0;
  --mm-matcha: #557F27;
  --mm-deep: #1F2B12;
  --mm-line: rgba(28, 28, 30, 0.16);
  --mm-fs-h2: clamp(30px, 16px + 2.4vw, 56px);
  --mm-fs-lead: clamp(17px, 16px + 0.3vw, 20px);
  --mm-font-display: "Ayr Modern", "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mm-font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  color: var(--mm-ink);
  font-family: var(--mm-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-wrap: break-word;
}

#more-matcha-pobocky,
#more-matcha-pobocky *,
#more-matcha-pobocky *::before,
#more-matcha-pobocky *::after {
  box-sizing: border-box;
}

#more-matcha-pobocky :where(h1, h2, h3, p, ul, ol, figure, address) {
  margin: 0;
}

/* Shoptet styles h1–h3 globally (colour, font); set them explicitly inside our block */
#more-matcha-pobocky :where(h1, h2, h3) {
  color: inherit;
  text-transform: none;
}

#more-matcha-pobocky :where(ul, ol) {
  padding: 0;
  list-style: none;
}

#more-matcha-pobocky address {
  font-style: normal;
}

#more-matcha-pobocky :focus-visible {
  outline: 2px solid var(--mm-ink);
  outline-offset: 4px;
}

#more-matcha-pobocky img {
  display: block;
  max-width: 100%;
  height: auto;
}

#more-matcha-pobocky .mm-pobocky-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;
}

#more-matcha-pobocky .mm-pobocky-eyebrow {
  font: 500 13px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

/* Coloured bands run edge to edge without touching Shoptet's layout:
   box-shadow paints the colour sideways, clip-path keeps it inside the band.
   (box-shadow never creates horizontal scrolling.) */
#more-matcha-pobocky .mm-pobocky-hero,
#more-matcha-pobocky .mm-pobocky-locator,
#more-matcha-pobocky .mm-pobocky-way {
  position: relative;
  background: var(--mm-pobocky-bg);
  box-shadow: 0 0 0 100vmax var(--mm-pobocky-bg);
  clip-path: inset(0 -100vmax);
}

/* Anchor targets clear the fixed Shoptet header on phones */
#more-matcha-pobocky [id] {
  scroll-margin-top: 80px;
}

/* Arrow drawn in CSS (the Shoptet editor strips inline SVG icons). Points ↗ by default. */
#more-matcha-pobocky .mm-pobocky-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  font-size: 0; /* hides the fallback arrow character, kept so the editor doesn't strip the span */
}

#more-matcha-pobocky .mm-pobocky-arrow::before,
#more-matcha-pobocky .mm-pobocky-arrow::after {
  content: "";
  position: absolute;
}

#more-matcha-pobocky .mm-pobocky-arrow::before {
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
}

#more-matcha-pobocky .mm-pobocky-arrow::after {
  top: 50%;
  left: -1px;
  width: 14px;
  border-top: 1.6px solid currentColor;
  transform: rotate(-45deg);
}

#more-matcha-pobocky .mm-pobocky-arrow--down {
  transform: rotate(135deg);
}

/* Pill button — same shape as the homepage .mm-button (matcha green, contrast 4.8:1) */
#more-matcha-pobocky .mm-pobocky-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px 0 26px;
  border-radius: 999px;
  background: var(--mm-matcha);
  color: var(--mm-white);
  font: 500 15px/1.2 var(--mm-font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
}

#more-matcha-pobocky .mm-pobocky-button--light {
  background: var(--mm-paper);
  color: var(--mm-ink);
}

/* ==========================================================================
   1. HERO — "Najdete nás v Máji." + branch photo (warm cream)
   ========================================================================== */
#more-matcha-pobocky .mm-pobocky-hero {
  --mm-pobocky-bg: var(--mm-cream);
}

#more-matcha-pobocky .mm-pobocky-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 112px);
}

#more-matcha-pobocky .mm-pobocky-hero__title {
  margin-top: 18px;
  font-family: var(--mm-font-display);
  font-size: clamp(50px, 14px + 6vw, 128px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  hyphens: none;
  word-spacing: 0.1em;
}

#more-matcha-pobocky .mm-pobocky-hero__title-alt {
  display: block;
  color: var(--mm-matcha);
}

#more-matcha-pobocky .mm-pobocky-hero__lead {
  max-width: 30em;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: var(--mm-fs-lead);
  line-height: 1.6;
  color: var(--mm-ink-2);
  hyphens: manual;
}

#more-matcha-pobocky .mm-pobocky-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(24px, 3vw, 40px);
}

/* In-page links with an animated underline */
#more-matcha-pobocky .mm-pobocky-jump {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--mm-ink);
  font: 500 15px/1.2 var(--mm-font-body);
  text-decoration: none;
}

#more-matcha-pobocky .mm-pobocky-jump > span:first-child {
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left 100% / 100% 1px no-repeat;
}

/* ---- Branch photo frame (placeholder underneath, real photo on top) ---- */
#more-matcha-pobocky .mm-pobocky-hero__media {
  position: relative;
}

#more-matcha-pobocky .mm-pobocky-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mm-sage);
}

#more-matcha-pobocky .mm-pobocky-photo__img {
  position: absolute;
  z-index: 1;
  left: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  transform: translate3d(0, var(--mm-pobocky-parallax, 0px), 0);
}

/* With JS: the photo stays invisible until it has really loaded; if the file
   does not exist yet it is removed, so no broken-image icon ever shows. */
#more-matcha-pobocky.mm-pobocky-js .mm-pobocky-photo__img {
  opacity: 0;
}

#more-matcha-pobocky .mm-pobocky-photo.is-loaded .mm-pobocky-photo__img {
  opacity: 1;
}

#more-matcha-pobocky .mm-pobocky-photo.is-missing .mm-pobocky-photo__img {
  display: none;
}

/* Branded placeholder: a typographic poster in sage, with the logo script */
#more-matcha-pobocky .mm-pobocky-photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px);
  color: var(--mm-paper);
  background:
    radial-gradient(circle at 78% 26%, var(--mm-sage-light) 0 13%, transparent 13.2%),
    var(--mm-sage);
}

#more-matcha-pobocky .mm-pobocky-photo__script {
  font-size: 0; /* fallback text stays invisible; pobocky.js replaces it with the SVG */
  color: transparent;
  position: absolute;
  top: 44%;
  left: 50%;
  width: 135%;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
}

#more-matcha-pobocky [data-mm-pobocky-script] svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

#more-matcha-pobocky .mm-pobocky-photo__script svg {
  fill: var(--mm-sage-mid);
}

#more-matcha-pobocky .mm-pobocky-photo__kicker,
#more-matcha-pobocky .mm-pobocky-photo__word,
#more-matcha-pobocky .mm-pobocky-photo__addr {
  position: relative;
}

#more-matcha-pobocky .mm-pobocky-photo__kicker {
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#more-matcha-pobocky .mm-pobocky-photo__word {
  margin: 0 0 -0.08em -0.04em;
  font-family: var(--mm-font-display);
  font-size: clamp(96px, 20vw, 240px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--mm-cream);
}

#more-matcha-pobocky .mm-pobocky-photo__addr {
  /* kicker + address sit top-left, the big word bottom-left */
  margin-bottom: auto;
  font: 500 14px/1.3 var(--mm-font-body);
}

#more-matcha-pobocky .mm-pobocky-hero__caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: -18px;
  padding: 9px 14px;
  background: var(--mm-paper);
  font: 500 13px/1.2 var(--mm-font-body);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   2. LOCATOR — the map is the main experience. Markers are built by pobocky.js
   from the location list; clicking one opens a drawer (desktop) or a bottom
   sheet under the map (phones/tablets). Paper background.
   ========================================================================== */
#more-matcha-pobocky .mm-pobocky-locator {
  --mm-pobocky-bg: var(--mm-paper);
  --mm-pobocky-panel-w: clamp(340px, 28vw, 420px);
  --mm-pobocky-map-bg: #E3EAE0;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}

/* Faint logo script behind the heading only — never over the map */
#more-matcha-pobocky .mm-pobocky-locator__script {
  font-size: 0;
  color: var(--mm-sage-light);
  position: absolute;
  z-index: 0;
  top: -2%;
  right: -6%;
  width: min(78%, 980px);
  transform: rotate(-7deg);
  opacity: 0.45;
  pointer-events: none;
}

#more-matcha-pobocky .mm-pobocky-locator__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 48px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

#more-matcha-pobocky .mm-pobocky-locator__title {
  margin-top: 10px;
  font-family: var(--mm-font-display);
  font-size: clamp(40px, 16px + 4vw, 84px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.03em;
  word-spacing: 0.1em;
  hyphens: none;
}

#more-matcha-pobocky .mm-pobocky-locator__lead {
  max-width: 26em;
  hyphens: manual;
  font-size: 15px;
  line-height: 1.6;
  color: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-locator__stage {
  position: relative;
  z-index: 1;
}

/* ---- Real map (Leaflet + OpenStreetMap, loaded by pobocky.js near the viewport) ---- */
#more-matcha-pobocky .mm-pobocky-locator__map {
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate; /* keeps Leaflet's internal z-indexes (400–1000) below the drawer */
  height: clamp(360px, 52vh, 440px);
  background: var(--mm-pobocky-map-bg);
  box-shadow: inset 0 0 0 1px rgba(62, 76, 60, 0.12);
}

#more-matcha-pobocky .mm-pobocky-locator__canvas {
  position: absolute;
  inset: 0;
  font-family: var(--mm-font-body);
  background: var(--mm-pobocky-map-bg);
}

/* Muted, slightly sage OpenStreetMap tiles — streets and labels stay readable */
#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-tile-pane {
  filter: saturate(0.5) sepia(0.12) hue-rotate(28deg) brightness(1.03) contrast(0.94);
}

/* Minimal controls */
#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-control-zoom {
  margin: 0 0 8px 12px;
  border: 0;
  box-shadow: 0 4px 12px rgba(31, 43, 18, 0.12);
}

#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: var(--mm-white);
  color: var(--mm-ink);
  font: 400 22px/40px var(--mm-font-body);
  text-decoration: none;
}

#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-control-zoom a + a {
  border-top: 1px solid var(--mm-line);
}

#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-control-zoom a:focus-visible {
  outline: 2px solid var(--mm-ink);
  outline-offset: 2px;
}

#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-control-attribution {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.85);
  font: 400 11px/1.5 var(--mm-font-body);
  color: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-locator__canvas .leaflet-control-attribution a {
  color: var(--mm-ink);
  text-decoration: underline;
}

/* Loading / failure message (never a fake map) */
#more-matcha-pobocky .mm-pobocky-locator__fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  font: 500 14px/1.4 var(--mm-font-body);
  color: var(--mm-ink-2);
  pointer-events: none;
}

#more-matcha-pobocky .mm-pobocky-locator__fallback-link {
  color: var(--mm-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  pointer-events: auto;
}

#more-matcha-pobocky .mm-pobocky-locator__loading {
  display: none;
}

#more-matcha-pobocky.mm-pobocky-js .mm-pobocky-locator__loading {
  display: block;
}

#more-matcha-pobocky.mm-pobocky-js .mm-pobocky-locator__fallback-link {
  display: none;
}

#more-matcha-pobocky .mm-pobocky-locator__map.is-failed .mm-pobocky-locator__loading {
  display: none;
}

#more-matcha-pobocky .mm-pobocky-locator__map.is-failed .mm-pobocky-locator__fallback-link {
  display: inline;
}

#more-matcha-pobocky .mm-pobocky-locator__map.is-ready .mm-pobocky-locator__fallback {
  display: none;
}

/* ---- Marker (Leaflet divIcon): matcha disc with an "M", label chip beside it ---- */
#more-matcha-pobocky .mm-pobocky-marker {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mm-ink);
  font: 500 13px/1.2 var(--mm-font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#more-matcha-pobocky .mm-pobocky-marker__dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mm-matcha);
  color: var(--mm-cream);
  font-family: var(--mm-font-display);
  font-size: 19px;
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--mm-cream), 0 0 0 10px rgba(85, 127, 39, 0.2), 0 8px 18px rgba(31, 43, 18, 0.28);
}

#more-matcha-pobocky .mm-pobocky-marker__label {
  position: absolute;
  top: 50%;
  left: 54px;
  padding: 6px 10px;
  background: var(--mm-white);
  box-shadow: 0 4px 12px rgba(31, 43, 18, 0.14);
  white-space: nowrap;
  transform: translateY(-50%);
}

#more-matcha-pobocky .mm-pobocky-marker.is-active {
  z-index: 1000 !important; /* above other markers (Leaflet sets z-index inline) */
}

#more-matcha-pobocky .mm-pobocky-marker.is-active .mm-pobocky-marker__dot {
  background: var(--mm-deep);
  transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--mm-cream), 0 0 0 11px rgba(85, 127, 39, 0.38), 0 10px 22px rgba(31, 43, 18, 0.32);
}

#more-matcha-pobocky .mm-pobocky-marker.is-active .mm-pobocky-marker__label {
  background: var(--mm-deep);
  color: var(--mm-paper);
}

#more-matcha-pobocky .mm-pobocky-marker:focus {
  outline: none;
}

#more-matcha-pobocky .mm-pobocky-marker:focus-visible .mm-pobocky-marker__dot {
  outline: 2px solid var(--mm-ink);
  outline-offset: 12px;
}

/* ---- Small floating hint + gesture tip ---- */
#more-matcha-pobocky .mm-pobocky-locator__hint {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  background: var(--mm-white);
  font: 500 13px/1.3 var(--mm-font-body);
  box-shadow: 0 4px 12px rgba(31, 43, 18, 0.08);
  pointer-events: none;
}

#more-matcha-pobocky .mm-pobocky-locator__hint:empty {
  display: none;
}

/* "Use two fingers" / "Ctrl + wheel" tip — shown briefly by pobocky.js */
#more-matcha-pobocky .mm-pobocky-locator__gesture {
  position: absolute;
  z-index: 600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 43, 18, 0.45);
  color: var(--mm-white);
  font: 500 16px/1.4 var(--mm-font-body);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

#more-matcha-pobocky .mm-pobocky-locator__gesture.is-visible {
  opacity: 1;
}

/* ---- Location card (used in the panel; also the no-JS fallback list) ---- */
#more-matcha-pobocky .mm-pobocky-locations {
  margin-top: 24px;
}

#more-matcha-pobocky.mm-pobocky-js .mm-pobocky-locations {
  display: none;
}

#more-matcha-pobocky .mm-pobocky-location {
  max-width: 480px;
  padding: 24px;
  background: var(--mm-white);
}

#more-matcha-pobocky .mm-pobocky-card__photo {
  margin: -24px -24px 20px;
  overflow: hidden;
  background: var(--mm-sage);
}

#more-matcha-pobocky .mm-pobocky-card__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#more-matcha-pobocky .mm-pobocky-card__kicker {
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

#more-matcha-pobocky .mm-pobocky-card__name {
  margin-top: 8px;
  padding-right: 40px; /* room for the close button */
  font-family: var(--mm-font-display);
  font-size: clamp(28px, 22px + 0.8vw, 36px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.015em;
  hyphens: none;
}

#more-matcha-pobocky .mm-pobocky-card__name:focus {
  outline: none;
}

#more-matcha-pobocky .mm-pobocky-card__address {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

#more-matcha-pobocky .mm-pobocky-card__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px 6px 10px;
  background: var(--mm-sage-light);
  font: 500 13px/1.3 var(--mm-font-body);
}

#more-matcha-pobocky .mm-pobocky-card__note::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mm-matcha);
}

#more-matcha-pobocky .mm-pobocky-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
}

#more-matcha-pobocky .mm-pobocky-card .mm-pobocky-button {
  min-height: 48px;
}

/* Copy button: text button with an animated underline */
#more-matcha-pobocky .mm-pobocky-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--mm-ink);
  font: 500 15px/1.2 var(--mm-font-body);
  cursor: pointer;
}

/* Two overlapping squares = "copy" glyph */
#more-matcha-pobocky .mm-pobocky-copy::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  box-shadow: 3px 3px 0 -1.6px var(--mm-white), 3px 3px 0 0 currentColor;
}

#more-matcha-pobocky .mm-pobocky-copy__label {
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left 100% / 100% 1px no-repeat;
}

#more-matcha-pobocky .mm-pobocky-copy.is-done {
  color: var(--mm-matcha);
}

#more-matcha-pobocky .mm-pobocky-copy.is-done::before {
  width: 12px;
  height: 7px;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(-45deg) translate(1px, -2px);
}

/* Opening hours: compact 24-hour timeline per day (built by pobocky.js).
   Without JS the plain "Po–Ne 9:00–21:00" list stays. */
#more-matcha-pobocky .mm-pobocky-card__hours {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mm-line);
}

#more-matcha-pobocky .mm-pobocky-card__hours-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

#more-matcha-pobocky .mm-pobocky-card__hours-title {
  margin: 0;
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

#more-matcha-pobocky .mm-pobocky-card__hours-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 20px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

#more-matcha-pobocky .mm-pobocky-card__hours-list dt {
  color: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-card__hours-list dd {
  margin: 0;
  font-weight: 500;
}

/* Status pill: neutral while hours are unverified, open/closed once verified */
#more-matcha-pobocky .mm-pobocky-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 13px/1.3 var(--mm-font-body);
  color: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-card__status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mm-sage);
}

#more-matcha-pobocky .mm-pobocky-card__status.is-open {
  color: var(--mm-matcha);
}

#more-matcha-pobocky .mm-pobocky-card__status.is-open::before {
  background: var(--mm-matcha);
  box-shadow: 0 0 0 3px rgba(85, 127, 39, 0.18);
}

#more-matcha-pobocky .mm-pobocky-card__status.is-closed::before {
  background: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-week {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#more-matcha-pobocky .mm-pobocky-week__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  min-height: 23px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 1.2;
}

#more-matcha-pobocky .mm-pobocky-week__day {
  font-weight: 500;
  color: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-week__time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--mm-ink-2);
  white-space: nowrap;
}

/* Track = 0–24 h; quarter-day ticks; open interval filled */
#more-matcha-pobocky .mm-pobocky-week__track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent calc(25% - 0.5px), rgba(28, 28, 30, 0.14) calc(25% - 0.5px) calc(25% + 0.5px), transparent calc(25% + 0.5px) calc(50% - 0.5px), rgba(28, 28, 30, 0.14) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px) calc(75% - 0.5px), rgba(28, 28, 30, 0.14) calc(75% - 0.5px) calc(75% + 0.5px), transparent calc(75% + 0.5px)),
    var(--mm-paper);
}

#more-matcha-pobocky .mm-pobocky-week__open {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--mm-sage-mid);
}

/* Today: highlighted row, elapsed part of the day tinted, "now" marker */
#more-matcha-pobocky .mm-pobocky-week__row.is-today {
  background: var(--mm-paper);
}

#more-matcha-pobocky .mm-pobocky-week__row.is-today .mm-pobocky-week__day,
#more-matcha-pobocky .mm-pobocky-week__row.is-today .mm-pobocky-week__time {
  color: var(--mm-ink);
  font-weight: 600;
}

#more-matcha-pobocky .mm-pobocky-week__row.is-today .mm-pobocky-week__track {
  background-color: var(--mm-white);
}

#more-matcha-pobocky .mm-pobocky-week__row.is-today .mm-pobocky-week__open {
  background: var(--mm-matcha);
}

#more-matcha-pobocky .mm-pobocky-week__elapsed {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 3px 0 0 3px;
  background: rgba(28, 28, 30, 0.12);
}

#more-matcha-pobocky .mm-pobocky-week__now {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  margin-left: -1px;
  background: var(--mm-ink);
}

#more-matcha-pobocky .mm-pobocky-week__now::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mm-ink);
}

/* Hour scale under the rows, aligned with the track column */
#more-matcha-pobocky .mm-pobocky-week__axis {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 76px;
  gap: 10px;
  padding: 4px 6px 0;
  font-size: 10px;
  color: var(--mm-ink-2);
}

#more-matcha-pobocky .mm-pobocky-week__axis span {
  display: flex;
  justify-content: space-between;
  grid-column: 2;
  font-variant-numeric: tabular-nums;
}

#more-matcha-pobocky .mm-pobocky-card__fineprint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mm-ink-2);
}

/* ---- Panel: bottom sheet under the map (default) / drawer (≥ 900px) ---- */
#more-matcha-pobocky .mm-pobocky-panel {
  display: none;
}

#more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
  position: relative;
  z-index: 3;
  display: block;
  margin: 0 8px; /* directly under the map — never covers the map attribution */
  padding: 26px 20px 22px;
  background: var(--mm-white);
  box-shadow: 0 -8px 30px rgba(31, 43, 18, 0.12);
}

#more-matcha-pobocky .mm-pobocky-panel__handle {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: rgba(28, 28, 30, 0.18);
}

#more-matcha-pobocky .mm-pobocky-panel__close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mm-paper);
  color: var(--mm-ink);
  font: 400 24px/1 var(--mm-font-body);
  cursor: pointer;
}

/* Photo inside the panel runs edge to edge */
#more-matcha-pobocky .mm-pobocky-panel .mm-pobocky-card__photo {
  margin: -26px -20px 18px;
}

#more-matcha-pobocky .mm-pobocky-panel.has-photo .mm-pobocky-panel__close {
  background: var(--mm-white);
}

#more-matcha-pobocky .mm-pobocky-panel.has-photo .mm-pobocky-panel__handle {
  background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 700px) {
  #more-matcha-pobocky .mm-pobocky-locator__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  #more-matcha-pobocky .mm-pobocky-locator__map {
    height: 440px;
  }
  #more-matcha-pobocky .mm-pobocky-locator__hint {
    top: 20px;
    left: 20px;
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
    width: min(100% - 48px, 560px);
    margin: 0 auto;
    padding: 28px;
  }
  #more-matcha-pobocky .mm-pobocky-panel .mm-pobocky-card__photo {
    margin: -28px -28px 20px;
  }
}

@media (min-width: 900px) {
  #more-matcha-pobocky .mm-pobocky-locator__map {
    height: clamp(540px, 66vh, 620px);
  }
  /* Drawer over the right side of the map; the map stays visible and re-centres */
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel,
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: block;
    width: var(--mm-pobocky-panel-w);
    max-height: calc(100% - 32px);
    margin: 0;
    padding: 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mm-white);
    box-shadow: 0 18px 50px rgba(31, 43, 18, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(24px, 0, 0);
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  #more-matcha-pobocky .mm-pobocky-panel__handle {
    display: none;
  }
  /* Compact drawer rhythm so the whole card fits the map height without scrolling */
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open,
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel {
    padding: 24px 26px 22px;
  }
  #more-matcha-pobocky .mm-pobocky-panel .mm-pobocky-card__photo {
    margin: -24px -26px 16px;
  }
  #more-matcha-pobocky .mm-pobocky-panel .mm-pobocky-card__actions {
    margin-top: 16px;
  }
  #more-matcha-pobocky .mm-pobocky-panel .mm-pobocky-card__hours {
    margin-top: 14px;
    padding-top: 14px;
  }
  #more-matcha-pobocky .mm-pobocky-panel__close {
    top: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #more-matcha-pobocky .mm-pobocky-locator__gesture {
    transition: opacity 0.3s ease;
  }
  #more-matcha-pobocky .mm-pobocky-marker__dot,
  #more-matcha-pobocky .mm-pobocky-marker__label {
    transition: transform 0.3s var(--mm-ease-out), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  }
  #more-matcha-pobocky .mm-pobocky-marker__dot,
  #more-matcha-pobocky .mm-pobocky-marker__label {
    animation: mm-pobocky-marker-in 0.8s var(--mm-ease-out) both;
  }
  #more-matcha-pobocky .mm-pobocky-marker:active .mm-pobocky-marker__dot {
    transform: scale(0.94);
  }
  #more-matcha-pobocky .mm-pobocky-copy__label {
    transition: background-size 0.45s var(--mm-ease-out);
  }
  #more-matcha-pobocky .mm-pobocky-copy {
    transition: color 0.3s ease, transform 0.16s ease-out;
  }
  #more-matcha-pobocky .mm-pobocky-copy:active,
  #more-matcha-pobocky .mm-pobocky-panel__close:active {
    transform: scale(0.94);
  }
  /* Bottom sheet slides up under the map */
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
    animation: mm-pobocky-sheet-in 0.5s var(--mm-ease-out) both;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel,
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
    animation: none;
    transition: opacity 0.35s ease, transform 0.55s var(--mm-ease-out), visibility 0s linear 0.55s;
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-panel.is-open {
    transition: opacity 0.35s ease, transform 0.55s var(--mm-ease-out), visibility 0s;
  }
}

@keyframes mm-pobocky-marker-in {
  from { opacity: 0; translate: 0 -14px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes mm-pobocky-sheet-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  #more-matcha-pobocky .mm-pobocky-marker:hover .mm-pobocky-marker__dot {
    transform: scale(1.07);
  }
  #more-matcha-pobocky .mm-pobocky-marker.is-active:hover .mm-pobocky-marker__dot {
    transform: scale(1.12);
  }
  #more-matcha-pobocky .mm-pobocky-copy:hover .mm-pobocky-copy__label {
    background-size: 30% 1px;
  }
  #more-matcha-pobocky .mm-pobocky-panel__close:hover {
    background: var(--mm-sage-light);
  }
  #more-matcha-pobocky .mm-pobocky-locator__fallback-link:hover {
    color: var(--mm-matcha);
  }
}

/* ==========================================================================
   3. CESTA K NÁM — three wayfinding steps (deep matcha green)
   ========================================================================== */
#more-matcha-pobocky .mm-pobocky-way {
  --mm-pobocky-bg: var(--mm-deep);
  overflow: hidden;
  color: var(--mm-paper);
}

#more-matcha-pobocky .mm-pobocky-way__script {
  font-size: 0;
  color: var(--mm-sage-deep);
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(140%, 1600px);
  transform: translate(-50%, -50%) rotate(-7deg);
  opacity: 0.55;
  pointer-events: none;
}

#more-matcha-pobocky .mm-pobocky-way__inner {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 136px) 0;
}

#more-matcha-pobocky .mm-pobocky-way .mm-pobocky-eyebrow {
  color: var(--mm-sage-light);
}

#more-matcha-pobocky .mm-pobocky-way__title {
  margin-top: 12px;
  font-family: var(--mm-font-display);
  font-size: clamp(44px, 18px + 5vw, 104px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.03em;
  hyphens: none;
  word-spacing: 0.1em;
}

#more-matcha-pobocky .mm-pobocky-way__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: clamp(36px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
  counter-reset: none;
}

#more-matcha-pobocky .mm-pobocky-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(244, 246, 244, 0.3);
}

#more-matcha-pobocky .mm-pobocky-step__num {
  grid-row: span 2;
  font-family: var(--mm-font-display);
  font-size: clamp(40px, 24px + 2vw, 64px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.9;
  color: var(--mm-sage-light);
}

#more-matcha-pobocky .mm-pobocky-step__title {
  font-family: var(--mm-font-display);
  font-size: clamp(22px, 16px + 1vw, 30px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1.1;
}

#more-matcha-pobocky .mm-pobocky-step__text {
  max-width: 24em;
  margin-top: 6px;
  line-height: 1.6;
  color: var(--mm-sage-light);
}

#more-matcha-pobocky .mm-pobocky-way :focus-visible {
  outline-color: var(--mm-paper);
}

/* ==========================================================================
   Motion & hover — pointer devices only; everything static for reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  #more-matcha-pobocky .mm-pobocky-button {
    transition: background-color 0.3s ease, transform 0.16s ease-out;
  }
  #more-matcha-pobocky .mm-pobocky-jump > span:first-child {
    transition: background-size 0.45s var(--mm-ease-out);
  }
  #more-matcha-pobocky .mm-pobocky-arrow {
    transition: translate 0.35s var(--mm-ease-out);
  }
  #more-matcha-pobocky .mm-pobocky-button:active {
    transform: scale(0.97);
  }
  #more-matcha-pobocky .mm-pobocky-photo__img {
    transition: opacity 0.9s ease;
  }
  /* Entrance reveals — only after JS has added .mm-pobocky-js, so the page is
     fully visible without JS */
  #more-matcha-pobocky.mm-pobocky-js [data-mm-pobocky-reveal] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.8s ease, transform 1s var(--mm-ease-out);
  }
  #more-matcha-pobocky.mm-pobocky-js [data-mm-pobocky-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-step:nth-child(2) { transition-delay: 0.1s; }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-step:nth-child(3) { transition-delay: 0.2s; }

  /* Photo frame: wipes open from the bottom instead of sliding */
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-hero__media[data-mm-pobocky-reveal] {
    opacity: 1;
    transform: none;
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-hero__media .mm-pobocky-photo {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s var(--mm-ease-out) 0.1s;
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-hero__media.is-visible .mm-pobocky-photo {
    clip-path: inset(0 0 0 0);
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-hero__caption {
    opacity: 0;
    transition: opacity 0.6s ease 0.9s;
  }
  #more-matcha-pobocky.mm-pobocky-js .mm-pobocky-hero__media.is-visible .mm-pobocky-hero__caption {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  #more-matcha-pobocky .mm-pobocky-button:hover {
    background: var(--mm-sage-deep);
  }
  #more-matcha-pobocky .mm-pobocky-button--light:hover {
    background: var(--mm-sage-light);
  }
  #more-matcha-pobocky .mm-pobocky-button:hover .mm-pobocky-arrow {
    translate: 3px -3px;
  }
  #more-matcha-pobocky .mm-pobocky-jump:hover .mm-pobocky-arrow {
    translate: 0 3px;
  }
  #more-matcha-pobocky .mm-pobocky-jump:hover > span:first-child {
    background-size: 30% 1px;
  }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 700px) {
  #more-matcha-pobocky .mm-pobocky-way__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 64px);
  }
  #more-matcha-pobocky .mm-pobocky-step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }
  #more-matcha-pobocky .mm-pobocky-step__num {
    grid-row: auto;
  }
}

@media (min-width: 1000px) {
  #more-matcha-pobocky .mm-pobocky-hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(48px, 6vw, 112px);
    align-items: center;
  }
  #more-matcha-pobocky .mm-pobocky-photo {
    aspect-ratio: 5 / 4;
  }
  #more-matcha-pobocky .mm-pobocky-hero__caption {
    right: auto;
    left: 0;
    bottom: 32px;
    transform: translateX(-28%);
  }
}

/* ==========================================================================
   Shoptet page helpers — Pobočky page only (each rule needs :has(#more-matcha-pobocky)).
   Same structure as /kontakty/ (template-14, checked 2026-09-28).
   ========================================================================== */

/* Hide Shoptet's own "Pobočky" page title — our block has its own <h1>. */
.pageArticleDetail:has(#more-matcha-pobocky) > header[itemprop="headline"] {
  display: none;
}

/* Same side gutter as the homepage for content + breadcrumbs */
#content:has(#more-matcha-pobocky) {
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}

#content-wrapper:has(#more-matcha-pobocky) > .breadcrumbs {
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}

/* Empty paragraphs the Shoptet editor leaves around pasted blocks */
.pageArticleDetail:has(#more-matcha-pobocky) [itemprop="about"] > p:empty {
  display: none;
}
