* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: #f8f8f8; color: #333; padding-bottom: 0px; }

header {
  position: sticky; top: 0; z-index: 10; background: #fff;
}

.desktop-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background-color: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.desktop-header .logo {
  font-size: 30px; font-weight: 700; color: #e23744;
}

.desktop-header .logo span { color: #23861d; }

.location-search {
  display: flex; align-items: center; background-color: #fff;
  border-radius: 8px; border: 1px solid #ddd;
  padding: 13px 12px; flex: 1; max-width: 600px;
}

.location-box {
  display: flex; align-items: center; font-size: 14px; margin-right: 10px;
}

.location-box img { width: 18px; margin-right: 5px; }

.divider {
  height: 20px; width: 1px; background-color: #ccc; margin-right: 10px;
}

.search-input {
  flex: 1; border: none; font-size: 15px; outline: none; background-color: transparent;
}

.auth {
  align-self: flex-end;
  font-size: 14px;
  display: block;
}

.auth a {
  text-decoration: none; margin: 0 10px; color: #e23744; font-weight: 600;
}

/* ✅ SCROLL FIX */
.scroll-wrapper {
  position: relative;
  background: #fff;
  padding: 12px 1px;
  overflow-x: auto;                 /* scroll parent */
  -webkit-overflow-scrolling: touch;
}

.scroll-menu {
  display: inline-flex;             /* inline-flex ensures width expands */
  gap: 12px;
  min-width: max-content;           /* force content wider than screen */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;         /* IE/Edge */
  scrollbar-width: none;            /* Firefox */
}

.scroll-menu::-webkit-scrollbar { height: 6px; }
.scroll-menu::-webkit-scrollbar-thumb {
  background: #ccc; border-radius: 10px;
}

.scroll-item {
  flex: 0 0 auto;
  width: 90px;
  scroll-snap-align: start;
  text-align: center;
}

.scroll-item img {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; margin-bottom: 5px;
}

.scroll-item p {
  font-size: 13px; color: #333; white-space: normal;
}

.section {
  padding: 16px; background: #fff; margin-top: 16px;
}

.section h2 {
  margin-bottom: 16px; text-align: center; font-size: 20px;
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}

.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-3px); }

.card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}

.card-body { padding: 10px 12px; }
.card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-body p { font-size: 13px; color: #555; margin: 2px 0; }

.rating-badge {
  background-color: #48c479; color: white; font-size: 13px;
  padding: 2px 6px; border-radius: 6px; font-weight: bold;
  margin-left: 5px;
}

.details-row { display: flex; justify-content: space-between; }

/* 📱 Mobile Styles */
@media screen and (max-width: 768px) {
  .desktop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  .location-search {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }

  .location-box {
    font-size: 13px;
    margin-right: 0;
  }

  .divider {
    display: none;
  }

  .search-input {
    font-size: 14px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .auth { display: none; }

  .mobile-nav { display: flex !important; }
}

/* 📱 Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: #e23744;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  z-index: 1000;
  border-top: 1px solid #ddd;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
}

.mobile-nav a img {
  margin-bottom: 3px;
  width: 20px;
  height: 20px;
}
