/* ============================================================
   Van Hero — Live Hero Plugin CSS (Ultra-Responsive & Laptop-Optimized)
   ============================================================
   
   RESPONSIVE DESIGN SYSTEM:
   - Scoped under .vh-hero-root to prevent theme conflicts.
   - Fluid typography tuned so headings don't stretch sections on laptops.
   - Fits comfortably inside 1366x768 and 1280x800 laptop viewports.
   ============================================================ */

.vh-hero-root {
  --color-primary-blue: #1E3A8A;
  --color-deep-blue: #0B1F4A;
  --color-navy-darker: #081632;
  --color-soft-lavender: #EEF2FF;
  --color-soft-grey: #E9EBF0;
  --color-yellow: #FFD60A;
  --color-yellow-soft: #FFF8D6;
  --color-green: #10B981;
  --color-green-soft: #DCFCE7;
  --color-blue-dot: #BCC4E0;
  --color-white: #FFFFFF;
  --color-grey-text: #5A6478;
  --color-border: #E5E9F2;
  --vh-bg-start: #EEF2FF;
  --vh-bg-end: #EAF1FF;
  --vh-btn-radius: 14px;
  --vh-h1-size: clamp(1.65rem, 2.2vw + 0.6rem, 2.85rem);
  --font-heading: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-tracker: 0 12px 28px rgba(15, 23, 42, 0.18);
  width: 100%;
}

.vh-hero-root *,
.vh-hero-root *::before,
.vh-hero-root *::after {
  box-sizing: border-box;
}
.vh-hero-root img { max-width: 100%; height: auto; display: block; }

/* HERO MAIN CONTAINER */
.vh-hero-root .vh-hero {
  width: 100%;
  min-height: clamp(480px, 68vh, 660px);
  max-height: 720px;
  background: linear-gradient(90deg, var(--vh-bg-start) 0%, var(--vh-bg-start) 48%, var(--vh-bg-end) 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* CONTENT COLUMN (LEFT) */
.vh-hero-root .vh-hero__content {
  padding: clamp(28px, 3.5vw, 52px) clamp(20px, 3.5vw, 56px) clamp(24px, 3vw, 44px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 20px);
  max-width: 620px;
  position: relative;
  z-index: 2;
}

/* PILL BADGE */
.vh-hero-root .vh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-yellow);
  color: var(--color-deep-blue);
  font-weight: 700;
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
}

/* H1 HEADLINE — COMPACT & ELEGANT ON LAPTOPS */
.vh-hero-root .vh-h1 {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: var(--vh-h1-size) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: var(--color-deep-blue) !important;
  max-width: 520px;
  margin: 0 !important;
  padding: 0 !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* PULSE DOT */
.vh-hero-root .vh-pulse-dot {
  display: inline-block;
  width: clamp(9px, 1vw, 12px);
  height: clamp(9px, 1vw, 12px);
  border-radius: 50%;
  background: var(--color-green);
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: vh-pulse 1.5s infinite;
}
@keyframes vh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* LIVE STATS ROW */
.vh-hero-root .vh-stats {
  display: flex;
  gap: clamp(12px, 2.2vw, 32px);
  flex-wrap: wrap;
  align-items: flex-start;
}
.vh-hero-root .vh-stats > div {
  min-width: 80px;
  flex: 0 1 auto;
}
.vh-hero-root .vh-stat__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--color-deep-blue);
  line-height: 1;
}
.vh-hero-root .vh-stat__number small {
  font-size: 0.9rem;
  margin-left: 2px;
  font-weight: 700;
}
.vh-hero-root .vh-stat__number.vh-stat--bump,
.vh-hero-root .vh-stat-row__value.vh-stat--bump {
  animation: vh-stat-bump 0.4s ease;
}
@keyframes vh-stat-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); color: var(--color-green); }
  100% { transform: scale(1); }
}
.vh-hero-root .vh-stat__label {
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-grey-text);
  margin-top: 3px;
  line-height: 1.2;
}

/* CTA BUTTONS */
.vh-hero-root .vh-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.vh-hero-root .vh-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  min-height: 48px;
  padding: 0 clamp(16px, 2vw, 24px);
  border-radius: var(--vh-btn-radius) !important;
  font-weight: 700;
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
  border: none;
  font-family: var(--font-body) !important;
  box-shadow: var(--shadow-soft);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.vh-hero-root .vh-btn--primary {
  background: var(--color-yellow) !important;
  color: var(--color-deep-blue) !important;
}
.vh-hero-root .vh-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 214, 10, 0.4);
}
.vh-hero-root .vh-btn--outline {
  background: transparent !important;
  color: var(--color-deep-blue) !important;
  border: 2px solid var(--color-deep-blue) !important;
}
.vh-hero-root .vh-btn--outline:hover {
  background: var(--color-deep-blue) !important;
  color: var(--color-white) !important;
}

/* TRUST BADGES */
.vh-hero-root .vh-trust {
  display: flex;
  gap: clamp(12px, 1.8vw, 20px);
  flex-wrap: wrap;
  align-items: center;
}
.vh-hero-root .vh-trust__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-grey-text);
}
.vh-hero-root .vh-trust__icon {
  width: 16px;
  height: 16px;
  color: var(--color-deep-blue);
  flex-shrink: 0;
}

/* MAP CONTAINER (RIGHT COLUMN) */
.vh-hero-root .vh-hero__grid {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(380px, 55vh, 660px);
  background: var(--vh-bg-end);
  isolation: isolate;
}
.vh-hero-root .vh-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.vh-hero-root .vh-map-credit {
  position: absolute;
  bottom: 6px;
  right: 12px;
  z-index: 5;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: rgba(11, 31, 74, 0.56);
  background: rgba(255, 255, 255, 0.76);
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
  user-select: none;
}

/* ACTIVITY CARD */
.vh-hero-root .vh-activity-card {
  position: absolute;
  top: clamp(16px, 3vw, 40px);
  right: clamp(14px, 3vw, 32px);
  z-index: 8;
  width: clamp(240px, 22vw, 290px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(11, 31, 74, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: width 0.25s ease, padding 0.25s ease;
}
.vh-hero-root .vh-activity-card--collapsed {
  width: auto;
  padding: 8px 14px;
}
.vh-hero-root .vh-activity-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  white-space: nowrap;
  appearance: none;
  box-shadow: none !important;
}
.vh-hero-root .vh-activity-card--collapsed .vh-activity-card__header {
  margin-bottom: 0;
}
.vh-hero-root .vh-activity-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-deep-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vh-hero-root .vh-mini-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: vh-pulse 1.5s infinite;
}
.vh-hero-root .vh-ref-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-grey-text);
  background: var(--color-soft-lavender);
  padding: 2px 6px;
  border-radius: 5px;
}
.vh-hero-root .vh-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-soft-lavender);
  border-radius: 8px;
  margin-bottom: 6px;
}
.vh-hero-root .vh-stat-row__label { font-size: 0.82rem; color: var(--color-grey-text); }
.vh-hero-root .vh-stat-row__value { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--color-deep-blue); }
.vh-hero-root .vh-stat-row--yellow { background: var(--color-yellow-soft); }
.vh-hero-root .vh-divider { height: 1px; background: var(--color-border); margin: 10px 0; }
.vh-hero-root .vh-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey-text);
  margin-bottom: 8px;
}
.vh-hero-root .vh-feed { display: flex; flex-direction: column; gap: 6px; }
.vh-hero-root .vh-feed__item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; }
.vh-hero-root .vh-feed__item--new { animation: vh-feed-in 0.45s ease; }
@keyframes vh-feed-in {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.vh-hero-root .vh-feed__bar { width: 3px; align-self: stretch; background: var(--color-blue-dot); border-radius: 2px; flex-shrink: 0; margin-top: 2px; }
.vh-hero-root .vh-feed__item--active .vh-feed__bar { background: var(--color-green); }
.vh-hero-root .vh-feed__content { flex: 1; line-height: 1.3; }
.vh-hero-root .vh-feed__location { font-weight: 700; color: var(--color-deep-blue); }
.vh-hero-root .vh-feed__status { color: var(--color-grey-text); font-size: 0.74rem; }
.vh-hero-root .vh-feed__time { font-size: 0.72rem; color: var(--color-grey-text); margin-left: 6px; flex-shrink: 0; }

/* POPPING ICONS LAYER */
.vh-hero-root .vh-pop-icons-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}

.vh-hero-root .vh-pop-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(11, 31, 74, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-deep-blue);
  animation: vh-pop-float 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  user-select: none;
  white-space: nowrap;
}

.vh-hero-root .vh-pop-icon img,
.vh-hero-root .vh-pop-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes vh-pop-float {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(12px);
  }
  15% {
    opacity: 1;
    transform: scale(1.06) translateY(-3px);
  }
  25% {
    transform: scale(1) translateY(0);
  }
  75% {
    opacity: 1;
    transform: scale(1) translateY(-14px);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-28px);
  }
}

/* STICKY TRACKER */
.vh-hero-root .vh-tracker {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: 16px;
  width: 280px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-tracker);
  border: 1px solid var(--color-border);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.vh-hero-root .vh-tracker--bottom-left {
  right: auto;
  left: 16px;
}
.vh-hero-root .vh-tracker--hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.vh-hero-root .vh-tracker__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.vh-hero-root .vh-tracker__live-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-deep-blue);
  text-transform: uppercase;
}
.vh-hero-root .vh-tracker__close {
  appearance: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50%;
  color: var(--color-grey-text) !important;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 0 !important;
  line-height: 1;
  box-shadow: none !important;
}
.vh-hero-root .vh-tracker__close:hover {
  background: rgba(11, 31, 74, 0.06) !important;
  color: var(--color-deep-blue) !important;
}
.vh-hero-root .vh-tracker__message {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-deep-blue);
  line-height: 1.25;
  margin-bottom: 2px;
}
.vh-hero-root .vh-tracker__time {
  font-size: 0.72rem;
  color: var(--color-grey-text);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (TUNED FOR LAPTOPS & TABLETS)
   ============================================================ */

/* Tier 1: 4K / Ultrawide Displays (> 1600px) */
@media (min-width: 1600px) {
  .vh-hero-root .vh-hero { min-height: 680px; max-height: 780px; }
  .vh-hero-root .vh-hero__content { max-width: 660px; padding-left: 80px; }
}

/* Tier 2: Standard Laptops & Desktops (1280px - 1440px) */
@media (max-width: 1440px) {
  .vh-hero-root .vh-hero { min-height: 540px; max-height: 640px; }
  .vh-hero-root .vh-hero__content { padding: 36px 32px 32px 48px; gap: 16px; }
}

/* Tier 3: Small Laptops (1024px - 1279px) */
@media (max-width: 1279px) {
  .vh-hero-root .vh-hero { min-height: 500px; max-height: 600px; }
  .vh-hero-root .vh-hero__content { padding: 32px 24px 28px 36px; gap: 14px; }
  .vh-hero-root .vh-stats { gap: 18px; }
}

/* Tier 4: Tablets (768px - 1023px) — Vertical Stack */
@media (max-width: 1023px) {
  .vh-hero-root .vh-hero { 
    grid-template-columns: 1fr; 
    min-height: auto; 
    max-height: none;
    background: linear-gradient(180deg, var(--vh-bg-start) 0%, var(--vh-bg-start) 65%, var(--vh-bg-end) 100%);
  }
  .vh-hero-root .vh-hero__content { 
    padding: 36px 28px 32px 28px; 
    max-width: 100%; 
  }
  .vh-hero-root .vh-hero__grid { 
    min-height: 380px; 
    aspect-ratio: 16 / 10; 
  }
  .vh-hero-root .vh-activity-card { 
    top: 16px; 
    right: 16px; 
    left: 16px; 
    width: auto; 
  }
}

/* Tier 5: Mobile Phones & Mobile Viewports (< 768px) */
@media (max-width: 767px) {
  .vh-hero-root .vh-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    background: linear-gradient(180deg, var(--vh-bg-start) 0%, var(--vh-bg-start) 70%, var(--vh-bg-end) 100%);
  }

  .vh-hero-root .vh-hero__content { 
    padding: 28px 18px 22px 18px; 
    gap: 16px;
    max-width: 100%;
  }

  .vh-hero-root .vh-h1 {
    font-size: clamp(1.55rem, 6.2vw, 2.15rem) !important;
    line-height: 1.15 !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .vh-hero-root .vh-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .vh-hero-root .vh-stats > div {
    flex: 1 1 0px;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 10px 8px;
    text-align: center;
  }

  .vh-hero-root .vh-stat__number {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
  }

  .vh-hero-root .vh-stat__label {
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.25;
  }

  .vh-hero-root .vh-cta-row { 
    flex-direction: column; 
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .vh-hero-root .vh-btn { 
    width: 100% !important; 
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.95rem;
    justify-content: center;
    white-space: normal; 
    text-align: center;
  }

  .vh-hero-root .vh-trust {
    gap: 8px 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .vh-hero-root .vh-trust__item {
    font-size: 11px;
    gap: 5px;
  }

  .vh-hero-root .vh-trust__icon {
    width: 15px;
    height: 15px;
  }

  .vh-hero-root .vh-hero__grid { 
    min-height: 240px; 
    height: clamp(240px, 42vh, 320px);
    aspect-ratio: auto;
  }

  .vh-hero-root .vh-pop-icon {
    font-size: 10px;
    padding: 4px 9px;
    max-width: calc(100% - 24px);
  }

  /* HIDE LIVE ACTIVITY OVERLAY CARD & STICKY TRACKER ON MOBILE */
  .vh-hero-root .vh-activity-card,
  .vh-hero-root .vh-tracker,
  .vh-hero-root .vh-tracker-wrap { 
    display: none !important; 
  }
}

/* Tier 6: Small Mobile Phones (< 480px) */
@media (max-width: 479px) {
  .vh-hero-root .vh-hero__content { 
    padding: 22px 14px 18px 14px; 
    gap: 14px; 
  }

  .vh-hero-root .vh-h1 {
    font-size: clamp(1.4rem, 6.8vw, 1.85rem) !important;
  }

  .vh-hero-root .vh-stats { 
    gap: 8px; 
  }

  .vh-hero-root .vh-stats > div { 
    min-width: 70px; 
    padding: 8px 6px;
  }

  .vh-hero-root .vh-stat__number {
    font-size: 1.25rem;
  }

  .vh-hero-root .vh-stat__label {
    font-size: 10.5px;
  }

  .vh-hero-root .vh-btn {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .vh-hero-root .vh-trust { 
    gap: 6px 10px; 
  }

  .vh-hero-root .vh-trust__item {
    font-size: 10.5px;
  }

  .vh-hero-root .vh-hero__grid { 
    min-height: 220px; 
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-hero-root .vh-canvas { opacity: 0.9; }
  .vh-hero-root .vh-pop-icon { animation: none !important; }
}
