/* Homepage hero */
.home-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
}

.home-hero__content {
  flex: 1 1 280px;
  max-width: 520px;
}

.home-hero__content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.home-hero__subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.home-hero__search {
  flex: 1 1 320px;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.home-hero__search-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.home-hero__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
}

.home-hero__input::placeholder {
  color: #aaa;
}

.home-hero__submit {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: #e23744;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.home-hero__submit:hover {
  background: #c92f3b;
}

/* Homepage sections */
.home-section {
  padding: 1.5rem 0 2rem;
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.home-section__header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.home-section__header a {
  color: #e23744;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.home-section__header a:hover {
  text-decoration: underline;
}

/* City cards */
.home-city-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.home-city-card {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}

.home-city-card:hover {
  color: inherit;
  text-decoration: none;
}

.home-city-card__image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.home-city-card__image-wrap--placeholder {
  background: linear-gradient(145deg, #ececec 0%, #d8d8d8 100%);
}

.home-city-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.home-city-card:hover .home-city-card__image {
  transform: scale(1.03);
}

.home-city-card__pin {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.home-city-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
  color: #1a1a1a;
}

.home-city-card__count {
  font-size: 0.875rem;
  color: #e23744;
  margin: 0;
  font-weight: 500;
}

/* Cuisine grid — 8 per row on desktop; homepage shows 16 (2 rows) */
.home-cuisine-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1.25rem 0.75rem;
}

.home-cuisine-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  margin: 0 auto;
}

.home-cuisine-card:hover {
  color: inherit;
  text-decoration: none;
}

.home-cuisine-card__icon {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.home-cuisine-card:hover .home-cuisine-card__icon {
  transform: translateY(-2px);
}

.home-cuisine-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-cuisine-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.home-cuisine-card__count {
  font-size: 0.8125rem;
  color: #e23744;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .home-city-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .home-hero__content,
  .home-hero__search {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .home-hero.container,
  .home-section.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-cuisine-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-cuisine-card__icon {
    max-width: 100px;
  }
}

@media (max-width: 767.98px) {
  .home-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cuisine-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 0.75rem;
  }

  .home-cuisine-card__icon {
    max-width: 88px;
  }
}

@media (max-width: 479.98px) {
  .home-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-cuisine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.5rem;
  }

  .home-cuisine-card__icon {
    max-width: 80px;
  }
}
