* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  /* Default (light mode) */
:root {
  --background: #ffffff;
  --text: #111111;
  --brandcolor: #facc15;
  --altbrandcolor:#fbbf24;
  --secondary-text: #555555;
  --card-bg: #f9f9f9;
  --badge-bg: #e0e0e0;
  --badge-text: #444;
  --light-grey:#e5e7eb;
  --catcolor:#333;
  --grey-100: #f3f4f6;
  --shadow: rgba(0, 0, 0, 0.05);
  --sshadow: rgba(0, 0, 0, 0.09);
}

/* Dark mode */
[data-theme="dark"] {
  --background: #1a1a1a;
  --text: #f1f1f1;
  --secondary-text: #cccccc;
  --card-bg: #2a2a2a;
  --badge-bg: #333333;
  --badge-text: #eeeeee;
 --light-grey:#3a3a3a;
   --catcolor:#f3f4f6;
  --grey-100: 	#2c2c2c;
  --shadow: rgba(255, 255, 255, 0.05);
  --sshadow: rgba(255, 255, 255, 0.09);
}
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
}

#back-to-top.visible {
  opacity: 1; /* Show when scrolling */
}

#back-to-top:hover {
  background: #555;
}
 
  body {
    font-family: sans-serif;
    background-color: var(--background);
    color: var(--text);
  }
  
  /* Navbar styling */
  .navbar {
    width: 100%;
    padding: 1.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:var(--background);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  /* Logo */
  .logo {
    font-size: 2rem;
    font-weight: 700;
      -webkit-text-stroke: 0.8px currentColor;
    margin-left: 20px;
    text-decoration: none;
  }
  
  .area {
    color: var(--text);
    margin-right:2px;
  }
  
  .plug {
    color: var(--brandcolor); /* Electric yellow */
  }
/* ── RIGHT SIDE OF NAVBAR ── */

/* Wrapper that holds the home icon and add business button together */
.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 20px;
}

/* Home icon button — dark square with yellow icon */
.home-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.04rem;
  background-color: var(--text);
  color: var(--brandcolor);
  border-radius: 20%;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
}

/* Slightly lighter on hover, lifts up */
.home-icon-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}
.svg {
  width: 2rem;
}

/* Add Your Business button — yellow pill */
.add-business-btn {
  text-decoration: none;
  background-color: var(--brandcolor);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.15s;
}

/* Slightly darker yellow on hover, lifts up */
.add-business-btn:hover {
  background-color: var(--altbrandcolor);
  transform: translateY(-2px);
}
  @media (max-width: 767px){
    .navbar {
      padding: clamp(0px, 5vw, 1.5rem) 0;
    }
    .logo {
      font-size: clamp(0px, 6vw, 1.5rem);
    }
    .svg {
      width: 1.6rem;
    }
     .action-btn {
      font-size: 0.8rem;
      gap: 0.3rem;
    }
    .add-business-btn {
      padding: 8px 7px;
    }
    .category-bar {
      gap: 0.5rem;
      margin: 1rem 1rem 0.75rem 1rem;
      padding: 0;
    }
    .category {
      font-size: 0.6rem;
      padding: 0.3rem 0.6rem;
    }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
  }
  
  .category-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 2rem 1.5rem 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; /* light gray */
  }
  
  .category {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 999px;
    background-color: #f3f4f6; /* gray-100 */
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }
  /* Filter Container */
.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Search Bar */
.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin-right: 15px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.search-button svg {
  width: 20px;
  height: 20px;
}

/* Desktop Filters */
.desktop-filters {
  display: flex;
  gap: 10px;
}

.filter-dropdown {
  position: relative;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-button:hover {
  background-color: #f1f1f1;
}

.filter-button svg {
  width: 16px;
  height: 16px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 100;
  margin-top: 5px;
}

.dropdown-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item.active {
  background-color: #e9f5ff;
  color: #007bff;
}

.dropdown-content.active {
  display: block;
}

/* Mobile Filter Button */
.mobile-filter-button {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.mobile-filter-button svg {
  width: 18px;
  height: 18px;
}

/* Mobile Filter Modal */
.mobile-filter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 20px;
}

.mobile-filter-group {
  margin-bottom: 20px;
}

.mobile-filter-group h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.mobile-filter-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.apply-filters {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.apply-filters:hover {
  background-color: #0056b3;
}

/* Responsive Styles */
/* @media (max-width: 768px) {
    .desktop-filters {
    display: none;
  }
} */
@media (max-width: 850px) {

  .desktop-filters {
    display: none;
  }
  .mobile-filter-button {
    display: flex;
  }
  
  .search-container {
    margin-right: 10px;
    max-width: none;
  }
}
  
  .category:hover {
    background-color: var(--brandcolor);
    color: var(--text);
  }
  
  .category.active {
    background-color: var(--brandcolor);
    color: var(--text);
  }
  .grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* default: 2 columns on mobile */
  gap: 0.5rem;
  padding: 0.5rem;
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    gap: 1.5rem;
  }
    .filter-container {
  margin: 20px 0;
}
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
      gap: 1.5rem;
  }
  .filter-container {
  margin: 20px 0;
}
}

   .business-card {
    background-color: var(--background);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    padding: 0.2rem;
    text-align: center;
    transition: transform 0.2s ease;
     flex: 1 1 240px; /* min width */
     max-width: 300px;
     container-type: inline-size;
  }
    .business-card:hover {
    transform: translateY(-5px);
  }
   .business-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10%;
  }
    .business-name {
    font-size: 8cqw;
    font-weight: bold;
  }
  .business-desc {
    font-size: 5cqw;
    color: #555;
  }
  .location-icon {
    color: red;
    width: 5cqw;
    height: 5cqw;
    margin-bottom: -1cqw;
  }
  .location-text {
    font-size: 5cqw;
    color: #555;
  }
   .card-info {
    padding: 0.3rem;
  }
    .card-footer {
    display: flex;
    justify-content: space-between;
    /* gap: 0.5rem; */
    flex-wrap: wrap;
  }
  
  .category-badge {
    background-color: var(--grey-100);
    font-size: 4cqw;
    /* padding: 0.4rem 0.7rem; */
    padding-top: 2cqw;
    padding-right: 2cqw;
    padding-left: 2cqw;
    padding-bottom: 1cqw;
    border-radius: 20%;
    font-weight: 500;
    /* margin-left: 8cqw; */
  }
  .delivery-icon {
    color: rgb(66, 37, 182);
    width: 7cqw;
    height: 7cqw;
    margin-top: 2cqw;
  }
  .store-icon {
    color: rgb(66, 37, 182);
    width: 7cqw;
    height: 7cqw;
    margin-top: 2cqw;
    margin-right: -62cqw;
    /* margin-right: -125px; */
  }
  .mobile-filter-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
@media (min-width: 851px) {
  .mobile-filter-row {
    display: none;
  }
}
/* Modal Overlay */
.business-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.business-modal-overlay.active {
  display: flex;
}

/* Modal Box */
.business-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  color: #333;
  z-index: 10;
}

.modal-close-btn:hover {
  color: #000;
}

/* Modal Image */
.modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

/* Modal Info */
.modal-info {
  padding: 1.25rem;
}

.modal-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

/* Products Section */
.modal-products h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.6rem;
}

.products-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products-list li {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  color: #333;
}

/* Visit Button */
.modal-visit-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #2563eb;
  color: #fff;
  padding: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.modal-visit-btn:hover {
  background: #1d4ed8;
}