/* Base Styles & Reset */
:root {
    --primary: #4d148c;
    --primary-dark: #3a0f66;
    --primary-light: #6b2ba8;
    --secondary: #4CAF50;
    --dark: #333333;
    --gray-dark: #555555;
    --gray: #888888;
    --gray-light: #DDDDDD;
    --gray-lighter: #F8F9FA;
    --white: #FFFFFF;
    --red: #F44336;
    --green: #4CAF50;
    --blue: #2196F3;
    --yellow: #FFC107;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    --transition: all 0.2s ease;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--dark);
    background-color: #EEF4FB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  ul, ol {
    list-style: none;
  }
  
  button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Header Styles */
  .header {
    background-color: #4d148c;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-svg {
    height: 40px;
    width: auto;
  }

  .main-nav {
    display: flex;
    align-items: center;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-link {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    transition: color 0.2s;
  }

  .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  .chevron {
    transition: transform 0.2s;
  }

  .nav-link:hover .chevron {
    transform: rotate(180deg);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .sign-in-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
  }

  .sign-in-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
  }

  .search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s;
  }

  /* Footer Styles */
  .footer {
    background-color: #4d148c;
    color: white;
    padding: 48px 0 24px;
  }

  .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }

  .footer-column ul {
    list-style: none;
  }

  .footer-column li {
    margin-bottom: 12px;
  }

  .footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.2s;
  }

  .footer-column a:hover {
    color: white;
  }

  .language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
  }

  .language-dropdown select {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
  }

  .language-dropdown select option {
    background: #4d148c;
  }

  .dropdown-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
  }

  .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
  }

  .social-label {
    font-size: 14px;
    font-weight: 600;
  }

  .social-icons {
    display: flex;
    gap: 16px;
  }

  .social-icons a {
    color: white;
    transition: opacity 0.2s;
  }

  .social-icons a:hover {
    opacity: 0.8;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
  }

  .footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
  }

  .footer-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    transition: color 0.2s;
  }

  .footer-nav a:hover {
    color: white;
  }

  .divider {
    color: rgba(255, 255, 255, 0.4);
  }
  
  /* Main Content Styles */
  main {
    padding: 1.5rem 0;
  }
  
  /* Tracking Summary Section */
  .tracking-summary {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
  }
  
  .tracking-header {
    padding: 1.5rem;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
  }
  
  .tracking-title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .tracking-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
  }
  
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .status-badge.delivered {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--green);
  }
  
  .status-badge.in.transit {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--blue);
  }
  
  .status-badge.transit {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--blue);
  }
  
  .status-badge.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--yellow);
  }
  
  .delivery-time {
    text-align: right;
  }
  
  .eta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
  }
  
  .eta-date {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
  }
  
  .tracking-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: var(--gray-lighter);
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
  }
  
  .tracking-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .info-label {
    font-size: 0.75rem;
    color: var(--gray);
  }
  
  .info-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .info-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
  }
  
  .btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--gray-lighter);
    border-radius: var(--border-radius);
    color: var(--gray);
    transition: var(--transition);
  }
  
  .btn-copy:hover {
    background-color: var(--gray-light);
    color: var(--primary);
  }
  
  /* Layout Grids */
  .tracker-layout,
  .details-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Common Card Styles */
  .info-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 1.5rem;
    margin-bottom: 20px;
  }
  
  .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
  }
  
  .section-title i {
    color: var(--primary);
  }
  
  /* Status Timeline Section */
  .status-timeline {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    padding: 1.5rem;
  }
  
  .timeline-wrapper {
    margin-bottom: 1.5rem;
  }
  
  .progress-container {
    position: relative;
    margin: 0 0.5rem;
  }
  
  .progress-bar {
    position: absolute;
    top: 30px;
    left: 16px;
    height: calc(100% - 60px);
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) var(--progress), var(--gray-light) var(--progress));
    z-index: 1;
  }
  
  .timeline-steps {
    position: relative;
    z-index: 2;
  }
  
  .step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .step:last-child {
    margin-bottom: 0;
  }
  
  .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
  }
  
  .step.active .step-icon {
    border-color: var(--primary);
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary);
  }
  
  .step.active .step-icon i {
    color: var(--primary);
  }
  
  .step-content {
    padding-top: 0.375rem;
  }
  
  .step-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
  }
  
  .step-date {
    font-size: 0.75rem;
    color: var(--gray);
  }
  
  .pulse {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.95);
      opacity: 0.7;
    }
    50% {
      transform: scale(1.05);
      opacity: 1;
    }
    100% {
      transform: scale(0.95);
      opacity: 0.7;
    }
  }
  
  .delivery-update {
    display: flex;
    gap: 0.875rem;
    background-color: rgba(33, 150, 243, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
  }
  
  .update-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
  }
  
  .update-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary);
  }
  
  .update-message {
    font-size: 0.75rem;
    color: var(--gray-dark);
    line-height: 1.4;
  }
  
  /* Map Card Styles */
  .map-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    padding: 1rem;
  }
  
  .map-container {
    height: 100%;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
  }
  
  .map-legend {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem;
    background-color: var(--gray-lighter);
    border-radius: var(--border-radius);
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
  }
  
  .legend-color {
    display: block;
    width: 16px;
    height: 3px;
    border-radius: 1px;
  }
  
  .legend-color.completed {
    background-color: var(--primary);
  }
  
  .legend-color.pending {
    background-color: var(--gray-light);
  }
  
  /* Shipping Info Section */
  .shipping-details {
    padding: 0.5rem 0;
  }
  
  .detail-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .detail-group {
    display: flex;
    gap: 1rem;
    flex: 1;
  }
  
  .location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .location-icon.origin {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--green);
  }
  
  .location-icon.destination {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--yellow);
  }
  
  .location-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.125rem;
  }
  
  .location-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
  }
  
  .location-address {
    font-size: 0.75rem;
    color: var(--gray-dark);
    font-style: normal;
    margin-bottom: 0.125rem;
  }
  
  .tel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray);
  }
  
  .tel a {
    color: var(--primary);
  }
  
  .shipping-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0 auto;
  }
  
  .arrow-line {
    width: 60%;
    height: 2px;
    background-color: var(--gray-light);
  }
  
  .shipping-arrow i {
    color: var(--primary);
    font-size: 2rem;
    margin: 0 0.5rem;
  }
  
  /* Package Info Section */
  .package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary);
    border-radius: var(--border-radius-full);
    flex-shrink: 0;
  }
  
  .detail-content dt {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.125rem;
  }
  
  .detail-content dd {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--dark);
  }
  
  /* Delivery Actions Section */
  .actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background-color: var(--gray-lighter);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
  }
  
  .action-button i {
    font-size: 1.25rem;
    color: var(--primary);
  }
  
  .action-button span {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--dark);
    text-align: center;
  }
  
  .action-button:hover {
    background-color: rgba(33, 150, 243, 0.1);
  }
  
  /* Footer Styles */
  .site-footer {
    background-color: var(--white);
    color: var(--dark);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-light);
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .link-group h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
  }
  
  .link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .link-group a {
    color: var(--gray);
    font-size: 0.75rem;
    transition: var(--transition);
  }
  
  .link-group a:hover {
    color: var(--primary);
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
  }
  
  .copyright {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--gray-lighter);
    color: var(--gray-dark);
    border-radius: var(--border-radius-full);
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
  }
  
  /* Notification */
  .notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--dark);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 0.875rem;
  }
  
  .notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .notification i {
    color: var(--green);
  }
  
  /* Mobile First Approach */
  @media (min-width: 640px) {
    .detail-row {
      flex-direction: row;
      align-items: center;
    }
    
    .shipping-arrow {
      flex-direction: row;
      width: 80px;
      height: auto;
    }
    
    .arrow-line {
      width: 40%;
      height: 2px;
    }
    
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
    
    .copyright {
      text-align: left;
    }
  }
  
  /* Accessibility Focus Styles */
  a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  /* Floating Input Styles - Similar to the TrackMate image */
  .search-container {
    position: relative;
    margin: 1.5rem 0;
  }
  
  .search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
  }
  
  .search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--gray);
  }
  
  /* Package Card Styles - Similar to the TrackMate image */
  .package-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
  }
  
  .package-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--gray-lighter);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
  }
  
  .package-card-content {
    flex: 1;
  }
  
  .package-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
  }
  
  .package-card-badge {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .package-card-location {
    font-size: 0.75rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .package-card-eta {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  /* Bottom Navigation Bar - Similar to the TrackMate image */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    z-index: 100;
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray);
    font-size: 0.625rem;
  }
  
  .bottom-nav-item.active {
    color: var(--primary);
  }
  
  .bottom-nav-icon {
    font-size: 1.25rem;
  }
  
  /* Add spacing at the bottom when bottom nav is present */
  body.has-bottom-nav {
    padding-bottom: 4rem;
  }
  
  /* Add status line with dots - Similar to the TrackMate image */
  .status-line {
    display: flex;
    align-items: center;
    margin: 1rem 0;
  }
  
  .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    position: relative;
  }
  
  .status-dot::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(33, 150, 243, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .status-line-connector {
    flex: 1;
    height: 2px;
    background-color: var(--primary);
  }
  
  /* Map Route Styling */
  .map-route {
    stroke: var(--primary);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .map-marker {
    fill: var(--white);
    stroke: var(--primary);
    stroke-width: 2;
  }
  
  .map-marker.current {
    fill: var(--primary);
  }
  
  /* Adjustments for mobile screens */
  @media (max-width: 480px) {
    .container {
      padding: 0 1rem;
    }
    
    .package-grid {
      grid-template-columns: 1fr;
    }
    
    .actions-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Responsive Layout Adjustments */
  @media (min-width: 1024px) {
    .container {
      max-width: 80%;
    }

    .details-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .info-card {
      background-color: var(--white);
      border-radius: var(--border-radius-xl);
      display: contents;
      box-shadow: var(--shadow);
      overflow: hidden;
      padding: 1.5rem;
  }
    .tracker-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }

    .tracking-details {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }

    .actions-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .footer-links {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .container {
      max-width: 960px;
    }

    .tracking-details {
      grid-template-columns: repeat(2, 1fr);
    }

    .tracker-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .actions-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Adjust map container height for larger screens */
  @media (min-width: 1024px) {
    .map-container {
      height: 400px;
    }
  }

form.form-search.d-flex.align-items-stretch.mb-3 {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    margin-top: 1em;
    margin-bottom: 1.5em;
    padding: 0.5rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  
  form.form-search input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    font-size: 0.875rem;
    width: 78%;
    color: var(--dark);
    outline: none;
  }
  
  form.form-search button {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    width: 20%;
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    transition: var(--transition);
  }

/* WhatsApp Floating Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #4d148c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float-btn i {
    font-size: 32px;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float-btn i {
        font-size: 26px;
    }
}


