/* Typography */
.address-item,
.address-form button,
.input-cont #address,
.places a {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  text-transform: capitalize;
}
.address-form button,
.input-cont #address {
  font-size: 16px;
  line-height: 27px;
}
.address-form button {
  color: white;
}
.places a {
  font-size: 14px;
  line-height: 27px;
}

/* Map */
#map {
  border-radius: 25px;
}

/* ================================
CUSTOM MAP COLUMN
=================================== */
.custom-map {
  --gap: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.custom-map > .custom-col:nth-child(1) {
  width: 100%;
  flex-basis: 100%;
}
.custom-map > .custom-col:nth-child(2) {
  width: calc(40% - var(--gap) * 1 / 2);
  flex-basis: calc(40% - var(--gap) * 1 / 2);
  max-height: 400px;
}
.custom-map > .custom-col:nth-child(3) {
  width: calc(60% - var(--gap) * 1 / 2);
  flex-basis: calc(60% - var(--gap) * 1 / 2);
  max-height: 400px;
}
.custom-map > .custom-col:nth-child(4) {
  width: calc(60% - var(--gap) * 1 / 2);
  flex-basis: calc(60% - var(--gap) * 1 / 2);
  margin-left: 40%;
}

/* ================================
PLACE
=================================== */
.places {
  overflow-y: auto;
  max-height: calc(100% - 50px);
}
.places a {
  display: flex;
  border-radius: 10px;
  border: 1px solid gray;
  padding: 10px;
  margin-bottom: 10px;
  direction: ltr;
  line-height: 25px;
}
.places a span {
  display: inline-block;
  vertical-align: middle;
}
.places a span svg {
  margin-right: 10px;
}

/* Active and Hover */
.places a.active,
.places a:hover {
  border-color: var(--orange-500);
}
.places a.active svg path:nth-child(1),
.places a:hover svg path:nth-child(1) {
  fill: var(--orange-500);
  stroke: var(--orange-500);
}
.places a.active svg path:nth-child(2),
.places a:hover svg path:nth-child(2) {
  fill: white;
  stroke: white;
}

/* PLACE >>> SCROLLBAR */
/* .custom-map > .custom-col::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 5px;
  background-color: lightgrey;
}
.custom-map > .custom-col::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--orange-500);
} */

/* =======================================
SUGGESTION
========================================== */
.address-form {
  display: flex;
  gap: 10px;
}

/* Input Field */
.address-form .input-cont {
  flex-grow: 1;
}
.address-form .input-cont {
  position: relative;
}
.address-form .input-cont #address {
  padding-left: 30px;
  margin: 0 !important;
  border: 1px solid gray;
  border-radius: 12px;
  box-shadow: unset;
}

/* Button */
.address-form button {
  padding-inline: 30px;
  background-color: var(--orange-500);
  border-radius: 12px;
  margin: 0;
}

/* Result */
.input-result {
  display: none;
  flex-direction: column;
  max-height: 300px;
  width: 100%;
  overflow-y: auto;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  border-left: 1px solid gray;
  border-right: 1px solid gray;
  border-bottom: 1px solid gray;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  z-index: 1;
  padding: 0 20px;
}
.input-result .findByGPS {
  cursor: pointer;
  margin: 0;
  padding-block: 10px;
}
.input-result .address-item {
  margin: 0;
  padding-block: 10px;
}
.input-result .address-item:not(.load) {
  cursor: pointer;
  border-top: 1px solid gray;
}

/* ================================
Open With Google Maps
=================================== */
.open-maps {
  display: none;
  width: fit-content;
}

@media only screen and (max-width: 849px) {
  /* ================================
    CUSTOM MAP COLUMN
    =================================== */
  .custom-map {
    --gap: 10px;
  }
  .custom-map > .custom-col:nth-child(1) {
    width: 100%;
    flex-basis: 100%;
  }
  .custom-map > .custom-col:nth-child(2) {
    width: 100%;
    flex-basis: 100%;
    max-height: 200px;
  }
  .custom-map > .custom-col:nth-child(3) {
    width: 100%;
    flex-basis: 100%;
  }
  .custom-map > .custom-col:nth-child(4) {
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
  }
  /* .custom-map > .custom-col:nth-child(4) {
    width: calc(60% - var(--gap) * 1 / 2);
    flex-basis: calc(60% - var(--gap) * 1 / 2);
    margin-left: 40%;
  } */
}

@media only screen and (max-width: 430px) {
  /* ================================
  CUSTOM MAP COLUMN
  =================================== */
  .custom-map > .custom-col:nth-child(2) {
    margin-bottom: 30px;
  }

  /* =======================================
    SUGGESTION
    ========================================== */
  .address-form {
    flex-wrap: wrap;
    gap: 5px;
  }
  .address-form .input-cont,
  .address-form button {
    width: 100%;
    flex-basis: 100%;
  }
}
