/* 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;
}

/* ION Laundry Style */
/* dropdown */
select#mapFilter {
  background-image: url("/wp-content/themes/flatsome-child/assets/img/filter-arrow.svg");
  background-color: var(--blue2);
  border-radius: 18px;
  color: var(--white);
  padding-left: 20px;
}
select#mapFilter option {
  background-color: var(--white) !important;
  color: var(--blue2);
}

/* list -> content (location) */
.bullet-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.location-item-ctr {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 0 6px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: 0.2s;
}
.location-item-ctr .location-ctr-title {
  display: flex;
}
.location-content p {
  color: var(--blue1);
}
.location-item {
  flex: 1;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 600;
  color: black !important;
}
.location-item-ctr.active .location-item {
  font-weight: 600;
}
.location-item > span {
  font-weight: 500 !important;
  font-size: 10px;
  vertical-align: top;
}
.location-ctr-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--blue2);
  margin-top: 6px;
  border-radius: 50%;
}
.location-check {
  content: "";
  background: var(--blue2);
  width: 10px;
  height: 10px;
  margin: 2px;
  border-radius: 50%;
  opacity: 0;
  transition: 0.5s;
}
.location-item-ctr.active .location-check,
.location-item-ctr:hover .location-check {
  opacity: 1;
}
.location-item-ctr > a {
  font-size: 0.85rem !important;
}
.location-category {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 6px 0;
}
.location-views {
  aspect-ratio: 1;
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: start;
}
.location-content {
  width: 60%;
}
.location-views img {
  aspect-ratio: 1;
  object-fit: cover;
  margin-top: 6px;
  border-radius: 8px;
}
.places .location-content .location-ctr-title .location-item span {
  background: var(--blue3);
  color: var(--white);
  font-size: 0.7rem;
  margin-left: 2px;
  padding: 2px 6px;
  border-radius: 4px;
}
.places .location-content img {
  width: 14px;
  margin-top: -4px;
  margin-right: 4px;
}
.location-views img {
  height: 80px;
}

/* list -> change scroll ui */
.places::-webkit-scrollbar {
  width: 8px;
}
.places::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}
.places::-webkit-scrollbar-thumb {
  background: #d1d3d4;
  border-radius: 10px;
}
.places::-webkit-scrollbar-thumb:hover {
  background: #d3d3d3;
}

/* mapboxGL style */
#map {
  width: 100%;
  height: 420px;
  border-radius: 20px;
}
.mapboxgl-popup-content {
  padding: 8px 8px 6px 8px;
}
.mapboxgl-popup-content > p {
  margin: 0;
}
.mapboxgl-popup-content > button {
  display: none;
}
.mapboxgl-popup-content a:focus {
  outline: unset;
}
.mapboxgl-popup-tip {
  filter: drop-shadow(0 1px 1px #0000002a);
}
.mapboxgl-ctrl-attrib-button {
  margin: 0;
  width: 12px !important;
  height: 12px !important;
  padding: 0 12px;
}
.mapboxgl-ctrl-attrib-button:focus,
.mapboxgl-ctrl-group button:focus {
  box-shadow: unset;
}

/* ================================
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(50% - var(--gap) * 1 / 2);
  flex-basis: calc(50% - var(--gap) * 1 / 2);
  max-height: 400px;
}
.custom-map > .custom-col:nth-child(3) {
  width: calc(50% - var(--gap) * 1 / 2);
  flex-basis: calc(50% - var(--gap) * 1 / 2);
  max-height: 400px;
}
.custom-map > .custom-col:nth-child(4) {
  width: calc(50% - var(--gap) * 1 / 2);
  flex-basis: calc(50% - var(--gap) * 1 / 2);
  margin-left: 50%;
}

/* ================================
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%;
  }
}
