/*
 * BWS 2.0 homepage v2
 * Description: Mockup-aligned lower homepage layout below the existing hero/header.
 */

body.home-v2-active .businesses-section,
body.home-v2-active .map-news-row,
body.home-v2-active .community-row,
body.home-v2-active .reviews-section,
body.home-v2-active .fin-edu-row,
body.home-v2-active #content-timeline-root {
  display: none !important;
}

.home-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  color: #f3e7d0;
}

.home-v2-panel {
  border: 1px solid rgba(208, 144, 39, .34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 12, 4, .94), rgba(3, 5, 4, .92)),
    rgba(0, 0, 0, .62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 216, 130, .05);
}

.home-v2-kicker {
  color: #d99d33;
  font: 800 12px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-v2-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.home-v2-head h2,
.home-v2-head h3 {
  margin: 0;
  color: #fff5dd;
  font: 800 20px var(--font-display);
  letter-spacing: .03em;
}

.home-v2-live {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #72ee7b;
  background: rgba(21, 116, 34, .18);
  font: 800 10px var(--font-ui);
  text-transform: uppercase;
}

.ticker-panel {
  padding: 18px 20px;
  margin-top: 18px;
}

.ticker-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  border-bottom: 1px solid rgba(208, 144, 39, .2);
  padding-bottom: 13px;
}

.ticker-total {
  display: grid;
  gap: 2px;
  text-align: right;
}

.ticker-total strong {
  color: #56da5e;
  font: 800 26px var(--font-ui);
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
  overflow: hidden;
}

.ticker-item {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid rgba(208, 144, 39, .22);
}

.ticker-item b {
  display: block;
  color: #fff0cd;
  font: 800 14px var(--font-display);
}

.ticker-item span,
.ticker-total span {
  color: #a98e61;
  font-size: 12px;
}

.ticker-item small {
  color: #5ce069;
  font-weight: 800;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.index-card {
  padding: 20px;
  min-height: 350px;
}

.index-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 7px 0 14px;
}

.index-price strong {
  color: #fff9e8;
  font: 700 32px var(--font-ui);
}

.index-price span {
  color: #59df5f;
  font: 800 14px var(--font-ui);
}

.index-chart {
  position: relative;
  height: 190px;
  margin: 8px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 100%,
    radial-gradient(circle at 80% 70%, rgba(75, 221, 72, .16), transparent 45%);
  overflow: hidden;
}

.index-card.obsidian .index-chart {
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 100%,
    radial-gradient(circle at 80% 70%, rgba(218, 148, 23, .18), transparent 45%);
}

.index-chart svg {
  width: 100%;
  height: 100%;
}

.index-card p {
  margin: 12px 0 0;
  color: #b9a784;
  font-size: 13px;
}

.home-v2-index-link {
  display: inline-block;
  margin-top: 10px;
  color: #d4a843;
  font: 600 12px/1 var(--font-ui, 'Inter', sans-serif);
  text-decoration: none;
  letter-spacing: .04em;
}
.home-v2-index-link:hover { color: #f0c96a; text-decoration: underline; }

.index-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #a98e61;
  font: 800 12px var(--font-ui);
}

.index-tabs .active { color: #f0aa2c; border-bottom: 2px solid #f0aa2c; }

.exchange-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(110px, .35fr));
  gap: 12px;
  padding: 14px 16px;
  color: #cbb68d;
}

.exchange-note strong { color: #fff1d0; }
.exchange-note b { color: #f2b33e; }

.market-v2,
.map-v2,
.story-v2,
.cta-v2 {
  margin-top: 24px;
  padding: 20px;
}

.market-v2-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.market-v2-card {
  min-width: 0;
  border: 1px solid rgba(208, 144, 39, .28);
  border-radius: 8px;
  background: rgba(10, 7, 3, .72);
  overflow: hidden;
}

.market-v2-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-bottom: 1px solid rgba(208, 144, 39, .18);
}

.market-v2-card div { padding: 11px; }
.market-v2-card h3 {
  min-height: 42px;
  margin: 0 0 4px;
  color: #fff7e2;
  font: 800 16px var(--font-ui);
  line-height: 1.12;
}
.market-v2-card small { color: #b49c70; }
.market-v2-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.market-v2-card b { color: #fff5db; }
.market-v2-card a,
.market-v2-card button,
.map-open-btn,
.cta-v2 a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(208, 144, 39, .55);
  border-radius: 5px;
  color: #f3bc57;
  background: rgba(208, 144, 39, .08);
  font: 800 12px var(--font-ui);
  cursor: pointer;
}

/* full-width map panel replacing the old split activity+map grid */
.map-v2-full {
  margin-top: 24px;
  padding: 20px;
}

.map-v2-full .home-v2-map {
  height: 280px;
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.activity-list {
  display: grid;
  gap: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(208, 144, 39, .13);
}

.activity-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-row strong { display: block; color: #fff1cf; }
.activity-row small { color: #a98e61; }

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(208, 144, 39, .34);
  border-radius: 999px;
  color: #d7c49a;
  background: rgba(0, 0, 0, .24);
  font: 800 12px var(--font-ui);
}

.map-toggle input { accent-color: #d09027; }

.home-v2-map {
  height: 430px;
  border: 1px solid rgba(208, 144, 39, .24);
  border-radius: 8px;
  overflow: hidden;
  background: #060606;
}

.agent-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .34fr);
  gap: 14px;
  margin-top: 14px;
}

.agent-card {
  padding: 14px;
  border: 1px solid rgba(208, 144, 39, .24);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
}

.agent-card h3 { margin: 0 0 6px; color: #fff0d1; }
.agent-card p { margin: 0; color: #bda77d; font-size: 13px; }

/* 3-equal-column Community Activity | Upcoming Events | BWS 2.0 News */
.story-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(208, 144, 39, .27);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(26, 16, 4, .78), rgba(4, 5, 3, .78));
  display: flex;
  flex-direction: column;
}

.story-card-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208, 144, 39, .18);
}

.story-view-all {
  margin-top: auto;
  padding-top: 12px;
  display: inline-block;
  text-decoration: none;
}

.story-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.story-list article {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208, 144, 39, .12);
}

.date-chip {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid rgba(208, 144, 39, .28);
  border-radius: 6px;
  color: #f1b64e;
  font: 800 11px var(--font-display);
}

.cta-v2 {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(140px, .35fr));
  gap: 20px;
  align-items: center;
}

.cta-v2 h2 {
  margin: 0 0 8px;
  font: 800 24px var(--font-display);
}

.cta-v2 p { margin: 0; color: #bca782; }

.cta-v2-icon {
  display: grid;
  gap: 6px;
  text-align: center;
  color: #cbb68d;
}

.cta-v2-icon b { color: #f5c769; }

.home-v2-footer-logo {
  width: 132px;
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .index-grid,
  .story-v2-grid,
  .cta-v2,
  .exchange-note {
    grid-template-columns: 1fr;
  }
  .market-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticker-strip {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .home-v2 { padding: 18px 12px 26px; }
  .market-v2-grid { grid-template-columns: 1fr; }
  .ticker-top { grid-template-columns: 1fr; }
  .ticker-total { text-align: left; }
  .home-v2-map { height: 330px; }
}
