/* ===================================================
   ROYAL DELIVERIES — Global Overrides
   (tracking page + header enhancements)
   =================================================== */

/* ── Navbar Glass ───────────────────────────────────── */
.section-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: box-shadow .3s ease;
}
.section-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.18);
}
.logistics-navbar.custom-align {
  background: rgba(9,9,15,.94) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34,197,94,.15);
  padding: 14px 0;
  transition: all .3s ease;
}
.logistics-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 6px 2px !important;
  position: relative;
  transition: color .25s;
}
.logistics-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #22c55e;
  border-radius: 2px;
  transition: width .3s ease;
}
.logistics-navbar .nav-link:hover { color: #fff !important; }
.logistics-navbar .nav-link:hover::after { width: 100%; }

/* Navbar Track button */
.logistics-navbar .btn-primary {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 10px 26px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  box-shadow: 0 4px 18px rgba(34,197,94,.35) !important;
  transition: all .3s ease !important;
}
.logistics-navbar .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(34,197,94,.5) !important;
}

/* Mobile offcanvas */
.offcanvas { background: #09090f !important; }
.offcanvas .nav-link { color: rgba(255,255,255,.8) !important; }

/* ── Tracking Modal ─────────────────────────────────── */
#exampleModal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

/* ── Footer ─────────────────────────────────────────── */
.section-footer {
  background: linear-gradient(135deg, #09090f 0%, #111820 100%) !important;
}
.footer-separator {
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.4), transparent) !important;
  height: 1px !important;
  border: none !important;
}
/* Footer social icons */
.ft-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  display: flex; align-items: center; justify-content: center;
  color: #22c55e;
  font-size: .9rem;
  text-decoration: none;
  transition: all .3s;
}
.ft-social:hover { background: #22c55e !important; color: #fff !important; transform: translateY(-2px); }
/* Footer column headings */
.ft-col-title {
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(34,197,94,.35);
}
/* Footer link lists */
.ft-link-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ft-link-list a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  display: flex; align-items: center; gap: 8px;
  transition: color .25s;
}
.ft-link-list a:hover { color: #22c55e !important; }
.ft-link-icon { color: #22c55e; width: 14px; }
.ft-link-chevron { color: #22c55e; font-size: .65rem; }
/* Footer contact */
.ft-contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.ft-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.ft-contact-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #22c55e;
  font-size: .8rem;
}
.ft-contact-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  margin-bottom: 3px;
}
.ft-contact-val {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  text-decoration: none;
}
.ft-translate-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.ft-copyright {
  padding: 24px 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; text-align: center;
}
.ft-copyright p { margin: 0; color: rgba(255,255,255,.4); font-size: .82rem; }
.ft-copyright-sub { font-size: .75rem !important; color: rgba(255,255,255,.22) !important; }

/* ── Back to top ─────────────────────────────────────── */
.progressCounter {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 20px rgba(34,197,94,.4) !important;
}

/* ===================================================
   TRACKING PAGE STYLES
   =================================================== */
:root {
  --c-green: #22c55e;
  --c-green-dk: #15803d;
  --c-green-lt: #4ade80;
  --c-dark: #09090f;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }
@keyframes shimmer { from{transform:translateX(-100%)} to{transform:translateX(200%)} }

.track-hero-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #09090f 0%, #0a1f0d 50%, #09090f 100%);
}
.track-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.track-hero-banner .hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.18) 0%, transparent 65%);
  pointer-events: none;
}
.track-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
}
.track-hero-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  box-shadow: 0 12px 40px rgba(34,197,94,.5);
  animation: float 3.5s ease-in-out infinite;
}
.track-hero-content h2 {
  font-size: clamp(1.8rem,4vw,2.8rem) !important;
  font-weight: 800 !important;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.track-hero-content p { color: rgba(255,255,255,.6); font-size: 1rem; margin-bottom: 0; }
.track-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.35);
  color: #4ade80;
  border-radius: 100px;
  padding: 6px 18px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 14px;
}
.track-section-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .3s ease;
  margin-bottom: 24px;
}
.track-section-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.track-section-title {
  padding: 18px 24px;
  background: linear-gradient(135deg, #09090f, #0a1f0d);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.track-section-title .title-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.track-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
}
.track-info-item {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  border-right: 1px solid rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .2s;
}
.track-info-item:hover { background: #fafafa; }
.track-info-item .item-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 5px;
}
.track-info-item .item-value {
  font-size: .95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.status-in-transit  { background: rgba(16,185,129,.1);  color: #059669; border: 1px solid rgba(16,185,129,.25); }
.status-blocked     { background: rgba(239,68,68,.1);   color: #dc2626; border: 1px solid rgba(239,68,68,.25); }
.status-cleared     { background: rgba(59,130,246,.1);  color: #2563eb; border: 1px solid rgba(59,130,246,.25); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; animation: pulse-dot 1.8s infinite; }
.status-in-transit .status-dot { background: #10b981; }
.status-blocked .status-dot    { background: #ef4444; }
.status-cleared .status-dot    { background: #3b82f6; animation: none; }
.track-progress-wrap { padding: 20px 24px; }
.track-progress-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: 10px; color: #444; }
.track-progress-bar { height: 12px; background: #f0f0f0; border-radius: 100px; overflow: hidden; }
.track-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  position: relative;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.track-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 2s infinite;
}
.delivery-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: .9rem;
}
.delivery-type-badge.flight  { background: linear-gradient(135deg,#eff6ff,#dbeafe); border: 1.5px solid rgba(59,130,246,.25); color: #1d4ed8; }
.delivery-type-badge.sea     { background: linear-gradient(135deg,#ecfdf5,#d1fae5); border: 1.5px solid rgba(16,185,129,.25); color: #047857; }
.delivery-type-badge.road    { background: linear-gradient(135deg,#fff7ed,#fed7aa); border: 1.5px solid rgba(234,88,12,.25);  color: #c2410c; }
.delivery-type-badge.rail    { background: linear-gradient(135deg,#f5f3ff,#ede9fe); border: 1.5px solid rgba(124,58,237,.25); color: #6d28d9; }
.delivery-type-badge.express { background: linear-gradient(135deg,#fff1f2,#ffe4e6); border: 1.5px solid rgba(225,29,72,.25);  color: #be123c; }
.track-logo-banner {
  background: linear-gradient(135deg, #09090f, #0a1f0d);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
}
.track-logo-banner img { height: 60px; object-fit: contain; }
.track-map-container {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.track-map-container iframe { display: block; width: 100%; min-height: 380px; border: none; }
.track-map-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #09090f, #0a1f0d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.track-print-btn {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .3s ease;
  box-shadow: 0 6px 20px rgba(34,197,94,.35);
  font-family: inherit;
}
.track-print-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34,197,94,.5); }

@media print {
  .track-print-btn, .track-map-container, .track-hero-banner, nav, footer, .progressCounter { display: none !important; }
  .track-section-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
}
