:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-gray-bg: #f9fafb;
  --color-gray-border: #e5e7eb;
  --color-gray-badge-bg: #f3f4f6;
  --color-gray-badge-text: #374151;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
}

body {
  background-color: var(--color-gray-bg);
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
}

body.landing-page {
  padding-top: 70px;
  overflow-x: hidden;
}

/* =================================== */
/* == NAVBAR STYLING == */
/* =================================== */
.navbar {
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  z-index: 1030;
}

.landing-page .navbar-transparent {
  background-color: transparent;
  color: #fff;
}
.landing-page .navbar-transparent .navbar-brand,
.landing-page .navbar-transparent .nav-link,
.landing-page .navbar-transparent .user-name,
.landing-page .navbar-transparent .designattion {
  color: #fff;
}
.landing-page .navbar-transparent .nav-link:hover {
  color: #eee;
}
.landing-page .navbar-transparent .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}
.landing-page .navbar-transparent .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.landing-page .navbar-scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  color: var(--color-text-primary);
}
.landing-page .navbar-scrolled .navbar-brand,
.landing-page .navbar-scrolled .nav-link,
.landing-page .navbar-scrolled .user-name,
.landing-page .navbar-scrolled .designattion {
  color: var(--color-text-primary);
}
.landing-page .navbar-scrolled .nav-link:hover {
  color: var(--color-primary);
}
.landing-page .navbar-scrolled .navbar-toggler-icon {
  filter: none;
}

.landing-page .navbar-transparent .btn-primary {
  background-color: #fff;
  border-color: #fff;
  color: var(--color-primary);
}
.landing-page .navbar-transparent .btn-primary:hover {
  background-color: #f0f0f0 !important;
  border-color: #f0f0f0 !important;
}

.landing-page .navbar-scrolled .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.landing-page .navbar-scrolled .btn-primary:hover {
  background-color: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
}

.landing-page .navbar-brand {
  font-size: 1.1rem;
  font-weight: 600;
}

.landing-page .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
}

/* =================================== */
/* == STYLING GLOBAL & FORM (SHARED) == */
/* =================================== */

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 500;
}

.btn-primary:hover,
.btn-prebook:hover {
  background-color: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
  color: white;
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: white;
}

.search-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-gray-border);
  padding: 20px;
  margin-bottom: 20px;
}

.filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.sort-dropdown {
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.form-range::-webkit-slider-thumb {
  background-color: var(--color-primary);
}
.form-range::-moz-range-thumb {
  background-color: var(--color-primary);
}
.form-range::-ms-thumb {
  background-color: var(--color-primary);
}
.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* =================================== */
/* == STYLING CARD JADWAL (jadwal page) == */
/* =================================== */

.schedule-card {
  background: #fff;
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease-in-out;
}
.schedule-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.card-title-new {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.info-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 500;
  background: var(--color-gray-badge-bg);
  color: var(--color-gray-badge-text);
  width: fit-content;
}

.info-badge-passenger {
  background-color: #ebf1ff;
  color: #1e40af;
}
.info-badge-cargo {
  background-color: #fffbeb;
  color: #b45309;
}
.info-badge-combo {
  background-color: #ecfdf5;
  color: #065f46;
}

.btn-detail-icon {
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0;
  border-radius: 8px;
}
.btn-detail-icon:hover {
  color: var(--color-primary);
}

.btn-prebook {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.85rem;
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.route-badge-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-badge-text);
  background: var(--color-gray-badge-bg);
  padding: 3px 10px;
  border-radius: 4px;
}

/* =================================== */
/* == booking_page == */
/* =================================== */

.booking-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-gray-border);
  padding: 20px;
  margin-bottom: 20px;
}

.sticky-column-wrapper {
  position: sticky;
  top: 100px;
}

.summary-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.summary-item .label {
  color: var(--color-text-secondary);
}
.summary-item .value {
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
}
.total-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stepper-container {
  z-index: 10;
}
.stepper {
  display: flex;
  align-items: center;
}
.stepper .step {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.stepper .step.active {
  color: var(--color-primary);
}
.stepper .step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-gray-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
}
.stepper .step.active .step-icon {
  background-color: var(--color-primary);
  color: white;
}
.stepper .step-divider {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-gray-border);
  margin: 0 1rem;
}

.sticky-stepper-desktop {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 20px;
  margin-bottom: 20px;
}

.sticky-stepper-mobile {
  position: sticky;
  top: 0;
  padding: 15px 1rem;
  margin-bottom: 1rem;
  background-color: #fff;
  border-bottom: 1px solid var(--color-gray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.route-line-simple {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}
.route-line-simple .location {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}
.route-line-simple .dotted-line {
  flex-grow: 1;
  height: 1px;
  border-top: 1px dashed var(--color-gray-border);
}

#totalHargaBarang {
  color: var(--color-primary);
  font-weight: 700;
}

/* =================================== */
/* == RESPONSIVE & MOBILE == */
/* =================================== */

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar-collapse .navbar-nav.flex-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-item {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-link {
    padding: 0.5rem 0;
    width: 100%;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-item .d-flex {
    justify-content: flex-start !important;
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-item .btn-primary {
    width: 100%;
  }

  .landing-page .navbar-collapse .navbar-nav {
    padding: 1rem;
  }
}

@media (max-width: 991.98px) {
  #scheduleCount {
    display: none;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.825rem;
  }

  .landing-page .hero-title {
    font-size: calc(1.2rem + 1.4vw);
  }
  .landing-page .hero-subtitle {
    font-size: 0.9rem;
  }
  .landing-page .section-title {
    font-size: 1.5rem;
  }
  .landing-page .section-subtitle {
    font-size: 0.95rem;
  }
  .landing-page .destination-card-body h5 {
    font-size: 1rem;
  }
  .landing-page .destination-card-desc {
    font-size: 0.8rem;
  }
  .landing-page .service-item-title {
    font-size: 1rem;
  }
  .landing-page .service-item-content p {
    font-size: 0.85rem;
  }

  .btn-prebook {
    width: auto;
  }
  .card-title-new {
    font-size: 1rem;
  }
  .route-line-new {
    display: none;
  }
  .route-location-name-mobile {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-primary);
  }
  .route-point-name-mobile,
  .route-time-mobile {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
  }
  .route-time-mobile {
    font-weight: 500;
    color: var(--color-text-primary);
  }
  .route-arrow-icon-mobile {
    font-size: 1.4rem;
  }
  .price-tag-mobile {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
  }
  .btn-prebook-mobile {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .stepper .step {
    font-size: 0.75rem;
  }
  .stepper .step-label {
    display: none;
  }
  .stepper .step-divider {
    margin: 0 0.5rem;
  }

  .sticky-column-wrapper {
    position: static;
    top: auto;
  }
  .summary-card {
    position: static;
    top: auto;
    margin-top: 1rem;
  }
  .sticky-stepper-desktop {
    display: none !important;
  }
  .route-line-simple .location {
    font-size: 0.85rem;
  }
  .total-price {
    font-size: 1.2rem;
  }
}

/* =================================== */
/* == STYLE DESKTOP (jadwal page) == */
/* =================================== */

@media (min-width: 768px) {
  .route-line-new {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }

  .route-line-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 0.25rem;
  }

  .dotted-line-new {
    flex-grow: 1;
    height: 1px;
    border-top: 1px dashed var(--color-gray-border);
    margin: 0;
  }

  .route-arrow-icon {
    font-size: 1.4rem;
    color: var(--color-text-secondary);
  }

  .route-location-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-primary);
  }

  .route-point-name,
  .route-time {
    font-size: 0.8rem;
  }

  .route-line-new-mobile {
    display: none;
  }
}

/* =================================== */
/* == Payment Method == */
/* =================================== */

.summary-card-mini {
  background: var(--color-gray-bg);
  border-radius: 8px;
  padding: 15px;
}
.summary-card-mini .total-price {
  color: var(--color-primary);
}

.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.payment-method-card:hover {
  background-color: var(--color-gray-bg);
}

.payment-method-card input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.payment-method-card .payment-method-content {
  flex-grow: 1;
}

.payment-method-card .payment-method-logo {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.payment-method-card input[type="radio"]:checked {
  accent-color: var(--color-primary);
}

.payment-method-card
  input[type="radio"]:checked
  + .payment-method-content
  .fw-bold {
  color: var(--color-primary);
}

.payment-method-card
  input[type="radio"]:checked
  + .payment-method-content
  + .payment-method-logo {
  color: var(--color-primary);
}

#step-4-content .booking-card {
  border-color: transparent;
}

/* =================================== */
/* == LANDING PAGE == */
/* =================================== */

.landing-page .hero-section {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 10rem;
  background: url("https://plus.unsplash.com/premium_photo-1661963542752-9a8a1d72fb28?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2070")
    no-repeat center center;
  background-size: cover;
  color: #fff;
  margin-top: -70px;
}

.landing-page .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(17, 24, 39, 0.7) 0%,
    rgba(17, 24, 39, 0.5) 100%
  );
  z-index: 1;
}

.landing-page .hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.landing-page .hero-title {
  color: #ebf1ff;
  font-size: calc(1.3rem + 1.5vw);
}
@media (min-width: 1200px) {
  .landing-page .hero-title {
    font-size: 2.75rem;
  }
}
.landing-page .hero-subtitle {
  font-size: 1rem;
}

.landing-page .hero-search-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -70px;
}

.landing-page .hero-search-card {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
  margin-bottom: 0;
}

.landing-page .search-form-label {
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.landing-page .hero-search-card .form-control,
.landing-page .hero-search-card .form-select {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-gray-border);
}
.landing-page .hero-search-card .form-control {
  padding-left: 0.75rem;
}
.landing-page .hero-search-card .form-select {
  padding-left: 0.75rem;
}

.landing-page .search-form-btn {
  padding: 0.65rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .landing-page .search-form-btn {
    margin-top: 1rem;
    width: 100%;
  }
  .landing-page .hero-search-wrapper {
    margin-top: -60px;
  }
}

.section-wrapper {
  padding: 5rem 0;
}

.popular-routes-section {
  padding-top: 5rem;
}

.section-title-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 1.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.destination-card {
  background: #fff;
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}
.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.destination-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.destination-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.destination-card-body > .d-flex:last-child {
  margin-top: auto;
  align-items: center;
}

.destination-card-body h5 {
  font-size: 1.05rem;
  font-weight: 600;
}

.destination-card-tag {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--color-gray-badge-bg);
  color: var(--color-gray-badge-text);
  padding: 4px 10px;
  border-radius: 20px;
}

.destination-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
}

.destination-card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.destination-card-link:hover {
  color: var(--color-primary-hover);
  padding-right: 2px;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
}
#popularRoutesRow {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 1rem;
  margin-left: 0px;
  margin-right: 0px;
}
#popularRoutesRow::-webkit-scrollbar {
  display: none;
}
#popularRoutesRow > [class*="col-"] {
  flex-shrink: 0;
  width: 85%;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
}
@media (min-width: 576px) {
  #popularRoutesRow > [class*="col-"] {
    width: 60%;
  }
}
@media (min-width: 768px) {
  #popularRoutesRow > [class*="col-"] {
    width: 45%;
  }
}
@media (min-width: 992px) {
  #popularRoutesRow > [class*="col-"] {
    width: 33.333%;
  }
}

.btn-slider-nav {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-slider-nav .bx {
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: middle;
}

.section-wrapper.bg-white > .container {
  overflow: hidden;
}

.service-image-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-img-1 {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-top: 2rem;
}
.service-img-2 {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.service-item-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-border);
  line-height: 1;
  margin-top: -5px;
}
.service-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}
.service-item-content p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-size: 0.875rem;
}
.service-item:hover .service-item-number {
  color: var(--color-primary);
}
.service-item:hover .service-item-title {
  color: var(--color-primary);
}

.footer-section {
  background: var(--color-text-primary);
  color: #adb5bd;
  padding: 4rem 0 1rem 0;
  font-size: 0.85rem;
}
.footer-section .navbar-brand {
  color: #fff;
  font-weight: 500;
}
.footer-section p {
  color: #adb5bd;
  font-size: 0.85rem;
}
.footer-section h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links {
  padding-left: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 3px;
}
.footer-section hr {
  border-color: #495057;
  margin-top: 3rem;
}
.footer-bottom {
  padding-top: 1rem;
  font-size: 0.8rem;
}

/* =================================== */
/* == HALAMAN TRACKING BARANG (v2) == */
/* =================================== */

.tracking-search-card {
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.tracking-search-card h4 {
  font-size: 1.5rem;
}
.tracking-search-p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.tracking-search-card .form-control-lg {
  font-size: 0.95rem;
}
.tracking-search-card .btn-lg {
  font-size: 0.95rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tracking-stepper {
  position: relative;
  padding-left: 20px;
}

.tracking-step {
  position: relative;
  padding-left: 30px;
  padding-bottom: 30px;
  border-left: 2px solid var(--color-gray-border);
}

.tracking-step-icon {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-gray-border);
  border: 3px solid #fff;
}

.tracking-step:last-child {
  border-left-color: transparent;
}

.tracking-step-content {
  margin-top: -2px;
}

.tracking-step-description {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.tracking-step-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.tracking-step.completed .tracking-step-icon {
  background-color: var(--color-primary);
}
.tracking-step.completed .tracking-step-description {
  color: var(--color-text-primary);
}

.tracking-step.active .tracking-step-icon {
  background-color: var(--color-primary);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--color-primary);
}
.tracking-step.active .tracking-step-description {
  color: var(--color-primary);
  font-weight: 600;
}
.tracking-step.active .tracking-step-date {
  color: var(--color-primary);
}

.tracking-step.pending {
  border-left-style: dashed;
}
.tracking-step.pending:last-child {
  border-left-color: transparent;
}

.tracking-detail-card {
  padding: 20px;
}
.tracking-detail-card h4 {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
}

.tracking-detail-card .d-flex .badge {
  font-size: 0.75rem;
}

.tracking-detail-card-new .route-point-name {
  color: var(--color-primary);
  font-weight: 500;
}

.tracking-detail-card .tracking-status-badge {
  font-size: 0.85rem;
  padding: 0.5em 1em;
  font-weight: 600;
  border-radius: 8px;
}
.tracking-status-badge.status-delivered,
.tracking-status-badge.status-intransit,
.tracking-status-badge.status-pending {
  background-color: #ebf1ff;
  color: var(--color-primary);
}

.tracking-detail-h6 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.tracking-detail-p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
}
.tracking-detail-contact p {
  font-size: 0.95rem;
  margin-bottom: 0;
}
.tracking-detail-contact small {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Style untuk Detail Barang & Pembayaran */
.tracking-item-details label,
.tracking-payment-details label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}
.tracking-item-details p,
.tracking-payment-details p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--color-text-primary);
  font-weight: 600;
}
.tracking-payment-details #detail-total-biaya {
  font-size: 1.2rem;
  font-weight: 700;
}

.default-tracking-prompt {
  background-color: var(--color-gray-bg);
  border: 2px dashed var(--color-gray-border);
  box-shadow: none;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.default-tracking-prompt .bx {
  opacity: 0.5;
}

@media (max-width: 991.98px) {
  .tracking-stepper {
    padding-left: 10px;
  }
}

@media (max-width: 576px) {
  .tracking-search-card .btn-lg {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* =================================== */
/* == NAVBAR MOBILE == */
/* =================================== */

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar-collapse .navbar-nav.flex-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-item {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-link {
    padding: 0.5rem 0;
    width: 100%;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-item .d-flex {
    justify-content: flex-start !important;
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar-collapse .navbar-nav.flex-row .nav-item .btn-primary {
    width: 100%;
  }

  .landing-page .navbar-collapse .navbar-nav {
    padding: 1rem;
  }
}

/* =================================== */
/* == HALAMAN RIWAYAT TRANSAKSI (v2) == */
/* =================================== */

/* Badge Merah untuk status Batal */
.info-badge-danger {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Style untuk Kartu Riwayat */
.transaction-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.transaction-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: var(--color-primary);
}

/* Penyesuaian Modal Detail Transaksi */
.modal-header {
  border-bottom: 1px solid var(--color-gray-border);
}
.modal-footer {
  border-top: 1px solid var(--color-gray-border);
}

.modal-body .summary-item {
  font-size: 0.85rem;
}
.modal-body small.text-muted {
  font-size: 0.75rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}
.modal-body p {
  margin-bottom: 0.5rem;
}

/* Style untuk list-group di modal */
.detail-list-group .list-group-item {
  padding: 0.5rem 0;
  border: none;
}
.detail-list-group .list-group-item .text-muted {
  font-size: 0.8rem;
  text-transform: none;
}
.detail-list-group .list-group-item .fw-bold {
  font-size: 0.85rem;
}

/* Style untuk header section di modal */
.modal-body .tracking-detail-h6 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Style untuk Rute Cantik di Modal */
.modal-body .route-location-name-mobile {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}
.modal-body .route-point-name-mobile,
.modal-body .route-time-mobile {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.modal-body .route-time-mobile {
  font-weight: 500;
  color: var(--color-text-primary);
}
.modal-body .route-arrow-icon-mobile {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

#modalBarcodeImg {
  border: 1px solid var(--color-gray-border);
  padding: 5px;
  background: white;
  border-radius: 4px;
}
