/**
 * MISTER FAST — HOME SECTION 04
 * LIVEMAPCHAT SHOWCASE V1.0 CSS
 * Modern Corporate Logistics Product Showcase
 */

:root {
  --mf-lmc-navy: #001f5c;
  --mf-lmc-navy-dark: #00143d;
  --mf-lmc-blue: #003da5;
  --mf-lmc-blue-light: #0066cc;
  --mf-lmc-yellow: #ffc400;
  --mf-lmc-yellow-hover: #e6b000;
  --mf-lmc-bg: #f2f7fc;
  --mf-lmc-card-bg: #ffffff;
  --mf-lmc-text-main: #0f172a;
  --mf-lmc-text-muted: #475569;
  --mf-lmc-text-light: #64748b;
  --mf-lmc-border: rgba(0, 31, 92, 0.1);
  --mf-lmc-green: #10b981;
}

/* ==========================================================================
   Section Wrapper & Container
   ========================================================================== */
.mf-lmc-showcase-wrap {
  width: 100%;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #f4f8fd 0%, #eaf2fb 100%);
  border-top: 1px solid rgba(0, 44, 120, 0.08);
  border-bottom: 1px solid rgba(0, 44, 120, 0.08);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.mf-lmc-showcase-wrap::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 61, 165, 0.05) 0%, rgba(0, 61, 165, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mf-lmc-showcase-container {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Two-Column Grid Layout (Desktop ~40% / 60%)
   ========================================================================== */
.mf-lmc-showcase-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
  box-sizing: border-box;
}

/* ==========================================================================
   LEFT COLUMN — Content & Actions
   ========================================================================== */
.mf-lmc-left-content {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mf-lmc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 61, 165, 0.16);
  color: var(--mf-lmc-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 31, 92, 0.04);
}

.mf-lmc-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--mf-lmc-yellow);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--mf-lmc-yellow);
}

.mf-lmc-headline {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--mf-lmc-navy);
}

.mf-lmc-description {
  margin: 0 0 32px;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--mf-lmc-text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* 4 Feature Items (Grid 2x2) */
.mf-lmc-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.mf-lmc-feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--mf-lmc-border);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 31, 92, 0.03);
  transition: all 0.2s ease;
}

.mf-lmc-feature-card:hover {
  border-color: rgba(0, 61, 165, 0.25);
  box-shadow: 0 6px 16px rgba(0, 31, 92, 0.06);
  transform: translateY(-2px);
}

.mf-lmc-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(0, 61, 165, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-sizing: border-box;
}

.mf-lmc-feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mf-lmc-feature-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--mf-lmc-navy);
  line-height: 1.3;
}

/* CTA Buttons Container */
.mf-lmc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mf-lmc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--mf-lmc-yellow);
  color: var(--mf-lmc-navy);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(255, 196, 0, 0.35);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mf-lmc-btn-primary:hover {
  background: var(--mf-lmc-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 196, 0, 0.45);
  color: var(--mf-lmc-navy);
}

.mf-lmc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: #ffffff;
  color: var(--mf-lmc-blue);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 61, 165, 0.2);
  box-shadow: 0 4px 14px rgba(0, 31, 92, 0.05);
  transition: all 0.2s ease;
}

.mf-lmc-btn-secondary:hover {
  background: var(--mf-lmc-blue);
  color: #ffffff;
  border-color: var(--mf-lmc-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 61, 165, 0.22);
}

/* ==========================================================================
   RIGHT COLUMN — Product Preview Mockup
   ========================================================================== */
.mf-lmc-mockup-frame {
  background: var(--mf-lmc-card-bg);
  border-radius: 24px;
  border: 1px solid rgba(0, 44, 120, 0.12);
  box-shadow: 0 20px 48px -12px rgba(0, 31, 92, 0.12), 0 4px 16px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Top App Navigation Bar */
.mf-lmc-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 44, 120, 0.08);
}

.mf-lmc-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-lmc-app-logo-badge {
  background: var(--mf-lmc-navy);
  color: var(--mf-lmc-yellow);
  font-weight: 900;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.mf-lmc-app-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--mf-lmc-navy);
}

.mf-lmc-app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #059669;
}

.mf-lmc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mf-lmc-green);
  box-shadow: 0 0 8px var(--mf-lmc-green);
  animation: mf-live-pulse 2s infinite ease-in-out;
}

/* Map Area Canvas */
.mf-lmc-map-area {
  position: relative;
  height: 250px;
  background: #edf5fc;
  overflow: hidden;
  background-image: 
    linear-gradient(rgba(0, 61, 165, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 61, 165, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Stylized Vector Roads / Blocks */
.mf-lmc-map-roads {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mf-lmc-road-1 {
  position: absolute;
  top: 45%;
  left: -10%;
  width: 120%;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: rotate(-7deg);
}

.mf-lmc-road-2 {
  position: absolute;
  top: -10%;
  left: 55%;
  width: 18px;
  height: 120%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: rotate(14deg);
}

.mf-lmc-map-landmark {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mf-lmc-text-light);
  border: 1px solid rgba(0, 31, 92, 0.06);
}

/* Route SVG Layer */
.mf-lmc-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mf-lmc-route-path {
  fill: none;
  stroke: var(--mf-lmc-blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  animation: mf-route-dash 24s linear infinite;
}

/* Map Markers */
.mf-lmc-marker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.mf-lmc-marker-pickup {
  top: 72%;
  left: 20%;
}

.mf-lmc-marker-dropoff {
  top: 26%;
  left: 78%;
}

.mf-lmc-pin-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 31, 92, 0.12);
  border: 1.5px solid var(--mf-lmc-blue);
  font-size: 12px;
  font-weight: 800;
  color: var(--mf-lmc-navy);
  white-space: nowrap;
}

.mf-lmc-marker-dropoff .mf-lmc-pin-badge {
  border-color: #e53935;
}

.mf-lmc-pin-badge img {
  width: 15px;
  height: 15px;
}

/* Moving / Online Vehicle Markers */
.mf-lmc-vehicle-marker {
  position: absolute;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 2px solid var(--mf-lmc-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.25);
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: mf-marker-pulse 3s infinite ease-in-out;
}

.mf-lmc-vehicle-marker img {
  width: 20px;
  height: 20px;
}

.mf-lmc-vehicle-1 {
  top: 50%;
  left: 48%;
}

.mf-lmc-vehicle-2 {
  top: 32%;
  left: 32%;
  opacity: 0.85;
}

/* Selected Driver Panel (Docked or Overlay) */
.mf-lmc-driver-selected-card {
  margin: -24px 16px 16px;
  position: relative;
  z-index: 4;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  border: 1.5px solid rgba(0, 61, 165, 0.2);
  box-shadow: 0 8px 24px rgba(0, 31, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  animation: mf-driver-glow 4s infinite alternate ease-in-out;
}

.mf-lmc-driver-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-lmc-driver-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(0, 61, 165, 0.08);
  border: 1px solid rgba(0, 61, 165, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.mf-lmc-driver-avatar img {
  width: 100%;
  height: 100%;
}

.mf-lmc-driver-details b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--mf-lmc-navy);
  line-height: 1.25;
}

.mf-lmc-driver-details span {
  display: block;
  font-size: 12px;
  color: var(--mf-lmc-text-muted);
  margin-top: 2px;
}

.mf-lmc-driver-badge-right {
  text-align: right;
}

.mf-lmc-eta-pill {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.mf-lmc-driver-plate {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--mf-lmc-text-light);
}

/* Chat & Workspace Panel */
.mf-lmc-chat-preview-panel {
  background: #f8fafc;
  border-top: 1px solid rgba(0, 44, 120, 0.08);
  padding: 16px 20px 20px;
}

.mf-lmc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mf-lmc-chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--mf-lmc-navy);
}

.mf-lmc-chat-header-title img {
  width: 16px;
  height: 16px;
}

.mf-lmc-chat-tracking-state {
  font-size: 12px;
  font-weight: 700;
  color: var(--mf-lmc-blue);
}

.mf-lmc-chat-messages-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mf-lmc-bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
  animation: mf-chat-fadein 0.4s ease forwards;
}

.mf-lmc-bubble-system {
  align-self: center;
  background: rgba(0, 61, 165, 0.06);
  border: 1px solid rgba(0, 61, 165, 0.1);
  color: var(--mf-lmc-blue);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  max-width: 95%;
}

.mf-lmc-bubble-driver {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(0, 31, 92, 0.08);
  color: var(--mf-lmc-text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mf-lmc-bubble-driver b {
  display: block;
  font-size: 11px;
  color: var(--mf-lmc-blue);
  margin-bottom: 2px;
}

.mf-lmc-bubble-customer {
  align-self: flex-end;
  background: var(--mf-lmc-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.2);
}

/* ==========================================================================
   Micro-Animations
   ========================================================================== */
@keyframes mf-live-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.5;
  }
}

@keyframes mf-marker-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.25);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 61, 165, 0.4);
  }
}

@keyframes mf-driver-glow {
  0% {
    border-color: rgba(0, 61, 165, 0.2);
    box-shadow: 0 8px 24px rgba(0, 31, 92, 0.08);
  }
  100% {
    border-color: rgba(0, 61, 165, 0.45);
    box-shadow: 0 8px 28px rgba(0, 61, 165, 0.16);
  }
}

@keyframes mf-route-dash {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes mf-chat-fadein {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mf-lmc-live-dot,
  .mf-lmc-vehicle-marker,
  .mf-lmc-driver-selected-card,
  .mf-lmc-route-path,
  .mf-lmc-bubble,
  .mf-lmc-feature-card,
  .mf-lmc-btn-primary,
  .mf-lmc-btn-secondary {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .mf-lmc-showcase-wrap {
    padding: 60px 0 70px;
  }

  .mf-lmc-showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mf-lmc-map-area {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .mf-lmc-showcase-wrap {
    padding: 48px 0 56px;
  }

  .mf-lmc-showcase-container {
    width: calc(100% - 32px);
  }

  .mf-lmc-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  /* Mobile Re-ordering as specified:
     1. Eyebrow + Headline
     2. Description
     3. CTAs
     4. LiveMapChat Preview
     5. 4 Features List
  */
  .mf-lmc-left-content {
    display: contents;
  }

  .mf-lmc-header-group {
    order: 1;
  }

  .mf-lmc-actions {
    order: 2;
    margin-bottom: 24px;
    width: 100%;
    flex-direction: column;
  }

  .mf-lmc-btn-primary,
  .mf-lmc-btn-secondary {
    width: 100%;
    box-sizing: border-box;
  }

  .mf-lmc-mockup-frame {
    order: 3;
    width: 100%;
    margin-bottom: 24px;
  }

  .mf-lmc-features-grid {
    order: 4;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 0;
  }

  .mf-lmc-feature-card {
    padding: 12px 14px;
  }

  .mf-lmc-feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 6px;
  }

  .mf-lmc-feature-text {
    font-size: 13px;
  }

  .mf-lmc-map-area {
    height: 200px;
  }

  .mf-lmc-driver-selected-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mf-lmc-driver-badge-right {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .mf-lmc-features-grid {
    grid-template-columns: 1fr;
  }
}