/* Reset + Base */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* Header and Navbar */
header {
  background-color: #333;
  color: white;
  padding: 15px 20px;
}

header h1 {
  margin: 0;
  font-size: 26px;
}

/* Navbar Container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.nav-menu li a:hover {
  color: #00ff99;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #444;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
  }

  /* Show menu when checkbox is checked */
  .nav-toggle:checked + .nav-toggle-label + .nav-menu {
    display: flex;
  }

  .nav-menu li {
    padding: 10px 0;
  }
}
/*directory*/
  /* Core styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 10px 20px;
  color: white;
  position: relative;
}

.navbar h1 {
  font-size: 20px;
  margin: 0;
}

/* Always hide nav menu */
.nav-menu {
  display: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

/* Always show menu toggle */
.menu-toggle {
  display: block;
  font-size: 24px;
  cursor: pointer;
  color: white;
  z-index: 1000;
}

/* Drawer menu */
.drawer {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #333;
  padding-top: 60px;
  transition: 0.3s;
  z-index: 999;
}

.drawer.active {
  left: 0;
}

.drawer a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

.drawer a:hover {
  background-color: #444;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 998;
}

.overlay.active {
  display: block;
}

/* Page layout */
.page-wrapper {
  display: flex;
  justify-content: space-between;
}

.ad-side {
  width: 160px;
  height: 600px;
  background-color: #e0e0e0;
  text-align: center;
  padding-top: 10px;
  font-size: 14px;
  position: sticky;
  top: 0;
}

.main-content {
  flex: 1;
  max-width: 760px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}


/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
  margin: 0 10px 20px;
  border-bottom: 2px solid #ddd;
  -webkit-overflow-scrolling: touch;
}

.category-tab {
  flex: 0 0 auto;
  padding: 10px 15px;
  background-color: #eee;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  transition: 0.3s;
  text-align: center;
}

.category-tab:hover,
.category-tab.active {
  background-color: #007bff;
  color: white;
}

/* Business box */
#businessListings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
}

/* Individual business card styling */
.business-box {
  flex: 1 1 300px;
  max-width: 100%;
  box-sizing: border-box;
}

.business-box {
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.business-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.contact-btn {
  background-color: #28a745;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-btn:hover {
  background-color: #218838;
}

/* Responsive */
@media (max-width: 768px) {
  .ad-side {
    display: none;
  }

  .main-content {
    margin: 10px;
  }

  .category-tab {
    font-size: 13px;
    padding: 8px 12px;
  }
#businessListings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  box-sizing: border-box;
}

/* Style for individual business boxes */
.business-box {
  flex: 1 1 300px; /* Flexible width with minimum of 300px */
  max-width: 100%;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
}

/* Ensure image inside business box is responsive */
.business-box img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .business-box {
    flex: 1 1 100%;
  }
}
}