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

/* ============================================
   BASE STYLES - Mobile First (240x360+)
   ============================================ */

/* 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: 1rem; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.5rem, 0.5rem + 1vh, 2rem);
}

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

.overlay-logo {
  font-size: clamp(1rem, 1.2rem + 5vh, 6rem);
  display: none;
  margin-bottom: 0;
}

.overlay-tagline {
  font-size: 1.1rem;
  width: 90vw;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-wrap: wrap;
}

.overlay-search-container {
  padding: 0;
  border-radius: 20px;
  margin: 0 1rem;
  width: calc(100vw - 2rem);
  max-width: 400px;
  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;
  padding: clamp(2px, 2px + 1vw, 8px);
  color: #666;
  display: none;
}

.overlay-cta-button {
  transition: var(--buttonShadowTransition);
  box-shadow: var(--buttonShadow);
  /* font-size: clamp(0.4rem, 0.4rem + 0.7vw, 0.9rem); */
  /* padding: clamp(0.2rem, 0.2rem + 0.7vh, 0.875rem); */
  font-size: clamp(0.6rem, 0.6rem + 1vw, 0.95rem);
  padding: clamp(0.2rem, 0.2rem + 1.7vh, 1.1rem);
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1rem;
  position: relative;
  width: 100%;
  left: 0;
}

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

.landing-page-search {
  padding: clamp(0.2rem, 0.2rem + 2.7vw, 0.875rem);
  font-size: clamp(16px, 16px+ 0.4vw, 1.1rem);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #333;
  transition: all 0.3s ease;
  width: 100%;
  min-height: clamp(30px, 30px + 0.7vh, 75px);
}

#overlay-city-search {
  scroll-margin-top: 10px;
}

#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: 5000;
  /* max-height: clamp(180px, 180px + 1vh, 50vh); */
  max-height: clamp(180px, 180px + 30vh, 40vh);
  overflow-y: auto;
  margin-top: 2px;
  font-size: clamp(10px, 10px + 0.4vh, 1.1rem);
}

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

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

/* Warning Modal */
.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: 1.5rem;
  margin: 1rem;
  max-width: 450px;
  width: calc(100vw - 2rem);
  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: 60px;
  background: var(--gradient-hero);
  border-radius: 16px 16px 0px 0px;
}

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

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

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

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

.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.85rem;
  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);
}

.landing-price-disclaimer {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 800px;
  border-top: 1px solid #ddd;
  /* padding: 0.625rem 0.875rem; */
  text-align: center;
  font-family: "Dosis", sans-serif;
  font-size: 0.75rem;
  color: white;
  z-index: 1000;
  text-wrap: wrap;
  margin-top: auto;
  padding: 0.5rem 0;
  font-size: clamp(0.6rem, 2vw, 1rem);
  line-height: 1.4;
}

@media (min-width: 300px) {
  #overlay-dropdown-btn {
    display: flex;
  }
}

/* ============================================
   MOBILE PERFECT (360px+)
   ============================================ */
@media (min-width: 360px) {
  .overlay-tagline {
    font-size: 1.3rem;
    width: 85vw;
    margin-bottom: 1.3rem;
  }

  .overlay-search-container {
    width: 75vw;
    max-width: 500px;
  }

  .overlay-logo {
    display: block;
  }

  #overlay-city-list .dropdown-item {
    padding: 11px 15px;
  }

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

  .warning-modal-content::before {
    height: 70px;
  }

  .warning-modal-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

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

  .warning-modal-message {
    font-size: 1.2rem;
    margin-bottom: 1.75rem;
  }

  .warning-modal-button {
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
  }

  .landing-price-disclaimer {
    font-size: 0.8rem;
    bottom: 45px;
  }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .overlay-content {
    padding: 2rem;
  }

  .overlay-content img {
    width: 18vw;
    max-width: 150px;
  }

  .overlay-logo {
    margin-bottom: 0.5rem;
  }

  .overlay-tagline {
    font-size: 1.6rem;
    width: auto;
    max-width: 700px;
    margin-bottom: 2.5rem;
  }

  .overlay-search-container {
    width: 65vw;
    max-width: 700px;
    margin: 0 auto;
  }

  .overlay-cta-button {
    font-size: 1.05rem;
    padding: 1.15rem 1.75rem;
    width: 50%;
    left: 50%;
  }

  #overlay-city-list .dropdown-item {
    padding: 12px 16px;
  }

  .warning-modal-content {
    padding: 2.25rem;
    margin: 0;
    width: 90vw;
  }

  .warning-modal-content::before {
    height: 75px;
  }

  .warning-modal-icon {
    width: 75px;
    height: 75px;
    font-size: 1.875rem;
    margin-bottom: 1.375rem;
  }

  .warning-modal-title {
    font-size: 1.4rem;
    margin-bottom: 0.95rem;
  }

  .warning-modal-message {
    font-size: 1.25rem;
    margin-bottom: 1.875rem;
  }

  .warning-modal-button {
    padding: 1rem 1.875rem;
    font-size: 1rem;
    min-width: 110px;
  }

  .error-message {
    font-size: 0.875rem;
  }

  .landing-price-disclaimer {
    font-size: 0.9rem;
    bottom: 50px;
    padding: 0.75rem 1rem;
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  .overlay-content img {
    width: 15vh;
    max-width: 180px;
  }
  .overlay-tagline {
    font-size: 1.8rem;
    max-width: 900px;
    margin-bottom: 3rem;
  }

  .overlay-search-container {
    width: min(60vw, 900px);
    max-width: 900px;
  }

  .overlay-cta-button {
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
    width: 40%;
    left: 60%;
    margin-top: 1.5rem;
  }

  .warning-modal-content {
    padding: 2.5rem;
  }

  .warning-modal-content::before {
    height: 80px;
  }

  .warning-modal-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .warning-modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .warning-modal-message {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .warning-modal-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 120px;
  }

  .error-message {
    font-size: 0.9rem;
  }

  .landing-price-disclaimer {
    font-size: 1rem;
  }
}

/* ============================================
   SHORT SCREENS (height < 700px)
   Applied at all widths when height is limited
   ============================================ */
@media (max-height: 700px) {
  .overlay-content img {
    width: 12vh;
  }

  .overlay-tagline {
    margin-bottom: clamp(0.8rem, 0.8rem + 0.2vh, 1rem);
    font-size: clamp(0.7rem, 0.7rem + 0.7vw, 1.4rem);
  }

  .overlay-cta-button {
    width: 100%;
    left: 0%;
    margin-top: 1rem;
  }

  .landing-price-disclaimer {
    bottom: 30px;
  }
}
