/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #1a1a2e;
  --color-primary-light: #2c2c44;
  --color-accent: #e63946;
  --color-accent-hover: #d62828;
  --color-gold: #f3c623;
  --color-gold-light: #fef9e7;
  --color-background: #f8f9fa;
  --color-surface: #ffffff;
  --color-text-main: #2b2d42;
  --color-text-muted: #8d99ae;
  --color-border: #edf2f4;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bg-light {
  background-color: var(--color-surface);
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
button,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background-color: var(--color-background);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(243, 198, 35, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(243, 198, 35, 0.6);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar.scrolled .brand,
.navbar.scrolled .nav-links a {
  color: var(--color-primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  transition: color var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn-primary) {
  position: relative;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:not(.btn-primary):hover {
  color: white;
}

.navbar.scrolled .nav-links a:not(.btn-primary):hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  /* Hero background */
  background: url('images/hero_dining_1772763190597.png') center/cover no-repeat;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-badge i {
  color: var(--color-gold);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: white;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
}

/* Search Bar Component */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.search-bar i {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-left: 1rem;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: var(--color-text-main);
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
}

.search-bar button {
  border-radius: 50px;
  padding: 1rem 2rem;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.filter-tag:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   General Layout Sections
   ========================================================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.section-header {
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.section-header.center {
  text-align: center;
  align-items: center;
}

.section-header h2 {
  font-size: 2.5rem;
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.sort-filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-sm);
}

.dropdown-filter {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: white;
  cursor: pointer;
  outline: none;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* List View Styles for Compact Cards */
.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-view .restaurant-card {
  flex-direction: row;
  height: 140px;
}

.list-view .card-image-wrap {
  width: 200px;
  height: 100%;
}

.list-view .card-content {
  padding: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.list-view .card-meta {
  width: 100%;
  margin-bottom: 0.25rem;
}

.list-view h3 {
  font-size: 1.25rem;
  width: 100%;
  margin-bottom: 0.25rem;
}

.list-view .rating {
  margin-bottom: 0;
}

.list-view .location {
  margin-bottom: 0;
}

.list-view .card-actions {
  flex-direction: row;
  align-items: center;
  margin-top: 0;
  width: auto;
}

.list-view .action-row button {
  padding: 0.5rem 1rem;
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

/* Hidden Class for Pagination */
.d-none {
  display: none !important;
}

/* ==========================================================================
   Restaurant Cards
   ========================================================================== */
.restaurant-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.restaurant-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.featured-card {
  border: 2px solid var(--color-gold);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.featured-badge {
  background: var(--color-gold);
  color: var(--color-primary);
}

.trending-badge {
  background: var(--color-accent);
  color: white;
}

.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.restaurant-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.status-indicator {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.status-indicator.open {
  background: rgba(46, 204, 113, 0.9);
  color: white;
}

.status-indicator.closed {
  background: rgba(43, 45, 66, 0.8);
  color: white;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.rating i {
  color: var(--color-gold);
  font-size: 1.1rem;
}

.rating .score {
  font-weight: 700;
  color: var(--color-text-main);
}

.rating .reviews {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-row {
  display: flex;
  gap: 0.5rem;
}

.action-row .btn-outline {
  flex: 1;
}

/* ==========================================================================
   Category Grid Section
   ========================================================================== */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 130px;
  height: 130px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.category-card i {
  font-size: 3rem;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.category-card span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--color-primary);
}

.category-card:hover i {
  color: white;
  transform: scale(1.1);
}

.category-card:hover span {
  color: white;
}

/* ==========================================================================
   Guides / SEO Blog Section
   ========================================================================== */
.guide-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  height: 350px;
  display: flex;
  align-items: flex-end;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.guide-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.guide-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  color: white;
  width: 100%;
}

.guide-content h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.guide-content p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--color-gold);
}

.read-more i {
  transition: transform var(--transition-fast);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-section {
  padding: 2rem 0;
}

.map-container {
  width: 100%;
  padding: 0 var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.map-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Monetization Section
   ========================================================================== */
.monetization-section {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xl) 0;
}

.monetization-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.monetization-text h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.monetization-text p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.benefits-list {
  margin-bottom: 2rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.benefits-list i {
  color: var(--color-gold);
  font-size: 1.5rem;
}

.pricing-tier {
  margin-bottom: 2rem;
}

.price-val {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-gold);
}

.period {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-left: 0.5rem;
}

.monetization-image {
  position: relative;
}

.mockup-card {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  transform: rotate(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.mockup-card img {
  border-radius: var(--radius-sm);
}

.mockup-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--color-gold);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transform: rotate(-5deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #0f0f1c;
  /* darker shade for footer */
  color: white;
  padding-top: var(--spacing-xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links a {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem var(--spacing-md);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simple fade-in utility class for JS scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 900px) {
  .monetization-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .benefits-list li {
    justify-content: center;
  }

  .mockup-card {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple mobile hide for now */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .search-bar input {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .search-bar button {
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }
}