/* ============================================================
   TerritoryNav — Fret destination tabs
   Pixel-faithful reproduction of the live `.destination-territory`
   block: 4 items, each an icon-font island glyph (100px) above a
   navy 24px/700 label. Active item (current page) + hover recolor
   the glyph to pink #e6007e. Labels stay navy.
   ============================================================ */

.destination-territory-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  /* negative side margins mirror the live Bootstrap .row so the
     4 items (4×170px + 3×150px = 1130px) fit on one desktop row
     inside the 1140px container without wrapping. */
  margin: 0 -15px 40px;
  padding: 0;
}

.destination-territory-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #243269;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.09px;
  width: 170px;
  cursor: pointer;
  margin-bottom: 40px;
}

.destination-territory-list-item:not(:nth-child(4n + 4)) {
  margin-right: 150px;
}

.destination-territory-link {
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.destination-territory-list-item .destination-territory-icon {
  font-size: 100px;
  line-height: 1;
}

.destination-territory-list-item .destination-territory-icon::before {
  color: #243269;
  transition: color 0.3s ease-in-out;
}

.destination-territory-list-item-active .destination-territory-icon::before,
.destination-territory-list-item:hover .destination-territory-icon::before {
  color: #e6007e;
}

.destination-territory-name {
  margin-top: 40px;
  display: block;
  color: #243269;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* ---------- Responsive (mirrors live mobile/freight-page.scss) ---------- */
@media (max-width: 1200px) {
  .destination-territory-list-item:not(:nth-child(4n + 4)) {
    margin-right: 0;
  }

  .destination-territory-name {
    white-space: nowrap;
  }

  .destination-territory-list {
    justify-content: center;
    gap: 40px 56px;
  }
}

@media (max-width: 767px) {
  .destination-territory-list {
    gap: 32px 24px;
  }

  .destination-territory-list-item {
    width: auto;
    font-size: 18px;
  }

  .destination-territory-list-item .destination-territory-icon {
    font-size: 72px;
  }

  .destination-territory-name {
    margin-top: 24px;
    font-size: 18px;
  }
}
