.restaurant-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  padding: 0;
  background: var(--color-dark);
  color: var(--color-surface);
}

.restaurant-detail-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 35, 41, 0.91), rgba(24, 35, 41, 0.68) 58%, rgba(24, 35, 41, 0.34));
  content: "";
  pointer-events: none;
}

.restaurant-detail-hero-cover {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
}

.restaurant-detail-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--restaurant-position, center);
}

.restaurant-detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
}

.restaurant-detail-heading {
  display: grid;
  align-items: end;
  padding: 24px 0 18px;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-identity {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 20px;
}

.detail-visual {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: hidden;
  place-items: center;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.restaurant-detail-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.restaurant-detail-logo img {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
}

.restaurant-detail-logo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--color-dark);
  font-size: 1.45rem;
  font-weight: 850;
}

.detail-badges {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 7px 12px;
  flex-wrap: wrap;
}

.detail-badges span {
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.8125rem;
  font-weight: 650;
}

.detail-badges span + span::before {
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.44);
  content: "•";
}

.detail-badges .demo-label {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.detail-badges .demo-label::before,
.detail-badges .open-status::before {
  display: none;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.open-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
}

.open-status.is-open i {
  background: #61d79b;
}

.restaurant-detail-heading h1 {
  max-width: 760px;
  margin: 0 0 6px;
  color: var(--color-surface);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.detail-identity > div:last-child > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.detail-actions .button {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 0.8125rem;
}

.detail-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(36, 52, 61, 0.4);
  color: var(--color-surface);
}

.detail-actions .button-secondary:hover {
  border-color: var(--color-surface);
  background: var(--color-surface);
  color: var(--color-dark);
}

.restaurant-section-nav {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  gap: 26px;
  scrollbar-width: none;
}

.restaurant-section-nav::-webkit-scrollbar {
  display: none;
}

.restaurant-section-nav a {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 720;
  white-space: nowrap;
}

.restaurant-section-nav a:hover,
.restaurant-section-nav a[aria-current="page"] {
  color: var(--color-surface);
}

.restaurant-section-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-primary);
  content: "";
}

@media (max-width: 900px) {
  .restaurant-detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .restaurant-detail-hero,
  .restaurant-detail-hero-content {
    min-height: 245px;
  }

  .restaurant-detail-hero::after {
    background: linear-gradient(180deg, rgba(24, 35, 41, 0.48), rgba(24, 35, 41, 0.94));
  }

  .restaurant-detail-heading {
    padding: 17px 0 13px;
    gap: 12px;
  }

  .detail-identity {
    align-items: flex-end;
    gap: 13px;
  }

  .detail-visual {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .restaurant-detail-heading h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .detail-identity > div:last-child > p {
    display: none;
  }

  .detail-badges {
    gap: 5px 8px;
  }

  .detail-badges > span:nth-child(2),
  .detail-badges > span:nth-child(3),
  .detail-badges .demo-label {
    display: none;
  }

  .detail-badges span + span::before {
    margin-right: 8px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-actions .button {
    padding-inline: 10px;
  }

  .detail-actions .button:nth-child(3) {
    display: none;
  }

  .restaurant-section-nav {
    gap: 22px;
  }

  .restaurant-section-nav a {
    min-height: 50px;
  }
}
