*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
:root {
  --color-purple: #5a2062;
  --color-green: #99b834;
  --color-green-hover: #799e00;
  --color-white: #ffffff;
  --color-black: #000000;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-var(--color-white));
  width: 100%;
  height: 100vh;
  font-size: 18px;
}
#controls {
  width: 100%;
  max-width: 300px;
  min-width: 180px;
  height: calc(100vh - 40px);
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: var(--color-white);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px var(--color-purple);
}
#map {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
#geo-button {
  padding: 10px;
  background-color: var(--color-green);
  color: var(--color-white);
  font-weight: bold;
  border: none;
  margin: 10px 0;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  &:hover {
    background-color: var(--color-green-hover);
  }
}
.container-search {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 10px;
  input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #7e3187;
    font-weight: bold;
  }
  button {
    padding: 4px;
    border: none;
    background-color: #99b834;
    color: var(--color-white);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    &:hover {
      background-color: #799e00;
    }
  }
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  p {
    color: var(--color-purple);
  }
  button {
    padding: 10px;
    background-color: var(--color-green);
    color: var(--color-white);
    font-weight: bold;
    border: none;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    &:hover {
      background-color: var(--color-green-hover);
    }
  }
}
.popup.hidden {
  display: none;
}
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  max-width: 400px;
}
#location-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 15px 0;
  overflow-y: auto;
  max-height: calc(100vh - 170px);
}
.store-item {
  background-color: var(--color-purple);
  color: var(--color-white);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }
}
.store-header h3 {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 0;
}
.store-schedule {
  h4 {
    font-size: 16px;
  }
  ul {
    padding: 0;
    list-style-type: none;
    li {
      margin: 5px 0;
    }
  }
}
.show-on-map-button {
  background-color: var(--color-green);
  color: var(--color-white);
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  &:hover {
    background-color: var(--color-green-hover);
  }
}
@media only screen and (max-width: 800px) {
  body {
    height: 100dvh;
  }
  #controls {
    top: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
    height: 110px;
    position: fixed;
  }
  #location-list {
    position: fixed;
    flex-direction: row;
    bottom: 0px;
    left: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    width: calc(100% - 20px);
  }
  .store-item {
    min-width: calc(100vw - 20px);
    width: 100%;
    background-color: #5a206299;
  }
}
