/* Meníčka.sk – moderný vzhľad */
:root {
  --app-bg: #f6f3ef;
  --app-surface: #ffffff;
  --app-surface-2: #fbf9f6;
  --app-text: #1c1917;
  --app-muted: #78716c;
  --app-border: rgba(28, 25, 23, 0.08);
  --app-primary: #c2410c;
  --app-primary-hover: #9a3412;
  --app-primary-soft: rgba(194, 65, 12, 0.12);
  --app-accent: #0d9488;
  --app-accent-soft: rgba(13, 148, 136, 0.12);
  --app-success: #15803d;
  --app-warning: #b45309;
  --app-danger: #b91c1c;
  --app-radius: 14px;
  --app-radius-sm: 10px;
  --app-shadow: 0 1px 3px rgba(28, 25, 23, 0.06), 0 12px 32px rgba(28, 25, 23, 0.08);
  --app-shadow-hover: 0 4px 12px rgba(28, 25, 23, 0.08), 0 20px 48px rgba(194, 65, 12, 0.12);
  --app-nav-h: 72px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--app-text);
  background: var(--app-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(194, 65, 12, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 148, 136, 0.08), transparent);
  background-attachment: fixed;
}

/* Navigácia */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--app-nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--app-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.app-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--app-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.app-brand span {
  color: var(--app-primary);
}

.app-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.app-nav-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 576px) {
  .app-nav-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: min(100%, 70vw);
    padding-bottom: 2px;
    gap: 0.35rem;
  }

  .app-nav-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
}

.app-nav-actions .btn-outline-dark {
  border-color: var(--app-border);
  color: var(--app-text);
}

.app-nav-actions .btn-outline-dark:hover {
  background: var(--app-surface-2);
  border-color: var(--app-muted);
  color: var(--app-text);
}

.app-nav-actions .btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.app-nav-actions .btn-primary:hover {
  background: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}

.app-nav-actions .btn-success {
  background: var(--app-accent);
  border-color: var(--app-accent);
}

.app-nav-actions .btn-success:hover {
  background: #0f766e;
  border-color: #0f766e;
}

.app-nav-actions .btn-outline-warning {
  color: var(--app-warning);
  border-color: rgba(180, 83, 9, 0.35);
}

.app-nav-actions .btn-warning {
  color: #1c1917;
  background: #fbbf24;
  border-color: #f59e0b;
  font-weight: 600;
}

.app-nav-actions .btn-warning:hover {
  background: #f59e0b;
  border-color: #d97706;
  color: #1c1917;
}

/* Hlavný obsah */
.app-main {
  padding-top: var(--app-nav-h);
}

.app-container {
  max-width: 1120px;
}

.page-home .app-main > .app-container {
  padding-top: 0.45rem !important;
}

@media (min-width: 768px) {
  .page-home .app-main > .app-container {
    padding-top: 0.75rem !important;
  }
}

/* Flash správy */
.app-flash {
  border: none;
  border-radius: var(--app-radius-sm);
  font-weight: 500;
  box-shadow: var(--app-shadow);
}

.app-flash.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.app-flash.alert-success {
  background: #f0fdf4;
  color: #166534;
}

/* Karty & panely */
.app-card {
  background: var(--app-surface);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

.app-card-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .app-card-body {
    padding: 1.75rem 2rem;
  }
}

.app-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--app-text);
}

.app-section-lead {
  color: var(--app-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Domov – vyhľadávanie + deň (referenčný štýl) */
.home-search-strip {
  margin-bottom: 0;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #fff3e8 0%, #ffe8d6 100%);
  border: 1px solid rgba(194, 65, 12, 0.15);
  border-radius: var(--app-radius-sm);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
}

.home-search-strip-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Skryté polia sú mimo .home-search-row. Grid: presne 2 stĺpce (pole | tlačidlo), funguje aj s Bootstrap width:100% na .form-control. */
.home-search-form {
  display: block;
}

.home-search-strip .home-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.home-search-strip .home-search-input-wrap {
  min-width: 0;
  max-width: 100%;
}

.home-search-strip .home-search-input-wrap .home-search-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-search-input {
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid rgba(28, 25, 23, 0.12);
}

.home-search-strip .home-search-btn-wrap {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.home-search-btn {
  background: #ff6600;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-search-btn:hover {
  background: #e65c00;
  color: #fff;
}

.home-rest-leaflet-map {
  width: 100%;
  min-height: 380px;
  height: 55vh;
  background: #e8e4df;
}

#homeRestaurantsMapModal .leaflet-container {
  font-family: var(--font-sans), system-ui, sans-serif;
}

.admin-rest-compact .app-card-body {
  padding: 0.65rem 0.85rem;
}
.admin-rest-compact .form-label {
  font-size: 0.7rem;
  margin-bottom: 0.1rem;
}

.home-day-bar {
  background: linear-gradient(90deg, #1a5f6b 0%, #0f4a52 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0 0 var(--app-radius-sm) var(--app-radius-sm);
  box-shadow: 0 2px 8px rgba(15, 74, 82, 0.25);
}

.home-day-bar-inner {
  max-width: 960px;
  margin: 0 auto;
}

.home-day-bar-city {
  font-weight: 600;
}

.home-day-bar-dim {
  opacity: 0.85;
}

.home-day-bar-sep {
  opacity: 0.5;
  margin: 0 0.35rem;
}

/* Rovnaké Bootstrap tlačidlá dní ako na r=restaurant; svetlý pás kvôli čitateľnosti na tmavom home-day-bar */
.home-day-bar-days {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border-radius: var(--bs-border-radius, 0.375rem);
  padding: 0.35rem 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.home-map-btn {
  background: #ff6600;
  border: none;
  color: #fff;
  font-weight: 600;
}

.home-map-btn:hover {
  background: #e65c00;
  color: #fff;
}

.home-hero--compact {
  margin-bottom: 1rem;
}

.home-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  margin-bottom: 0.5rem;
  color: var(--app-text);
}

.home-section-lead {
  font-size: 0.9rem;
  color: var(--app-muted);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.home-rest-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-rest-card > .home-rest-foot {
  padding: 0.55rem 0.85rem 0.65rem;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
}

.home-rest-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.07);
  overflow: hidden;
}

.home-rest-card-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.home-rest-table-toolbar {
  flex-shrink: 0;
}

.home-rest-table-responsive {
  border-top: 1px solid rgba(28, 25, 23, 0.06);
}

.home-rest-card-table {
  width: 100%;
  table-layout: fixed;
}

.home-rest-card-table td {
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.home-rest-card-table tr:last-child td {
  border-bottom: none;
}

.home-rest-col-desc {
  width: 28%;
  max-width: 15rem;
  vertical-align: top;
  background: var(--app-surface-2);
  border-right: 1px solid var(--app-border);
  padding: 0.5rem 0.65rem !important;
}

.home-rest-desc-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.home-rest-col-desc .home-rest-thumb-col {
  width: 100%;
  max-width: 120px;
  margin: 0;
  padding: 0 0 0.45rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(28, 25, 23, 0.1);
}

.home-rest-col-dish {
  vertical-align: top;
  padding: 0.45rem 0.65rem !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.home-rest-col-price {
  width: 6.5rem;
  vertical-align: top;
  padding: 0.45rem 0.5rem 0.45rem 0.35rem !important;
}

@media (max-width: 575.98px) {
  .home-rest-card-table {
    table-layout: auto;
  }

  .home-rest-col-desc {
    width: 32%;
    min-width: 7.5rem;
  }

  .home-rest-col-price {
    width: auto;
    min-width: 4.5rem;
  }
}

.home-rest-thumb-link {
  display: block;
  width: 100%;
  max-width: 120px;
}

.home-rest-thumb {
  width: 100%;
  max-width: 120px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--app-border);
  display: block;
}

.home-rest-thumb--placeholder {
  width: 120px;
  height: 96px;
  background: linear-gradient(135deg, #e7e5e4, #f5f5f4);
  border-radius: 6px;
}

.home-rest-hours-pill {
  font-size: 0.7rem;
  text-align: center;
  padding: 0.2rem 0.45rem;
  background: #f5f5f4;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  color: var(--app-muted);
  max-width: 100%;
}

.home-rest-delivery-hint {
  font-size: 0.65rem;
  color: #0369a1;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.home-rest-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.home-rest-tool-btn:hover {
  background: #e65c00;
  color: #fff;
}

.home-rest-tool-btn:focus-visible {
  outline: 2px solid #ffb380;
  outline-offset: 2px;
}

.home-rest-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--app-text);
}

.home-rest-title-block h2.home-rest-name {
  margin-bottom: 0.15rem;
}

.home-rest-title-block .home-rest-meta {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.home-rest-name a {
  color: inherit;
}

.home-rest-name a:hover {
  color: var(--app-primary);
}

.home-detail-btn {
  border-color: #ff6600;
  color: #ff6600;
  font-weight: 600;
}

.home-detail-btn:hover {
  background: #ff6600;
  border-color: #ff6600;
  color: #fff;
}

.home-menu-block {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.home-menu-day-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--app-muted);
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--app-border);
}

.home-menu-title {
  flex: 1;
  min-width: 0;
  color: var(--app-text);
}

.home-menu-price {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--app-text);
  text-align: right;
}

.home-menu-delivery {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--app-muted);
}

.home-board-mini {
  max-width: 140px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--app-border);
}

.home-rest-badge {
  background: var(--app-primary-soft) !important;
  color: var(--app-primary) !important;
}

.home-rest-more {
  color: var(--app-primary) !important;
}

/* Domov – hero (filter mesto) */
.home-hero {
  position: relative;
  margin-bottom: 1.5rem;
  margin-top: 0.25rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: var(--app-radius-sm);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 45%, #f0fdfa 100%);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, var(--app-primary-soft) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.home-hero .home-hero-title {
  margin-bottom: 0.4rem;
}

.home-hero .lead {
  color: var(--app-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 0;
}

.home-filter-card {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--app-surface);
  border-radius: var(--app-radius-sm);
  border: 1px solid var(--app-border);
}

.home-filter-card .home-filter-label {
  font-size: 0.75rem;
}

.home-filter-card .form-select {
  border-radius: var(--app-radius-sm);
  border-color: var(--app-border);
  font-weight: 500;
}

.home-filter-card .btn {
  border-radius: var(--app-radius-sm);
  font-weight: 600;
}

/* Zoznam reštaurácií – karty */
.rest-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 576px) {
  .rest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .rest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rest-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.35rem 1.5rem;
  background: var(--app-surface);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rest-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-hover);
  border-color: rgba(194, 65, 12, 0.25);
  color: inherit;
}

.rest-tile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.rest-tile-city {
  font-size: 0.9rem;
  color: var(--app-muted);
}

.rest-tile-meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rest-tile .badge {
  font-weight: 600;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  background: var(--app-primary-soft) !important;
  color: var(--app-primary) !important;
}

/* Karta reštaurácie na úvodnej stránke (týždenné menu + pätička s odkazom) */
.rest-tile-card {
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rest-tile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--app-shadow-hover);
}

.home-rest-photo-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-rest-photo {
  height: 160px;
  object-fit: cover;
  display: block;
}

.home-weekly-preview {
  min-height: 140px;
  background: var(--app-surface-2);
}

.home-weekly-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(75vh, 720px);
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
}

.home-weekly-list {
  max-height: 220px;
  overflow-y: auto;
}

.home-weekly-empty {
  min-height: 140px;
}

.rest-weekly-board-link {
  cursor: zoom-in;
  text-decoration: none;
}

.rest-weekly-board-link:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.rest-weekly-board-link:hover .rest-weekly-board-thumb {
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
}

.rest-weekly-board-thumb {
  max-height: 320px;
  object-fit: contain;
  vertical-align: middle;
}

.visitor-weekly-subscribe-card {
  background: var(--app-surface-2);
  border-radius: 0.5rem;
}

.rest-tile-name-link:hover {
  color: var(--app-primary) !important;
}

.rest-tile-footer .badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 999px;
  background: var(--app-primary-soft) !important;
  color: var(--app-primary) !important;
}

.home-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--app-radius);
  background: var(--app-surface);
  border: 1px dashed var(--app-border);
  color: var(--app-muted);
}

.home-empty a {
  color: var(--app-primary);
  font-weight: 600;
}

/* Auth – úzky panel */
.auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.auth-panel .app-card-body {
  padding: 2rem 1.75rem;
}

.auth-panel h1,
.auth-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.auth-panel .form-control {
  border-radius: var(--app-radius-sm);
  border-color: var(--app-border);
  padding: 0.65rem 1rem;
}

.auth-panel .form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-soft);
}

.auth-panel .btn {
  border-radius: var(--app-radius-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
}

.auth-panel .btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.auth-panel .btn-primary:hover {
  background: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}

.auth-panel .btn-success {
  background: var(--app-accent);
  border-color: var(--app-accent);
}

/* Stránka reštaurácie – hero: jednoduchá mriežka, žiadny flex overflow */
.page-restaurant .rest-hero {
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.page-restaurant .rest-hero .rest-header {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-restaurant .rest-hero-text {
  max-width: 100%;
}

/* Fotka: pevná veľkosť v rem, v stĺpci sa nikdy neroztiahne širšie ako stĺpec */
.rest-hero-photo-col {
  text-align: left;
}

.rest-hero-photo-card {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  border-radius: var(--app-radius-sm);
  overflow: hidden;
  border: 1px solid var(--app-border);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.07);
  line-height: 0;
}

.rest-hero-photo-img {
  display: block;
  width: 16rem;
  max-width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .rest-hero-photo-col {
    text-align: right;
  }

  .rest-hero-photo-img {
    width: 14.4rem;
    height: 10.8rem;
  }
}

.page-restaurant .rest-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.page-restaurant .rest-loc {
  color: var(--app-muted);
  font-size: 1rem;
}

.page-restaurant .about-card {
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
  margin-bottom: 2rem;
}

.page-restaurant .about-card .card-body {
  padding: 1.5rem 1.75rem;
}

.page-restaurant .menu-card {
  border-radius: var(--app-radius-sm);
  border: 1px solid var(--app-border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  transition: box-shadow 0.2s ease;
}

.page-restaurant .menu-card:hover {
  box-shadow: var(--app-shadow);
}

.page-restaurant .menu-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.page-restaurant .rest-static-menu {
  border-radius: var(--app-radius-sm);
}

.page-restaurant .rest-static-menu-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.page-restaurant .rest-static-menu-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
}

.page-restaurant .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--app-primary);
  text-decoration: none;
  margin-top: 2rem;
}

.page-restaurant .back-link:hover {
  color: var(--app-primary-hover);
  text-decoration: underline;
}

/* Dashboard */
.dash-section {
  margin-bottom: 2rem;
}

.dash-section h2,
.dash-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-panel {
  background: var(--app-surface);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.dash-panel .form-control,
.dash-panel .form-select {
  border-radius: var(--app-radius-sm);
  border-color: var(--app-border);
}

.dash-panel .form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-soft);
}

.dash-upload-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-upload-field .form-control {
  flex: 1 1 auto;
}

.dash-mobile-camera-btn {
  display: none;
  flex-shrink: 0;
}

.dash-upload-preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-upload-preview-image {
  max-height: 120px;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 991.98px) {
  .dash-mobile-camera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.dash-item-card {
  border-radius: var(--app-radius-sm);
  border: 1px solid var(--app-border) !important;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
}

.dash-item-card .edit-box {
  background: var(--app-surface-2) !important;
  border-radius: var(--app-radius-sm) !important;
  border: 1px solid var(--app-border) !important;
}

.btn-cta-pay {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--app-radius-sm);
  padding: 0.65rem 1.5rem;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
}

.btn-cta-pay:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* Admin tabuľka */
.admin-table-wrap {
  background: var(--app-surface);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.admin-table-wrap .table {
  margin-bottom: 0;
}

.admin-table-wrap thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-muted);
  font-weight: 600;
  border-bottom-width: 1px;
  background: var(--app-surface-2);
}

.admin-table-wrap .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(246, 243, 239, 0.5);
}

/* Cookie súhlas */
.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-consent-dialog {
  position: relative;
  width: min(720px, 100%);
  background: #fff;
  border-radius: var(--app-radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--app-border);
  padding: 1rem 1.1rem;
}

.cookie-consent-dialog p {
  color: var(--app-text);
  line-height: 1.5;
}

.cookie-consent-dialog a {
  color: var(--app-primary);
  font-weight: 600;
}

.cookie-consent-actions .btn {
  min-width: 9.5rem;
}

.cookie-consent-actions .btn-outline-secondary {
  border-color: rgba(28, 25, 23, 0.2);
  color: var(--app-text);
}

.cookie-consent-actions .btn-outline-secondary:hover {
  background: #f5f5f4;
  border-color: rgba(28, 25, 23, 0.35);
  color: var(--app-text);
}

body.cookie-consent-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .cookie-consent-dialog {
    border-radius: var(--app-radius-sm);
    padding: 0.9rem;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Pätička */
.app-footer {
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  color: var(--app-muted);
  font-size: 0.875rem;
}

.app-footer strong {
  color: var(--app-text);
  font-family: var(--font-display);
}

.app-footer #cookieConsentManageLink {
  color: var(--app-primary);
  font-weight: 600;
}

/* Bootstrap alert override in app */
.app-main .alert {
  border-radius: var(--app-radius-sm);
}

.app-main .btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.app-main .btn-primary:hover {
  background: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}
