*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  padding: 20px;
  background: #f9f9f9;
}

h1 {
  margin-bottom: 35px;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.px;
}

.item {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 10px 20px 10px 20px;
  height: 140px;
  display: flex;
  align-items: center;
}

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

.business-item-content {
  display: flex;
  gap: 15px;
  align-items: center;
  height: 120px;
  padding: 10px 0;
}

.item .business-item-content .business-item-image {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 15px;
}

.business-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.business-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-website {
  font-size: 13px;
  color: #666;
  text-align: left;
  margin-bottom: 12px;
}

.business-description {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

#loading {
  font-style: italic;
  color: #888;
  margin-bottom: 10px;
}

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

a {
  text-decoration: none;
  color: #666;
}

.search-wrapper {
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 5px;
}

#search {
  flex: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 0;
  background: #fff;
  font-family: 'Inter', sans-serif;
}

#search-button {
  background-color: black;
  border: none;
  width: 50px;
  padding: 10px;
  border-radius: 12px;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 1px;
  font-family: 'Inter', sans-serif;
}

#search-button img {
  width: 16px;
  height: 16px;
  display: block;
}

#search-button:hover {
  background: #333;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 6px 2px 6px;
  border-radius: 6px;
  margin-left: 0px;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -1px;
}

.verified {
  background: #0c0;
  color: white;
}

.rating.excellent {
  background: #007bff;
  color: white;
}

.rating.good {
  background: #28a745;
  color: white;
}

.rating.poor {
  background: #ffc107;
  color: black;
}

.rating.fail {
  background: #dc3545;
  color: white;
}

.page {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Sidebar heading styles */
.sidebar h2 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.container {
  flex: 1;
}

.page {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  width: 200px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filter-group {
  margin-bottom: 16px;
}

.container {
  flex: 1;
}

.content-area {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

.sidebar {
  width: 180px;
  flex-shrink: 0;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.main-content {
  flex: 1;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00b37e;
  cursor: pointer;
}

#filter-rating {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  cursor: pointer;
  background: white;
  font-family: 'Inter', sans-serif;
}

input[type="text"]:hover,
select:hover {
  border-color: #ccc;
}

.filter-group.checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* Targets the label specifically */
label[for="filter-rating"] {
  font-size: 13px;
  margin-bottom: 6px;
  display: inline-block;
}

.icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

#featured {
  margin-bottom: 30px;
}

#featured h2 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.featured-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-row::-webkit-scrollbar {
  display: none;
}

.featured-item {
  flex: 0 0 calc(20% - 16px);
  min-width: 200px;
  max-width: calc(20% - 16px);
}

/* Responsive breakpoints for featured cards */
@media (max-width: 1200px) {
  .featured-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}

@media (max-width: 900px) {
  .featured-item {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }
}

@media (max-width: 600px) {
  .featured-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 400px) {
  .featured-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.featured-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

.featured-item h4 {
  font-size: 15px;
  margin-top: 0px;
  margin-bottom: 4px;
  text-align: left;
}

.featured-item a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.featured-tags {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* header */

.hero {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: url('images/Star-background.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(98, 40, 108, 0.95), rgba(98, 40, 108, 0.952) 50%, rgba(98, 40, 108, 0.95));
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 950px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.4;
  margin: 0.25rem 0 0;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.hero-text p {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.4;
}

.star-rating {
  width: 330px;
  height: auto;
  display: block;
  margin-left: auto;
  margin: 0 auto 0 auto;
  margin-right: auto;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

.underlined-org, .underlined-ind {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.underlined-org::after {
  content: '';
  position: absolute;
  bottom: -0.3em;
  left: -19px;
  width: 265px;
  height: 25px;
  background: url('images/brush-stroke-white.png') no-repeat center bottom;
  background-size: 100% 100%;
  z-index: -1;
}

.underlined-ind::after {
  content: '';
  position: absolute;
  bottom: -0.3em;
  left: -19px;
  width: 340px;
  height: 25px;
  background: url('images/brush-stroke-white.png') no-repeat center bottom;
  background-size: 100% 100%;
  z-index: -1;
}

.navbar {
  background-color: #000;
  width: 100%;
  height: 75px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: auto;
  width: auto;
  max-width: 180px;
}

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

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 13px;
}

.nav a:hover {
  text-decoration: underline;
}

/* User Profile Dropdown */
.user-profile-container {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}



.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.user-name {
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.user-occupation {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  margin: 4px 8px;
}

.dropdown-item:hover {
  background-color: #f5f5f5 !important;
  color: #333 !important;
  text-decoration: none !important;
}

.dropdown-item svg {
  color: #666 !important;
  flex-shrink: 0;
}

.dropdown-item:hover svg {
  color: #666 !important;
}

.topbar {
  background-color: white;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  height: 40px;
  display: flex;
  align-items: center;
}

.topbar-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.topbar-left a,
.topbar-right a {
  color: #111;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  transition: opacity 0.2s ease;
}

.topbar-right a:last-child {
  margin-right: 0;
}

.topbar-left,
.topbar-right {
  display: flex;
}

.tag {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 5px;
  color: black;
  vertical-align: middle;
  margin-left: 6px;
  display: inline-block;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.new-tag {
  background-color: white;
  color: black;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.top-tag {
  font-family: 'Inter', sans-serif;
  background-color: black;
  color: white;
  font-weight: 500;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1;
  white-space: nowrap;
}

.item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Business Detail Page Styles */
.business-detail-page {
  padding: 20px 0;
}

.breadcrumb {
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #333;
}

.business-detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.business-detail-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.business-detail-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.business-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.business-detail-name {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #333;
  letter-spacing: -1px;
}

.business-detail-tags {
  margin: 0;
}

.business-detail-website {
  margin: 0;
}

.business-detail-website-link {
  font-size: 16px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.business-detail-website-link:hover {
  text-decoration: underline;
}

.business-detail-description {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.business-detail-description p {
  margin: 0;
}

/* Responsive design for business detail page */
@media (max-width: 768px) {
  .business-detail-header {
    flex-direction: column;
    gap: 20px;
  }

  .business-detail-image {
    width: 100%;
    height: 200px;
  }

  .business-detail-name {
    font-size: 24px;
  }

  .business-detail-card {
    padding: 20px;
  }
}

/* Footer Styles */
.footer {
  background-color: #000;
  color: white;
  padding: 30px 0;
  margin-top: 60px;
  min-height: 100px;
  display: flex;
  align-items: center;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 40px;
  align-items: center;
}

.social-icon {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  opacity: 0.7;
}

/* YouTube icon specific styling */
.social-icon:last-child {
  color: #cc0000;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copyright {
  color: white;
  font-size: 12px;
  font-weight: 400;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }

  .footer-links {
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .social-icons {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }
  
  .social-icons {
    gap: 25px;
  }
  
  /* User profile responsive adjustments */
  .user-profile {
    padding: 6px 8px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .user-name {
    font-size: 13px;
  }
  
  .user-occupation {
    font-size: 11px;
  }
  
  .user-dropdown {
    right: -8px;
    min-width: 180px;
  }
}