/* ===========================
   Home Page Styles
   =========================== */

/* HERO */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  transition: var(--transition);
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232,68,10,0.10), var(--shadow-md);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 16px;
  flex-shrink: 0;
}

.hero-input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.hero-input:focus-within {
  box-shadow: none !important;
  border: none !important;
}

.hero-input input {
  height: 40px;
}

/* Food Categories */
.food-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.food-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.food-cat:hover { transform: translateY(-2px); }

.food-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition);
}

.food-cat:hover .food-cat-icon {
  background: var(--primary-bg);
  box-shadow: 0 4px 12px rgba(232,68,10,0.2);
}

.food-cat span:last-child {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-medium);
}

/* Hero Map */
.hero-map { position: relative; }

.map-preview {
  position: relative;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-preview iframe { height: 100%; }

.map-overlay-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
}

.map-overlay-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.map-overlay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.map-overlay-item img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

/* Features Bar */
.features-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Cards Scroll */
.cards-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Food Grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.food-tag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.food-tag-item:hover { transform: translateY(-3px); }

.food-tag-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.food-tag-item:hover img { box-shadow: var(--shadow-md); }

.food-tag-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Collections */
.collections-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: 240px;
  gap: 16px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: var(--transition);
}

.collection-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collection-card:hover img { transform: scale(1.08); }

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 4px;
}

.collection-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.collection-count {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 38px; }
  .cards-scroll { grid-template-columns: repeat(4, 1fr); }
  .food-grid { grid-template-columns: repeat(4, 1fr); }
  .collections-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .collection-card.big { grid-column: span 2; height: 240px; }
  .collection-card { height: 180px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; padding: 32px 16px; }
  .hero-map { display: none; }
  .hero-title { font-size: 30px; }
  .hero-search { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .hero-divider { display: none; }
  .hero-location { padding: 8px 0; }
  .cards-scroll { grid-template-columns: repeat(2, 1fr); }
  .food-grid { grid-template-columns: repeat(4, 1fr); }
  .collections-grid { grid-template-columns: 1fr; }
  .collection-card.big, .collection-card { height: 200px; grid-column: auto; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
