@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h6 {
  font-weight: 500;
  color: #8a8a8a;
}
h3 {
  color: black;
}

body {
  padding: 0;
  border: 0;
  font-family: "Rubik", sans-serif;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  height: 40vh;
  padding: 2rem;
  text-align: center;
  background-image: url("./img/pattern-bg-desktop.png");
}

header h1 {
  font-weight: 500;
  color: white;
  margin-bottom: 20px;
}

form {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

label {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0;
}

input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 10px 0px 0px 10px;
  font-size: 1rem;
}

button {
  padding: 10px;
  background: #000;
  color: white;
  border-radius: 0px 10px 10px 0px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

#infoDisplay {
  position: relative;
  top: -5rem;
  margin: 0 auto;
  width: 60%;
  z-index: 10000000;
  height: 10rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 12px;
  background: white;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.222);
}

#infoDisplay div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.hasBorder {
  border-right: 1px solid #e0e0e0;
}

#map {
  position: relative;
  height: 60vh;
  width: 100%;
  margin-top: -10rem;
}

@media (max-width: 1024px) {
  #infoDisplay {
    width: 40%;
    height: auto;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr;
  }

  #infoDisplay div {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  #map {
    position: relative;
    height: 60vh;
    width: 100%;
    margin-top: -15rem;
  }
}
@media (max-width: 480px) {
  #map {
    position: relative;
    height: 60vh;
    width: 100%;
  }
}
