/* ============================================================
   VIOLETA REALTY — Global Blog Component Styles
   Loaded only on blog post pages (/blog/:slug)
   No <style> blocks needed inside post HTML content.
   ============================================================ */

/* BLOG TYPOGRAPHY */
article h2 {
  font-size: 26px !important;
  font-weight: 600 !important;
  color: #1a3328 !important;
  margin: 2.5rem 0 1rem !important;
  line-height: 1.25 !important;
}
article h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 2rem 0 0.75rem !important;
}
article p {
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin-bottom: 1.25rem !important;
  color: #5a5a5a !important;
}

/* STAT BOXES */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2rem 0;
}
.stat-box {
  background: #f9f6f1;
  border: 1px solid #e0d8cc;
  border-top: 3px solid #1a3328;
  border-radius: 4px;
  padding: 20px 18px 16px;
  text-align: center;
}
.stat-box.gold { border-top-color: #b8872a; }
.stat-box.red  { border-top-color: #c0392b; }
.stat-val {
  font-size: 32px;
  font-weight: 700;
  color: #1a3328;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box.gold .stat-val { color: #b8872a; }
.stat-box.red  .stat-val { color: #c0392b; }
.stat-label {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

/* CALLOUT BOXES */
.callout-warning {
  background: #fdf0ef;
  border-left: 4px solid #c0392b;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout-warning p { color: #7a2020; margin: 0; font-size: 15px; }

.callout-green {
  background: #eef5ee;
  border-left: 4px solid #2d5a3d;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout-green p { color: #1a3328; margin: 0; font-size: 15px; }

.highlight {
  background: #f5edd8;
  border-left: 4px solid #b8872a;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.highlight p { color: #1a1a1a; margin: 0; font-size: 16px; }

/* MATH BLOCK */
.math-block {
  background: #1a3328;
  color: #fff;
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.math-block .math-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.math-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.math-row:last-child { border-bottom: none; }
.math-row .loss { font-weight: 600; color: #f09595; }

/* COMPARISON TABLE */
.table-wrap { margin: 2.5rem 0; overflow-x: auto; }
.vr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vr-table thead th {
  background: #1a3328;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.vr-table tbody tr:nth-child(even) { background: #f9f6f1; }
.vr-table tbody tr:nth-child(odd)  { background: #fff; }
.vr-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e0d8cc;
  color: #5a5a5a;
  vertical-align: top;
  line-height: 1.5;
}
.vr-table tbody td:first-child { font-weight: 500; color: #1a1a1a; }
.vr-table tfoot td {
  padding: 10px 16px;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #e0d8cc;
  font-style: italic;
}
.td-bad  { color: #c0392b; font-weight: 600; }
.td-good { color: #2d6a2d; font-weight: 600; }
.td-mid  { color: #b8872a; font-weight: 600; }

/* DAYS ON MARKET GRID */
.dom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 2rem 0;
}
.dom-card {
  border: 1px solid #e0d8cc;
  border-radius: 4px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dom-days {
  font-size: 36px;
  font-weight: 700;
  color: #1a3328;
  line-height: 1;
  min-width: 64px;
}
.dom-city  { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; }
.dom-label { font-size: 12px; color: #999; }

/* NUMBERED AGENT LIST */
.agent-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.agent-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e0d8cc;
  align-items: flex-start;
}
.agent-list li:last-child { border-bottom: none; }
.agent-num {
  background: #1a3328;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.agent-item-title { font-weight: 600; color: #1a1a1a; margin-bottom: 4px; font-size: 15px; }
.agent-item-body  { font-size: 14px; color: #5a5a5a; line-height: 1.6; }

/* TWO-COLUMN WHEN GRID */
.when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}
.when-card {
  border: 1px solid #e0d8cc;
  border-radius: 4px;
  padding: 1.25rem;
}
.when-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.when-card.good .when-card-title { color: #2d5a3d; }
.when-card.bad  .when-card-title { color: #c0392b; }
.when-list { list-style: none; font-size: 14px; color: #5a5a5a; padding: 0; }
.when-list li {
  padding: 5px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.when-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.when-card.good .when-list li::before { background: #2d5a3d; }
.when-card.bad  .when-list li::before { background: #e0d8cc; }

/* CTA BLOCK */
.vr-cta {
  background: #1a3328;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0 1rem;
}
.vr-cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.vr-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 1.5rem;
}
.vr-cta-btn {
  display: inline-block;
  background: #b8872a;
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .stat-row,
  .dom-grid,
  .when-grid { grid-template-columns: 1fr; }
  .math-block { padding: 1.25rem; }
}

/* ─── FACT STRIP ─────────────────────────────────────────────────────────────
   Horizontal stat row — alternative to .stat-box grid for other posts.
   Usage: <div class="fact-strip">
            <div class="fact-item"><div class="fact-val">5%</div>
              <div class="fact-label">Service fee</div>
              <div class="fact-note">before anything else</div></div>
            <div class="fact-item fact-item-mid">...</div>
            <div class="fact-item fact-item-warn">...</div>
          </div>
──────────────────────────────────────────────────────────────────────────── */
.fact-strip {
  display: flex;
  border: 1px solid #e0d8cc;
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}
.fact-item {
  flex: 1;
  padding: 20px 18px;
  border-right: 1px solid #e0d8cc;
  background: #f9f6f1;
}
.fact-item:last-child { border-right: none; }
.fact-item-mid  { background: #eef5ee; }
.fact-item-warn { background: #fdf0ef; }
.fact-val {
  font-size: 28px;
  font-weight: 700;
  color: #1a3328;
  margin-bottom: 4px;
}
.fact-item-mid  .fact-val { color: #2d5a3d; }
.fact-item-warn .fact-val { color: #c0392b; }
.fact-label {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.fact-note { font-size: 11px; color: #999; }

/* ─── TIMELINE STRIP ─────────────────────────────────────────────────────────
   Vertical bar chart for year-over-year trends.
   Usage: <div class="timeline-strip">
            <div class="tl-item">
              <div class="tl-year">2021</div>
              <div class="tl-bar" style="height:80px;background:#1a3328;"></div>
              <div class="tl-val">5,280</div>
            </div>
            ...
          </div>
──────────────────────────────────────────────────────────────────────────── */
.timeline-strip {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 1.5rem 0 0.25rem;
  padding: 1rem 1.25rem 0.75rem;
  background: #f9f6f1;
  border: 1px solid #e0d8cc;
  border-radius: 4px;
}
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.tl-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.4s;
}
.tl-year { font-size: 12px; color: #999; order: -1; }
.tl-val  { font-size: 12px; font-weight: 600; color: #1a1a1a; }
