:root {
  --hon-bg: #f5f6f8;
  --hon-text: #1f2328;
  --hon-muted: #6b7280;
  --accent: #f5c542;
  --hon-accent: var(--accent);
  --hon-accent-soft: #fff1f0;
  --hon-highlight: #f8d34e;
  --hon-card: #ffffff;
  --hon-border: #edf0f5;
  --hon-radius-lg: 22px;
  --hon-radius-md: 16px;
  --hon-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

body {
  background: var(--hon-bg);
  color: var(--hon-text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container,
.container-fluid {
  max-width: 1200px;
}

.hon-card,
.hon-card * {
  max-width: 100%;
}

.hon-section {
  margin-bottom: 2.5rem;
  overflow-wrap: anywhere;
}

.card-title,
.hon-title {
  word-break: break-word;
}

.input-group {
  flex-wrap: nowrap;
}

.input-group .hon-btn-primary {
  flex: 0 0 auto;
}

a {
  color: inherit;
}

.hon-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--hon-border);
  padding: 0.85rem 1.25rem;
}

.hon-topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.hon-topbar__brand {
  display: flex;
  flex-direction: column;
}

.hon-topbar__nav {
  justify-content: center;
  gap: 1.5rem;
}

.hon-topbar__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hon-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.hon-tagline {
  font-size: 0.85rem;
  color: var(--hon-muted);
}

.hon-search-btn {
  border-radius: 999px;
  border: 1px solid var(--hon-border);
  background: var(--hon-accent-soft);
  color: var(--hon-text);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
}

.hon-page {
  padding-top: 1.5rem;
}

.hon-title {
  font-size: 2rem;
  font-weight: 700;
}

.hon-subtitle {
  color: var(--hon-muted);
}

.hon-card {
  border: 1px solid var(--hon-border);
  border-radius: var(--hon-radius-lg);
  background: var(--hon-card);
  box-shadow: var(--hon-shadow);
  overflow: hidden;
}

.dish-card__spot {
  font-weight: 600;
  color: var(--hon-text);
}

.dish-card__category {
  font-size: 0.85rem;
  color: var(--hon-muted);
}

.dish-card__spot,
.dish-card__category {
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.dish-card__media {
  height: clamp(110px, 22vw, 160px);
}

.dish-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-card__rating {
  position: absolute;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.dish-card .card-body {
  padding-bottom: 3rem;
  min-width: 0;
}

.dish-card__rating.rating--low {
  background: #ef4444;
  color: #ffffff;
}

.dish-card__rating.rating--mid {
  background: #f97316;
  color: #ffffff;
}

.dish-card__rating.rating--high {
  background: #f5d049;
  color: #1f2328;
}

.dish-card__rating.rating--none {
  background: #e5e7eb;
  color: #4b5563;
}

.hon-card-sm {
  border-radius: var(--hon-radius-md);
}

.hon-btn-primary {
  background: var(--hon-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.hon-btn-outline {
  border: 1px solid var(--hon-border);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  background: #fff;
}

.hon-badge {
  background: var(--hon-accent-soft);
  color: var(--hon-accent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
}

.hon-badge--yellow {
  background: var(--hon-highlight);
  color: #111827;
}

.hon-input {
  border-radius: 999px;
  border: 1px solid var(--hon-border);
  padding: 0.75rem 1rem;
}

.hon-filter {
  border: 1px solid var(--hon-border);
  border-radius: var(--hon-radius-md);
  background: #fff;
  padding: 0.75rem 1rem;
}

.hon-filter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}

@media (max-width: 576px) {
  .home-page .hon-filter .form-label,
  .home-page .hon-filter .form-text,
  .home-page .hon-filter .form-check-label,
  .search-page .hon-filter .form-label,
  .search-page .hon-filter .form-text,
  .search-page .hon-filter .form-check-label {
    font-size: calc(1rem - 2px);
  }
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dish-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.dish-grid__item {
  min-width: 0;
}

.dish-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: var(--hon-radius-lg);
  border: 1px solid var(--hon-border);
  color: inherit;
}

.dish-row__img {
  width: 64px;
  flex: 0 0 64px;
}

.dish-row__img--fixed {
  height: 56px;
}

.dish-row__img img {
  width: 64px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--hon-radius-md);
  display: block;
}

.js-marquee {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.js-marquee .marquee-text {
  display: inline-block;
  padding-right: 16px;
  white-space: nowrap;
  max-width: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.js-marquee--inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.js-marquee--inline .marquee-text--flex {
  flex: 1;
  min-width: 0;
}

.js-marquee.is-overflow .marquee-text {
  animation: marquee-scroll var(--marquee-duration, 10s) linear infinite;
}

.js-marquee.is-paused .marquee-text {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-marquee.is-overflow .marquee-text {
    animation: none;
  }

  .js-marquee {
    text-overflow: ellipsis;
  }

  .js-marquee .marquee-text {
    animation: none !important;
  }
}

@media (max-width: 576px) {
  .dish-grid {
    gap: 3px;
  }

  .search-page .row.g-3 {
    --bs-gutter-x: 3px;
    --bs-gutter-y: 3px;
  }
}

.dish-row__body {
  flex: 1;
  min-width: 0;
}

.search-page .card-title {
  min-width: 0;
}

.dish-row__rating {
  flex: 0 0 auto;
  margin-left: auto;
}

.dish-row .dish-card__rating {
  position: static;
}

.dish-detail .review-card {
  position: relative;
  overflow: visible;
  background: var(--hon-card);
}

.dish-detail .review-card .border-top {
  position: relative;
  z-index: 0;
}

.dish-detail .review-card .review-text {
  position: relative;
  z-index: 1;
  display: block;
}

.dish-detail .review-card .review-text__content {
  display: block;
  max-height: var(--review-text-collapsed-height, 6em);
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.dish-detail .review-card .review-text.expanded .review-text__content {
  max-height: none;
}

    padding-left: calc(1rem + 10px);
    padding-right: calc(1rem + 10px);
    padding-left: calc(1rem + 10px);
    padding-right: calc(1rem + 10px);

.breadcrumb-item + .breadcrumb-item::before {
  color: #9aa0a6;
}

.breadcrumb-item a {
  color: #9aa0a6;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #6c757d;
}

.breadcrumb-item.active {
  color: #FFEA82;
}

.breadcrumb-surface {
  background-color: var(--hon-accent-soft);
  border: 1px solid var(--hon-border);
  box-shadow: none;
}

.hon-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #2f80ed;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  margin-left: 6px;
}

@media (max-width: 991.98px) {
  .breadcrumb {
    display: none;
  }

  .hon-topbar__actions,
  .hon-topbar__nav,
  .hon-tagline {
    display: none;
  }
}

.expert-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.expert-avatar {
  border: 2px solid var(--hon-border);
}

.expert-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffe066;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

.review-entry-input {
  height: 58px;
  font-size: 1.1rem;
  border-radius: 16px;
}


.search-form .form-control,
#searchForm .form-control {
  border-radius: 10px;
  height: 48px;
}

.search-form .btn,
#searchForm .btn,
#searchForm .hon-btn-primary {
  border-radius: 10px;
  height: 48px;
}

.review-entry-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 320px;
  overflow-y: auto;
}

.dish-slider {
  position: relative;
  overflow: hidden;
}

.dish-slider__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.dish-slider__slide {
  min-width: 100%;
}

.dish-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-slider__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.dish-slider__control--prev {
  left: 12px;
}

.dish-slider__control--next {
  right: 12px;
}

.review-entry-results .list-group-item {
  cursor: pointer;
}

.hon-card--overflow-visible {
  overflow: visible;
}

.review-autocomplete {
  position: relative;
}

.modal-content,
.modal-body {
  overflow: visible;
}

@media (max-width: 991.98px) {
  .hon-topbar__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hon-topbar__nav {
    display: none;
  }

  .hon-topbar__actions {
    width: 100%;
  }

  .hon-topbar__auth-user {
    display: none;
  }

  .hon-topbar--profile .hon-topbar__auth-user {
    display: inline-flex;
  }
}

.hon-dish-card .card-body {
  padding-left: 1.5rem;
}

.hon-btn-rect {
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
}

.hon-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--tg-nav-bg, #F4F4F2);
  border-top: 1px solid var(--hon-border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  z-index: 1030;
  transition: transform 0.2s ease;
}

.hon-bottom-nav.hon-bottom-nav--hidden {
  transform: translateY(100%);
}

@media (max-width: 991.98px) {
  .hon-bottom-nav {
    display: flex;
    align-items: center;
  }

  .hon-bottom-nav .nav-items {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
  }

  .hon-bottom-nav .nav-link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    color: #9CA3AF;
    text-decoration: none;
  }
}

@media (min-width: 992px) {
  .hon-bottom-nav {
    display: none !important;
  }
}


.hon-bottom-nav .nav-link:focus,
.hon-bottom-nav .nav-link:focus-visible {
  outline: none;
  box-shadow: none;
}

.hon-bottom-nav .nav-icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.hon-bottom-nav .nav-link.active {
  color: #FFB900;
}

.hon-bottom-nav .nav-link.active .nav-icon--squareplus .nav-icon__bg {
  fill: #FFB900;
  stroke: #FFB900;
}

.hon-bottom-nav .nav-link.active .nav-icon--squareplus path {
  stroke: #FFFFFF;
}

.hon-card-flag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #ffb020;
  color: #1f2328;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.review-fab {
  position: fixed;
  right: 16px;
  bottom: 96px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hon-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
  z-index: 1040;
}

.dish-main-image {
  max-height: 40vh;
  width: 100%;
  height: auto;
}

.dish-slider-img {
  height: 40vh;
  object-fit: contain;
  background: #f8f9fa;
}

.review-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f9fa;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.review-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: #f8f9fa;
}

.review-image-thumb:hover {
  transform: scale(1.02);
}

.review-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1.5rem;
}

.review-lightbox.show {
  display: flex;
}

.review-lightbox img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.review-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  cursor: pointer;
}

.review-lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  cursor: pointer;
}

.review-lightbox__nav--prev {
  left: 1.5rem;
}

.review-lightbox__nav--next {
  right: 1.5rem;
}

.review-lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.profile-page .profile-review-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-page .profile-review-spot {
  flex: 1;
}

.profile-page .profile-review-rating {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .profile-page .hon-topbar {
    display: none;
  }

  .profile-page .hon-page {
    margin-top: 0;
  }
}


[data-app="tg"] {
  --tg-safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

[data-app="tg"] .container,
[data-app="tg"] .hon-page {
  min-height: 0;
}

[data-app="tg"] body,
body[data-app="tg"] {
  padding-bottom: calc(64px + var(--tg-safe-area-bottom));
}

[data-app="tg"] .app-back,
[data-app="tg"] .btn-back,
[data-app="tg"] .back-link {
  display: none !important;
}

[data-slider],
.dish-slider,
.dish-slider__track {
  touch-action: pan-x;
}


.review-flow-container {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hon-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hon-border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.star-rating .star.is-filled {
  color: var(--accent);
}
