/* ---------------------------------------------------------------------------
   FAVORITES PAGE — red/white theme, matches index fonts (Poppins, Crimson Text)
   Resets global main.css `section { display:flex }` so layout isn’t lopsided
--------------------------------------------------------------------------- */

/* Reset global main.css `section { display:flex }` so hero + gallery stack full-width */
body#favorites-page section.favorites-hero,
body#favorites-page section.favorites-board {
  display: block;
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
}

body#favorites-page {
  font-family: "Poppins", "Open Sans", sans-serif;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(179, 7, 56, 0.15), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 77, 121, 0.12), transparent 38%),
    linear-gradient(160deg, #fff5f7 0%, #fff 45%, #ffeef3 100%);
  color: #2d2d31;
  min-height: 100vh;
}

.favorites-main {
  padding: 120px 20px 56px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.favorites-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(179, 7, 56, 0.16);
  box-shadow: 0 18px 40px rgba(179, 7, 56, 0.15);
}

.favorites-hero-glow {
  position: absolute;
  inset: -30% -15%;
  background:
    conic-gradient(from 160deg, rgba(179, 7, 56, 0.2), rgba(255, 132, 160, 0.22), rgba(179, 7, 56, 0.16), rgba(255, 132, 160, 0.2));
  filter: blur(42px);
  opacity: 0.75;
}

.favorites-hero-inner {
  position: relative;
  z-index: 1;
  padding: 28px 26px 34px;
  backdrop-filter: blur(10px);
}

.favorites-back-btn {
  border: 1px solid rgba(179, 7, 56, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #b30738;
  padding: 10px 16px;
  font-size: 14px;
  font-family: "Poppins", "Open Sans", sans-serif;
  cursor: pointer;
}

.favorites-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(179, 7, 56, 0.1);
  color: #b30738;
  border: 1px solid rgba(179, 7, 56, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: "Poppins", "Open Sans", sans-serif;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* Override main.css global h1/h2 (white, centered, huge) */
body#favorites-page .favorites-hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  font-family: "Crimson Text", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2d2d31;
  text-align: left;
}

body#favorites-page .favorites-hero p {
  margin: 0;
  color: #6f4b55;
  text-align: left;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.favorites-board {
  margin-top: 28px;
}

.favorites-board-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(179, 7, 56, 0.12);
  width: 100%;
}

body#favorites-page .favorites-board-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-family: "Crimson Text", serif;
  font-weight: 600;
  color: #b30738;
  letter-spacing: -0.02em;
  text-align: left;
}

.favorites-hint {
  font-size: 14px;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-weight: 400;
  color: #7a5a63;
  line-height: 1.4;
}

.favorites-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(179, 7, 56, 0.12);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(6px);
  width: 100%;
  box-sizing: border-box;
}

#favorites-results {
  width: 100%;
  box-sizing: border-box;
  font-family: "Poppins", "Open Sans", sans-serif;
}

body#favorites-page #favorites-results p {
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body#favorites-page .scroll-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  justify-items: stretch;
  align-items: stretch;
}

body#favorites-page .place-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(179, 7, 56, 0.1);
  box-shadow: 0 4px 20px rgba(45, 45, 49, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body#favorites-page .place-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(179, 7, 56, 0.14);
  border-color: rgba(179, 7, 56, 0.22);
}

body#favorites-page .place-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f5f0f2;
}

body#favorites-page .place-info {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body#favorites-page .place-info strong {
  display: block;
  color: #2d2d31;
  font-size: 1.125rem;
  font-family: "Crimson Text", serif;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body#favorites-page .meta-row p {
  margin: 8px 0 0;
  color: #6b5a5f;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body#favorites-page .rating-row {
  margin-top: auto;
  padding-top: 12px;
  color: #b30738;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

body#favorites-page .yelp-tag {
  background: #d32323;
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

body#favorites-page .favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-family: "Poppins", "Open Sans", sans-serif;
  background: rgba(211, 35, 35, 0.92);
  cursor: pointer;
}

/* Same dark footer shell as index (home.css provides .home-footer grid + links) */
body#favorites-page footer.home-footer {
  background-color: #2d2d31 !important;
  color: white !important;
  padding: 60px 0 20px !important;
  margin-top: 80px;
  height: auto !important;
  width: 100% !important;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .favorites-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  body#favorites-page .scroll-list {
    grid-template-columns: 1fr;
  }
}
