:root {
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { height: 100%; scroll-behavior: smooth; }

/* ---------- HERO ---------- */
.hero {
  height: 100vh;
  width: 100%;
  background: url("https://images.unsplash.com/photo-1620475655006-0f0c6a10a221?q=80&w=2148&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
    center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.22) 60%, rgba(0,0,0,0.08) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 16px 0 max(52px, 9vw);
  max-width: 680px;
}

/* Decorative ring — bottom-right corner */
.hero-deco-ring {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.13);
  right: -90px;
  bottom: -130px;
  z-index: 2;
  pointer-events: none;
}
.hero-deco-ring::before {
  content: "";
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-deco-ring::after {
  content: "";
  position: absolute;
  inset: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Decorative dot grid — top-right */
.hero-deco-dots {
  position: absolute;
  top: 72px;
  right: 88px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

/* Eyebrow label above title */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.9rem, 7vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* ---------- SCROLL HINT ---------- */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0.8;
  z-index: 2;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

/* ---------- TRENDING SECTION ---------- */
.top-rated {
  position: relative;
  padding: 80px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  text-align: center;
  z-index: 2;
}

.top-rated h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #000;
}

/* Cards Row */
#topDishes {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 24px;
flex-wrap: nowrap;
position: relative;
z-index: 3;
margin-top: 24px; /* adds space between title and cards */
margin-bottom: 0px; /* slight overlap on map */
}

@media (max-width: 768px) {
  #topDishes {
    flex-wrap: wrap;
    margin-bottom: -40px;
  }
}

/* ---------- DISH CARDS ---------- */
.dish-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}

.dish-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

/* Banner strip */
.dish-banner {
  height: 45px;
  background: linear-gradient(135deg, #FF6B5A, #E14D42);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Content */
.dish-content {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.dish-name {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: -28px;
  color: #111;
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dish-meta {
  display: flex;
  gap: 12px;
  color: #444;
  font-size: 1rem;
  margin-top: 4px;
}

.dish-rating {
  font-weight: 600;
  font-size: 1.05rem;    /* slightly larger */
}

.dish-count {
  color: #777;
  font-size: 1rem;
}

.dish-quote {
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  border-top: 1px solid rgba(0,0,0,0.07);
  margin-top: 8px;
  padding-top: 8px;
  line-height: 1.4;
}

/* Hover dropdown (expanding description) */
.dish-card {
  transition: all 0.35s ease;
  height: 120px;
  max-height: 180px;
  width: 300px; /* ✅ wider cards */
  max-width: 95vw;
}

.dish-card:hover {
  height: 320px;
  max-height: 320px;
}

.dish-dropdown {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.3s ease;
  padding: 14px 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 1.05rem;     /* bigger heading */
}

.dish-card:hover .dish-dropdown {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown content */
.dish-dropdown h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.dish-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dish-dropdown li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 1rem;
  color: #333;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.dish-dropdown li:first-child {
  border-top: none;
}

.dish-dropdown .muted {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ---------- MAP SECTION ---------- */
.trending-map {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  z-index: 1;
}

.trending-map h2 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #000;
}

/* Map styling */
#trendingMap {
  position: relative;
  height: 420px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #f8f8f8;
  z-index: 1;
}

/* Gradient fade at top for smoother transition */
#trendingMap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,1), transparent);
  z-index: 2;
}

/* ---------- FLOATING ADD DISH BUTTON ---------- */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  text-decoration: none;
  z-index: 50;
  background: #FF6B5A;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.3s ease;
}

.fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  background: #E14D42;
}

/* Alternate mode for dark backgrounds */
.fab.invert {
  background: #fff;
  color: #111;
}

/* ---------- Inline Trending Layout (Cards Left, Map Right) ---------- */
.trending-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 24px;
}

.trending-left {
  flex: 0 0 360px; /* fixed width for stacked cards */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.trending-title-row h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.refresh-btn:hover {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.22);
  color: #111;
}

.refresh-btn svg {
  width: 16px;
  height: 16px;
}

@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.refresh-btn.spinning svg {
  animation: spin-once 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-left h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: left;
}

#topDishes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch; /* ✅ this makes all flex items the same height */
}


.dish-card {
  width: 100%;
  max-width: 360px;
}

/* Map area */
.trending-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.trending-right h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: left;
}

#trendingMap {
  width: 100%;
  height: 600px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Responsive layout */
@media (max-width: 1000px) {
  .trending-layout {
    flex-direction: column;
  }

  .trending-left,
  .trending-right {
    width: 100%;
  }

  #trendingMap {
    height: 420px;
  }
}


/* ---------- FOOTER ---------- */
.footer {
  margin-top: 80px;
  padding: 32px 16px;
  background: #111;
  color: #ccc;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  opacity: 0.8;
}

/* ---------- CUISINE FILTER BAR ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 40px auto 10px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-bar button {
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease;
}

.filter-bar button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.filter-bar button.active {
  background: #FF6B5A;
  border-color: #FF6B5A;
  color: #fff;
}

/* Restaurant name: looks like normal text, but clickable */
.rest-chip{
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;

  cursor: pointer;
  user-select: none;

  border-bottom: 1px solid transparent; /* only shows on hover/active */
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.rest-chip:hover{
  border-bottom-color: rgba(0,0,0,0.35);
}

.rest-chip.active{
  border-bottom-color: rgba(0,0,0,0.65);
  opacity: 0.85;
}




/* ---------- HERO SEARCH BAR ---------- */
.hero-search {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(580px, 90vw);
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.45);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search-bar:focus-within {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 6px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.55);
}

.hero-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #fff;
  font-family: inherit;
  padding: 0;
  caret-color: #fff;
}

.hero-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- HERO DROPDOWN ---------- */
.hero-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: none;
  width: min(580px, 90vw);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 100;
}

.hero-dropdown-item {
  padding: 13px 22px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
  font-weight: 500;
}

.hero-dropdown-item + .hero-dropdown-item {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-dropdown-item:hover {
  background: rgba(255,255,255,0.15);
}

/* ---------- RESET BUTTON ---------- */
#resetSearch {
  display: none;
  margin-bottom: 12px;
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background 0.2s ease;
}

#resetSearch:hover {
  background: rgba(0,0,0,0.05);
}

/* ---------- MAP SEARCH BAR ---------- */
.map-search-wrapper {
  margin-bottom: 10px;
}

.map-search-bar {
  width: 420px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.map-search-bar:focus {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.map-search-bar::placeholder {
  color: rgba(0, 0, 0, 0.38);
}