html { scroll-behavior: smooth; }

.page-section { display: none; }
.page-section.active { display: block; }

section.bg-white.shadow-sm { background-color: #f9fafb; box-shadow: none; }

.filter-select, .filter-input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.filter-select:focus, .filter-input:focus {
  box-shadow: 0 0 0 2px #1e293b33;
  outline: none;
}

/* Responsive grid */
.grid-section {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: stretch;          /* NEW: ensures equal card height per row */
}
@media (min-width: 640px) { .grid-section { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-section { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-section { grid-template-columns: repeat(4, 1fr); } }

.meal-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  display: flex;                 /* keep content vertically consistent */
  flex-direction: column;
}
.meal-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.meal-card img { width: 100%; height: 12rem; object-fit: cover; }
.meal-card .p-4 { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.meal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,41,59,0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.meal-card:hover .meal-overlay { opacity: 1; }

.meal-overlay a {
  margin-top: .5rem;
  background: #fff;
  color: #1e293b;
  padding: .4rem .8rem;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s;
}
.meal-overlay a:hover { background: #e2e8f0; }

.nav-link[aria-current="page"] {
  color: #0f172a;
  background-color: #e0edff;
  border-radius: 999px;
}



.map-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.9); /* dark slate */
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #e5e7eb; /* light text */
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.map-icon span {
  font-size: 0.75rem;
}

.map-icon:hover {
  background: rgba(30, 64, 175, 1); /* a bit brighter */
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}


.map-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #e5e7eb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.map-icon span {
  font-size: 0.75rem;
}

.map-icon:hover {
  background: rgba(30, 64, 175, 1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.nav-link[aria-current="page"] {
  color: #0f172a;
  background-color: #e0edff;
  border-radius: 999px;
}
