/* mifood.cl — hoja de estilos
   Paleta: cilantro (verde), merkén (rojo ají) y choclo (amarillo) sobre papel claro.
   La "mesa" del sitio es el ticket de reserva: aparece en la búsqueda de portada y en la confirmación. */

@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/epilogue-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/epilogue-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/epilogue-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #F7F8F5;
  --surface: #FFFFFF;
  --ink: #1D2321;
  --ink-2: #3A4340;
  --muted: #5D6763;
  --line: #DDE2DD;
  --line-2: #EBEEEA;
  --green: #1E6B4A;
  --green-d: #154F37;
  --green-tint: #E4EFE8;
  --chili: #B3352B;
  --chili-tint: #F8E3E0;
  --corn: #E8B53A;
  --corn-tint: #FBF0D2;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Epilogue", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-d); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 600; }
.is-block { display: block; }
.center { justify-content: center; }
.text-danger { color: var(--chili); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 245, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.logo-word span { color: var(--muted); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.site-nav a:hover { background: var(--line-2); color: var(--ink); }
.site-nav .btn { color: #fff; margin-left: 6px; }
.site-nav .btn:hover { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-d); font-weight: 700; font-size: .75rem; flex: none; }
.avatar-lg { width: 40px; height: 40px; font-size: .875rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.25rem; font-family: var(--font-display); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(29, 35, 33, .3); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--green-d); }
.btn-light:hover { background: var(--green-tint); color: var(--green-d); }
.btn-danger { background: var(--chili); color: #fff; }
.btn-danger:hover { background: #8E2820; color: #fff; }
.btn-link-danger { background: none; border: 0; color: var(--chili); padding-left: 0; padding-right: 0; text-decoration: underline; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-xs { padding: 5px 11px; font-size: .82rem; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Flash messages ---------- */
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.flash-success { background: var(--green-tint); color: var(--green-d); }
.flash-error { background: var(--chili-tint); color: #7A1F17; }
.flash-info { background: var(--corn-tint); color: #6B4D06; }

.notice { padding: 10px 0; font-size: .92rem; font-weight: 500; }
.notice-demo { background: var(--corn-tint); color: #6B4D06; }
.notice-warn { background: var(--chili-tint); color: #7A1F17; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .field > legend, fieldset > legend { font-weight: 600; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); min-height: 44px;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-tint); }
input:disabled { background: var(--line-2); color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235D6763' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=file] { padding: 8px 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.switch { display: flex; align-items: center; gap: 12px; margin: 10px 0; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--line-2); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-action { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: 1 / -1; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-2); }
.form-section { font-size: 1rem; margin: 8px 0 12px; color: var(--ink-2); }
.toggle-group, .price-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chip { cursor: pointer; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 500; }
.toggle-chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.toggle-chip input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: 2px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 20px; cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: -3px; }
@media (max-width: 640px) {
  .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .form-card { padding: 20px; }
}

/* ---------- Ticket (search on the home page, confirmation page) ---------- */
.ticket {
  --notch: var(--paper);
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(29, 35, 33, .04), 0 18px 40px -24px rgba(21, 79, 55, .45);
}
.ticket-main { padding: 26px 28px; }
.ticket-stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; border-left: 2px dashed var(--line); background: linear-gradient(180deg, var(--surface), var(--line-2)); border-radius: 0 20px 20px 0; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--notch); }
.ticket-stub::before { top: -12px; }
.ticket-stub::after { bottom: -12px; }
.stub-note { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.stub-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stub-code { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .08em; color: var(--ink); }
.ticket-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.ticket-field select, .ticket-field input { border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 6px 0; min-height: 40px; font-size: 1.05rem; font-weight: 500; background-color: transparent; }
.ticket-field select { background-position: right 2px center; padding-right: 24px; }
.ticket-field select:focus, .ticket-field input:focus { box-shadow: none; border-bottom-color: var(--green); }
.ticket .ticket-main { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .ticket-main { grid-template-columns: 1fr; gap: 14px; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 20px 20px; }
  .ticket-stub::before, .ticket-stub::after { top: -13px; left: auto; }
  .ticket-stub::before { left: -12px; }
  .ticket-stub::after { right: -12px; bottom: auto; }
}

/* ---------- Home ---------- */
.hero { background: var(--green); color: #fff; padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 32px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; max-width: 14ch; }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 52ch; font-size: 1.1rem; margin: 14px 0 0; }
.hero .ticket { --notch: var(--green); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 65ch; }

.section { padding: 48px 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .section-title, .section-head .block-title { margin: 0; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 18px; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.occasions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.occasion { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.occasion:hover { border-color: var(--green); color: var(--ink); }
.occasion-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.occasion-desc { font-size: .88rem; color: var(--muted); line-height: 1.4; }

.city-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; font-size: .92rem; }
.pill:hover { border-color: var(--ink-2); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.owner-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--green-d); color: #fff; border-radius: 20px; padding: 36px 40px; }
.owner-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.owner-band p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin: 0; }

/* ---------- Placeholder tile: a gingham tablecloth with a plate ---------- */
.tile {
  --c1: hsl(var(--h) 42% 90%);
  --c2: hsl(var(--h) 38% 80% / .55);
  display: grid; place-items: center; width: 100%; height: 100%;
  background-color: var(--c1);
  background-image: linear-gradient(90deg, var(--c2) 50%, transparent 50%), linear-gradient(var(--c2) 50%, transparent 50%);
  background-size: 28px 28px;
}
.tile > span { display: grid; place-items: center; width: 34%; aspect-ratio: 1; max-width: 96px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.55); font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.6rem); color: hsl(var(--h) 45% 28%); letter-spacing: -0.02em; }
.tile-hero { aspect-ratio: 21 / 8; border-radius: var(--radius); }
.tile-hero > span { max-width: 140px; font-size: 2.4rem; }

/* ---------- Restaurant cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.r-card { position: relative; min-width: 0; }
.r-card-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--line-2); }
.r-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.r-card:hover .r-card-media img { transform: scale(1.03); }
.r-card-body { padding-top: 12px; }
.r-card-title { font-size: 1.08rem; margin: 0 0 2px; font-weight: 700; }
.r-card-title a { color: var(--ink); text-decoration: none; }
.r-card-title a:hover { text-decoration: underline; }
.r-card-meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.r-card-foot { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; flex-wrap: wrap; }
.score { display: inline-grid; place-items: center; min-width: 34px; padding: 2px 7px; border-radius: 8px; background: var(--chili); color: #fff; font-weight: 700; font-size: .85rem; }
.price { margin-left: auto; font-weight: 600; color: var(--ink-2); }
.can-book { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--green-d); background: var(--green-tint); padding: 3px 9px; border-radius: 999px; }
.fav-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.fav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fav svg { fill: none; }
.fav.is-on { color: var(--chili); }
.fav.is-on svg { fill: currentColor; }
.fav-inline { position: static; }
.fav-text.is-on { border-color: var(--chili); color: var(--chili); }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.collection { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.collection-stack { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; background: var(--line-2); }
.collection-stack > :first-child { grid-row: span 2; }
.collection-stack > :only-child { grid-column: span 2; }
.collection-stack img, .collection-stack .tile { width: 100%; height: 100%; object-fit: cover; }
.collection-stack .tile > span { width: 46%; font-size: .9rem; box-shadow: none; }
.collection-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.collection:hover .collection-title { text-decoration: underline; }
.collection-meta { color: var(--muted); font-size: .9rem; }

/* ---------- Search ---------- */
.page-head { padding: 32px 0 8px; }
.page-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; }
.search-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; margin: 8px 0 24px; }
.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.filters { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 4px 18px; position: sticky; top: 84px; }
.filters summary { font-weight: 700; padding: 12px 0; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters-form { padding-bottom: 16px; }
.filters .price-toggles { flex-direction: column; align-items: flex-start; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.results-head p { margin: 0; }
@media (min-width: 861px) { .filters summary { pointer-events: none; } .filters:not([open]) > form { display: block; } }
@media (max-width: 860px) {
  .search-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar input { grid-column: 1 / -1; }
}

.map { width: 100%; border-radius: var(--radius); background: var(--line-2); z-index: 0; }
.map-results { height: 380px; margin-bottom: 24px; }
.map-small { height: 220px; margin: 12px 0; }
.map-edit { height: 320px; margin-top: 8px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 32px 0 8px; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 1.25rem; }
.empty-page { text-align: center; padding: 80px 20px; }

/* ---------- Restaurant page ---------- */
.crumbs { display: flex; gap: 8px; font-size: .9rem; padding: 20px 0 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery:not(.gallery-mosaic) .gallery-item { width: 100%; aspect-ratio: 21 / 8; }
.gallery-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 21 / 8; }
.gallery-mosaic .gallery-item:first-child { grid-row: span 2; }
.gallery-item { padding: 0; border: 0; cursor: zoom-in; background: var(--line-2); overflow: hidden; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
@media (max-width: 700px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: none; aspect-ratio: 4 / 3; }
  .gallery-mosaic .gallery-item:not(:first-child) { display: none; }
  .gallery:not(.gallery-mosaic) .gallery-item, .tile-hero { aspect-ratio: 4 / 3; }
  .gallery { margin: 0 -20px; border-radius: 0; }
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding: 28px 0 24px; }
.detail-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.detail-meta { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.open-status { font-weight: 600; color: var(--muted); font-size: .95rem; }
.open-status.is-open { color: var(--green); }
.score-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-row p { margin: 0; }
.score-big { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.score-big > span:last-child { display: grid; gap: 2px; font-size: .9rem; }
.score-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--chili); letter-spacing: -0.03em; }
.subscores { display: flex; gap: 22px; margin: 0; }
.subscores div { display: grid; }
.subscores dt { font-size: .8rem; color: var(--muted); }
.subscores dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 24px; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--corn-tint); color: #5C4205; text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip:hover { background: var(--corn); color: var(--ink); }
.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.prose { max-width: 68ch; }

.stars { display: inline-block; width: calc(var(--size) * 5); height: var(--size); background: linear-gradient(90deg, var(--chili) var(--pct), var(--line) var(--pct)); -webkit-mask: var(--star) left / var(--size) var(--size) repeat-x; mask: var(--star) left / var(--size) var(--size) repeat-x; vertical-align: -2px; }

.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 36px; }
.menu-section h3 { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin: 12px 0 6px; }
.menu-section ul { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.menu-item p { margin: 2px 0 0; font-size: .88rem; }
.menu-name { font-weight: 600; }
.menu-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--corn-tint); color: #5C4205; font-size: .74rem; font-weight: 700; vertical-align: 2px; margin-left: 4px; }
.badge-verified { background: var(--green-tint); color: var(--green-d); }
.badge-demo { background: var(--line-2); color: var(--muted); }
.badge-warn { background: var(--chili-tint); color: #7A1F17; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-weight: 400; }
.hours th { width: 40%; color: var(--ink-2); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }
.facts { display: grid; gap: 8px; margin: 0 0 12px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.tabs-inline { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs-inline a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem; border: 1.5px solid transparent; }
.tabs-inline a.is-active { border-color: var(--ink); color: var(--ink); }
.reviews { list-style: none; padding: 0; margin: 0; }
.review { padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.reviews .review:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review-head p { margin: 0; }
.review-author { font-weight: 700; margin: 0 0 2px; }
.review-scores { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; font-size: .85rem; }
.review-scores div { display: flex; gap: 8px; align-items: center; }
.review-scores dt { color: var(--muted); }
.review-scores dd { margin: 0; }
.review-body { max-width: 68ch; white-space: normal; }
.review-photos { display: flex; gap: 8px; margin: 8px 0; }
.review-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.owner-reply { margin: 12px 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 10px 10px 0; }
.owner-reply-head { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.owner-reply p:last-child { margin: 0; }
.claim-box, .soft-box { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); margin: 24px 0; }
.claim-box h2, .soft-box h2 { font-size: 1.15rem; }
.soft-warn { background: var(--chili-tint); border-color: transparent; }

/* Booking card */
.detail-aside { position: sticky; top: 84px; }
.book-card { background: var(--surface); border-radius: 20px; padding: 24px; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -28px rgba(21, 79, 55, .5); }
.book-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.book-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 16px; }
.slots-wrap legend { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; max-height: 232px; overflow-y: auto; padding: 2px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: 9px 0; border: 1.5px solid var(--green); color: var(--green-d); border-radius: 10px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot span:hover { background: var(--green-tint); }
.slot input:checked + span { background: var(--green); color: #fff; }
.slot input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.slots-empty { grid-column: 1 / -1; margin: 0; }
.slots.is-loading { opacity: .5; }
.book-contact { border-top: 1px solid var(--line-2); padding-top: 14px; }
.book-note { font-size: .88rem; background: var(--corn-tint); color: #5C4205; padding: 10px 12px; border-radius: 10px; }
.book-bar { display: none; }
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .detail-aside { position: static; order: -1; margin-bottom: 8px; }
  .detail-layout .detail-main { order: 0; }
  .book-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); border-top: 1px solid var(--line); z-index: 30; }
  body:has(.book-bar) .site-footer { padding-bottom: 90px; }
}
@media (max-width: 960px) { .detail-aside { order: 2; } }

.lightbox { border: 0; padding: 0; background: rgba(12, 16, 14, .94); width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; }
.lightbox-nav.next { right: 16px; top: 50%; }
.lightbox-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); }

/* ---------- Confirmation page ---------- */
.ticket-confirm { margin: 40px 0 24px; }
.ticket-confirm .ticket-main { display: block; padding: 32px; }
.ticket-status { display: inline-block; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-d); margin-bottom: 12px; }
.ticket-wait .ticket-status { background: var(--corn-tint); color: #5C4205; }
.ticket-off .ticket-status { background: var(--chili-tint); color: #7A1F17; }
.ticket-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.ticket-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 24px 0 0; }
.ticket-facts div { display: grid; gap: 2px; }
.ticket-facts .span-2 { grid-column: span 2; }
.ticket-facts dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ticket-facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.ticket-confirm .ticket-stub { align-items: center; text-align: center; }
.ticket-ok .ticket-stub { background: linear-gradient(180deg, var(--surface), var(--green-tint)); }
.cancel-form { text-align: center; margin: 8px 0 32px; }
.back-link { display: inline-block; margin: 20px 0 8px; font-weight: 600; text-decoration: none; }
.back-link::before { content: "‹ "; }

/* ---------- Review form ---------- */
.rate-field { margin-bottom: 18px; }
.rate-field legend { font-weight: 600; margin-bottom: 6px; }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-input input { position: absolute; opacity: 0; }
.rate-input label { width: 38px; height: 38px; cursor: pointer; background: var(--line); -webkit-mask: var(--star) center / 34px no-repeat; mask: var(--star) center / 34px no-repeat; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { background: var(--chili); }
.rate-input input:focus-visible + label { background: var(--corn); }

/* ---------- Auth / account ---------- */
.auth { max-width: 460px; padding: 48px 20px; }
.auth .page-title { font-size: 1.8rem; }
.auth-links { margin: 14px 0 0; text-align: center; }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--muted); }
.account-head { display: flex; gap: 16px; align-items: center; padding: 32px 0 20px; }
.account-head .page-title { margin: 0; }
.account-head p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--green); }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.res-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); }
.res-item.is-past { background: transparent; }
.res-date { display: grid; place-items: center; width: 54px; height: 58px; border-radius: 12px; background: var(--green-tint); color: var(--green-d); font-size: .78rem; font-weight: 600; line-height: 1.1; flex: none; }
.res-day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.res-info { flex: 1; min-width: 0; }
.res-info p { margin: 0; font-size: .9rem; }
.res-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.res-name:hover { text-decoration: underline; }
.my-reviews { list-style: none; margin: 0; padding: 0; }
.account-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; border-top: 0; }
.danger-zone { margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--chili); font-weight: 600; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.status-confirmed, .status-seated, .status-active { background: var(--green-tint); color: var(--green-d); }
.status-pending { background: var(--corn-tint); color: #5C4205; }
.status-rejected, .status-cancelled, .status-no_show, .status-suspended { background: var(--chili-tint); color: #7A1F17; }

/* ---------- Join (for restaurants) ---------- */
.join-hero { background: var(--green-d); color: #fff; padding: 56px 0; }
.join-hero .lead { color: rgba(255,255,255,.86); margin: 16px 0 24px; }
.join-hero .hero-title { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.join-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.join-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.join-points li { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.join-points span { color: rgba(255,255,255,.8); font-size: .94rem; }
.join-hero .btn-primary { background: #fff; color: var(--green-d); }
.join-hero .btn-primary:hover { background: var(--green-tint); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; display: grid; gap: 6px; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-family: var(--font-display); }
.steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .join-grid, .steps { grid-template-columns: 1fr; } }

/* ---------- Static pages ---------- */
.prose-page { padding: 32px 20px 64px; }
.prose-page h2 { font-size: 1.25rem; margin-top: 28px; }
.prose-page li { margin-bottom: 6px; }
.faq { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 16px; margin-bottom: 8px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.faq p { padding-bottom: 8px; }

/* ---------- Panel / admin shell ---------- */
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.app-side { position: sticky; top: 84px; }
.app-side-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.app-nav { display: grid; gap: 2px; margin: 16px 0; }
.app-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.app-nav a:hover { background: var(--line-2); color: var(--ink); }
.app-nav a[aria-current] { background: var(--ink); color: #fff; }
.count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--chili); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.app-head { margin-bottom: 20px; }
.app-head .page-title { margin-bottom: 4px; }
.app-head > p { margin: 0; }
.app-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); padding: 22px; margin-bottom: 20px; min-width: 0; }
.app-card .block-title { font-size: 1.12rem; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.app-grid .span-2 { grid-column: span 2; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.kpi-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: .86rem; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.agenda li > span:nth-child(2) { flex: 1; min-width: 120px; }
.agenda-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; }
.agenda-actions { display: flex; gap: 6px; }
.agenda-actions form { margin: 0; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 150px; align-items: end; padding-bottom: 22px; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar-fill { display: block; width: 100%; min-height: 3px; background: var(--green); border-radius: 5px 5px 2px 2px; }
.bar-dot { position: absolute; top: -2px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--chili); }
.bar-label { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; background: var(--green); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.checklist li::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); margin-right: 10px; vertical-align: -3px; }
.checklist li.is-done { color: var(--muted); }
.checklist li.is-done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); }
.day-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.day-nav form { margin: 0; }
.day-nav input { width: auto; }
.day-sum { margin-left: 8px; }
.add-res summary { font-weight: 600; cursor: pointer; }
.add-res form { margin-top: 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 20px; }
.app-card .table-wrap { border: 0; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-cancelled td, .row-rejected td, .row-no_show td { color: var(--muted); }
.note { margin-top: 4px; font-size: .85rem; background: var(--corn-tint); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.row-actions form { margin: 0; }
.more-actions { position: relative; }
.more-actions summary { list-style: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; width: 270px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.25); }
.mini-form { display: grid; gap: 6px; }
.app-filter { margin-bottom: 16px; }
.simple-list { list-style: none; margin: 16px 0 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.simple-list form { margin: 0; }
.check-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 12px; }
.check-list .check { margin: 6px 0; }
.filter-list { margin-bottom: 8px; }
.inline-select select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.hours-grid { display: grid; gap: 4px; margin-bottom: 16px; }
.hours-row { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 16px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.hours-head { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hours-row .check { margin: 0; font-weight: 600; }
.time-pair { display: flex; align-items: center; gap: 8px; }
.time-pair input { width: auto; min-width: 0; flex: 1; }
.hours-row.is-closed .time-pair { opacity: .35; pointer-events: none; }
.upload-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dropzone { flex: 1; display: grid; gap: 4px; padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; min-width: 240px; }
.dropzone:hover { border-color: var(--green); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo-tile { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; position: relative; }
.photo-tile.is-cover { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.photo-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cover-badge { position: absolute; top: 8px; left: 8px; margin: 0; }
.photo-tile figcaption { padding: 10px; display: grid; gap: 8px; }
.caption-form input { min-height: 36px; padding: 6px 10px; font-size: .88rem; }
.photo-actions { display: flex; justify-content: space-between; align-items: center; }
.photo-actions form { margin: 0; }
.menu-admin { list-style: none; margin: 0; padding: 0; }
.menu-admin li { border-bottom: 1px solid var(--line-2); }
.menu-admin summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; }
.menu-admin form { padding: 8px 0 16px; }
.reply-form { display: grid; gap: 8px; margin-top: 12px; }
.reply-form .btn { justify-self: start; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 30%); z-index: 5; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .app-side { position: static; }
  .app-nav { display: flex; overflow-x: auto; gap: 4px; margin: 8px 0; }
  .app-nav a { white-space: nowrap; gap: 8px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .span-2 { grid-column: auto; }
  .kpis, .kpis-3 { grid-template-columns: repeat(2, 1fr); }
  .hours-row { grid-template-columns: 1fr; gap: 6px; }
  .hours-head { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid p { margin-top: 12px; font-size: .92rem; max-width: 32ch; }
.footer-h { font-family: var(--font-body); font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.footer-list a { color: var(--ink-2); text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-base { margin-top: 28px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Leaflet popup */
.leaflet-popup-content { font: 14px/1.4 var(--font-body); }
.leaflet-popup-content a { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .app-side, .add-res, .row-actions, .day-nav .btn, .tabs-inline, .book-bar { display: none !important; }
  .app-shell { display: block; }
  body { background: #fff; }
}
.mf-pin { background: none; border: 0; }
.ticket { color: var(--ink); }
.r-card-media, .collection, .collection-stack { text-decoration: none; }
.gallery:not(.gallery-mosaic) .gallery-item:not(:first-child) { display: none; }
.app-side, .app-main { min-width: 0; }
@media (max-width: 960px) { .app-shell { grid-template-columns: minmax(0, 1fr); } }
