:root {
  --gradient-hero: linear-gradient(
    135deg,
    var(--colourD) 0%,
    var(--backgroundPrimary) 100%
  );
}

/* OVERLAY STYLES */
.hotweekends-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  display: flex;
  align-items: start;
  justify-content: center;
  opacity: 1;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.hotweekends-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

#landing-overlay {
  display: flex;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay-content img {
  width: 15vh;
}

.overlay-logo {
  font-size: 5rem;
}

.overlay-tagline {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.overlay-search-container {
  padding: 0;
  border-radius: 20px;
  margin: 0 auto;
  display: none;
  flex-direction: column;
}

.overlay-search-container .dropdown-container {
  margin: 0;
}

#overlay-dropdown-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
}

.overlay-cta-button:hover {
  background: var(--dropdownHover);
  transform: translateY(-2px);
}

.overlay-cta-button {
  transition: var(--buttonShadowTransition);
  box-shadow: var(--buttonShadow);
  font-size: 1.1rem;
  padding: 1.2rem 2rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1.5rem;
  position: relative;
  width: 40%;
  left: 60%;
}

.landing-page-search {
  padding: 1rem;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #333;
  transition: all 0.3s ease;
  width: min(90vw, 900px);
  height: 80px;
}

#overlay-city-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 2px;
  font-size: 1.1rem;
}

#overlay-city-list .dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

#overlay-city-list .dropdown-item.highlighted {
  background-color: var(--dropdownPrimary);
  color: white;
}

.landing-warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.landing-warning-modal.show {
  opacity: 1;
  visibility: visible;
}

.warning-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
}

.landing-warning-modal.show .warning-modal-content {
  transform: scale(1) translateY(0);
}

.warning-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--gradient-hero);
  border-radius: 16px 16px 0px 0px;
}

.warning-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--backgroundPrimary), var(--colourD));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  animation: pulse 2s infinite;
}

.warning-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  font-family: var(--HWFont);
  letter-spacing: 1px;
}

.warning-modal-message {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.3rem;
  text-wrap: wrap;
  font-family: "Dosis", sans-serif;
}

.warning-modal-button {
  background: var(--buttonPrimary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--buttonShadowTransition);
  box-shadow: var(--buttonShadow);
  min-width: 120px;
}

.warning-modal-button:hover {
  background-color: var(--dropdownPrimary);
  transform: translateY(-2px);
}

.warning-modal-button:active {
  transform: translateY(0);
}

.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  text-align: center;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .overlay-logo {
    font-size: 3rem;
    margin-bottom: 0px;
  }

  .overlay-tagline {
    font-size: 1.3rem;
    width: 85vw;
    text-wrap: wrap;
    margin-bottom: 1.3rem;
  }

  .overlay-search-container {
    margin: 0 1rem;
    width: 75vw;
    text-wrap: wrap;
  }

  .overlay-content img {
    width: 25vw;
  }

  .overlay-cta-button {
    padding: 1.2rem;
  }

  .warning-modal-content {
    padding: 2rem;
    margin: 1rem;
  }

  .warning-modal-title {
    font-size: 1.3rem;
  }
}

@media (max-height: 700px) {
  .overlay-content {
    width: 100%;
  }
  .overlay-content img {
    width: 12vh;
  }
  .overlay-logo {
    font-size: 3rem;
  }
  .overlay-tagline {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  .overlay-cta-button {
    width: 100%;
    left: 0%;
  }
}
