* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    color: #333;
    min-height: 100vh;
    background-color: #ffffff;
  }
  
  header {
    background-color: #ffffff;
    color: #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid #eee;
  }
  
  .header-left {
    display: flex;
    align-items: center;
  }
  
  .logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
  }
  
  .nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto; /* Push navigation to the right */
  }
  
  .nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }
  
  .nav-link:hover {
    opacity: 1;
  }
  
  /* Remove active styling */
  .nav-link.active {
    font-weight: normal;
    color: #333;
  }
  
  /* Hamburger menu styles */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }
  
  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background: #333;
    transition: all 0.3s ease;
  }
  
  /* Responsive navigation */
  @media (max-width: 767px) {
    .menu-toggle {
      display: flex;
      z-index: 1001;
    }
    
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      max-width: 300px;
      height: 100vh;
      background: white;
      flex-direction: column;
      padding: 80px 30px 30px;
      gap: 20px;
      transition: right 0.3s ease;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      z-index: 1000;
    }
    
    .nav-links.active {
      right: 0;
    }
    
    /* Backdrop when menu is open */
    .menu-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
      display: none;
    }
    
    .menu-backdrop.active {
      display: block;
    }
    
    /* Hamburger menu animation */
    .menu-toggle.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
  }
  
  .main-container {
    display: flex;
    padding-top: 60px; /* Adjusted to match header height exactly */
    min-height: 100vh;
    height: auto;
  }
  
  .stores-container {
    width: 550px;
    flex: 0 0 550px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 70px);
  }

  .events-container {
    width: 70%;
    flex: 0 0 70%;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 70px);
  }

  .calendar-container {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 70px);
    position: sticky;
    top: 60px;
    min-width: 300px; /* Ensure calendar has minimum usable width */
  }
  
  .map-container {
    flex: 1;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
    height: calc(100vh - 70px);
    position: sticky;
    top: 60px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 1199px) {
    .stores-container {
      width: 420px;
      flex: 0 0 420px;
    }

    .events-container {
      width: 60%;
      flex: 0 0 60%;
    }

    .calendar-container {
      flex: 1;
      min-width: 250px;
    }
  }
  
  @media (max-width: 767px) {
    .main-container {
      flex-direction: column;
    }

    .stores-container, .events-container {
      width: 100%;
      flex: 1;
      max-width: 100%;
      height: auto;
    }

    .map-container, .calendar-container {
      display: none;
    }
  }
  
  .search-bar {
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    outline: none;
  }
  
  .store-list {
    list-style-type: none;
  }
  
  .store-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    padding-right: 60px;
  }
  
  .store-item:hover {
    background-color: #f9f9f9;
  }
  
  .store-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
  }
  
  .store-distance {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .distance-icon {
    margin-right: 5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    opacity: 0.7;
  }
  
  .store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .store-tag {
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #444;
  }

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

  .event-tag {
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #444;
  }
  
  .chevron-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    top: auto;
    transform: none;
    color: #ccc;
    font-size: 1.2rem;
  }
  
  .loading {
    text-align: center;
    padding: 30px;
    color: #999;
  }
  
  .controls-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
  }
  
  .control-buttons {
    display: flex;
    gap: 4px;
  }
  
  .control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .control-btn:hover {
    background-color: #eaeaea;
  }
  
  .control-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
  }
  
  .control-btn.active {
    background-color: #e8f5e9;
    color: #4CAF50;
  }
  
  .control-btn.active i {
    color: #4CAF50;
  }
  
  .control-btn.wishlist-btn.active {
    background-color: #e3f2fd;
    color: #4285F4;
  }
  
  .control-btn.wishlist-btn.active i {
    color: #4285F4;
  }
  
  .sort-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 100;
    display: none;
  }
  
  .sort-option {
    padding: 10px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .sort-option:hover {
    background-color: #f5f5f5;
  }
  
  .sort-option.active {
    font-weight: 600;
    color: #4CAF50;
  }
  
  .sort-option svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
  }
  
  .sort-wrapper {
    position: relative;
  }
  
  .sort-dropdown.show {
    display: block;
  }
  
  .filter-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1500;
    display: none;
    padding: 15px;
  }
  
  .filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    display: none;
  }
  
  .filter-backdrop.show {
    display: block;
  }
  
  .filter-dropdown.show {
    display: block;
  }
  
  .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .filter-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
  }
  
  .filter-header .close-filter {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
  }
  
  .filter-options-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 15px;
  }
  
  .filter-option {
    padding: 12px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .filter-subcategory {
    padding: 10px 15px 10px 35px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
  }
  
  .filter-category {
    font-weight: 600;
    color: #333;
    border-bottom: none;
  }
  
  .filter-option:hover, .filter-subcategory:hover {
    background-color: #f5f5f5;
  }
  
  .filter-checkbox {
    margin-left: 10px;
    vertical-align: middle;
    width: 18px;
    height: 18px;
  }
  
  .filter-wrapper {
    position: relative;
    margin-right: 10px;
  }
  
  .control-buttons .filter-wrapper:last-child {
    margin-right: 0;
  }
  
  .filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
  }
  
  .filter-actions button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .filter-actions .apply-filters {
    background-color: #4CAF50;
    color: white;
    border: none;
  }
  
  .filter-actions .clear-filters {
    background: none;
    border: 1px solid #ddd;
    color: #333;
  }
  
  .niches-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-left: 5px;
  }
  
  /* Add dropdown styles */
  .profile-dropdown {
    position: relative;
    display: inline-block;
  }
  
  .profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .profile-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s;
  }
  
  .profile-dropdown-content a:hover {
    background-color: #f5f5f5;
  }
  
  .profile-dropdown-content.show {
    display: block;
  }
  
  .profile-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* Mobile-specific styles */
  .mobile-only {
    display: none;
  }
  
  @media (max-width: 767px) {
    .profile-dropdown {
      display: none; /* Hide dropdown container in mobile view */
    }
    
    .mobile-only {
      display: block; /* Show mobile-only links in mobile view */
    }
  }
  
  /* Add styles for rating bubble */
  .rating-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    position: absolute;
    right: 15px;
    top: 15px; /* Align with store name at the top */
    transform: translateY(0); /* Remove vertical centering */
  }
  
  .rating-bubble.excellent {
    background-color: #4CAF50; /* Light green for 4.0-5.0 */
  }
  
  .rating-bubble.good {
    background-color: #2e7d32; /* Dark green for 3.0-3.9 */
  }
  
  .rating-bubble.fair {
    background-color: #fb8c00; /* Orange for 2.0-2.9 */
  }
  
  .rating-bubble.poor {
    background-color: #e53935; /* Red for 1.0-1.9 */
  }
  
  .rating-bubble.none {
    background-color: #9e9e9e; /* Grey for no ratings */
  }
  
  /* For stores with no rating */
  .no-rating {
    color: #999;
    font-size: 0.8rem;
    position: absolute;
    right: 45px;
    top: 15px; /* Align with store name at the top */
    transform: translateY(0); /* Remove vertical centering */
  }

/* Event-specific styles */
.event-list {
  list-style-type: none;
}

.event-item {
  padding: 25px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding-right: 60px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-item:hover {
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  padding-right: 90px; /* Make room for the cost badge */
  line-height: 1.3;
  margin: 0;
}


.event-cost-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 24px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  position: absolute;
  right: 15px;
  top: 15px;
  text-transform: uppercase;
  z-index: 10;
  padding: 0 12px;
}

/* Cost badge styling - Free events get special treatment */
.event-cost-badge[data-cost="free"] {
  background-color: #4CAF50; /* Green for free */
}

.event-cost-badge[data-cost="paid"] {
  background-color: #FF9800; /* Orange for paid */
}

.event-chevron-icon {
  position: absolute;
  right: 15px;
  bottom: 25px;
  top: auto;
  transform: none;
  color: #ccc;
  font-size: 1.8rem;
}

.event-header-section {
  margin-bottom: 25px;
}

.event-header-section .event-title {
  margin-bottom: 8px;
  margin-top: 0;
}

.event-store-subtitle {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.event-info-section {
  margin-top: auto;
  margin-bottom: 15px;
}

.event-type-under-cost {
  position: absolute;
  right: 15px;
  top: 45px;
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 9;
}

.event-datetime {
  display: flex;
  align-items: center;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.datetime-icon {
  margin-right: 6px;
  display: inline-block;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.event-location {
  display: flex;
  align-items: center;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
}

.location-icon {
  margin-right: 6px;
  display: inline-block;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}