:root {
  --cover-progress: 0;
  --panel-width: min(90vw, 520px);
  --panel-expanded-height: clamp(360px, 70svh, 620px);
  --panel-collapsed-height: clamp(92px, 34vw, 170px);
  --panel-height: calc(var(--panel-expanded-height) - (var(--cover-progress) * (var(--panel-expanded-height) - var(--panel-collapsed-height))));
  --cover-height: calc(100svh - (var(--cover-progress) * (100svh - var(--panel-collapsed-height) - 14px)));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: #160b1f;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: 'Mulish', Arial, sans-serif;
  background: linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)), url("img/fondo.png") center center / cover no-repeat fixed;
  background-color: #160b1f;
  overscroll-behavior-y: none;
}

body::before,
body::after {
  display: none;
}

[hidden] {
  display: none !important;
}

.brand-cover {
  position: relative;
  width: 100%;
  height: var(--cover-height);
  min-height: calc(var(--panel-collapsed-height) + 14px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 30svh;
  overflow: hidden;
}

.brand-cover.is-collapsed {
  padding-bottom: 14px;
}

.brand-panel {
  position: relative;
  display: block;
  width: var(--panel-width);
  height: var(--panel-height);
  min-height: var(--panel-collapsed-height);
  overflow: hidden;
  text-decoration: none;
  background: #4b0d4e;
  border: 0 solid #c59a2d;
  border-right-width: 4px;
  border-bottom-width: 4px;
  border-left-width: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.brand-logo {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 90%;
  max-width: 430px;
  max-height: 88%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}

body.force-cover-collapsed {
  --cover-progress: 1;
}

body.force-cover-collapsed .brand-cover {
  height: calc(var(--panel-collapsed-height) + 14px);
  min-height: calc(var(--panel-collapsed-height) + 14px);
  padding-bottom: 14px;
}

body.force-cover-collapsed .brand-panel {
  height: var(--panel-collapsed-height);
}

body.cover-collapse-animating {
  overflow: hidden;
  cursor: wait;
}

body.cover-collapse-animating .brand-cover,
body.cover-collapse-animating .main-content,
body.cover-collapse-animating .bottom-nav,
body.cover-collapse-animating .menu-button {
  pointer-events: none;
}

.menu-button {
  position: fixed;
  top: 18px;
  right: 14px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(0,0,0,.28);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.menu-button.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,.25);
  transition: opacity .3s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  inset: 0;
  z-index: 1400;
  width: 100%;
  max-width: none;
  height: 100svh;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(rgba(75,13,78,.78), rgba(75,13,78,.78)), url("img/fondo.png") center center / cover no-repeat;
  border-left: none;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform .32s ease;
}

.side-menu.show {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.side-menu-links {
  display: grid;
}

.side-menu-links a,
.side-menu-contact {
  display: block;
  padding: 18px 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(197,154,45,.55);
}

.side-menu-contact {
  align-self: center;
  margin-top: auto;
  padding-inline: 18px;
  text-align: center;
  border: 1px solid rgba(197,154,45,.65);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}

.close-menu {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(197,154,45,.65);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(0,0,0,.18);
}

.language-selector {
  position: relative;
}

.language-button {
  border: 1px solid rgba(197,154,45,.75);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  background: rgba(255,255,255,.12);
}

.language-button img,
.language-panel img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.language-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1500;
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(197,154,45,.75);
  border-radius: 14px;
  background: rgba(75,13,78,.96);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.language-panel button {
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.language-panel button:hover {
  background: rgba(255,255,255,.12);
}

.main-content {
  padding: 0 16px calc(72px + env(safe-area-inset-bottom, 0px));
}

.section-card {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 18px;
  color: #222;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: 100%;
  min-height: 52px;
  height: calc(52px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #4b0d4e;
  box-shadow: 0 -2px 14px rgba(0,0,0,.22);
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}

.bottom-nav a {
  min-height: 52px;
  border-top: 1px solid rgba(197,154,45,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav a + a {
  border-left: 1px solid rgba(197,154,45,.45);
}

.bottom-nav a:first-child {
  color: #111;
  background: #fff;
}

.bottom-nav a:last-child {
  color: #111;
  background: #46c7c2;
}

.brand-summary {
  text-align: center;
  padding: 10px 0 22px;
}

.brand-kicker,
.brand-subline {
  color: #fff;
  opacity: .92;
  margin: 0;
}

.brand-kicker {
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand-headline {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1.1;
}

.brand-subline {
  font-weight: 800;
}

.locations-grid {
  display: grid;
  gap: 16px;
  margin: 10px 0 24px;
}

.location-card {
  border-radius: 20px;
  color: #111;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.location-card-photo,
.reserve-pick {
  overflow: hidden;
  padding: 0;
}

.location-photo {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.28);
}

.location-photo-vilassar {
  background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.18)), url("img/locales/vilassar/1.webp");
}

.location-photo-lloret {
  background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.18)), url("img/locales/lloret/1.webp");
}

.location-photo-express {
  background-image: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.35)), url("img/locales/express/1.webp");
}

.location-top,
.location-actions,
.future-copy {
  margin: 0;
}

.location-card-photo .location-top,
.location-card-photo .location-actions,
.location-card-photo .future-copy {
  padding-left: 18px;
  padding-right: 18px;
}

.location-card-photo .location-top {
  padding-top: 16px;
}

.location-card-photo .location-actions,
.location-card-photo .future-copy {
  padding-bottom: 18px;
}

.location-top h2 {
  margin: 8px 0 0;
  color: #111;
  font-size: 1.35rem;
}

.location-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #111;
  font-size: .82rem;
  font-weight: 800;
  background: rgba(255,255,255,.82);
}

.location-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px;
  margin-top: 16px;
}

.location-actions a {
  min-height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #111;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255,255,255,.88);
}

.location-actions a:hover {
  background: #fff;
}

.location-card-photo[data-local-card="vilassar"],
.reserve-pick[href*="vilassar"] {
  background: #2aa7a2;
}

.location-card-photo[data-local-card="lloret"],
.reserve-pick[href*="lloret"] {
  background: #b98725;
}

.location-card-photo[data-local-card="express"] {
  color: #fff;
  background: #6d2468;
}

.location-card-photo .location-top h2,
.location-card-photo .future-copy {
  color: #fff;
}

.future-copy {
  margin: 14px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.reserve-pick {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.fake-photo {
  height: 180px;
  margin: 0;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

.reserve-pick[href*="vilassar"] .fake-photo,
.vilassar-photo {
  background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.18)), url("img/locales/vilassar/1.webp");
}

.reserve-pick[href*="lloret"] .fake-photo,
.lloret-photo {
  background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.18)), url("img/locales/lloret/1.webp");
}

.reserve-pick h2 {
  margin: 0;
  padding: 16px 18px 18px;
  color: #111;
}

.form-intro {
  margin: 8px 0 18px;
  color: #555;
}

.page-reserva .section-card,
.page-restaurante .local-detail-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.reservation-form {
  display: grid;
  gap: 12px;
}

.reservation-form label {
  font-weight: 700;
}

.reservation-form input,
.reservation-form textarea,
.reservation-form select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 4px;
}

.time-slot {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 13px 8px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.time-slot.active {
  border-color: #222;
  color: #fff;
  background: #222;
}

.time-slots.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192,57,43,.14);
}

.time-slot.blocked,
.time-slot:disabled {
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #eee;
}

.availability-status {
  min-height: 20px;
  color: #666;
  font-size: .9rem;
}

.primary-button,
.cta-primary {
  border: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  background: #25D366;
}

.cta-primary {
  border-radius: 999px;
  color: #111;
  background: #46c7c2;
}

.menu-page-card {
  background: rgba(255,255,255,.94);
}

.menu-container {
  display: grid;
  gap: 34px;
}

.menu-section {
  margin: 0 0 42px;
}

.menu-section-title {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 8px 18px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
}

.menu-section-intro {
  margin: -8px 0 22px;
  color: #c6854a;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.menu-section-intro p + p {
  color: #7b1530;
  font-size: 1.05rem;
}

.menu-items {
  display: grid;
  gap: 20px;
}

.menu-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 8px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.menu-diamond {
  grid-column: 1;
  width: 14px;
  height: 14px;
  margin-top: 5px;
}

.menu-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 5px;
  color: #783342;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.menu-name {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.menu-price {
  align-self: end;
  justify-self: end;
  white-space: nowrap;
}

.menu-description {
  margin-top: 2px;
  color: #c6854a;
  font-style: italic;
  line-height: 1.3;
}

.menu-photo {
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 14px;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.menu-allergens {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.menu-allergens img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  vertical-align: -2px;
}

.menu-allergens img.hidden-by-filter,
.menu-allergens img:not(.visible-by-filter) {
  display: none;
}

.menu-variants {
  margin-top: 8px;
  padding-left: 12px;
  display: grid;
  gap: 8px;
}

.menu-variant {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 5px;
  color: #783342;
  font-weight: 800;
}

.menu-variant-main {
  min-width: 0;
}

.menu-error {
  color: #783342;
  font-weight: 700;
  text-align: center;
}

.allergen-filter {
  position: fixed;
  left: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  width: auto;
  max-width: calc(100vw - 24px);
  margin: 0;
}

.allergen-filter-toggle {
  width: auto;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(197,154,45,.65);
  border-radius: 999px;
  padding: 11px 14px;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  background: #4b0d4e;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.allergen-filter-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.allergen-option {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #783342;
  font-size: .88rem;
  font-weight: 700;
}

.allergen-option input {
  accent-color: #783342;
}

.allergen-clear {
  grid-column: 1 / -1;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  padding: 10px;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  background: #783342;
}

.menu-photo-toggle {
  position: fixed;
  right: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  width: auto;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(197,154,45,.65);
  border-radius: 999px;
  padding: 11px 14px;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  background: #4b0d4e;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

body.menu-photos-hidden .menu-photo {
  display: none;
}

.allergen-icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex: 0 0 auto;
}


.local-detail-card {
  padding: 18px;
  border-radius: 20px;
  color: #111;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.local-detail-card h1 {
  margin: 0 0 8px;
}

.local-hours {
  margin: 0 0 18px;
  color: #4b0d4e;
  font-weight: 800;
}

.local-address {
  margin: 0 0 14px;
  color: #333;
  font-weight: 700;
}

.local-map {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin: 16px 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

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

.local-gallery {
  display: grid;
  gap: 12px;
}

.local-gallery img {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  background: rgba(0,0,0,.9);
  overscroll-behavior: contain;
  touch-action: none;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform .12s ease-out;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.lightbox-overlay img.is-zoomed {
  cursor: grab;
}

.lightbox-overlay img.is-zoomed:active {
  cursor: grabbing;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  color: #fff;
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.click-zoom {
  cursor: zoom-in;
}

@media (orientation: landscape) {
  :root {
    --panel-expanded-height: clamp(260px, 68svh, 520px);
    --panel-collapsed-height: clamp(82px, 18vw, 145px);
  }

  .brand-logo {
    width: 68%;
    max-width: 360px;
    max-height: 88%;
  }
}

@media (min-width: 900px) {
  :root {
    --panel-width: min(58vw, 520px);
    --panel-expanded-height: clamp(360px, 62svh, 560px);
    --panel-collapsed-height: 132px;
  }

  .brand-logo {
    max-width: 340px;
  }
}

@media (min-width: 680px) {
  .menu-page-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .menu-items.columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }

  .menu-photo {
    max-height: none;
  }

  .allergen-filter {
    left: max(18px, calc((100vw - 760px) / 2));
  }

  .menu-photo-toggle {
    right: max(18px, calc((100vw - 760px) / 2));
  }

  .allergen-filter-panel {
    width: min(360px, calc(100vw - 36px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .location-photo {
    height: 190px;
  }

  .local-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .location-actions {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .location-actions a {
    font-size: .78rem;
  }
}


.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(75,13,78,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.contact-item strong {
  color: #4b0d4e;
}

.contact-item a {
  color: #4b0d4e;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (min-width: 760px) {
  .page-contact .section-card {
    max-width: 760px;
    margin-inline: auto;
  }
}

/* Local page: photos use almost the full centered detail area. */
.page-restaurante .local-gallery {
  grid-template-columns: 1fr;
  margin: 18px -8px 0;
}

.page-restaurante .local-gallery img {
  width: 100%;
  max-height: 520px;
}
