/* =========================================================
   AluminiumGlass
   Favorites Module
   ========================================================= */

.favorites-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}


/* Header */

.favorites-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

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

.header-nav a {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a:hover {
  color: #111827;
}


/* Page */

.favorites-page {
  min-height: calc(100vh - 140px);
  padding: 45px 20px 70px;
  background: #f7f8fa;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin: 0 0 7px;
  font-size: 30px;
  color: #111827;
}

.page-heading p {
  margin: 0;
  color: #6b7280;
}


/* Buttons */

.browse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 9px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.refresh-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-weight: 700;
}


/* Alert */

.favorites-alert {
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: 9px;
  font-size: 14px;
}

.favorites-alert.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}


/* Panel */

.favorites-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.panel-top h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.panel-top span {
  color: #6b7280;
  font-size: 13px;
}


/* Loading */

.loading-state {
  padding: 50px 20px;
  text-align: center;
  color: #6b7280;
}


/* Empty */

.empty-state {
  padding: 65px 20px;
  text-align: center;
}

.empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 31px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.empty-state p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: #6b7280;
  line-height: 1.6;
}


/* Grid */

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 20px;
}


/* Card */

.favorite-card {
  position: relative;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.favorite-card:hover {
  border-color: #cbd5e1;
}

.favorite-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.business-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 17px;
  font-weight: 800;
}

.business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-favorite {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #ffffff;
  color: #dc2626;
  font-size: 19px;
  cursor: pointer;
}

.remove-favorite:hover {
  background: #fef2f2;
}

.business-name {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.business-name a {
  color: #111827;
  text-decoration: none;
}

.business-category {
  margin-bottom: 7px;
  color: #6b7280;
  font-size: 13px;
}

.business-location {
  margin-bottom: 10px;
  color: #4b5563;
  font-size: 13px;
}

.business-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 13px;
}

.rating-star {
  color: #d97706;
}

.verified {
  color: #047857;
  font-weight: 700;
}

.view-business {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.view-business:hover {
  background: #e5e7eb;
}


/* Footer */

.favorites-footer {
  padding: 30px 20px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
}

.favorites-footer p {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
}


/* Responsive */

@media (max-width: 900px) {

  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 650px) {

  .favorites-container {
    width: min(100% - 24px, 1120px);
  }

  .header-nav {
    display: none;
  }

  .favorites-page {
    padding: 30px 12px 55px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .panel-top {
    align-items: flex-start;
  }

}