/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS  (mirroring pizza-oreshkov.com / global.css)
───────────────────────────────────────────────────────────── */
:root {
  --main-color:  #E6B15F;
  --color-one:   #18312E;
  --color-two:   #152C29;
  --color-three: #A7A7A7;
  --text-color:  #FFFFFF;
  --border:      rgba(255, 255, 255, 0.07);
  --border-gold: rgba(230, 177, 95, 0.25);
  --ff-heading:  "Fraunces", serif;
  --ff-body:     "Urbanist", sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Offset for fixed header (46px) + sticky cat-nav (~70px) on mobile */
  scroll-padding-top: 120px;
}
@media (min-width: 992px) {
  html { scroll-padding-top: 165px; } /* 86px header + ~80px cat-nav */
}
body {
  font-family: var(--ff-body);
  background: var(--color-one);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;  /* clip вместо hidden — не създава scroll container, запазва sticky */
  padding-top: 0;            /* sushi-banner сам си дава място за хедъра */
}

/* ── PAGE WRAPPER (тъмен фон като Gallery, и на desktop) ──── */
.page-wrapper {
  background: var(--color-one) !important;  /* тъмен фон винаги — override mobile-bottom-nav.css */
  overflow: clip;
}
@media (min-width: 992px) {
  .page-wrapper {
    background: var(--color-one) !important;  /* тъмен фон и на desktop */
    min-height: 60vh;
    overflow: clip;
  }
  /* Solid-dark sections на desktop */
  .menu-section {
    background: var(--color-two);
    padding: 60px 0 80px;
  }
  /* Reset cat-nav bg override — let the global rule handle it */
}

/* ── SUSHI BANNER overrides (menu-header-section from menu-category-style.css) ──── */
/* По-компактен padding за sushi banners спрямо gallery */
.menu-header-section {
  padding: 130px 0 90px;
}
@media (max-width: 991px) {
  .menu-header-section {
    padding: 110px 0 60px;
  }
}
/* По-малък h1 за суши заглавие */
@media (min-width: 768px) {
  .menu-header-section h1 { font-size: 42px; }
}
@media (max-width: 767px) {
  .menu-header-section {
    padding: 80px 0 50px;
  }

  .menu-header-section h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .menu-header-section .subtitle {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .event-details {
    margin-top: 10px !important;
    gap: 6px !important;
  }

  .time {
    font-size: 10px;
    padding: 4px 8px;
  }
}


/* ── EVENT BANNER (legacy, kept for compatibility) ────────── */
.event-banner {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border-gold);
  padding: 18px 20px 14px;
  text-align: center;
}
.event-banner p {
  margin: 0;
  color: #ffffff;
}
/* Title */
.eb-title {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 4px !important;
}
/* Dates row */
.eb-dates {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 7px !important;
}
/* Disclaimer */
.eb-note {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
}

/* ── CATEGORY NAV ──────────────────────────────────────────── */
.cat-nav {
  position: sticky;
  top: 46px;
  z-index: 199;
  background: rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  /* НЕ използвай -webkit-overflow-scrolling: touch —
     краде touch събитията от cat-pill линковете на мобилно */
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-track {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  min-width: max-content;
}

/* ── PHOTO OVERLAYS (visible only at 600px+) ────────────────── */

/* Name badge — top-left of photo */
.photo-name-badge {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--main-color);
  padding: 3px 8px;
  font-family: var(--ff-heading);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta bar — bottom strip (weight left, price right) */
.photo-meta-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 8px 8px;
  background: linear-gradient(to top, rgba(12, 26, 24, 0.94) 0%, transparent 100%);
}
.pmb-left {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--main-color);
  padding: 3px 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pmb-price {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: right;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--main-color);
  padding: 3px 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── GRID VIEW — 2 columns, kicks in at 600 px+ ─────────────── */

/* Set cards: grid-body hidden by default (mobile shows set-card-body) */
.set-grid-body { display: none; }
.set-grid-body .dish-ingredients {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 0;
}
.set-grid-body .set-items {
  margin-bottom: 0;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
}
.set-grid-body .set-item-name  { font-size: 12px; }
.set-grid-body .set-item-count { color: var(--text-color); font-weight: 400; }

@media (min-width: 600px) {

  /* 2-column grid */
  .menu-section .dishes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .menu-section .sets-grid { grid-template-columns: 1fr 1fr; }

  /* Show photo overlays, hide accordion header */
  .menu-section .photo-name-badge { display: block; }
  .menu-section .photo-meta-bar   { display: flex; }
  .menu-section .dish-header      { display: none; }

  /* Accordion body always open */
  .menu-section .dish-body {
    max-height: none;
    overflow: visible;
    transition: none;
  }

  /* Tighter body padding */
  .menu-section .dish-body-inner {
    padding: 10px 12px 14px;
    border-top: none;
  }
  .menu-section .dish-ingredients {
    font-size: 12px;
    font-style: italic;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
  }
  /* Ingredients label hidden; allergens label kept but subtle */
  .menu-section .body-label { display: none; }
  .menu-section .dish-body-inner p:last-of-type {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-three);
    opacity: 0.55;
    margin-bottom: 5px;
    margin-top: 0;
  }
  .menu-section .allergen-wrap {
    gap: 3px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
  }
  .menu-section .a-tag {
    border: none;
    background: none;
    color: var(--color-three);
    font-size: 9px;
    font-weight: 600;
    padding: 0;
    opacity: 0.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* Set cards: show grid body, hide list body */
  .menu-section .set-card-body { display: none; }
  .menu-section .set-grid-body {
    display: block;
    padding: 10px 12px 14px;
  }
}
.cat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 14px 7px;
  border: 1px solid var(--border-gold);
  color: var(--color-three);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  touch-action: manipulation;  /* предотвратява забавяне/кражба на touch от parent scroll */
  -webkit-tap-highlight-color: transparent;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--color-two);
}

/* Icon inside each nav pill */
.pill-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
  opacity: 0.85;
}
.cat-pill:hover .pill-icon,
.cat-pill.active .pill-icon {
  opacity: 1;
}

/* ── SECTION SCAFFOLD ──────────────────────────────────────── */
.menu-section { padding: 48px 0 60px; background: rgba(0, 0, 0, 0.22); }
.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-head { margin-bottom: 28px; }
.section-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--main-color);
  margin-bottom: 6px;
}
.section-head h2 {
  font-family: var(--ff-heading);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-color);
  margin-bottom: 8px;
}
.section-head p {
  font-size: 14px;
  color: var(--color-three);
  line-height: 1.65;
}
.section-rule {
  width: 36px;
  height: 1px;
  background: var(--main-color);
  margin-top: 14px;
}

/* ── DISH PHOTO ────────────────────────────────────────────── */
/*
 * Each dish card has an optional hero photo at the top.
 * Always visible (outside the accordion) so it draws attention
 * before the user taps. Photo slot: 4:3 ratio.
 */
.dish-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-two);    /* fallback while image loads */
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
/* Subtle zoom on tap (touch feedback) */
.dish-card:active .dish-photo img,
.dish-card.open  .dish-photo img {
  transform: scale(1.03);
}
/* Gradient overlay - keeps dish name readable if photo is light */
.dish-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(21, 44, 41, 0.55) 100%
  );
  pointer-events: none;
}

/* ── SETS ──────────────────────────────────────────────────── */
.sets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.set-card {
  background: var(--color-two);
  border: 1px solid var(--border);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.set-card:hover { border-color: var(--border-gold); }
.set-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--main-color);
}
.set-size {
  font-family: var(--ff-heading);
  font-size: 46px;
  font-weight: 400;
  color: var(--main-color);
  line-height: 1;
  margin-bottom: 2px;
}
.set-size em {
  font-style: normal;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-three);
  vertical-align: middle;
  margin-left: 3px;
}
.set-weight {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-three);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.set-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}
.set-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.set-item-name {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.35;
  flex: 1;
}
.set-item-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--main-color);
  white-space: nowrap;
}
.set-price-row {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.set-price-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-three);
}
.set-price {
  font-family: var(--ff-heading);
  font-size: 20px;
  color: var(--main-color);
}

/* ── DISH LIST / ACCORDION ─────────────────────────────────── */
.dishes-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dish-card {
  background: var(--color-two);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}
.dish-card.open { border-color: var(--border-gold); }
.dish-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.dish-info { flex: 1; min-width: 0; }
.dish-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--main-color);
  margin-bottom: 4px;
}
.dish-name {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 5px;
}
.dish-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.dish-meta span { font-size: 12px; color: var(--color-three); font-weight: 500; }
.dish-meta .sep { opacity: 0.3; }
.dish-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-three);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.2s;
}
.dish-card.open .dish-toggle {
  transform: rotate(45deg);
  color: var(--main-color);
}
.dish-toggle svg { width: 16px; height: 16px; }

/* Dish price in header row */
.dish-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}
.p-eur {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--main-color);
  white-space: nowrap;
  order: -1;   /* € shows first, лв. follows */
}
.p-bgn {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--main-color);
  white-space: nowrap;
}
.p-bgn::before {
  content: "·";
  margin: 0 5px;
  opacity: 0.35;
  font-weight: 400;
}

/* Accordion body */
.dish-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.dish-card.open .dish-body { max-height: 600px; }
.dish-body-inner {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
}
.body-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-three);
  margin-bottom: 8px;
}
.dish-ingredients {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.65;
  margin-bottom: 16px;
}
.allergen-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.a-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(230, 177, 95, 0.35);
  color: var(--main-color);
  background: rgba(230, 177, 95, 0.05);
}



/* ── RESPONSIVE - MOBILE FIRST ─────────────────────────────── */

/* Very small phones */
@media (max-width: 360px) {
  .section-inner { padding: 0 14px; }
  .cat-nav-track { padding: 10px 14px; }
}


/* Standard phones */
@media (max-width: 480px) {
  .section-head h2 { font-size: 28px; }
  .dish-name        { font-size: 18px; }
  .set-size         { font-size: 38px; }
}

/* ── MOBILE CARD LAYOUT (< 600 px) ─────────────────────────── */
/*
   Снимката носи цялата информация: тъмен градиент горе с името,
   тъмен градиент долу с бройките / грамажа / цената.
   Под снимката: съставки → алергени. Без акордеон.
*/
@media (max-width: 599px) {

  /* Slightly more gap between cards */
  .dishes-list { gap: 8px; }

  /* ── Name badge: dark top-gradient overlay across full photo width ── */
  .photo-name-badge {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    background: linear-gradient(to bottom,
      rgba(10, 23, 21, 0.90) 0%,
      rgba(10, 23, 21, 0.55) 55%,
      transparent 100%);
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 14px 14px 36px;
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    z-index: 4;
  }

  /* ── Meta bar: bottom gradient overlay, plain text — no bordered badges ── */
  .photo-meta-bar {
    display: flex;
    /* position:absolute + bottom:0 + left/right:0 already set in base CSS */
    background: linear-gradient(to top,
      rgba(10, 23, 21, 0.92) 0%,
      rgba(10, 23, 21, 0.55) 60%,
      transparent 100%);
    padding: 36px 14px 11px;
  }
  .pmb-left,
  .pmb-price {
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    padding: 0;
    letter-spacing: 0.5px;
  }

  /* ── Accordion header hidden — all info is on the photo ── */
  .dish-header { display: none; }

  /* ── Body always open ── */
  .dish-body       { max-height: none; overflow: visible; transition: none; }
  .dish-body-inner { padding: 11px 14px 15px; border-top: none; }

  /* ── Ingredients ── */
  .body-label { display: none; }
  .dish-ingredients {
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 10px;
  }

  /* ── Allergens label (subtle) + tags ── */
  .dish-body-inner p:last-of-type {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-three);
    opacity: 0.55;
    margin-bottom: 5px;
    margin-top: 0;
  }
  .allergen-wrap {
    gap: 3px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
  }
  .a-tag {
    border: none;
    background: none;
    color: var(--color-three);
    font-size: 9px;
    font-weight: 600;
    padding: 0;
    opacity: 0.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* ── Set cards: show compact items list, hide old body ── */
  .set-card-body { display: none; }
  .set-grid-body {
    display: block;
    padding: 10px 12px 14px;
  }
}

/* ── DESKTOP ENHANCEMENTS (secondary - site is mobile-first) ── */
@media (min-width: 768px) {

  /* ── Event banner: larger, better framed on wide screens ── */
  .event-banner {
    padding: 22px 32px 17px;
    background-position: center 40%;
  }
  .eb-title  { font-size: 28px; }
  .eb-dates  { font-size: 12px; letter-spacing: 0.18em; }
  .eb-note   { font-size: 10px; }

  /* Wider tap zone becomes hover zone */
  .dish-header:hover { background: rgba(255, 255, 255, 0.02); }
  /* Hover zoom on desktop */
  .dish-card:hover .dish-photo img { transform: scale(1.04); }

  /* Slightly larger typography on big screens */
  .section-head h2 { font-size: 40px; }
  .dish-name        { font-size: 22px; }

  /* Sets grid spacing */
  .sets-grid { gap: 16px; }
  .set-size  { font-size: 52px; }

  /* More breathing room in sections */
  .menu-section { padding: 60px 0 80px; }
  .section-inner { padding: 0 32px; }

  /* Dish cards slightly more padded */
  .dish-header     { padding: 20px 24px; }
  .dish-body-inner { padding: 20px 24px 24px; }
  .set-card        { padding: 28px 24px; }

  /* Category nav centered on big screens */
  .cat-nav-track {
    justify-content: center;
    padding: 12px 32px;
  }
  /* Grid view: slightly more gap on desktop */
  .menu-section .dishes-list { gap: 12px; }
}

@media (min-width: 1024px) {
  /* Wider layout on desktop */
  .section-inner   { max-width: 1000px; padding: 0 0; }
  .cat-nav-track   { max-width: 1000px; margin: 0 auto; justify-content: center; padding: 12px 0; }

  /* Keep 2-column grid but with more room */
  .menu-section .dishes-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .menu-section .sets-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .menu-section .dish-name { font-size: 15px; }

  /* More breathing room */
  .menu-section { padding: 70px 25px 70px; }
  .section-head h2 { font-size: 42px; }
  .section-head p   { font-size: 15px; }
}

/* ── WIDE DESKTOP (1200px+) ────────────────────────────────── */
@media (min-width: 1200px) {
  .section-inner { max-width: 1100px; }
  .cat-nav-track { max-width: 1100px; justify-content: center; }

  .menu-section .dishes-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }

  .menu-section .dish-name { font-size: 16px; }
}

/* ── FIXED MAIN-HEADER OFFSETS ─────────────────────────────── */
/* Desktop: logo 46px + logo-box padding 20px×2 = 86px */
@media (min-width: 992px) {
  body     { padding-top: 0; }
  .cat-nav { top: 86px; background: var(--color-one); }
}

/* 992–1199px: cat-nav offset (хамбургерът е скрит глобално в responsive.css) */
@media (min-width: 992px) and (max-width: 1199px) {
  .cat-nav { top: 114px; }
}

/* Wide desktop (1200px+): menu-nav-dropdown makes header thinner */
@media (min-width: 1200px) {
  .cat-nav { top: 82px; }
}

/* Mobile: add bottom padding for the fixed bottom nav (70px + safe area) */
@media (max-width: 991px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* ── EVENT DETAILS (sushi nights) ──────────────────────────── */
.event-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

/* ── DATE CARDS (calendar style) ────────────────────────────── */
.dates-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 60px;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(230, 177, 95, 0.2);
  transition: all 0.2s ease;
  position: relative;
}

.date-card:hover {
  border-color: rgba(230, 177, 95, 0.5);
  background: rgba(0, 0, 0, 0.45);
}

/* ── Статуси на картите ──────────────────────────────────────── */

/* Предстояща — нормален стил */
.date-card.upcoming {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(230, 177, 95, 0.2);
}
.date-card.upcoming:hover {
  border-color: rgba(230, 177, 95, 0.5);
  background: rgba(0, 0, 0, 0.45);
}

/* Днес — зелен highlight */
.date-card.today {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(76, 175, 80, 0.7);
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.3);
}
.date-card.today .card-date {
  color: #4caf50;
}
.date-card.today .card-day {
  color: rgba(76, 175, 80, 0.9);
}

/* Минала — сиво + червен X */
.date-card.past {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(200, 100, 100, 0.25);
  pointer-events: none;
}
.date-card.past .card-date {
  color: rgba(255, 255, 255, 0.4);
}
.date-card.past .card-day {
  color: rgba(255, 255, 255, 0.3);
}
.card-past-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: rgba(220, 50, 50, 0.45);
  z-index: 5;
  pointer-events: none;
}

/* Отменена — оранжев X */
.date-card.cancelled {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 152, 0, 0.3);
  pointer-events: none;
}
.date-card.cancelled .card-date {
  color: rgba(255, 152, 0, 0.5);
}
.date-card.cancelled .card-day {
  color: rgba(255, 255, 255, 0.3);
}
.card-cancelled-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 152, 0, 0.55);
  z-index: 5;
  pointer-events: none;
}

/* ── Loading spinner ─────────────────────────────────────────── */
.cards-loading {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.cards-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(230, 177, 95, 0.5);
  animation: cards-pulse 1.2s ease-in-out infinite;
}
.cards-loading span:nth-child(2) { animation-delay: 0.2s; }
.cards-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cards-pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.card-date {
  font-size: 22px;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1;
  font-family: var(--ff-heading);
}

.card-day {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.time {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 3px;
  display: inline-block;
}

/* Mobile: compact spacing */
@media (max-width: 480px) {
  .event-details {
    gap: 8px;
    margin-top: 12px;
  }

  .dates-cards {
    gap: 6px;
  }

  .date-card {
    width: 54px;
    padding: 8px 6px;
    gap: 3px;
  }

  .card-date {
    font-size: 18px;
    font-weight: 700;
  }

  .card-day {
    font-size: 10px;
  }

  .time {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* Desktop: enhance styling */
@media (min-width: 768px) {
  .event-details {
    gap: 12px;
    margin-top: 16px;
  }

  .dates-cards {
    gap: 10px;
  }

  .date-card {
    width: 70px;
    padding: 12px 10px;
    gap: 5px;
  }

  .card-date {
    font-size: 26px;
    font-weight: 700;
  }

  .card-day {
    font-size: 12px;
    font-weight: 500;
  }

  .time {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 4px;
  }
}

/* ── FANCYBOX: anchor wrapping dish photo ─────────────────── */
.dish-photo a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;   /* above the gradient overlay, below name/meta badges */
}
