:root {
  --breakpoint-mobile: 375px;
  --breakpoint-desktop: 1440px;

  --color-very-dark-gray: hsl(0, 0%, 17%);
  --color-dark-gray: hsl(0, 0%, 59%);

  --tracker-top-height: 200px;
}

.tracker-wrapper {
  font-size: 18px;

  font-family: "Rubik", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.tracker-top {
  background-image: url("../images/pattern-bg-desktop.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  height: var(--tracker-top-height);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tracker-heading {
  font-size: 24px;
  font-weight: 500;
  color: #fff;

  margin-bottom: 24px;
}

.tracker-input-wrapper {
  display: flex;
  align-items: center;
  height: 40px;

  margin-bottom: 32px;

  border-radius: 12px;
  overflow: hidden;
}

.tracker-input-wrapper input {
  min-width: 320px;
  height: 100%;

  padding: 12px 16px;
  font-family: inherit;

  outline: none;
  border: none;
}

.tracker-input-wrapper button {
  min-width: 40px;
  height: 100%;
  background-color: #000;

  outline: none;
  border: none;
  cursor: pointer;
}

.tracker-input-wrapper button:hover {
  background-color: var(--color-very-dark-gray);
}

.tracker-input-wrapper button img {
  width: 7px;
}

.tracker-info-wrapper {
  display: flex;

  padding-block: 24px;
  background-color: #fff;

  border-radius: 12px;
  margin-bottom: -80px;
  z-index: 999;
}

.tracker-info-item {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding-inline: 32px 64px;
  position: relative;
}

.tracker-info-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;

  width: 1px;
  height: 60px;
  background-color: var(--color-dark-gray);
  opacity: 0.5;
}

.tracker-info-label {
  font-size: 12px;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-dark-gray);
}

.tracker-info-value {
  font-weight: 500;
  color: var(--color-very-dark-gray);

  max-width: 120px;
  line-height: 24px;
}

#map {
  min-height: calc(100vh - var(--tracker-top-height));
}

@media (max-width: 1440px) {
  :root {
    --tracker-top-height: 300px;
  }

  .tracker-top {
    background-image: url("../images/pattern-bg-mobile.png");
  }

  .tracker-info-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 90%;
    gap: 24px;
    margin-bottom: -190px;
  }

  .tracker-info-item {
    padding-inline: 0;
  }

  .tracker-info-item:not(:last-child)::after {
    content: none;
  }

  .tracker-info-value {
    max-width: none;
  }

  .tracker-input-wrapper {
    width: 90%;
  }

  .tracker-input-wrapper input {
    min-width: auto;
    flex: 1;
  }
}
