/* Main styling for Liquor Mapper - Hybrid Approach */

:root {
  --primary-color: #27c0a1;
  --secondary-color: #fbbd0a;
  --accent-color: #212832;
  --text-color: #333333;
  --light-gray: #e9e9e9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  color: var(--text-color);
  line-height: 1.6;
}

img {
  width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 3px;
}

/* Header and Navigation */
header {
  position: relative;
  width: 100%;
  height: 3.5rem;
  background-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

.logo a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Navigation Menu */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #000;
}

/* Hamburger Menu */
.menu-proxy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: 3;
  background-color: transparent;
}

.ham-box {
  position: absolute;
  height: 3.5rem;
  width: 3.5rem;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.line-selector {
  width: 1.7rem;
  height: 0.4rem;
  border-radius: 10px;
}

.lines {
  background-color: var(--accent-color);
}

.lines-alt {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--accent-color);
}

.line-one {
  transform: translate(-50%, -50%) rotate(45deg);
}

.line-two {
  transform: translate(-50%, -50%) rotate(315deg);
}

/* Main Container */
#main-container {
  position: relative;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: 100svh;
}

#home {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Loading Animation */
.loader-container {
  position: absolute;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 75px;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 20px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.411);
}

.lds-facebook {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-facebook div {
  display: inline-block;
  position: absolute;
  width: 16px;
  background: var(--accent-color);
  border-radius: 20px;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-facebook div:nth-child(1) {
  left: 10%;
  animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
  left: 42%;
  animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
  left: 74%;
  animation-delay: 0;
}

@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}

@keyframes fader {
  0% {
    background-color: #e8e8e8;
  }
  100% {
    background-color: #d4d4d4;
  }
}

/* Search Inputs Section */
.input-button-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  z-index: 3;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.input-div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background-color: white;
  padding: 1.3rem 0;
  width: 100%;
  border-radius: 10px;
}

input {
  flex-basis: 80%;
  padding-left: 1.5rem;
  border: none;
  font-size: 0.9rem;
}

input:focus {
  outline: none;
}

input::placeholder {
  color: var(--accent-color);
  font-size: 0.8rem;
}

.chevron {
  width: 25px;
  margin-right: 1.5rem;
  cursor: pointer;
}

.hero-button {
  padding: 1.5rem 3rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 10px;
  outline: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero-button:hover {
  background-color: #000;
}

/* Dropdown Menus */
.drop-down-hero {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 150px;
  width: 100%;
  border-radius: 10px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
  background-color: white;
  padding: 0 1rem 1.5rem 1rem;
  overflow-y: scroll;
  font-size: 0.8rem;
  font-weight: lighter;
  color: black;
  z-index: 5;
}

.drop-down-hero > div {
  padding: 0.5rem;
  border: 0.5px solid rgba(33, 40, 50, 0.116);
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.drop-down-hero > div:hover {
  background-color: var(--light-gray);
}

.drop-down-hero-type {
  top: 140px;
  left: 0;
  height: 0px;
  padding: 0px;
}

.drop-down-hero-drink {
  top: 215px;
  left: 0;
  height: 0px;
  padding: 0px;
}

/* Decorative Elements */
.liquor-glass {
  position: absolute;
  top: -3vh;
  right: -25vw;
  width: 70%;
  z-index: 1;
}

.liquor-bottles {
  position: absolute;
  left: 28vw;
  width: 240vw;
  transform: translate(-50%, -50%);
  top: 85vh;
  z-index: 1;
}

/* Map Section */
.map-search-container {
  position: absolute;
  z-index: 5;
  bottom: calc(-100vh + 3.5rem);
  width: 100vw;
  background-color: var(--primary-color);
  overflow: hidden;
}

#map {
  height: 50vh;
  width: 100vw;
}

/* Search Results Card */
.search-result-card {
  position: absolute;
  z-index: 6;
  gap: 1.3rem;
  padding-top: 0.5rem;
  bottom: -50vh;
  width: 100vw;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
  background-color: white;
  overflow: hidden;
}

.slide-bar {
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
  width: 1.7rem;
  height: 0.4rem;
  background-color: #374353;
  border-radius: 10px;
  margin-bottom: 10px;
}

.slide-bar-proxy {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 2.5rem;
  z-index: 7;
}

/* Search Toggle */
.toggle {
  position: absolute;
  display: flex;
  width: 10rem;
  left: 1rem;
  top: 2rem;
  cursor: pointer;
  gap: 1rem;
  align-items: center;
  font-weight: regular;
  font-size: 0.85rem;
  color: #374353;
  background-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.toggle-switch {
  display: inline-block;
  background-color: var(--secondary-color);
  border-radius: 16px;
  width: 58px;
  height: 32px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
}

.toggle-switch:before,
.toggle-switch:after {
  content: "";
}

.toggle-switch:before {
  display: block;
  background-color: var(--accent-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: left 0.25s;
}

.toggle-checkbox:checked + .toggle-switch {
  background-color: var(--accent-color);
}

.toggle-checkbox:checked + .toggle-switch:before {
  left: 30px;
  background-color: var(--secondary-color);
}

.toggle-checkbox {
  position: absolute;
  visibility: hidden;
}

/* Search Result Card Input */
.search-result-card-input-container {
  position: relative;
  display: flex;
  margin-top: 4rem;
  width: 90vw;
  height: 60px;
  justify-content: space-between;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  left: 50%;
  transform: translate(-50%, 0);
}

.search-result-card-input {
  flex-basis: 70%;
}

.search-result-card-input::placeholder {
  color: #374353;
}

.search-result-card-button {
  flex-basis: 30%;
  height: 104%;
  margin-right: -0.1rem;
  background-color: var(--primary-color);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  color: white;
  font-size: 0.9rem;
  padding: 0;
}

.search-result-card-ad-container {
  position: relative;
  height: 60px;
  width: 90vw;
  background-color: lightgrey;
  background-image: url(images/screen-shot-new.svg);
  background-size: cover;
  background-position: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 10px;
}

/* Search Card Results */
.search-result-card-results {
  display: flex;
  position: relative;
  width: 100%;
  padding: 1rem;
  padding-top: 0;
  overflow-y: scroll;
  flex-direction: column;
  gap: 1.5rem;
  height: 57.5vh;
}

.results-container-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background-color: white;
  height: 45vh;
  width: 100%;
  box-shadow: 0px 17px 10px -15px rgba(138, 138, 138, 1);
}

.results-container-card-img-container {
  height: 70%;
  width: 100%;
  background-position: center;
  background-size: cover;
  border-radius: 10px 10px 0 0;
}

.results-container-card-description-container-child {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.results-container-card-description-container-child > p {
  color: rgb(47, 47, 47);
  font-weight: lighter;
  font-size: 0.8rem;
}

.results-container-card-description-container-child > h4 {
  font-weight: regular;
  color: rgb(37, 37, 37);
}

.results-container-card-button-container {
  display: flex;
  justify-content: space-between;
  height: 5vh;
  width: 100%;
  padding: 0 1rem 1rem 1rem;
}

.browse,
.directions {
  width: 49.5%;
  background-color: var(--primary-color);
  padding: 0.5rem;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.browse:hover,
.directions:hover {
  background-color: #25a68a;
}

.back-to-stores-container {
  display: flex;
  justify-content: center;
  margin: 1vh;
}

.back-to-all-stores-link {
  padding: 0.8rem 1rem;
  border-radius: 5px;
  border: none;
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0px 17px 10px -15px rgba(138, 138, 138, 1);
  cursor: pointer;
}

/* Browsing Container */
.browsing-drink-container {
  position: absolute;
  bottom: -65vh;
  left: 0;
  height: 68.5%;
  width: 100%;
  z-index: 50;
  box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.1);
  overflow-y: hidden;
  padding-top: 0.5rem;
  background-color: white;
}

.empty-filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0 1.3rem 1.3rem;
  font-size: 0.85rem;
  font-weight: light;
  color: #374353;
}

.in-store-search-input-container {
  display: flex;
  justify-content: center;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  box-shadow: 0px 4px 7px -5px rgba(0, 0, 0, 0.25);
}

.in-store-search {
  height: 50px;
}

.in-store-search::placeholder {
  color: #374353;
  font-size: 0.9rem;
}

.filter-drink-results {
  position: relative;
  background-color: white;
  width: 90%;
  margin: 1.5rem auto 1.5rem auto;
  border-radius: 10px;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);
}

.filter-drink-price-label-container {
  display: flex;
  flex-direction: column;
}

.filter-price-size-container {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0 0 0;
}

.filter-price-size {
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
  align-items: center;
}

.aligning-price-size {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}

.label-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}

.filter-selector {
  height: 15px;
  width: 15px;
  background-color: rgb(192, 192, 192);
  border-radius: 20px;
  cursor: pointer;
}

.filter-button {
  background-color: var(--primary-color);
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  color: white;
  cursor: pointer;
}

.browsing-results-container {
  display: flex;
  position: relative;
  width: 100%;
  padding: 1rem;
  padding-top: 0;
  overflow-y: scroll;
  flex-direction: column;
  gap: 1.5rem;
  height: 46.1vh;
}

/* Loader Animations */
.loader-div-search {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.rectangle-container-search {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-basis: 75%;
}

.rectangle-loader-search {
  height: 0.9rem;
  width: 100%;
  border-radius: 5px;
  animation: fader 1.3s infinite;
}

.rectangle-container-search > div:first-child {
  width: 100%;
  height: 10rem;
}

.rectangle-side-by-side-search {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 2rem;
}

.loader-div-browse {
  display: flex;
  width: 100%;
  gap: 1rem;
}

.circle-loader {
  width: 5rem;
  height: 70%;
  border-radius: 10px;
  animation: fader 1.3s infinite;
  flex-basis: 25%;
}

.rectangle-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 1rem;
  flex-basis: 75%;
}

.rectangle-loader {
  height: 0.9rem;
  width: 98%;
  border-radius: 5px;
  animation: fader 1.3s infinite;
}

.rectangle-container > div:first-child {
  width: 50%;
}

.rectangle-side-by-side {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 2rem;
}

/* Specific Drinks */
.specific-drinks {
  position: relative;
  display: flex;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  height: 12.5rem;
  width: 100%;
  padding: 1rem;
  z-index: 100;
}

.drink {
  display: flex;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.browse-drink-image {
  flex-basis: 40%;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
}

.browse-info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-basis: 60%;
}

.store-name {
  color: #4e5052;
}

.price-size {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.drink-button {
  border: none;
  background-color: var(--primary-color);
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Popup Dialogs */
.please-provide-drink,
.no-information-for-location,
.no-inventory-popup,
.redirect-popup {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 70vw;
  height: 25vh;
  background-color: white;
  z-index: 10;
  top: 50%;
  left: 50%;
  border-radius: 5px;
  text-align: center;
  transform: translate(-50%, -50%);
  gap: 2rem;
  padding: 2rem;
  box-shadow: 0px 5px 7px -2px rgba(119, 119, 119, 0.62);
}

.please-provide-drink > button,
.no-information-for-location > button,
.no-inventory-popup > button {
  padding: 0.7rem 3rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 10px;
  outline: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.redirect-popup-button-container {
  display: flex;
  justify-content: space-around;
}

.redirect-popup-button-container > button {
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
}

/* Dropdown Menu */
.drop-down {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 91.5vh;
  width: 100vw;
  top: 3.5rem;
  left: -100vw;
  z-index: 6;
  gap: 1rem;
  background-color: white;
}

.drop-down > li {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: white;
  padding: 1.5rem 0;
  width: 100%;
  box-shadow: 0px 5px 2px -4px rgba(0, 0, 0, 0.25);
}

.drop-down > :nth-child(2) {
  margin-bottom: 1.5rem;
}

.drop-down > li > a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bolder;
}

.dropdown-ad-space {
  height: 55vh;
  width: 80vw;
  background-color: lightgray;
  border: 1px solid black;
  background-image: url(images/newRect.svg);
  background-size: cover;
  background-position: center;
}

/* Autocomplete Styles */
.autocomplete-results {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
}

.autocomplete-item {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #f2f2f2;
}

.autocomplete-item.selected {
  background-color: #e6f2ff;
}

.highlight {
  font-weight: bold;
  color: #4285f4;
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .input-button-container {
    width: 90%;
  }
  
  .search-result-card-input-container {
    width: 90%;
  }
}

@media (min-width: 769px) {
  .ham-box, .menu-proxy {
    display: none;
  }
  
  .input-button-container {
    width: 500px;
  }
  
  .search-result-card {
    width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 25px;
  }
  
  .browsing-drink-container {
    width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .map {
    height: 60vh;
  }
}