﻿/* ============================================
   MUKESH ROAD CARRIERS (MRC) - Extra CSS Utilities & Components
   Append to main.css or include separately
============================================ */

/* ── Back to Top Button ── */
#backToTop {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
#backToTop:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
@media (min-width: 992px) {
  #backToTop {
    bottom: 22px;
  }
}

/* ── Route Card Hover Arrow ── */
.route-card .arrow-icon {
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}
.route-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/* ── Service Card Badge ── */
.svc-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Alert Boxes ── */
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
}
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
}

/* ── Quote / Utility Panels ── */
.calc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.calc-card h5 {
  font-size: 1rem;
  margin-bottom: 20px;
}
.calc-result-wrap {
  background: var(--primary-ultra-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-top: 16px;
}
.calc-result-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.calc-result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Tabs Component ── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.tab-btn.active,
.tab-btn:hover {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ── Pill Tags ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  color: var(--text-muted);
}
.pill.pill-primary {
  background: var(--primary-ultra-light);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--primary);
}
.pill.pill-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.pill.pill-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* ── Info Card ── */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(220, 38, 38, 0.18);
}
.info-card-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-ultra-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.info-card-body h6 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.info-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Rating Stars ── */
.stars-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.star {
  color: var(--warning);
  font-size: 0.9rem;
}
.star.empty {
  color: #e5e7eb;
}
.rating-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
}
.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

/* ── Horizontal Scroll Cards ── */
.hscroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.hscroll-wrap::-webkit-scrollbar {
  display: none;
}
.hscroll-inner {
  display: flex;
  gap: 14px;
  width: max-content;
}
.hscroll-inner > * {
  flex-shrink: 0;
  width: 260px;
}

/* ── Price Highlight ── */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.price-tag .currency {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--primary);
}
.price-tag .amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.price-tag .period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Sticky CTA bar (desktop) ── */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 24px;
  z-index: 990;
  display: none;
  align-items: center;
  gap: 16px;
}
.sticky-cta-bar.show {
  display: flex;
}
@media (max-width: 991px) {
  .sticky-cta-bar {
    display: none !important;
  }
}
.sticky-cta-info {
  flex: 1;
}
.sticky-cta-info strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}
.sticky-cta-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ── Step Progress Bar ── */
.step-progress {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-dot.active {
  background: var(--primary);
  color: white;
}
.step-dot.done {
  background: var(--success);
  color: white;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}
.step-line.done {
  background: var(--success);
}

/* ── Comparison Badge ── */
.best-value-badge {
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* ── Notice Banner ── */
.notice-banner {
  background: var(--primary-ultra-light);
  border-bottom: 1px solid rgba(220, 38, 38, 0.15);
  padding: 10px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-body);
}
.notice-banner strong {
  color: var(--primary);
}
.notice-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Page Hero Variants ── */
.hero-sm {
  background: var(--secondary);
  padding: 50px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-sm .hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 80% at 80% 50%,
    rgba(220, 38, 38, 0.1) 0%,
    transparent 60%
  );
}

/* ── Image Placeholder ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--secondary) 0%, #0f3460 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 180px;
}

/* ── Divider with Text ── */
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Checklist ── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 10px;
  line-height: 1.55;
}
.checklist li::before {
  content: "OK";
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Map Embed ── */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ── Content Prose ── */
.prose {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 720px;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--text-dark);
}
.prose h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--text-dark);
}
.prose p {
  margin-bottom: 16px;
}
.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose li {
  margin-bottom: 6px;
}
.prose strong {
  color: var(--text-dark);
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
}
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  background: var(--primary-ultra-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-body);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.prose table th {
  background: var(--secondary);
  color: white;
  padding: 10px 14px;
  font-size: 0.85rem;
  text-align: left;
}
.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.prose table tr:hover td {
  background: var(--primary-ultra-light);
}

/* ── Print Styles ── */
@media print {
  .topbar,
  .main-navbar,
  .mobile-sticky-bar,
  .whatsapp-float,
  #backToTop,
  .sticky-cta-bar,
  .footer-app-banner,
  .cta-section,
  .quote-section {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    padding-bottom: 0 !important;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .route-hero,
  .hero-section {
    background: white;
    color: #000;
    min-height: auto;
    padding: 20px 0;
  }
  .hero-title,
  .route-hero .hero-badge {
    color: #000;
  }
  section {
    padding: 20px 0;
  }
  .route-info-strip {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Dark Mode Support (optional) ── */
@media (prefers-color-scheme: dark) {
  /* Override only if you want dark mode - disabled by default */
  /* body { background: #0F0F1A; color: #C8C8DA; } */
}

/* ── Container fluid override ── */
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Selection color ── */
::selection {
  background: rgba(220, 38, 38, 0.2);
  color: var(--text-dark);
}

@media

