/* tracking.css */

:root {
  /* Brand Colors */
  --color-primary: #ED1B2D;
  --color-primary-dark: #c41625;
  --color-neutral-900: #231F20;
  --color-neutral-700: #7A7A7C;
  --color-neutral-600: #555;
  --color-neutral-500: #666;
  --color-neutral-400: #95a5a6;
  --color-neutral-200: #e8ecf0;
  --color-neutral-100: #f5f7fa;
  --color-neutral-50: #fafbfc;
  --color-white: #ffffff;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-dark: #059669;
  --color-info: #3b82f6;
  --color-info-dark: #2563eb;
  --color-warning: #f39c12;
  --color-danger: #e74c3c;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;

  /* Border */
  --border-width: 2px;
  --border-width-thick: 3px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Screen reader only - for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 4px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-neutral-900);
  outline-offset: 2px;
}

/* No JavaScript warning */
.noscript-warning {
  padding: 40px 20px;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 3px solid #c62828;
  margin: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
}

.noscript-warning h2 {
  color: #c62828;
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
}

.noscript-warning p {
  color: #333;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* Focus indicators for keyboard navigation */
*:focus-visible {
  outline: var(--border-width-thick) solid var(--color-primary);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: var(--border-width-thick) solid var(--color-primary);
  outline-offset: 2px;
}

/* Skeleton loader for loading states */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinner 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tracking-card {
  animation: fadeIn 0.4s ease-out;
}

.tracking-search-card {
  animation: fadeIn 0.3s ease-out;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  color: #2c3e50;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   HEADER STYLES - REMOVED FOR WEBSITE INTEGRATION
   These styles are kept for standalone use but commented out for website integration
   ========================================================================== */

/*
.dmw-header {
  border-bottom: 3px solid #ED1B2D;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dmw-header-inner {
  max-width: 95%;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1400px) {
  .dmw-header-inner {
    max-width: 1600px;
  }
}

@media (min-width: 1800px) {
  .dmw-header-inner {
    max-width: 1800px;
  }
}

@media (min-width: 2200px) {
  .dmw-header-inner {
    max-width: 2000px;
  }
}

.dmw-logo-wrap {
  display: flex;
  align-items: center;
}

.dmw-logo {
  height: 36px;
}

.dmw-header-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.dmw-contact {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.dmw-contact .bullet {
  margin: 0 10px;
  color: #999;
}

.dmw-nav {
  margin-top: 6px;
}

.dmw-nav a {
  margin-left: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #34495e;
  font-weight: 500;
  transition: color 0.2s ease;
}

.dmw-nav a:hover {
  color: #ED1B2D;
  text-decoration: none;
}
*/

/* End of commented header styles */

/* Main layout */

.tracking-main {
  max-width: 95%;
  margin: 0 auto;
  padding: 0;
}

.tracking-main.has-results {
  margin: 20px auto 40px;
  padding: 0 24px;
}

@media (min-width: 1400px) {
  .tracking-main {
    max-width: 1600px;
  }
}

@media (min-width: 1800px) {
  .tracking-main {
    max-width: 1800px;
  }
}

@media (min-width: 2200px) {
  .tracking-main {
    max-width: 2000px;
  }
}

/* Hero Search Section - Centered Landing Page */

.tracking-search-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  animation: fadeIn 0.6s ease-out;
  position: relative;
  overflow: hidden;
  background: #5a7a9a;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Animated background */
.hero-background {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: calc(100% + 20px);
  background-image: url('/assets/Nashville Website Picture 3.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: 0;
  animation: slowZoom 30s ease-in-out infinite alternate;
  will-change: transform;
  filter: brightness(0.95);
}

@keyframes slowZoom {
  0% {
    transform: scale(1.08) translate(0, 0);
  }
  50% {
    transform: scale(1.12) translate(-1%, -0.5%);
  }
  100% {
    transform: scale(1.10) translate(0.5%, 0.5%);
  }
}

.search-hero-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #000000;
  margin: 0 0 16px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 18px;
  color: #34495e;
  margin: 0 0 40px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
}

.tracking-form {
  margin: 0;
}

.hero-input-wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-input {
  flex: 1;
  min-width: 300px;
  padding: 20px 28px;
  border-radius: 16px;
  border: 3px solid #e0e0e0;
  font-size: 20px;
  transition: all 0.3s ease;
  outline: none;
  letter-spacing: 0.5px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.hero-input::placeholder {
  color: #95a5a6;
  font-weight: 400;
  font-style: normal;
  opacity: 1;
  font-size: 18px;
}

.hero-input:focus {
  border-color: #ED1B2D;
  box-shadow: 0 0 0 6px rgba(237, 27, 45, 0.15), 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.hero-input:hover {
  border-color: #c0c0c0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hero-zipcode-input {
  flex: 0 1 220px;
  min-width: 200px;
  max-width: 240px;
}

.hero-track-btn {
  background: linear-gradient(135deg, #ED1B2D 0%, #c41625 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 20px 48px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(237, 27, 45, 0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  min-width: 220px;
}

.hero-track-btn:hover {
  background: linear-gradient(135deg, #c41625 0%, #ED1B2D 100%);
  box-shadow: 0 8px 24px rgba(237, 27, 45, 0.45);
  transform: translateY(-2px);
}

.hero-track-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(237, 27, 45, 0.3);
}

.hero-track-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Inline Form in Tracking Header */

.tracking-form-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.inline-label {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.5px;
  margin: 0;
}

.inline-input {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 20px;
  font-weight: 700;
  color: #ED1B2D;
  letter-spacing: 0.5px;
  background: transparent;
  min-width: 100px;
  width: 100px;
}

.inline-input::placeholder {
  color: #95a5a6;
  font-weight: 400;
}

.inline-zipcode-input {
  min-width: 100px;
  width: 100px;
  max-width: 110px;
}

.inline-track-btn {
  background: linear-gradient(135deg, #ED1B2D 0%, #c41625 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(237, 27, 45, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.inline-track-btn:hover {
  background: linear-gradient(135deg, #c41625 0%, #ED1B2D 100%);
  box-shadow: 0 4px 12px rgba(237, 27, 45, 0.4);
  transform: translateY(-1px);
}

.inline-track-btn:active {
  transform: translateY(0);
}

.inline-track-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tracking-error {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #ffebee;
  color: #c62828;
  font-size: 14px;
  border-left: 4px solid #c62828;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.15);
}

.hidden {
  display: none;
}

/* Tracking card */

.tracking-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.tracking-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tracking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 3px solid #ED1B2D;
}

.tracking-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1;
}

.current-location {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #555;
  background-color: #f0f4f8;
  padding: 10px 18px;
  border-radius: 8px;
  gap: 8px;
  line-height: 1.4;
}

.current-location .dot {
  font-size: 18px;
}

.current-location .value {
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.3px;
}

.tracking-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.status-label {
  font-weight: 600;
  color: #555;
  letter-spacing: 0.3px;
}

.status-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  background-color: #e0e0e0;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  white-space: normal;
  line-height: 1.3;
}

/* Status-specific colors - Improved contrast */
.status-chip.status-delivered {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-chip.status-enroute,
.status-chip.status-pickup {
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.status-chip.status-delayed {
  background: linear-gradient(135deg, var(--color-danger) 0%, #ec7063 100%);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Body */

.tracking-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

@media (min-width: 1400px) {
  .tracking-body {
    grid-template-columns: 2.5fr 1fr;
  }
}

@media (min-width: 1800px) {
  .tracking-body {
    grid-template-columns: 3fr 1fr;
  }
}

.map-column {
  border-right: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

#tracking-map {
  width: 100%;
  height: 650px;
  min-height: 600px;
  max-height: 1000px;
  border-radius: 0;
  background: #FFFFFF;
  position: relative;
}

/* DMW truck marker styling */
.dmw-truck-marker {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Custom emoji marker styling */
.custom-emoji-icon {
  background: transparent !important;
  border: none !important;
  z-index: 1000 !important;
}

.emoji-marker {
  font-size: 40px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  animation: markerPulse 2s ease-in-out infinite;
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes markerPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Numbered stop markers (for multi-stop loads) */
.numbered-stop .emoji-marker {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #ED1B2D 0%, #c41628 100%);
  color: #ffffff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(237, 27, 45, 0.5);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none; /* No pulse animation for numbered stops */
}

/* DMW BRANDED ZOOM CONTROLS - Light Theme */
#tracking-map .leaflet-control-zoom {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
  border: 2px solid #D6D7D9;
}

#tracking-map .leaflet-control-zoom a {
  background: #FFFFFF;
  color: #231F20;
  border: none;
  font-weight: 700;
  font-size: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid #D6D7D9;
  text-shadow: none;
}

#tracking-map .leaflet-control-zoom a:last-child {
  border-bottom: none;
}

#tracking-map .leaflet-control-zoom a:hover {
  background: #ED1B2D;
  color: #FFFFFF;
  box-shadow: inset 0 0 20px rgba(237, 27, 45, 0.3);
}

#tracking-map .leaflet-control-zoom a:active {
  background: #c41625;
  transform: scale(0.95);
}

#tracking-map .leaflet-control-zoom a:focus {
  outline: 2px solid #ED1B2D;
  outline-offset: 2px;
}

#tracking-map .leaflet-control-zoom-in {
  border-radius: 6px 6px 0 0;
}

#tracking-map .leaflet-control-zoom-out {
  border-radius: 0 0 6px 6px;
}

/* DMW BRANDED ATTRIBUTION - Light Theme */
#tracking-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #D6D7D9;
  border-bottom: none;
  border-right: none;
  border-radius: 0 8px 0 0;
  padding: 6px 12px;
  font-size: 10px;
  color: #7A7A7C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#tracking-map .leaflet-control-attribution a {
  color: #ED1B2D;
  text-decoration: none;
  font-weight: 600;
}

#tracking-map .leaflet-control-attribution a:hover {
  color: #c41625;
  text-decoration: underline;
}

/* DMW BRANDED POPUPS - Light Theme */
#tracking-map .leaflet-popup-content-wrapper {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 2px #ED1B2D;
  padding: 4px;
  color: #231F20;
}

#tracking-map .leaflet-popup-content {
  margin: 16px 20px;
  font-size: 14px;
  color: #231F20;
  font-weight: 600;
  line-height: 1.6;
}

#tracking-map .leaflet-popup-tip {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#tracking-map .leaflet-popup-close-button {
  color: #ED1B2D !important;
  font-size: 20px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 8px;
  right: 8px;
  text-align: center;
  line-height: 24px;
  transition: all 0.2s ease;
}

#tracking-map .leaflet-popup-close-button:hover {
  color: #FFFFFF !important;
  background: #ED1B2D;
  border-radius: 4px;
}

/* DMW BRANDED TOOLTIPS - Light Theme */
#tracking-map .leaflet-tooltip {
  background: #FFFFFF;
  border: 2px solid #ED1B2D;
  color: #231F20;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#tracking-map .leaflet-tooltip-top:before,
#tracking-map .leaflet-tooltip-bottom:before,
#tracking-map .leaflet-tooltip-left:before,
#tracking-map .leaflet-tooltip-right:before {
  border-top-color: #ED1B2D;
  border-bottom-color: #ED1B2D;
  border-left-color: #ED1B2D;
  border-right-color: #ED1B2D;
}

@media (min-width: 1024px) {
  #tracking-map {
    height: 700px;
  }
}

@media (min-width: 1400px) {
  #tracking-map {
    height: 750px;
  }
}

@media (min-width: 1800px) {
  #tracking-map {
    height: 850px;
  }
}

@media (min-width: 2200px) {
  #tracking-map {
    height: 950px;
  }
}

@media (min-height: 900px) {
  #tracking-map {
    height: 700px;
  }
}

@media (min-height: 1080px) {
  #tracking-map {
    height: 800px;
  }
}

.gps-update {
  padding: 14px 20px;
  font-size: 13px;
  color: #7f8c8d;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-top: 1px solid #e0e0e0;
  font-style: italic;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* Details */

.details-column {
  padding: 20px 24px;
  font-size: 14px;
  overflow-y: auto;
}

@media (min-width: 1400px) {
  .details-column {
    padding: 24px 30px;
    font-size: 15px;
  }
}

@media (min-width: 1800px) {
  .details-column {
    padding: 28px 36px;
    font-size: 16px;
  }
}

.details-block + .details-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e8ecf0;
}

.details-block h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 13px;
}

.details-block:nth-child(1) h3 {
  background: linear-gradient(135deg, #231F20 0%, #3A3A3C 100%);
  box-shadow: 0 2px 6px rgba(35, 31, 32, 0.3);
}

.details-block:nth-child(2) h3 {
  background: linear-gradient(135deg, #231F20 0%, #3A3A3C 100%);
  box-shadow: 0 2px 6px rgba(35, 31, 32, 0.3);
}

/* Green highlight when at location */
.details-block.at-location h3 {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3) !important;
}

.location-name {
  margin: 0 0 10px;
  font-weight: 700;
  color: #231F20;
  font-size: 17px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 6px;
  border-left: 4px solid #ED1B2D;
}

.location-name-box {
  margin: 0 0 10px;
  font-weight: 700;
  color: #231F20;
  font-size: 17px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 6px;
  border-left: 4px solid #ED1B2D;
}

.location-address-box {
  margin: 6px 0 6px 16px;
  padding: 8px 12px 8px 16px;
  background: linear-gradient(135deg, #fafbfc 0%, #f1f3f5 100%);
  border-radius: 6px;
  border-left: 3px solid #7A7A7C;
}

.location-line {
  margin: 4px 0;
  color: #555;
  line-height: 1.7;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.location-line:first-child {
  margin-top: 0;
}

.location-line:last-child {
  margin-bottom: 0;
}

.shipment-info-block .metrics {
  margin: 10px 0 0 0;
  padding: 10px 14px;
  background-color: #f5f5f5;
  border-radius: 6px;
  border-left: 4px solid #7A7A7C;
  line-height: 1.5;
  font-size: 14px;
}

.metrics {
  margin: 10px 0 0 32px;
  padding: 10px 14px;
  background-color: #f5f5f5;
  border-radius: 6px;
  border-left: 4px solid #7A7A7C;
  line-height: 1.5;
  font-size: 14px;
}

.metrics strong {
  color: #231F20;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Stops container */
.stops-container {
  margin: 0;
}

.stops-container.scrollable {
  max-height: 400px;
  overflow-y: auto;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  padding: 12px;
  padding-right: 8px;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

/* Increase scrollable height on larger screens */
@media (min-width: 1024px) {
  .stops-container.scrollable {
    max-height: 500px;
  }
}

@media (min-width: 1400px) {
  .stops-container.scrollable {
    max-height: 600px;
  }
}

.stop-block {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
  border-bottom: var(--border-width) solid var(--color-neutral-200);
}

.stop-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Prevent consecutive stop-blocks from getting border-top from .details-block + .details-block */
.stop-block + .stop-block {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.stop-header {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 13px;
  background: linear-gradient(135deg, #231F20 0%, #3A3A3C 100%);
  box-shadow: 0 2px 6px rgba(35, 31, 32, 0.3);
  margin-bottom: 10px;
}

/* Pickup stop header - black (default) */
.stop-header.stop-pickup {
  background: linear-gradient(135deg, #231F20 0%, #3A3A3C 100%);
  box-shadow: 0 2px 6px rgba(35, 31, 32, 0.3);
}

/* Delivery stop header - black (default) */
.stop-header.stop-delivery {
  background: linear-gradient(135deg, #231F20 0%, #3A3A3C 100%);
  box-shadow: 0 2px 6px rgba(35, 31, 32, 0.3);
}

/* Current stop header - GREEN to highlight active leg */
.stop-header.current-stop {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.signature-placeholder {
  margin: 10px 0 0 32px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
  border-radius: 6px;
  border-left: 4px solid var(--color-warning);
  line-height: 1.5;
  font-size: 13px;
  color: #856404;
  font-style: italic;
}

.signature-completed {
  margin: 10px 0 0 32px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 6px;
  border-left: 4px solid var(--color-success);
  line-height: 1.5;
  font-size: 13px;
  color: #065f46;
  font-weight: 600;
}

.timing-line {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
  padding-left: 4px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  font-style: italic;
}

.bol-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e8ecf0;
}

.bol-link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid #ED1B2D;
  color: #ED1B2D;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.bol-link:hover {
  background-color: #ED1B2D;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(237, 27, 45, 0.3);
  transform: translateY(-1px);
}

.bol-link:active {
  transform: translateY(0);
}

.bol-link.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* Responsive */

@media (max-width: 900px) {
  .tracking-body {
    grid-template-columns: 1fr;
  }

  .map-column {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  #tracking-map {
    height: 350px; /* Increased from 300px for better mobile experience */
    min-height: 300px;
  }

  .stops-container.scrollable {
    max-height: 350px;
  }

  .details-column {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  /* Header styles commented out for website integration
  .dmw-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .dmw-header-right {
    align-items: flex-start;
    text-align: left;
  }

  .dmw-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }

  .dmw-contact .bullet {
    display: none;
  }

  .dmw-contact .phone,
  .dmw-contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
  }

  .dmw-contact .phone:hover,
  .dmw-contact a:hover {
    text-decoration: underline;
  }
  */

  .tracking-main {
    padding: 0 16px;
    margin: 24px auto 48px;
  }

  .tracking-search-card {
    padding: 24px 20px;
  }

  .tracking-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .field-group {
    min-width: 100%;
  }

  .track-btn {
    margin-left: 0;
    width: 100%;
    padding: 16px 32px;
  }

  .tracking-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .tracking-header-left {
    gap: 16px;
    width: 100%;
  }

  .dmw-load-heading {
    font-size: 22px;
  }

  #tracking-map {
    height: 250px;
  }

  .stops-container.scrollable {
    max-height: 300px;
  }

  .metrics {
    margin-left: 16px;
    font-size: 13px;
    padding: 8px 12px;
  }

  .signature-placeholder,
  .signature-completed {
    margin-left: 16px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .location-address-box {
    margin-left: 8px;
    padding: 6px 10px;
  }

  .current-location {
    width: 100%;
  }

  .details-column {
    padding: 20px;
  }

  .details-block h3 {
    font-size: 16px;
  }

  /* Prevent iOS zoom on input focus */
  .hero-input,
  .inline-input {
    font-size: 16px !important; /* Prevents iOS zoom */
  }

  .hero-input {
    min-width: 100%;
    padding: 18px 24px;
  }

  .hero-track-btn {
    width: 100%;
    padding: 18px 32px;
  }
}
