/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* === NAVBAR === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f5f53;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo img {
  height: 120px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffcc00;
}

/* === Hamburger Menu (Mobile) === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

#nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #0f5f53;
  padding: 20px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 20px 40px;
  border-radius: 15px;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.3rem;
}

/* === Sections === */
.section {
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  background: #fafafa;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0f5f53;
}

/* === Cards === */
.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #c1ff72;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  width: 280px;
  transition: transform 0.3s;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-5px);
}

/* === Carousel === */
.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 20px auto;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel .card {
  flex: 0 0 25%;
}

@media (max-width: 768px) {
  .carousel .card {
    flex: 0 0 50%;
  }
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #ffcc00;
  border: none;
  cursor: pointer;
  z-index: 10;
  background: none;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* === Highlight Section (Weekly Chef / Recipe) === */
.highlight .card,
#recipe .card {
  margin: 0 auto;
  max-width: 500px;
  text-align: center;
  background: #c1ff72;
}

.highlight .card img,
#recipe .card img {
  max-width: 400px;
  max-height: 280px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

/* === Footer === */
footer {
  background: #0f5f53;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

footer .footer-logo {
  height: 60px;
  margin-bottom: 10px;
}

/* === Filter Section (City + Region Dropdowns + Results) === */
.filter-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

/* Left side fixed width */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 220px;      /* Fixed width */
  min-width: 220px;  /* Prevent shrinking */
  text-align: left;
  flex-shrink: 0;    /* Do not shrink when results load */
}

/* Right side flexible */
.filter-results {
  flex: 1; /* Take remaining space */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  max-width: 700px;
}
