/* Track page — matches TrackShip Pro marketing chrome */

.track-page .track-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Keep HeaderDefault min-height so the image fills menu + empty gap */
}

.track-hero__media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  pointer-events: none;
}

.track-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  will-change: transform;
}

.track-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 13, 16, 0.55) 0%,
      rgba(0, 13, 16, 0.28) 42%,
      rgba(0, 13, 16, 0.62) 100%
    );
}

.track-hero > .site-top-header,
.track-hero > .Top_header__raEQJ,
.track-hero > .track-hero__content,
.track-hero > .HeaderDefault_content__AXaVG {
  position: relative;
  z-index: 2;
}

/* Dark hero — readable nav + title */
.track-hero .Logo_textBrand {
  color: #fff !important;
}

.track-hero .Nav_link__6RFEg {
  color: #fff;
}

.track-hero .NavButtons_menu__udqqI {
  background-color: #fff;
  color: #000d10;
}

.track-hero .HeaderDefault_content__AXaVG {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.track-hero .HeaderDefault_content__AXaVG p {
  max-width: 34rem;
  opacity: 0.92;
}

.track-section {
  padding: 3rem 0 5rem;
  background: #f7f5f2;
}

.track-panel {
  background: #fff;
  border: 1px solid rgba(0, 13, 16, 0.08);
  padding: 2rem 1.75rem;
}
.track-panel h2 {
  margin: 0 0 1.25rem;
  color: #000d10;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 32rem;
}

.track-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000d10;
}

.track-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 13, 16, 0.2);
  background: #fff;
  font-size: 1rem;
  color: #000d10;
}

.track-input:focus {
  outline: 2px solid #bc7155;
  outline-offset: 1px;
  border-color: #bc7155;
}

.track-hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(0, 13, 16, 0.65);
}

.track-form .Button_button__OFOdO {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.track-alert {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #f8e8e4;
  color: #7a2e1f;
  border-left: 3px solid #bc7155;
}

.track-help {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 13, 16, 0.08);
}

.track-help ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: rgba(0, 13, 16, 0.75);
  line-height: 1.6;
}

.track-help a {
  color: #000d10;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.track-result-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 13, 16, 0.08);
}

@media (min-width: 768px) {
  .track-result-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.track-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.65rem;
  background: #000d10;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.track-status {
  margin: 0 0 0.35rem;
}

.track-location {
  margin: 0;
  color: rgba(0, 13, 16, 0.7);
}

.track-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
}

.track-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 13, 16, 0.5);
}

.track-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: #000d10;
}

.track-meta .is-highlight dd {
  color: #bc7155;
}

.track-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .track-grid:not(.track-grid--single) {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.track-map-wrap,
.track-timeline-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-map-wrap > .u-h6,
.track-timeline-wrap > .u-h6 {
  margin: 0 0 0.75rem;
}

/* Frosted glass frame — fixed height so map cannot grow unboundedly */
.track-map-glass {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 360px;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(8, 16, 22, 0.28);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 40px rgba(0, 13, 16, 0.08);
  opacity: 1 !important;
  transform: none !important;
}

.track-map-wrap {
  opacity: 1 !important;
  transform: none !important;
}

.track-map-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 28%,
    transparent 72%,
    rgba(0, 13, 16, 0.12) 100%
  );
}

.track-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #0b1218;
}

.track-map .leaflet-container,
.track-map > div {
  width: 100% !important;
  height: 100% !important;
  font: inherit;
  background: #0b1218;
  border-radius: 1.25rem;
}

/* Wireframe / flat-3D tile treatment */
.track-map .leaflet-tile-pane {
  filter: grayscale(0.15) contrast(1.25) brightness(0.92) saturate(0.75);
  opacity: 0.92;
}

.track-map .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
}

.track-map .leaflet-control-attribution {
  background: rgba(0, 13, 16, 0.45) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px 0 0 0;
  margin: 0 !important;
  max-width: 70%;
}

.track-map .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Flat 3D markers */
.track-map-marker {
  background: transparent !important;
  border: 0 !important;
}

.track-map-pin {
  position: relative;
  display: block;
  width: 34px;
  height: 42px;
  transform-style: preserve-3d;
}

.track-map-pin__shadow {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 6px;
  margin-left: -9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(1.5px);
  transform: translateZ(0);
}

.track-map-pin__body {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-style: preserve-3d;
}

.track-map-pin__face,
.track-map-pin__edge {
  position: absolute;
  inset: 0;
  border-radius: 3px;
}

.track-map-pin__face {
  background: linear-gradient(145deg, #ffffff 0%, #d9dde0 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    4px 4px 0 rgba(0, 0, 0, 0.22);
}

.track-map-pin__edge {
  transform: translate3d(3px, 3px, -1px);
  background: rgba(0, 0, 0, 0.28);
  filter: blur(0.2px);
}

.track-map-pin__stem {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15));
  border-radius: 2px;
}

.track-map-pin--origin .track-map-pin__face {
  background: linear-gradient(145deg, #f7f5f2 0%, #c8ced2 100%);
}

.track-map-pin--destination .track-map-pin__face {
  background: linear-gradient(145deg, #f0b39a 0%, #bc7155 100%);
  box-shadow:
    0 0 0 1px rgba(255, 210, 190, 0.45),
    4px 4px 0 rgba(0, 0, 0, 0.25);
}

.track-map-pin--current .track-map-pin__face {
  background: linear-gradient(145deg, #7fd6c4 0%, #2a7d6f 100%);
  box-shadow:
    0 0 0 1px rgba(170, 240, 225, 0.4),
    4px 4px 0 rgba(0, 0, 0, 0.25);
}

.track-map-pin--current .track-map-pin__stem {
  background: linear-gradient(180deg, #7fd6c4, rgba(42, 125, 111, 0.2));
}

.track-map .leaflet-popup-content-wrapper {
  background: rgba(12, 18, 24, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.track-map .leaflet-popup-tip {
  background: rgba(12, 18, 24, 0.72);
}

.track-map .leaflet-popup-content {
  margin: 0.7rem 0.9rem;
  line-height: 1.35;
  color: #fff;
}

.track-map-popup__meta {
  margin-top: 0.35rem;
  opacity: 0.75;
  font-size: 0.85em;
}

@media (min-width: 900px) {
  .track-map-glass {
    height: 440px;
    max-height: min(70vh, 520px);
  }
}

@media (max-width: 899px) {
  .track-map-glass {
    height: 300px;
    max-height: 55vh;
  }
}

.track-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-timeline li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.85rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.track-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  bottom: 0;
  width: 1px;
  background: rgba(0, 13, 16, 0.15);
}

.track-timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: rgba(0, 13, 16, 0.25);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 13, 16, 0.2);
  z-index: 1;
}

.track-timeline li.is-active .track-timeline-dot {
  background: #bc7155;
  box-shadow: 0 0 0 1px #bc7155;
}

.track-timeline-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.track-timeline-row time,
.track-timeline-loc,
.track-timeline-desc {
  font-size: 0.9rem;
  color: rgba(0, 13, 16, 0.65);
}

.track-timeline-loc,
.track-timeline-desc {
  margin: 0.25rem 0 0;
}

.track-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .track-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

.track-detail-card {
  padding: 1.1rem;
  background: #f7f5f2;
}

.track-detail-card p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: rgba(0, 13, 16, 0.8);
}

.track-kv {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-kv li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 13, 16, 0.06);
  font-size: 0.92rem;
}

.track-subblock {
  margin-bottom: 1.5rem;
}

.track-packages,
.track-routes {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.track-packages li,
.track-routes li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 13, 16, 0.08);
}

.track-route-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: #000d10;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 13, 16, 0.08);
}

.track-empty {
  color: rgba(0, 13, 16, 0.55);
}

@media print {
  .Top_header__raEQJ,
  .Footer_footer__sHNQf,
  .track-actions,
  .MenuContainer_menuContainer__mzgmD {
    display: none !important;
  }

  .track-section {
    background: #fff;
    padding: 0;
  }

  .track-panel {
    border: 0;
    padding: 0;
  }
}
