.ville-menu-app {
  width: 100%;
}

.ville-menu-loading,
.ville-menu-error {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  color: var(--vb-green, #173f2d);
}

.ville-menu-loading span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vb-red, #e23b2b);
  display: inline-block;
  animation: ville-bounce 0.9s infinite alternate;
}

.ville-menu-loading span:nth-child(2) { animation-delay: 0.15s; }
.ville-menu-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ville-bounce {
  to { transform: translateY(-10px); }
}

.ville-menu-toolbar {
  margin-bottom: 32px;
}

.ville-menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ville-menu-tabs button {
  appearance: none;
  border: 1px solid rgba(23, 63, 45, 0.22);
  border-radius: 999px;
  background: #fffaf1;
  color: #173f2d;
  cursor: pointer;
  font: 800 14px/1 "Manrope", sans-serif;
  letter-spacing: -0.01em;
  padding: 13px 17px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.ville-menu-tabs button:hover,
.ville-menu-tabs button:focus-visible,
.ville-menu-tabs button.is-active {
  background: #173f2d;
  color: #fffaf1;
  transform: translateY(-2px);
}

.ville-menu-tabs button span {
  opacity: 0.65;
  margin-left: 4px;
}

.ville-menu-hint {
  margin: 14px 0 0;
  color: #6d756f;
  font-size: 14px;
}

.ville-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ville-menu-card {
  background: #fff;
  border: 1px solid rgba(23, 63, 45, 0.13);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(23, 63, 45, 0.08);
  min-width: 0;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ville-menu-card:hover {
  box-shadow: 0 22px 54px rgba(23, 63, 45, 0.14);
  transform: translateY(-6px);
}

.ville-menu-card[hidden] {
  display: none;
}

.ville-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #eadfcf;
}

.ville-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.ville-menu-card:hover .ville-card-media img {
  transform: scale(1.045);
}

.ville-card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 999px;
  background: #f7c84b;
  color: #173f2d;
  font: 900 11px/1 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  padding: 9px 11px;
  text-transform: uppercase;
}

.ville-like {
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 54px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #173f2d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.ville-like:hover,
.ville-like:focus-visible {
  color: #e23b2b;
  transform: scale(1.07);
}

.ville-like.is-liked {
  background: #e23b2b;
  color: #fff;
}

.ville-like.has-error {
  animation: ville-shake 280ms linear 2;
}

@keyframes ville-shake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.ville-like svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ville-like.is-liked svg {
  fill: currentColor;
}

.ville-like-count {
  font: 900 12px/1 "Manrope", sans-serif;
}

.ville-card-body {
  padding: 20px 20px 22px;
}

.ville-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ville-card-heading h3 {
  color: #173f2d;
  font: 900 21px/1.1 "Manrope", sans-serif;
  letter-spacing: -0.04em;
  margin: 0;
}

.ville-card-heading strong {
  color: #e23b2b;
  flex: 0 0 auto;
  font: 900 17px/1.1 "Manrope", sans-serif;
}

.ville-card-body p {
  color: #6d756f;
  font: 500 14px/1.55 "Manrope", sans-serif;
  margin: 12px 0 0;
}

.ville-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.ville-card-flag {
  border-radius: 999px;
  background: #e4f0df;
  color: #173f2d;
  font: 800 10px/1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  padding: 7px 9px;
  text-transform: uppercase;
}

.ville-card-heat {
  background: #ffe1db;
  color: #a72c20;
}

@media (max-width: 1023px) {
  .ville-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ville-menu-tabs {
    flex-wrap: nowrap;
    margin-right: -18px;
    overflow-x: auto;
    padding: 0 18px 8px 0;
    scrollbar-width: none;
  }

  .ville-menu-tabs::-webkit-scrollbar {
    display: none;
  }

  .ville-menu-tabs button {
    flex: 0 0 auto;
  }

  .ville-menu-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ville-menu-card {
    border-radius: 18px;
  }
}
