/* ============================================================
   MAGICAL KENYA TOUR MAP — V2 DASHBOARD STYLESHEET
   Augments main.css with new V2 features.
   Load AFTER main.css.
   ============================================================ */

/* ── V2 Body flag ────────────────────────────────────────────────────────── */
body.mk-v2 { /* All V2 styles are scoped under this class */ }

/* ── Classic-view return button ──────────────────────────────────────────── */
.v2-classic-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem .5rem .65rem;
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border-2);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.v2-classic-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
}

/* ── Circuit quick-nav strip ─────────────────────────────────────────────── */
.v2-circuit-strip-wrap {
  width: 100%;
  padding: 0 .6rem;
  margin-top: 3px;
}
.v2-circuit-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 3px 0 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.v2-circuit-strip::-webkit-scrollbar { display: none; }
.v2-circuit-pill {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  background: var(--bg-3);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  line-height: 1.4;
}
.v2-circuit-pill:hover { filter: brightness(.96); }
.v2-circuit-pill.active { font-weight: 700; }

/* ── Stats strip (top of sidebar) ───────────────────────────────────────── */
.v2-stats-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: .5rem .75rem .2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.v2-stat-block {
  flex: 1;
  text-align: center;
  padding: .45rem .25rem;
  border-right: 1px solid var(--border);
}
.v2-stat-block:last-child { border-right: none; }
.v2-stat-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.v2-stat-lbl {
  font-size: .62rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 1px;
}

/* ── Love wall ───────────────────────────────────────────────────────────── */
.v2-love-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: .25rem 0;
}
.v2-love-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px 5px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.v2-love-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.v2-love-card-img {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  background: var(--bg-2);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}
.v2-love-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #e05c8a;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 4px;
  border: 1.5px solid var(--bg-3);
  line-height: 1.4;
  min-width: 14px;
  text-align: center;
}
.v2-love-card-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.v2-love-card-circuit {
  font-size: 8.5px;
  color: var(--text-3);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-love-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 4px;
}

/* ── Enhanced season cards ───────────────────────────────────────────────── */
.v2-season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.v2-season-card {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 4px 6px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.v2-season-card:hover { border-color: var(--primary); }
.v2-season-card.active {
  border-color: var(--primary);
  background: var(--primary-l);
}
.v2-season-card.active .v2-season-name { color: var(--primary); }
.v2-season-icon { font-size: 1.2rem; line-height: 1; margin-bottom: 3px; }
.v2-season-name { font-size: 9.5px; font-weight: 600; color: var(--text-2); }

.v2-season-tip {
  display: none;
  margin-top: 6px;
  padding: 6px 9px;
  background: var(--primary-l);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  color: var(--primary-d);
  line-height: 1.5;
}
[data-theme="dark"] .v2-season-tip { background: rgba(43,108,176,.15); color: #7bbff5; border-color: #4a90d9; }

/* ── Enhanced circuit list rows ──────────────────────────────────────────── */
.v2-circuit-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.v2-circuit-row:hover { background: var(--bg-3); border-color: var(--border); }
.v2-circuit-row.active { background: var(--primary-l); border-color: var(--primary); }
[data-theme="dark"] .v2-circuit-row.active { background: rgba(43,108,176,.18); border-color: #4a90d9; }
.v2-circuit-swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.15);
}
.v2-circuit-name {
  flex: 1;
  font-size: .81rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-circuit-count {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-3);
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 26px;
  text-align: center;
  transition: all .15s;
}
.v2-circuit-row.active .v2-circuit-count {
  background: var(--primary);
  color: #fff;
}
.v2-circuit-chevron {
  font-size: .7rem;
  color: var(--text-3);
  transition: transform .2s;
  flex-shrink: 0;
}
.v2-circuit-row.active .v2-circuit-chevron { transform: rotate(180deg); color: var(--primary); }

/* ── Kenya links — 4×2 grid ──────────────────────────────────────────────── */
.v2-kl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: .35rem;
}
.v2-kl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 3px 6px;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: .62rem;
  text-align: center;
  transition: all .15s;
  line-height: 1.2;
}
.v2-kl-card:hover {
  border-color: var(--primary);
  background: var(--primary-l);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(43,108,176,.15);
  text-decoration: none;
}
.v2-kl-icon { font-size: 1.15rem; line-height: 1; margin-bottom: 2px; }
.v2-kl-label { font-weight: 600; font-size: .62rem; }
.v2-kl-desc { font-size: .57rem; color: var(--text-3); margin-top: 1px; line-height: 1.2; }
.v2-kl-card:hover .v2-kl-desc { color: var(--primary); }
[data-theme="dark"] .v2-kl-card { background: var(--bg-2); }

/* ── Emergency contacts ──────────────────────────────────────────────────── */
.v2-emergency-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: .4rem;
}
.v2-emerg-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .68rem;
  color: var(--text-2);
  text-decoration: none;
  transition: all .12s;
}
.v2-emerg-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.v2-emerg-chip i { font-size: .78rem; }

/* ── I Love Location — heart button ──────────────────────────────────────── */
.v2-detail-love-btn {
  position: relative;
  overflow: visible !important;
}
.v2-detail-love-btn.v2-loved {
  color: #e05c8a !important;
  background: #fff0f5 !important;
}
[data-theme="dark"] .v2-detail-love-btn.v2-loved { background: rgba(224,92,138,.15) !important; }

@keyframes v2HeartPulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,92,138,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(224,92,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,92,138,0); }
}
.v2-heart-anim { animation: v2HeartPulse .55s ease-out; }

/* Floating heart confetti */
.v2-heart-float {
  position: fixed;
  pointer-events: none;
  font-size: 16px;
  z-index: 9999;
  animation: v2FloatUp .8s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes v2FloatUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-52px) scale(1.35); }
}

/* Love count chip */
.v2-love-count-chip {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  padding: 1px 0;
  transition: color .2s;
}
.v2-love-count-chip.loved { color: #e05c8a; }

/* Enhanced detail header hero strip */
.v2-detail-hero-strip {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  margin-bottom: .25rem;
}
.v2-detail-hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-detail-hero-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.v2-detail-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .6rem .75rem;
}
.v2-detail-hero-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin-bottom: 2px;
}
.v2-detail-hero-meta {
  color: rgba(255,255,255,.88);
  font-size: .73rem;
}
.v2-detail-circuit-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  margin-top: 3px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(4px);
}
.v2-circuit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 3-stat strip in detail panel */
.v2-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: .75rem;
}
.v2-detail-stat {
  padding: .45rem .25rem;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg-3);
}
.v2-detail-stat:last-child { border-right: none; }
.v2-detail-stat-val {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.v2-detail-stat-lbl {
  font-size: .6rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 1px;
}

/* Action bar in V2 detail header */
.v2-detail-action-bar {
  display: flex;
  align-items: center;
  padding: .45rem .65rem;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 5;
}
.v2-detail-love-count {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
  transition: color .2s;
}
.v2-detail-love-count.loved { color: #e05c8a; }

/* Niche chips horizontal row */
.v2-niche-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: .6rem;
}
.v2-niche-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}
.v2-niche-pill.active,
.v2-niche-pill:hover {
  background: var(--primary-l);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="dark"] .v2-niche-pill.active { background: rgba(43,108,176,.2); border-color: #4a90d9; color: #7bbff5; }

/* Breadcrumb */
.v2-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: .71rem;
  color: var(--text-3);
  margin-bottom: .5rem;
}
.v2-breadcrumb a { color: var(--primary); text-decoration: none; }
.v2-breadcrumb a:hover { text-decoration: underline; }
.v2-breadcrumb span { color: var(--text-3); }

/* V2 itinerary timeline */
.v2-itin-timeline {
  display: flex;
  flex-direction: column;
}
.v2-itin-day {
  margin-left: 8px;
  border-left: 2px solid var(--primary);
  padding-left: 10px;
  padding-bottom: 10px;
  position: relative;
}
.v2-itin-day:last-child { padding-bottom: 0; }
.v2-itin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: -6px;
  top: 3px;
  border: 2px solid var(--bg-2);
  flex-shrink: 0;
}
.v2-itin-day-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.v2-itin-stop {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 7px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all .12s;
}
.v2-itin-stop:hover { border-color: var(--primary); }
.v2-itin-stop:last-child { margin-bottom: 0; }
.v2-itin-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v2-itin-stop-name {
  font-size: .77rem;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-itin-stop-meta {
  font-size: .62rem;
  color: var(--text-3);
  white-space: nowrap;
}

/* ── V2 stats in footer ──────────────────────────────────────────────────── */
.v2-footer-stats {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .35rem;
}
.v2-footer-stat {
  font-size: .75rem;
  color: var(--text-3);
}
.v2-footer-stat strong { color: var(--primary); }

/* ── Currency / weather widget ───────────────────────────────────────────── */
.v2-currency-weather {
  display: flex;
  gap: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: .4rem;
}
.v2-cw-block {
  flex: 1;
  text-align: center;
  padding: .4rem .25rem;
  border-right: 1px solid var(--border);
}
.v2-cw-block:last-child { border-right: none; }
.v2-cw-val { font-size: .88rem; font-weight: 700; color: var(--text); }
.v2-cw-lbl { font-size: .6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin-top: 1px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width: 480px) {
  .v2-love-wall-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .v2-kl-grid { grid-template-columns: repeat(4, 1fr); }
  .v2-season-grid { gap: 4px; }
}
