@font-face {
  font-family: MerlodBold;
  src: url("/assets/fonts/MerlodAutre-Bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: MerlodRegular;
  src: url("/assets/fonts/MerlodAutre-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #2b2524;
  --wine: #7b1e26;
  --wine-dark: #520e16;
  --paper: #ece7db;
  --blush: #f4e8e9;
  --white: #fffdf8;
  --muted: #736966;
  --line: 2px solid var(--wine);
  --footer-h: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: var(--footer-h);
  font-family: MerlodRegular, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 10px clamp(16px, 4vw, 42px);
  background: rgba(236, 231, 219, .96);
  border-bottom: var(--line);
}
.brand img { width: min(180px, 42vw); }
.main-nav { display: flex; gap: clamp(16px, 2.4vw, 30px); justify-content: center; font-family: MerlodBold, sans-serif; color: var(--wine); text-transform: uppercase; font-size: 1.08rem; }
.main-nav a { border-bottom: 2px solid transparent; padding-bottom: 5px; }
.main-nav a.active { border-bottom-color: currentColor; }
.flags { display: flex; justify-content: flex-end; gap: 8px; position: relative; }
.language-picker { position: relative; }
.language-picker summary { list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.flag-link { border: 1px solid var(--wine); border-radius: 999px; padding: 5px; background: var(--white); opacity: .68; cursor: pointer; }
.flag-link.active, .flag-link:hover { opacity: 1; box-shadow: 0 0 0 3px rgba(123,30,38,.14); }
.flag { width: 26px; height: 18px; display: block; border: 1px solid rgba(0,0,0,.22); border-radius: 1px; background-size: cover; }
.flag-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(43,37,36,.14);
}
.flag-es { background: linear-gradient(#AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75%); }
.flag-fr { background: linear-gradient(90deg, #0055A4 0 33.333%, #fff 33.333% 66.666%, #EF4135 66.666%); }
.flag-de { background: linear-gradient(#000 0 33.333%, #DD0000 33.333% 66.666%, #FFCE00 66.666%); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23012169'/%3E%3Cpath d='M0 0l60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/%3E%3Cpath d='M0 0l60 40M60 0L0 40' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23C8102E' stroke-width='7'/%3E%3C/svg%3E"); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(360px, 1.1fr);
  border-bottom: var(--line);
  background: var(--paper);
}
.hero-copy {
  padding: clamp(34px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker { font-family: MerlodBold, sans-serif; color: var(--wine); text-transform: uppercase; letter-spacing: 0; font-size: .92rem; }
h1, h2, h3 { font-family: MerlodBold, sans-serif; color: var(--wine); text-transform: uppercase; line-height: .96; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(3.4rem, 8vw, 7.8rem); max-width: 8.5ch; margin-top: 16px; }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.3rem); max-width: 10ch; }
h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.hero-copy p { max-width: 560px; font-size: clamp(1.16rem, 1.6vw, 1.45rem); color: var(--muted); margin: 24px 0 0; line-height: 1.28; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(123,30,38,.35);
  font-family: MerlodBold, sans-serif;
  color: var(--wine);
  text-transform: uppercase;
}
.meta-line span + span::before { content: "*"; margin-right: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--wine);
  border-radius: 4px;
  padding: 12px 26px;
  font-family: MerlodBold, sans-serif;
  color: var(--wine);
  background: var(--white);
  text-transform: uppercase;
  font-size: .94rem;
}
.btn.primary { color: var(--white); background: var(--wine); }
.hero-art {
  position: relative;
  min-height: 520px;
  background: var(--paper);
  overflow: hidden;
  display: grid;
  place-items: center;
  border-left: var(--line);
}
.hero-art::before,
.hero-art::after {
  display: none;
}
.hero-art img { width: min(46%, 390px); max-height: 62vh; object-fit: contain; filter: contrast(1.04); opacity: .98; }
body:has(.home-hero) { overflow: hidden; }
body:has(.home-hero) .site-header { border-bottom: 0; }
body:has(.home-hero) .main-nav a.active { border-bottom-color: transparent; }
.home-hero {
  height: calc(100dvh - 76px - var(--footer-h));
  min-height: 560px;
  border-bottom: 0;
}
.home-hero .hero-art { border-left: 0; }
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: var(--line);
}
.feature-link {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--wine);
  color: var(--white);
}
.feature-link + .feature-link { border-left: 2px solid var(--paper); }
.feature-link .kicker { color: var(--paper); }
.feature-link strong {
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: .9;
}
.feature-link small {
  max-width: 480px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
}
.studio-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(20px, 5vw, 72px);
  padding: clamp(42px, 7vw, 96px);
  border-bottom: var(--line);
  background: var(--white);
  align-items: center;
}
.studio-band p { font-size: clamp(1.12rem, 1.7vw, 1.36rem); color: var(--muted); max-width: 620px; line-height: 1.3; }
.image-stack { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr 1fr; gap: 14px; align-content: start; }
.image-stack img { border: 2px solid var(--wine); background: var(--paper); object-fit: cover; min-height: 0; }
.image-stack img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.image-stack img:not(:first-child) { aspect-ratio: 4 / 3; }
.menu-section,
.carta-section {
  padding: clamp(42px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--paper);
}
.menu-page { background: var(--paper); }
.menu-hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(34px, 7vw, 92px);
  border-bottom: var(--line);
  background: var(--white);
}
.menu-hero p { max-width: 520px; color: var(--muted); font-size: 1.25rem; line-height: 1.3; }
.menu-hero img { border: 2px solid var(--wine); aspect-ratio: 1; object-fit: contain; background: var(--paper); }
.carta-section {
  display: block;
  max-width: 1160px;
  margin: 0 auto;
  padding-top: clamp(24px, 4vw, 54px);
  width: 100%;
}
.menu-heading { position: sticky; top: 104px; }
.note-box { border-top: 2px solid var(--wine); padding-top: 22px; margin-top: 24px; max-width: 620px; }
.note-box p { color: var(--muted); line-height: 1.35; }
.menu-feed {
  display: grid;
  gap: 16px;
}
.menu-loading {
  border: 2px solid var(--wine);
  padding: 18px;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
  background: var(--white);
}
.categoria {
  border: 2px solid var(--wine);
  background: var(--white);
  margin-bottom: 12px;
}
.categoria-header,
.subseccion-header {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.categoria-header:focus-visible,
.subseccion-header:focus-visible {
  outline: 3px solid rgba(123,30,38,.22);
  outline-offset: -3px;
}
.categoria-header {
  min-height: 62px;
  padding: 14px 18px;
  font-size: clamp(1.35rem, 2.6vw, 2.4rem);
  text-align: left;
}
.categoria-content,
.subseccion-content { display: none; }
.categoria.active > .categoria-content,
.subseccion.active > .subseccion-content { display: block; }
.categoria.active > .categoria-header span:last-child,
.subseccion.active > .subseccion-header span:last-child { transform: rotate(45deg); }
.subseccion { border-top: 1px solid rgba(123,30,38,.28); }
.subseccion-header {
  min-height: 48px;
  padding: 13px 18px;
  background: #fbf3f3;
  font-size: 1rem;
  text-align: left;
}
.plato-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid rgba(123,30,38,.18);
}
.plato-info { display: grid; gap: 4px; }
.plato-nombre {
  color: var(--ink);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.plato-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.25;
}
.plato-precio {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  white-space: nowrap;
}
.final-notes {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.fuera-carta-box {
  border-top: 2px solid var(--wine);
  padding-top: 18px;
}
.fuera-carta-box h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.disclaimer,
.alergenos { margin: 0; font-size: .95rem; }
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  min-height: var(--footer-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 42px);
  background: var(--wine);
  color: var(--white);
  font-family: MerlodBold, sans-serif;
  font-size: .88rem;
}
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-admin-link {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  opacity: .78;
}
.footer-admin-link:hover {
  opacity: 1;
  background: rgba(255,255,255,.12);
}
.legal-page {
  min-height: calc(100vh - 76px - var(--footer-h));
  padding: clamp(28px, 6vw, 78px);
}
.legal-content {
  max-width: 920px;
  margin: 0 auto;
  border: 2px solid var(--wine);
  background: var(--white);
  padding: clamp(22px, 4vw, 44px);
}
.legal-content h1 {
  max-width: none;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  margin: 12px 0 24px;
}
.legal-content h2 {
  max-width: none;
  margin-top: 26px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}
.legal-content p {
  color: var(--muted);
  line-height: 1.42;
}
.cookie-notice {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: calc(var(--footer-h) + 14px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(560px, calc(100vw - 24px));
  border: 2px solid var(--wine);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(43,37,36,.18);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.25;
}
.cookie-notice .btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: .78rem;
}
.cookie-notice a {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.booking-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  min-height: calc(100vh - 76px);
}
.booking-intro { padding: clamp(34px, 7vw, 92px); border-right: var(--line); background: var(--white); }
.booking-intro p { font-size: 1.25rem; color: var(--muted); max-width: 620px; }
.booking-intro img { margin-top: 34px; border: 2px solid var(--wine); aspect-ratio: 1; object-fit: cover; }
.booking-form-wrap { padding: clamp(20px, 3.5vw, 42px); align-self: start; }
.booking-form { display: grid; gap: 14px; background: var(--white); border: 2px solid var(--wine); padding: 20px; border-radius: 4px; }
.booking-calendar-page .booking-form { background: var(--white); }
.booking-calendar-page .booking-form input,
.booking-calendar-page .booking-form select,
.booking-calendar-page .booking-form textarea {
  background: #fbf8f1;
}
.booking-step-panel .booking-form {
  max-height: calc(100dvh - 76px - var(--footer-h) - 84px);
  overflow: auto;
}
label { display: grid; gap: 7px; color: var(--wine); font-family: MerlodBold, sans-serif; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9cbc8;
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 12px;
  font: 1rem Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
textarea { min-height: 88px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.message { padding: 14px 16px; border-radius: 7px; background: #f5e6e7; border: 1px solid var(--wine); color: var(--wine); }
.message.success { background: #eef6ec; border-color: #6c8f62; color: #3d6937; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { border: 1px solid #d9cbc8; padding: 9px; text-align: left; }
.compact-reservations-table {
  table-layout: fixed;
  font-size: .92rem;
}
.compact-reservations-table th,
.compact-reservations-table td {
  padding: 7px 8px;
  vertical-align: top;
}
.compact-reservations-table th:nth-child(1) { width: 98px; }
.compact-reservations-table th:nth-child(2) { width: 72px; }
.compact-reservations-table th:nth-child(3) { width: 82px; }
.compact-reservations-table th:nth-child(4) { width: 52px; }
.compact-reservations-table th:nth-child(8) { width: 118px; }
.nowrap { white-space: nowrap; }
.reservation-time-cell,
.reservation-pax {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
}
.reservation-contact {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}
.reservation-contact a {
  color: var(--wine);
}
.reservation-contact span {
  color: var(--muted);
}
.reservation-notes {
  max-width: 280px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reservation-actions-cell {
  position: relative;
}
.reservation-actions {
  position: relative;
}
.reservation-actions summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wine);
  padding: 6px 9px;
  background: var(--white);
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
  font-size: .78rem;
  cursor: pointer;
  list-style: none;
}
.reservation-actions summary::-webkit-details-marker {
  display: none;
}
.reservation-actions[open] summary {
  background: var(--wine);
  color: var(--white);
}
.reservation-row-open td {
  border-bottom-color: rgba(123,30,38,.45);
  background: #fffaf2;
}
.reservation-expanded-row {
  display: none;
}
.reservation-expanded-row.is-open {
  display: table-row;
}
.reservation-expanded-row td {
  padding: 12px;
  background: #fbf8f1;
  border-top: 0;
}
.reservation-actions-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .7fr) auto;
  gap: 12px;
  border: 2px solid var(--wine);
  background: #fbf8f1;
  padding: 12px;
}
.reservation-mail-form {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(123,30,38,.22);
  background: var(--white);
  padding: 10px;
}
.reservation-mail-form label {
  gap: 5px;
  font-size: .78rem;
}
.reservation-mail-form input,
.reservation-mail-form textarea {
  min-height: 38px;
  padding: 8px 10px;
  font-size: .92rem;
}
.reservation-mail-form textarea {
  min-height: 62px;
}
.reservation-mail-form .table-action,
.delete-reservation-form .table-action {
  justify-self: start;
}
.delete-reservation-form {
  align-self: start;
  border: 1px dashed rgba(123,30,38,.35);
  background: var(--white);
  padding: 10px;
}

.booking-calendar-page {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  align-items: start;
  background: var(--paper);
}
.booking-calendar-page > * { min-width: 0; }
.booking-calendar-panel {
  padding: clamp(28px, 5vw, 70px);
  border-right: 0;
  background: var(--paper);
}
.page-title p { max-width: 680px; color: var(--muted); font-size: 1.2rem; line-height: 1.3; }
.compact-page-title { margin-bottom: 0; }
.compact-page-title + .calendar-shell { margin-top: 16px; }
.calendar-shell {
  margin-top: 28px;
  border: 2px solid var(--wine);
  background: var(--paper);
  padding: 18px;
}
.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  font-size: 1.4rem;
}
.icon-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--wine);
  background: var(--white);
}
.icon-link.disabled-link {
  opacity: .32;
  cursor: default;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0;
  color: var(--muted);
  font-size: .95rem;
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}
.dot.high { background: #5f8f58; }
.dot.low { background: #d8a42c; }
.dot.none { background: #9b2c35; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-align: center;
}
.calendar-day {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid rgba(123,30,38,.28);
  background: var(--white);
}
.calendar-day strong { font-family: MerlodBold, sans-serif; color: var(--wine); }
.calendar-day small { color: var(--muted); }
.calendar-blank { min-height: 68px; }
.calendar-day.level-high { box-shadow: inset 0 -6px 0 #5f8f58; }
.calendar-day.level-low { box-shadow: inset 0 -6px 0 #d8a42c; }
.calendar-day.level-none { box-shadow: inset 0 -6px 0 #9b2c35; opacity: .72; }
.calendar-day.selected { outline: 3px solid var(--wine); outline-offset: -3px; }
.muted-day { opacity: .45; }
.past-day { filter: grayscale(1); opacity: .35; }
.selected-date { font-size: clamp(1.75rem, 3vw, 2.55rem); }
.slot-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow: auto;
}
.slot-option {
  border: 1px solid rgba(123,30,38,.38);
  padding: 8px 10px;
  background: var(--paper);
  cursor: pointer;
}
.slot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}
.slot-option span,
.slot-option strong,
.slot-option small { display: block; }
.slot-option span { color: var(--wine); font-family: MerlodBold, sans-serif; font-size: 1.05rem; }
.slot-option strong { color: var(--ink); }
.slot-option small { color: var(--muted); font-size: .9rem; }
.slot-option:has(input:checked) { background: var(--wine); color: var(--white); }
.slot-option:has(input:checked) span,
.slot-option:has(input:checked) strong,
.slot-option:has(input:checked) small { color: var(--white); }
.slot-option.disabled { opacity: .38; cursor: not-allowed; }
.compact-booking-form {
  gap: 12px;
}
.compact-booking-form textarea {
  min-height: 64px;
}
.booking-success-panel {
  align-content: center;
  min-height: 360px;
}
.booking-success-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.3;
}
.booking-success-panel .btn {
  justify-self: start;
  margin-top: 6px;
}
.booking-confirmation-page {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.confirmation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.confirmation-summary span {
  border: 1px solid rgba(123,30,38,.28);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--wine);
  background: rgba(255,255,255,.58);
  font-size: .95rem;
}
.spam-reminder {
  margin-top: 8px;
}
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.confirmation-actions .btn {
  margin-top: 0;
}
.manage-booking-page .page-title h2 {
  margin-top: 14px;
}
.reservation-current {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(123,30,38,.25);
  border-bottom: 1px solid rgba(123,30,38,.25);
  padding: 12px 0;
  color: var(--muted);
}
.reservation-current strong {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.cancel-public-form {
  margin-top: 14px;
}
.cancel-public-form .btn {
  border-color: var(--wine-dark);
  color: var(--wine-dark);
}

.admin-page {
  padding: clamp(28px, 5vw, 70px);
  padding-bottom: calc(var(--footer-h) + 70px);
  background: var(--paper);
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border: 2px solid var(--wine);
  background: var(--white);
}
.admin-tabs a {
  border: 0;
  border-right: 2px solid var(--wine);
  padding: 13px 18px;
  background: var(--white);
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.admin-tabs a:last-child { border-right: 0; }
.admin-tabs a.active {
  background: var(--wine);
  color: var(--white);
}
.admin-menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-logout {
  min-height: 0;
  padding-inline: 18px;
  background: var(--white);
}
.admin-panel {
  border: 2px solid var(--wine);
  background: var(--white);
  padding: clamp(18px, 3vw, 28px);
}
.admin-panel h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.narrow-panel { max-width: 520px; }
.compact-form { margin-top: 16px; }
.admin-message { margin-bottom: 18px; max-width: 680px; }
.closed-list { display: grid; gap: 8px; margin-top: 14px; }
.closed-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d9cbc8;
  padding-top: 8px;
}
.closed-item button,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wine);
  padding: 7px 10px;
  background: var(--white);
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
  font-size: .82rem;
  cursor: pointer;
}
.table-wrap { overflow-x: auto; margin-top: 16px; }
.reservations-panel { margin-top: 18px; }
.panel-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-date-form,
.new-category-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 520px;
  width: 100%;
}
.zone-capacity-grid {
  display: grid;
  gap: 10px;
}
.zone-capacity-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(123,30,38,.28);
  padding: 12px;
  background: #fbf8f1;
}
.zone-capacity-card legend {
  padding: 0 6px;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.table-capacity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.table-capacity-list label {
  display: grid;
  grid-template-columns: auto 72px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: MerlodRegular, Arial, sans-serif;
  text-transform: none;
}
.table-capacity-list input {
  min-height: 36px;
  padding: 7px 8px;
}
.zone-capacity-card small {
  color: var(--muted);
}
.menu-admin-actions {
  display: grid;
  grid-template-columns: auto minmax(280px, 520px);
  gap: 12px;
  align-items: end;
}
.menu-history-card {
  border: 1px solid rgba(123,30,38,.28);
  background: #fbf8f1;
  margin-bottom: 18px;
}
.menu-history-card summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.menu-history-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}
.menu-history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(123,30,38,.18);
  padding-top: 8px;
}
.menu-history-item span {
  color: var(--muted);
  line-height: 1.25;
}
.menu-history-item strong {
  color: var(--wine);
}

.print-menu-body {
  padding: 0;
  background: var(--white);
}
.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
  border-bottom: 2px solid var(--wine);
}
.print-cover,
.print-menu-section {
  width: min(920px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 58px 52px;
  background: var(--white);
  break-after: page;
}
.print-cover {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 18px;
}
.print-cover img {
  width: min(360px, 66vw);
  margin: 0;
}
.print-menu-section header {
  border-bottom: 2px solid var(--wine);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.print-menu-section h2 {
  max-width: none;
  margin-top: 8px;
  font-size: 3rem;
}
.print-menu-items {
  display: grid;
  gap: 0;
}
.print-menu-items h3 {
  max-width: none;
  margin: 20px 0 8px;
  font-size: 1.5rem;
  color: var(--wine);
}
.print-force-page {
  break-before: page;
  page-break-before: always;
  padding-top: 58px;
}
.print-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(123,30,38,.2);
  break-inside: avoid;
}
.print-menu-item strong {
  color: var(--ink);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.print-menu-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.22;
}
.print-menu-item span {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  white-space: nowrap;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }
  body {
    padding: 0;
    background: var(--white);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-toolbar,
  .site-footer,
  .cookie-notice {
    display: none !important;
  }
  .print-cover,
  .print-menu-section {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 18mm;
    box-shadow: none;
  }
}
.admin-subtitle {
  margin-top: 24px;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}
.admin-list-head .admin-subtitle {
  margin-top: 0;
}
.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--wine);
  background: var(--white);
}
.range-tabs a {
  padding: 8px 12px;
  border-right: 1px solid var(--wine);
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
}
.range-tabs a:last-child { border-right: 0; }
.range-tabs a.active {
  background: var(--wine);
  color: var(--white);
}
.admin-range-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.admin-empty {
  margin: 18px 0 0;
  color: var(--muted);
}
.occupancy-summary {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, .5fr));
  gap: 10px;
  margin-bottom: 14px;
}
.occupancy-summary > div {
  border: 1px solid rgba(123,30,38,.3);
  background: #fbf8f1;
  padding: 12px;
}
.occupancy-summary strong,
.occupancy-summary span {
  display: block;
}
.occupancy-summary strong {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  font-size: 1.25rem;
}
.occupancy-summary span {
  color: var(--muted);
  font-size: .95rem;
}
.occupancy-grid {
  display: grid;
  gap: 8px;
}
.occupancy-row {
  display: grid;
  grid-template-columns: 74px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(123,30,38,.22);
  background: #fbf8f1;
  padding: 10px;
}
.occupancy-time {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  font-size: 1.22rem;
}
.zone-meter {
  display: grid;
  gap: 6px;
}
.zone-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  font-size: .95rem;
  text-transform: uppercase;
}
.meter-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(123,30,38,.38);
  background: var(--white);
}
.meter-fill {
  display: block;
  height: 100%;
  min-width: 3px;
}
.meter-fill.calm { background: #5f8f58; }
.meter-fill.medium { background: #d8a42c; }
.meter-fill.busy { background: #9b2c35; }
.inline-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}
.inline-check input {
  width: auto;
  min-height: 0;
}
.menu-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.menu-add-panel,
.menu-editor-panel {
  border: 1px solid rgba(123,30,38,.35);
  background: var(--paper);
  margin-top: 16px;
  padding: 14px;
}
.menu-add-panel summary {
  cursor: pointer;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.menu-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.menu-editor-head h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.menu-admin-table td:nth-child(3) {
  min-width: 220px;
  font-family: MerlodBold, sans-serif;
}
.danger-action {
  border-color: var(--wine-dark);
  color: var(--wine-dark);
}
.menu-admin-item {
  border: 1px solid rgba(123,30,38,.35);
  background: var(--paper);
  padding: 12px;
}
.menu-admin-item summary {
  cursor: pointer;
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.lang-fieldset {
  border: 1px solid rgba(123,30,38,.25);
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}
.lang-fieldset legend {
  color: var(--wine);
  font-family: MerlodBold, sans-serif;
}
.delete-form { margin-top: 10px; }
.menu-category-grid {
  display: grid;
  gap: 14px;
}
.menu-category-card {
  border: 2px solid var(--wine);
  background: #fbf8f1;
}
.menu-category-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: var(--wine);
  cursor: pointer;
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.menu-category-summary span {
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}
.menu-category-summary small {
  color: var(--muted);
  font-family: MerlodRegular, Arial, sans-serif;
  font-size: .95rem;
  text-transform: none;
}
.quick-add-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(123,30,38,.25);
  background: var(--white);
}
.quick-add-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(90px, .28fr) minmax(90px, .28fr);
  gap: 10px;
}
.quick-add-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.menu-item-list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}
.reorder-form { display: none; }
.menu-item-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(123,30,38,.28);
  background: var(--white);
  padding: 10px;
}
.menu-item-card.dragging {
  opacity: .55;
  outline: 2px solid var(--wine);
}
.drag-handle {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid rgba(123,30,38,.28);
  color: var(--wine);
  cursor: grab;
  font-family: MerlodBold, sans-serif;
}
.menu-item-main {
  display: grid;
  gap: 3px;
}
.menu-item-main strong {
  color: var(--ink);
  font-family: MerlodBold, sans-serif;
  text-transform: uppercase;
}
.menu-item-main span,
.menu-item-main small {
  color: var(--muted);
  line-height: 1.25;
}
.menu-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.menu-item-actions form { margin: 0; }

@media (max-width: 850px) {
  body { font-size: 16px; }
  .site-header { position: relative; grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 12px 54px 12px; }
  .brand img { width: 176px; }
  .main-nav { order: 3; font-size: .98rem; }
  .flags { position: absolute; top: 16px; right: 14px; justify-content: center; }
  .flag-link { padding: 4px; border-color: rgba(123,30,38,.5); box-shadow: none; }
  .flag { width: 22px; height: 15px; }
  .flag-menu { top: calc(100% + 6px); border-radius: 20px; }
  .hero, .studio-band, .menu-section, .menu-hero, .booking-page, .quick-links, .admin-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  body:has(.home-hero) { overflow: auto; }
  .home-hero { height: auto; min-height: 0; }
  .home-hero .hero-art { order: -1; }
  .hero-copy { padding: 24px 28px 26px; text-align: center; align-items: center; }
  h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); max-width: none; }
  h2 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  .hero-copy p { margin-top: 18px; }
  .actions { margin-top: 18px; }
  .home-hero { border-bottom: 0; }
  .home-hero .hero-copy,
  .home-hero .hero-art { border: 0; }
  .hero-art { min-height: 375px; border-left: 0; border-top: 0; border-bottom: 0; align-items: center; overflow: hidden; }
  .hero-art img { width: min(88vw, 390px); max-width: none; max-height: 375px; }
  .feature-link { min-height: 148px; }
  .feature-link + .feature-link { border-left: 0; border-top: 2px solid var(--paper); }
  .feature-link strong { font-size: clamp(2.2rem, 13vw, 3.6rem); }
  .image-stack { grid-template-columns: 1fr; }
  .image-stack img:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .menu-heading { position: static; }
  .booking-calendar-panel { border-right: 0; border-bottom: 0; }
  .booking-calendar-page { overflow-x: hidden; }
  .booking-calendar-panel,
  .booking-form-wrap { padding: 22px 16px; }
  .booking-step-panel .booking-form { max-height: none; }
  .calendar-grid { gap: 4px; }
  .calendar-legend { font-size: .82rem; }
  .calendar-day,
  .calendar-blank { min-height: 52px; padding: 6px; font-size: .88rem; min-width: 0; }
  .calendar-day small { display: none; }
  .slot-picker { grid-template-columns: 1fr; }
  .calendar-shell { padding: 12px; }
  .calendar-day { min-height: 58px; padding: 7px; }
  .plato-item { grid-template-columns: 1fr; gap: 6px; }
  .booking-intro { border-right: 0; border-bottom: var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .admin-menu-bar { display: grid; gap: 10px; }
  .panel-heading-row,
  .quick-add-actions,
  .admin-list-head { display: grid; align-items: stretch; }
  .range-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range-tabs a { text-align: center; border-right: 0; border-bottom: 1px solid var(--wine); }
  .range-tabs a:nth-last-child(-n+2) { border-bottom: 0; }
  .admin-date-form,
  .new-category-form,
  .menu-admin-actions,
  .zone-capacity-card,
  .quick-add-grid,
  .occupancy-summary,
  .occupancy-row,
  .menu-item-card { grid-template-columns: 1fr; }
  .reservation-actions-panel {
    grid-template-columns: 1fr;
  }
  .compact-reservations-table {
    min-width: 860px;
  }
  .menu-item-actions { justify-content: flex-start; }
  .drag-handle { display: none; }
  .admin-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs a { text-align: center; padding: 9px 8px; border-right: 0; border-bottom: 2px solid var(--wine); }
  .admin-tabs a:nth-last-child(-n+2) { border-bottom: 0; }
  .site-footer { justify-content: center; min-height: var(--footer-h); text-align: center; }
  .site-footer span { display: none; }
  .footer-links { gap: 12px; }
}

@media (max-width: 420px) {
  .main-nav { gap: 16px; }
  .home-hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .home-hero .btn { width: 100%; padding-inline: 10px; font-size: .82rem; }
}
