﻿.restobar-menu {
  background: #faf7f2;
}

.modal-open {
  overflow: hidden;
}

.restobar-hero {
  position: relative;
  padding: 22px clamp(18px, 5vw, 64px) 28px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 10, 10, 0.9), rgba(15, 10, 10, 0.58)),
    linear-gradient(180deg, rgba(15, 10, 10, 0.18), rgba(15, 10, 10, 0.9)),
    url("../../assets/businesses/bistro-nova-ambient.jpg") center / cover no-repeat;
}

.menu-back {
  display: inline-flex;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.restobar-profile {
  max-width: 760px;
}

.profile-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.restobar-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.profile-lockup h1 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2.1rem, 8vw, 4.8rem);
  line-height: 0.98;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.profile-lockup p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.profile-actions a,
.profile-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.profile-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.restobar-shell {
  width: min(980px, calc(100% - 28px));
  margin: -20px auto 54px;
}

.main-tabs,
.sub-tabs {
  position: sticky;
  z-index: 4;
  display: flex;
  overflow-x: auto;
  border: 1px solid rgba(240, 106, 69, 0.18);
  background:
    linear-gradient(135deg, rgba(34, 20, 18, 0.96), rgba(98, 40, 30, 0.92));
  box-shadow: 0 18px 42px rgba(80, 34, 24, 0.18);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.main-tabs::-webkit-scrollbar,
.sub-tabs::-webkit-scrollbar {
  display: none;
}

.main-tabs {
  top: 0;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 9px;
  border-radius: 10px;
  transition: padding 180ms ease, gap 180ms ease;
}

.sub-tabs {
  top: 58px;
  z-index: 3;
  gap: 6px;
  margin: 8px 0 8px;
  padding: 8px;
  border-radius: 14px;
}

.main-tabs button,
.sub-tabs a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 248, 242, 0.82);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, padding 180ms ease, font-size 180ms ease;
}

.main-tabs button:active,
.sub-tabs a:active {
  transform: scale(0.97);
}

.main-tabs button {
  min-width: 124px;
  padding: 10px 18px;
  justify-content: center;
  font-size: 0.88rem;
}

.main-tabs button.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #c81724, #f06a45);
  box-shadow: 0 12px 24px rgba(200, 23, 36, 0.2);
}

.main-tabs.is-compact {
  gap: 6px;
  padding: 7px;
}

.main-tabs.is-compact button {
  min-width: 104px;
  padding: 8px 14px;
  font-size: 0.8rem;
}

.main-tabs.is-compact ~ .tab-panel.is-active .sub-tabs {
  top: 46px;
}

.sub-tabs a {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 248, 242, 0.82);
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.78rem;
  font-weight: 780;
}

.sub-tabs a:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 20px rgba(200, 23, 36, 0.14);
}

.tab-panel[data-tab-panel="drinks"] .sub-tabs {
  gap: 3px;
  padding: 5px;
}

.tab-panel[data-tab-panel="drinks"] .sub-tabs a {
  padding-inline: 8px;
}

.tab-panel {
  display: none;
  padding-top: 12px;
}

.tab-panel.is-active {
  display: block;
}

.section-title {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.section-title h2,
.menu-group h2 {
  margin: 0;
  color: #5f1717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.sticker-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
}

.sticker-row::-webkit-scrollbar {
  display: none;
}

.sticker-row.is-dragging {
  cursor: grabbing;
}

.sticker-row article {
  flex: 0 0 154px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.sticker-row img {
  width: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.sticker-row h3 {
  margin: 8px 0 3px;
  font-size: 0.98rem;
}

.sticker-row p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sticker-row strong,
.menu-line strong {
  color: var(--red);
  white-space: nowrap;
}

.menu-group {
  display: grid;
  gap: 10px;
  padding: 14px 0 2px;
}

.menu-group h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.menu-group h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 23, 23, 0.28), transparent);
}

.menu-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(234, 223, 218, 0.9);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 245, 0.9));
  box-shadow: 0 12px 26px rgba(55, 28, 23, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.menu-line:hover {
  border-color: rgba(200, 23, 36, 0.18);
  box-shadow: 0 18px 34px rgba(55, 28, 23, 0.12);
  transform: translateY(-2px);
}

.menu-line.with-photo {
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}

.menu-line img {
  grid-row: 1 / 3;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.menu-line > div {
  min-width: 0;
  align-self: start;
  padding: 4px 4px 0 0;
}

.menu-line h3 {
  margin: 0 0 4px;
  color: #1f1714;
  font-size: 1.06rem;
  line-height: 1.15;
}

.menu-line p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-line strong {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 950;
}

.restobar-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px clamp(18px, 5vw, 64px) 34px;
  color: var(--white);
  text-align: center;
  background: var(--charcoal);
}

.restobar-footer a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.business-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.business-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.business-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 9, 0.62);
  backdrop-filter: blur(8px);
}

.business-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.business-modal__panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.business-info-list {
  display: grid;
  gap: 10px;
}

.business-info-list article {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.business-info-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.business-info-list strong,
.business-info-list a {
  color: var(--charcoal);
  font-size: 0.98rem;
  font-weight: 900;
}

.business-info-list a {
  text-decoration: underline;
  text-decoration-color: rgba(200, 23, 36, 0.35);
  text-underline-offset: 3px;
}

.wifi-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wifi-row button,
.business-modal__close {
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.wifi-row button {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.business-modal__close {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
}

@media (max-width: 640px) {
  .menu-back {
    margin-bottom: 28px;
  }

  .restobar-logo {
    width: 62px;
    height: 62px;
  }

  .profile-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .profile-actions a,
  .profile-info-button {
    width: 38px;
    height: 38px;
  }

  .menu-line.with-photo {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  .menu-line img {
    width: 104px;
    height: 104px;
  }

  .menu-line.with-photo strong {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .menu-line:not(.with-photo) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .menu-line:not(.with-photo) strong {
    justify-self: start;
  }
}


