@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap");

/* =========================================================
1. ROOT / RESET
========================================================= */

:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --secondary: #023e7d;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;

  --text: #1f2937;
  --text-dark: #111827;
  --text-muted: #64748b;
  --text-light: #9ca3af;

  --bg: #f5f7fb;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;

  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);

  --transition: 0.25s ease;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

h3, h4 {
  text-align: center;
}

/* =========================================================
2. NAVBAR
========================================================= */

.main-navbar {
  height: 75px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  color: var(--secondary);
  font-size: 18px;
  font-weight: 700;
}

.logo i {
  color: var(--secondary);
  font-size: 30px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #334155;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  background: #f1f5f9;
}

.signup-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* USER DROPDOWN */
.user-dropdown { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-trigger img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-trigger span { font-size: 14px; color: #334155; }

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  display: none;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 9999;
}

.user-dropdown:hover .dropdown-menu-custom { display: flex; }
.dropdown-menu-custom a { padding: 12px 15px; color: #334155; }
.dropdown-menu-custom a:hover { background: #f1f5f9; }

/* =========================================================
3. HERO SECTION & SEARCH BAR
========================================================= */

.hero-section {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #101828;
}

.hero-overlay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 52px;
  font-weight: 800;
}

.hero-content p {
  margin-bottom: 35px;
  color: #e5e7eb;
  font-size: 18px;
}
form.hero-search {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  padding: 10px !important;
  border-radius: 16px !important;
  max-width: 780px !important;
  margin: 0 auto !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

form.hero-search input {
  flex: 2 !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 15px !important;
  background: var(--white) !important;
  color: #333 !important;
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}

form.hero-search .hero-select {
  flex: 1.2 !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 12px !important;
  background: var(--white) !important;
  color: #333 !important;
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}

form.hero-search button[type="submit"] {
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 120px !important;
  height: 48px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

form.hero-search .nearby-btn {
  width: 110px !important;
  height: 45px !important;
  background: var(--success) !important;
  color: var(--white) !important;
  border-radius: 10px !important;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* =========================================================
4. HOME CONTAINER & LAYOUT
========================================================= */

.home-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  width: 100%;
  max-width: 1400px;
  margin: 50px auto;
  padding: 20px 0;
}

/* =========================================================
5. STATS SECTION
========================================================= */

.stats-section {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.stat-card {
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover { transform: translateY(-8px); }

.stat-card i {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 35px;
  display: block;
}

.stat-card h3 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 32px;
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  color: var(--text-muted);
}

/* =========================================================
6. POPULAR CITIES
========================================================= */

.popular-cities {
  padding: 50px 20px;
  background: var(--bg-light);
}

.section-title {
  margin-bottom: 40px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 36px;
  font-weight: 700;
}

.section-title p {
  color: #6b7280;
  font-size: 16px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.city-card {
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: block;
}

.city-card:hover { transform: translateY(-5px); }

.city-card i {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 35px;
  display: block;
}

.city-card h4 {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-dark);
}

.city-card span { color: var(--text-muted); }

/* =========================================================
7. TOP RATED RESTAURANTS
========================================================= */

.top-rated-section {
  padding: 60px 20px;
}

.top-rated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.top-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.top-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.top-card-body {
  padding: 20px;
  text-align: center;
}

.top-card h4 { margin-bottom: 10px; font-size: 20px; font-weight: 700; }

.top-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #2563eb;
  color: var(--white);
  border-radius: 10px;
}

/* =========================================================
8. REVIEWS
========================================================= */

.latest-reviews {
  padding: 60px 20px;
  background: var(--bg-light);
}

.reviews-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.review-card {
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================================================
9. RESTAURANT CARDS & GRID
========================================================= */

.restaurants-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.place-card {
  width: 100% !important;
  min-height: 200px;
  display: flex;
  background: var(--white);
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
  transition: var(--transition);
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

.place-card__img {
  width: 250px;
  min-width: 250px;
}

.place-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-card__content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .top-rated-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .place-card { flex-direction: column; }
  .place-card__img { width: 100%; height: 200px; }
  form.hero-search { flex-wrap: wrap !important; }
  .top-rated-grid { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: 1fr; }
}
/* =========================================================
   MODERN RESTAURANT GRID CARDS DESIGN
   ========================================================= */

.restaurants-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 25px !important;
  margin-top: 25px !important;
}

.modern-rest-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modern-rest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f1f5f9;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-name {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: left !important;
  margin: 0 0 10px 0 !important;
}

.card-location-info, .card-street-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

.card-location-info i, .card-street-info i {
  color: #2563eb;
  width: 16px;
}

.card-short-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 12px 0 18px 0;
  flex: 1;
}

.card-action-footer {
  display: flex;
  gap: 10px;
}

.btn-card-primary {
  flex: 2;
  height: 40px;
  background: #ea580c;
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-card-primary:hover {
  background: #c2410c;
}

.btn-card-secondary {
  flex: 1;
  height: 40px;
  background: #f1f5f9;
  color: #334155 !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-card-secondary:hover {
  background: #e2e8f0;
}
.nav-notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #023e7d;
    font-size: 18px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.nav-notification-btn:hover {
    background: #ea580c;
    color: #ffffff;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}