/* ============================================================
   Market detail page v2 — replaces market-detail.css entirely
   (delete the old sidebar-based rules if you added them before)
   ============================================================ */

/* ---- Hero ---- */
.market-hero-v2 {
  position: relative;
  background: linear-gradient(135deg, #191233 0%, #2D1B5E 100%);
  padding: 40px 0 64px;
  overflow: hidden;
}
.market-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 85% 20%, rgba(168,139,255,0.5), transparent 45%);
}
.market-hero-v2__inner { position: relative; }
.market-hero-v2__breadcrumb { font-size: 12.5px; color: #B7A9F0; margin: 0 0 18px; }
.market-hero-v2__breadcrumb a { color: #B7A9F0; }
.market-hero-v2__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.market-hero-v2__main { max-width: 760px; }
.market-hero-v2__chip {
  display: inline-block;
  background: rgba(168,139,255,0.18);
  color: #C9B8FF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}
.market-hero-v2__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #F7F5FC;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin: 16px 0 10px;
  letter-spacing: -0.02em;
}
.market-hero-v2__desc { color: #D6D0EA; font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; max-width: 62ch; }
.market-hero-v2__address { color: #B7A9F0; font-size: 13.5px; margin: 0; }
.market-hero-v2__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- Stat tiles (elevated, overlapping hero) ---- */
.market-stats-wrap { margin-top: -28px; position: relative; z-index: 2; }
.market-stats {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(25,18,51,0.12);
  padding: 22px 8px;
  display: flex;
  flex-wrap: wrap;
}
.market-stats__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 24px;
  flex: 1 1 200px;
  border-right: 1px solid #EFEAFB;
}
.market-stats__item:last-child { border-right: none; }
.market-stats__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #EEEAFA;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.market-stats__label { display: block; font-size: 10.5px; color: #6B6486; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.market-stats__value { display: block; font-size: 14px; font-weight: 700; color: #191233; }
.market-stats__sub { font-weight: 500; font-size: 12px; color: #6B6486; }

/* ---- Market details (single section) ---- */
.market-details-v2 { padding: 40px 0 8px; }
.market-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 18px;
}
.market-section-title--sm { font-size: 18px; }
.market-details-v2__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.market-details-v2__map-card, .market-details-v2__nearby-card {
  background: #FFFFFF;
  border: 1px solid #E3DDF6;
  border-radius: 12px;
  overflow: hidden;
}
.market-details-v2__nearby-card { padding: 20px; }
.market-details-v2__map { display: block; }
.market-details-v2__address-row {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.market-details-v2__address { font-size: 14px; font-weight: 600; }

.market-nearby { display: flex; flex-direction: column; margin-top: 12px; }
.market-nearby__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F0EDF8;
  color: inherit;
}
.market-nearby__item:last-child { border-bottom: none; }
.market-nearby__name { font-size: 13.5px; font-weight: 600; }
.market-nearby__distance { font-size: 12.5px; color: #6B6486; }

/* ---- Main content: single centered readable column ---- */
.market-main-v2 { padding: 36px 0 20px; }
.market-main-v2__col {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* ---- Final CTA ---- */
.market-cta-v2 { padding: 0 0 56px; }
.market-cta-v2__inner {
  background: #191233;
  border-radius: 16px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.market-cta-v2__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 30%, rgba(168,139,255,0.5), transparent 50%);
}
.market-cta-v2__title {
  position: relative;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #F7F5FC;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
}
.market-cta-v2__text { position: relative; color: #D6D0EA; font-size: 14.5px; margin: 0 0 20px; }
.market-cta-v2__inner .btn { position: relative; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .market-hero-v2 { padding: 24px 0 44px; }
  .market-hero-v2__row { flex-direction: column; align-items: stretch; }
  .market-hero-v2__actions { width: 100%; }
  .market-hero-v2__actions .btn { flex: 1; text-align: center; }

  .market-stats { flex-direction: column; padding: 14px 16px; }
  .market-stats__item { border-right: none; border-bottom: 1px solid #EFEAFB; padding: 12px 0; }
  .market-stats__item:last-child { border-bottom: none; }

  .market-details-v2__grid { grid-template-columns: 1fr; }
  .market-cta-v2__inner { padding: 32px 24px; }
}
