:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f4f5f2;
  --ink: #171a17;
  --muted: #657083;
  --copy-muted: #566276;
  --line: #e8e8e3;
  --green: #16a34a;
  --green-dark: #14532d;
  --green-soft: #dff2e5;
  --accent: #16a34a;
  --active-text: #14532d;
  --theme-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --theme-color-rgb: 22, 163, 74;
  --pattern-color-rgb: 22, 163, 74;
  --pattern-opacity: 0;
  --theme-intensity: 0.5;
  --shadow: 0 18px 48px rgba(20, 83, 45, 0.11);
  --radius: 8px;
  --header-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  /* clip (nie hidden): hidden robí z body rolovací kontajner a horná lišta (sticky) potom odroluje
     preč. Starší prehliadač bez podpory clip ostane pri hidden. */
  overflow-x: hidden;
  overflow-x: clip;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(
      rgba(var(--theme-color-rgb), calc(var(--theme-intensity) * 0.035)),
      rgba(var(--theme-color-rgb), calc(var(--theme-intensity) * 0.012)) 44%,
      transparent 76%
    ),
    var(--bg);
  color: var(--ink);
  font-family: var(--theme-font);
  overflow-x: hidden;
  overflow-x: clip;
  isolation: isolate;
  z-index: 0;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.theme-pattern-dots::before {
  background-image: radial-gradient(circle, rgba(var(--pattern-color-rgb), 0.9) 1px, transparent 1.3px);
  background-size: 18px 18px;
}

.theme-pattern-lines::before {
  background-image: linear-gradient(135deg, rgba(var(--pattern-color-rgb), 0.72) 1px, transparent 1px);
  background-size: 18px 18px;
}

.theme-pattern-grid::before {
  background-image:
    linear-gradient(rgba(var(--pattern-color-rgb), 0.62) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--pattern-color-rgb), 0.62) 1px, transparent 1px);
  background-size: 28px 28px;
}

.theme-pattern-waves::before {
  background:
    radial-gradient(70% 48% at 30% 10%, rgba(var(--pattern-color-rgb), 0.55), transparent 64%),
    radial-gradient(60% 42% at 80% 34%, rgba(var(--pattern-color-rgb), 0.42), transparent 62%),
    radial-gradient(52% 36% at 16% 92%, rgba(var(--pattern-color-rgb), 0.32), transparent 64%);
}

.loading-state,
.error-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.loading-state strong,
.error-state h1 {
  margin: 0;
  font-size: 22px;
}

.loading-state span,
.error-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 3px solid var(--green-soft);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--active-text);
  box-shadow: 0 8px 20px rgba(var(--theme-color-rgb), calc(0.08 + var(--theme-intensity) * 0.2));
  font-size: 14px;
  font-weight: 850;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.icon-button,
.lang-button,
.close-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.icon-button span {
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
}

.icon-button {
  align-content: center;
  gap: 4px;
}

.brand-button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  text-align: left;
  font-size: 19px;
  font-weight: 900;
}

.brand-button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--surface-soft) center / contain no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang-button {
  width: auto;
  min-width: 46px;
  grid-auto-flow: column;
  gap: 6px;
  padding: 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.lang-button:disabled {
  cursor: default;
  opacity: 1;
}

.lang-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.locale-switcher {
  position: relative;
  justify-self: end;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 210px;
  max-height: min(320px, calc(100vh - 86px));
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.locale-menu button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--copy-muted);
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.locale-menu button.pending,
.locale-menu button:disabled {
  cursor: default;
  opacity: 0.58;
}

.locale-menu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.language-code {
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lang-button .language-code {
  font-size: 13px;
}

.locale-menu .language-code {
  color: var(--muted);
}

.locale-menu button.active .language-code {
  color: currentColor;
}

.locale-menu button:hover,
.locale-menu button:focus-visible {
  background: rgba(var(--theme-color-rgb), calc(0.03 + var(--theme-intensity) * 0.09));
  color: var(--ink);
}

.locale-menu button.active {
  background: rgba(var(--theme-color-rgb), calc(0.08 + var(--theme-intensity) * 0.18));
  color: var(--active-text);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-color-rgb), calc(0.28 + var(--theme-intensity) * 0.54));
}

.locale-menu button.active small {
  color: var(--active-text);
}

.locale-feedback {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 12px;
  z-index: 65;
  max-width: min(340px, calc(100vw - 24px));
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--copy-muted);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.35;
}

.locale-feedback.error {
  border-color: #d8a2a2;
  color: #7f1d1d;
}

.locale-feedback button {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.locale-spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.desktop-nav {
  display: none;
}

.desktop-nav button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
}

.desktop-nav button.active {
  background: rgba(var(--theme-color-rgb), calc(0.08 + var(--theme-intensity) * 0.18));
  color: var(--active-text);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-color-rgb), calc(0.3 + var(--theme-intensity) * 0.55));
}

.status-banner {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff7e6;
  color: #7a4a00;
  font-size: 13px;
  font-weight: 750;
}

.page-body {
  padding-bottom: 24px;
}

.menu-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1.72;
  display: block;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #211a17 0%, #0e0e0d 52%, #5f231f 100%);
}

.menu-hero.has-image {
  background: #14110f;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform-origin: center;
}

.menu-hero.has-image::after {
  display: none;
}

.hero-dots {
  position: relative;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.hero-dots button.active {
  width: 20px;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb), calc(0.12 + var(--theme-intensity) * 0.28));
}

.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px 10px;
  scroll-padding: 16px;
  /* Pás sekcií ostáva pod hlavičkou, aby hosť vo veľkom menu (napr. 35 sekcií) nemusel rolovať
     späť hore (akceptácia pilotu 18. 10. 2026). */
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: 56px auto;
  gap: 7px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.category-rail.is-text-only {
  grid-auto-columns: max-content;
}

.category-rail.is-text-only .category-card {
  grid-template-rows: auto;
  min-width: 92px;
  min-height: 44px;
  align-content: center;
  padding: 12px 14px;
}

.category-rail.is-text-only .category-card strong {
  padding: 0;
}

.category-card.active {
  background: color-mix(in srgb, var(--surface) 84%, var(--green) 16%);
  color: var(--active-text);
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--theme-color-rgb), calc(0.34 + var(--theme-intensity) * 0.56)),
    0 10px 22px rgba(var(--theme-color-rgb), calc(0.04 + var(--theme-intensity) * 0.13));
}

.category-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.category-card small {
  display: none;
}

.image-frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.is-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #f5faf3, #edf5ec);
}

.food-placeholder {
  display: grid;
  place-items: center;
  color: #a8b8aa;
}

.food-placeholder svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-photo {
  width: 100%;
  height: 56px;
}

.menu-sections {
  display: grid;
  gap: 20px;
  padding: 8px 16px 28px;
}

.menu-section {
  /* Hlavička + prilepený pás sekcií (výšku pásu nastaví app.js do --rail-h). */
  scroll-margin-top: calc(var(--header-h) + var(--rail-h, 0px) + 12px);
}

.menu-section h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 850;
}

/* Podsekcia (napr. Whisky v sekcii Alkohol) je v bloku hlavnej sekcie, nie v páse sekcií. */
.menu-subsection {
  margin-top: 18px;
  scroll-margin-top: calc(var(--header-h) + var(--rail-h, 0px) + 12px);
}

.menu-section > h2 + .menu-subsection {
  margin-top: 4px;
}

.menu-subsection h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 750;
}

.dish-list {
  display: grid;
  gap: 10px;
}

.dish-row {
  width: 100%;
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.055);
  text-align: left;
  overflow: hidden;
}

.dish-photo {
  width: 112px;
  min-height: 96px;
}

.dish-copy {
  min-width: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 3px 2px 2px;
}

.dish-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.dish-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.22;
  font-weight: 800;
}

.dish-head span {
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.dish-copy small {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--copy-muted);
  font-size: 14px;
  line-height: 1.36;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dish-meta {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tag-row {
  min-width: 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag-chip {
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(var(--theme-color-rgb), calc(0.04 + var(--theme-intensity) * 0.12));
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(var(--theme-color-rgb), calc(0.12 + var(--theme-intensity) * 0.2));
}

.tag-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-backdrop,
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.56);
}

.info-drawer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(360px, calc(100vw - 32px));
  overflow-y: auto;
  padding: 56px 16px 18px;
  border-radius: 0 18px 18px 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.info-drawer h2,
.item-detail h2,
.profile-copy h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 950;
}

.info-drawer p,
.profile-copy p,
.content-section p,
.map-section p,
.rich-text {
  color: var(--copy-muted);
  font-size: 15px;
  line-height: 1.5;
}

.rich-text {
  display: grid;
  gap: 10px;
}

.rich-text > * {
  margin: 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.rich-text p:empty {
  display: none;
}

.rich-text ul,
.rich-text ol {
  padding-left: 20px;
}

.rich-text a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-drawer h3,
.profile-panel h2,
.content-section h2,
.map-section h2 {
  margin: 22px 0 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.profile-page .profile-panel h2,
.profile-page .content-section h2,
.profile-page .map-section h2,
.profile-page .map-section-header h2 {
  color: var(--ink);
}

.hours-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
}

.hours-list span,
.hours-list strong {
  font-size: 14px;
}

.hours-list strong {
  color: var(--ink);
  font-weight: 400;
}

.drawer-media-slot {
  height: 180px;
  margin-top: 26px;
}

.drawer-media-slot.is-empty {
  pointer-events: none;
}

.drawer-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(var(--theme-color-rgb), calc(0.22 + var(--theme-intensity) * 0.52)),
    rgba(var(--theme-color-rgb), calc(0.05 + var(--theme-intensity) * 0.13))
  );
}

.drawer-media .food-placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.drawer-profile-link {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--theme-color-rgb), calc(0.16 + var(--theme-intensity) * 0.24));
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.drawer-profile-link strong,
.drawer-profile-link small {
  display: block;
}

.drawer-profile-link strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 850;
}

.drawer-profile-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.reservation-link {
  margin-top: 10px;
}

.profile-panel .reservation-link {
  margin-top: 16px;
}

.item-detail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  max-height: calc(100vh - 48px);
  overflow: hidden auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  clip-path: inset(0 round 18px);
  contain: paint;
  touch-action: pan-y;
  transition: transform 180ms ease;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.item-detail.is-dragging {
  transition: none;
}

.sheet-handle {
  position: sticky;
  top: 10px;
  z-index: 6;
  width: 48px;
  height: 4px;
  margin: 10px auto 8px;
  border-radius: 999px;
  background: #d9ddd6;
  touch-action: none;
}

.sheet-handle::before {
  content: "";
  position: absolute;
  inset: -14px -120px;
}

.detail-media {
  position: relative;
}

.detail-photo {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 18px 18px 0 0;
}

.detail-photo .food-placeholder svg {
  width: 86px;
  height: 86px;
}

.allergen-help {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--theme-color-rgb), calc(0.36 + var(--theme-intensity) * 0.5));
  background: transparent;
  color: var(--green-dark);
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.allergen-help[aria-expanded="true"] {
  border-color: var(--green);
  background: rgba(var(--theme-color-rgb), calc(0.08 + var(--theme-intensity) * 0.18));
  color: var(--active-text);
}

.detail-body {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  display: grid;
  gap: 12px;
  padding: 18px 16px 24px;
}

.detail-title {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.detail-title h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-title strong {
  white-space: nowrap;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.detail-body p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--copy-muted);
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: break-word;
  word-break: normal;
}

.detail-tag-row {
  position: relative;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 8;
  min-width: 196px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.item-share-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.item-share-menu button:hover,
.item-share-menu button:focus-visible {
  background: rgba(var(--theme-color-rgb), calc(0.05 + var(--theme-intensity) * 0.13));
  outline: none;
}

.item-share-manual {
  display: grid;
  gap: 5px;
  padding: 7px 5px 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.item-share-manual input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.item-share-manual input:focus {
  border-color: var(--green);
  outline: 1px solid var(--green);
}

.detail-tag-row .tag-row {
  flex: 1 1 auto;
}

.item-share-button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 999px;
  color: var(--green);
}

.item-share-button:hover,
.item-share-button:focus-visible {
  background: rgba(var(--theme-color-rgb), calc(0.05 + var(--theme-intensity) * 0.13));
}

.item-share-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.item-share-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-share-feedback {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.detail-body p.allergen-numbers {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.allergen-panel {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
}

.allergen-panel strong {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.allergen-panel p {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.profile-page {
  display: grid;
  gap: 18px;
  padding: 16px 16px 36px;
}

.mobile-profile-return {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin: 12px 16px 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.profile-hero-photo {
  width: 100%;
  aspect-ratio: 1.75;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.profile-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 124px;
  gap: 10px;
  overflow-x: auto;
}

.profile-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-tile {
  height: 82px;
  border-radius: var(--radius);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.06);
}

.gallery-tile-button {
  min-width: 0;
  height: 82px;
  padding: 0;
  border-radius: var(--radius);
  display: block;
  text-align: inherit;
}

.gallery-tile-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.gallery-tile-button.is-disabled {
  cursor: default;
}

.gallery-tile-button .gallery-tile {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.profile-lightbox-frame {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
}

.profile-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 36px);
  border-radius: var(--radius);
  object-fit: contain;
  background: #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.profile-lightbox-close,
.profile-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.profile-lightbox-close {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
}

.profile-lightbox-nav {
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.profile-lightbox-nav.is-prev {
  left: 10px;
}

.profile-lightbox-nav.is-next {
  right: 10px;
}

.profile-lightbox-nav:disabled {
  opacity: 0.34;
  cursor: default;
}

.profile-lightbox-close:focus-visible,
.profile-lightbox-nav:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.profile-info-grid,
.content-section,
.map-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
}

.profile-panel {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
}

.profile-panel h2 {
  margin-top: 0;
}

.profile-panel p {
  margin: 0;
  color: var(--copy-muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-block {
  display: grid;
  gap: 8px;
  color: var(--copy-muted);
  font-style: normal;
  font-size: 15px;
  line-height: 1.45;
}

.contact-block strong {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact-block span,
.contact-block a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}

/* Telefónne číslo sa nezalomí v strede (krátke, zmestí sa aj na 375 px). */
.contact-block a[href^="tel:"] {
  white-space: nowrap;
}

.section-image {
  min-height: 210px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4faf2, #e4efe4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}

.section-image .food-placeholder svg {
  width: 72px;
  height: 72px;
}

.section-hero-photo {
  min-height: 210px;
  height: clamp(210px, 48vw, 280px);
  border-radius: var(--radius);
  background-color: #f4faf2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}

.section-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.section-gallery-photo-button {
  min-width: 0;
  padding: 0;
  border-radius: 8px;
  display: block;
  text-align: inherit;
}

.section-gallery-photo-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.section-gallery-photo-button .section-gallery-photo {
  width: 100%;
  height: 100%;
  display: block;
}

.section-gallery-photo {
  min-height: 118px;
  border-radius: 8px;
  background-color: #f4faf2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.055);
}

.content-section h2,
.map-section h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.map-section-header {
  display: grid;
  gap: 10px;
}

.map-section-header h2,
.map-section-header p {
  margin: 0;
}

.map-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.map-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.map-frame {
  height: clamp(260px, 56vw, 420px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #eaf4e8;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.empty-menu {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.public-blocked {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px 20px;
  text-align: center;
}

.public-blocked .food-placeholder svg {
  width: 76px;
  height: 76px;
}

.public-blocked h1 {
  max-width: 440px;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
}

.public-blocked p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.empty-menu h2 {
  margin: 0;
  color: var(--ink);
}

.empty-menu p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 719px) {
  .item-detail {
    width: 100vw;
    max-width: 100vw;
    height: clamp(500px, 72vh, 560px);
    height: clamp(500px, 72svh, 560px);
    max-height: calc(100vh - var(--header-h) - 24px);
    max-height: calc(100svh - var(--header-h) - 24px);
  }

  .detail-photo {
    height: clamp(250px, 38vh, 300px);
    height: clamp(250px, 38svh, 300px);
    aspect-ratio: auto;
  }

  .detail-body {
    gap: 9px;
    padding: 14px 16px calc(48px + env(safe-area-inset-bottom));
  }

  .detail-title,
  .detail-body p,
  .detail-tag-row {
    width: min(100%, 360px);
  }

  .dish-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .dish-photo {
    width: 104px;
    min-height: 96px;
  }

  .dish-copy small {
    font-size: 13.5px;
  }
}

@media (min-width: 720px) {
  .topbar {
    grid-template-columns: minmax(190px, 1fr) auto minmax(120px, 1fr);
    height: 72px;
    padding: 12px 40px;
    background: var(--bg);
  }

  .icon-button {
    display: none;
  }

  .brand-button {
    font-size: 24px;
    color: var(--green);
  }

  .desktop-nav {
    display: flex;
    gap: 22px;
  }

  .mobile-profile-return {
    display: none;
  }

  .lang-button {
    justify-self: end;
  }

  .locale-feedback {
    top: 80px;
    right: 40px;
  }

  .page-body,
  .profile-page {
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 16px 40px 48px;
  }

  .menu-hero {
    aspect-ratio: 2.74;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  }

  .category-rail {
    grid-auto-columns: 220px;
    gap: 28px;
    padding: 20px 0 28px;
    /* Veľké karty s fotkami by na počítači zabrali priveľa obrazovky; prilepený ostáva len textový pás. */
    position: static;
  }

  .category-rail.is-text-only {
    position: sticky;
    top: 72px;
    margin-inline: -40px;
    padding: 14px 40px 16px;
    scroll-padding: 40px;
  }

  .category-card {
    grid-template-rows: 86px auto;
    padding: 0 0 12px;
  }

  .category-rail.is-text-only {
    grid-auto-columns: max-content;
  }

  .category-rail.is-text-only .category-card {
    grid-template-rows: auto;
    min-width: 148px;
    min-height: 58px;
    padding: 16px 20px;
  }

  .category-photo {
    height: 86px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .category-card strong {
    padding: 0 8px;
    font-size: 16px;
  }

  .menu-sections {
    padding: 0;
  }

  .dish-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .dish-row {
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 124px;
  }

  .dish-photo {
    width: 124px;
    min-height: 108px;
  }

  .item-detail {
    left: 50%;
    right: auto;
    bottom: 50%;
    width: min(560px, calc(100vw - 48px));
    max-height: calc(100vh - 80px);
    border-radius: var(--radius);
    clip-path: inset(0 round var(--radius));
    transform: translate(-50%, 50%);
  }

  .detail-photo {
    aspect-ratio: 1.2;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .sheet-handle {
    display: none;
  }

  .profile-hero-photo {
    aspect-ratio: 2.75;
  }

  .profile-gallery {
    grid-auto-columns: minmax(160px, 1fr);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: unset;
  }

  .section-hero-photo {
    min-height: 335px;
    height: 335px;
  }

  .gallery-tile {
    height: 92px;
  }

  .gallery-tile-button {
    height: 92px;
  }

  .profile-info-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
    gap: 34px;
    align-items: start;
  }

  .profile-panel {
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .content-section,
  .map-section {
    padding: 34px 0;
  }
}

@media (min-width: 1100px) {
  .dish-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dish-row {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .dish-photo {
    width: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loading-mark {
    animation: none;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok F (fotky a menu pre hosťa) =====
   Fotka vo výreze je vnorený <img> (pozri cropMediaStyle v app.js): šírka = zoom % rámčeka, ale
   najmenej toľko, aby rámček vyplnila (min-width/min-height + object-fit: cover). Prázdne pruhy
   nad a pod fotkou tak nevzniknú pri žiadnom pomere strán ani uloženom výreze. */
.image-frame {
  position: relative;
  overflow: hidden;
}

.image-frame-media {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-media {
  overflow: hidden;
}

/* Miniatúra jedla má pevnú výšku: pri dlhom názve sa predtým rámček natiahol a fotka v ňom
   vyzerala inak, ako ju majiteľ videl v náhľade výrezu. */
.dish-photo {
  align-self: start;
  height: 96px;
  min-height: 0;
}

/* × v detaile jedla je nad fotkou (fotka je v DOM až za tlačidlom a kreslila sa navrch)
   a má biely podklad, aby bolo vidieť aj na tmavej fotke. */
.item-detail .close-button {
  z-index: 7;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

@media (min-width: 720px) {
  .dish-photo {
    height: 108px;
  }
}

/* Nízke obrazovky (malé telefóny, náhľad „Pozrieť ako hosť“ v administrácii): menšia fotka v detaile,
   aby sa názov, popis aj tlačidlo Zdieľať zmestili bez rolovania v okne detailu. */
@media (max-width: 719px) and (max-height: 700px) {
  .detail-photo {
    height: clamp(190px, 32vh, 250px);
    height: clamp(190px, 32svh, 250px);
  }
}

/* Bodky bannera (kontrola 11. 10. 2026): na svetlej fotke ich nebolo vidieť a na ťuknutie mali len
   8 × 8 px. Tlačidlo má teraz plochu 24 × 24 px, bodka ostáva malá (kreslí ju ::before) a má tmavý
   obrys a tieň, aby bola viditeľná na každej fotke. */
.hero-dots {
  right: 10px;
  bottom: 6px;
  gap: 0;
}

.hero-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.hero-dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.hero-dots button.active {
  width: 28px;
  background: transparent;
  box-shadow: none;
}

.hero-dots button.active::before {
  width: 20px;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb), calc(0.12 + var(--theme-intensity) * 0.28)), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  border-radius: 999px;
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad3 A1 (× v detaile jedla vždy viditeľné) =====
   Detail jedla (.item-detail) je sám rolovací kontajner a × v ňom malo position: absolute, takže sa
   posúvalo s obsahom: po posune k alergénom ho na mobile nebolo vidieť a hosť nevedel detail zavrieť
   (kontrola 13. 10. 2026). Sticky ho drží 12 px od horného okraja okna detailu. Záporný spodný okraj
   (12 + 38 - 50 = 0) zruší miesto, ktoré by tlačidlo v toku zaberalo, takže fotka ostáva hore ako
   doteraz; margin-left: auto ho drží vpravo. */
.item-detail .close-button {
  position: sticky;
  top: 12px;
  right: auto;
  margin: 12px 12px -50px auto;
}
