/* ============================================
   SHARED STYLES - FFF and HW Themes
   Mobile First Approach
   ============================================ */

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

.weather-icons {
  align-items: center;
}

#weather-icons-container {
  position: relative;
  left: 0;
  display: flex;
}

.banner-day-temp {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.banner-day-temp .weather-day {
  font-size: inherit;
}

#search-mode-radio label {
  color: var(--colourText);
  font-weight: bold;
}

#left-sidebar {
  position: relative;
}

#flight-form label {
  color: var(--colourText);
}

.card {
  background-color: var(--cardSecondary);
}

.sidebar-header {
  border-style: none;
}

.accom.form-group label {
  color: var(--formText);
}

.output-range {
  left: -2%;
  color: var(--formText);
  top: -10px;
  background: white;
  border-radius: 5px;
  z-index: 1;
  position: relative;
}

#left-sidebar-content {
  background-color: var(--sidebarPrimary);
  color: var(--formText);
}

.sort-btn,
.sort-btn:hover,
.sort-btn:active,
.sort-btn.active {
  background-color: transparent;
  color: var(--svgPrimary);
  border-bottom-color: var(--svgPrimary);
}

/* Mobile: no hover effect on sort buttons */
.sort-btn:hover {
  background-color: transparent;
}

.destination-duration {
  color: var(--svgText);
}

.sort-btn span {
  color: var(--svgText);
}

.price {
  color: var(--svgText);
}

.destination-title {
  color: var(--svgText);
}

#table-container.show {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Modal - Mobile dimensions */
.modal {
  top: calc(50% - clamp(20px, 20px + 1vw, 30px));
  height: calc(100vh - clamp(20px, 20px + 0.5vw, 6vh));
}

.modal-content {
  top: 15vh;
  height: 60vh;
  width: 90%;
}

.card.card-large {
  display: flex;
  flex-direction: column;
  overflow-y: visible;
  height: inherit;
}

.modal-sidebar button {
  width: 20%;
  height: 42px;
}

.card-large {
  position: relative;
}

.weekend-option button {
  padding: 8px 12px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.modal-offer-title {
  position: absolute;
  top: -10px;
  background-color: var(--colourSidebar);
  color: white;
  padding: 4px 8px;
  font-size: 1.2em;
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.travel-warnings-slide a {
  padding: 5px;
  position: relative;
}

#fff-icon {
  margin-left: 10px;
  height: 42px;
  margin-right: 5px;
  transform: scale(0.8);
}

/* Fullscreen background image */
#bg-image-dreams {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
  background-color: var(--backgroundSecondary);
}

.clickable {
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: end;
}

#cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(5px, 5px + 0.5vh, 20px);
  font-size: clamp(12px, 12px + 0.2vh, 16px);
  text-align: center;
  z-index: 1000;
}

/* Website name animations */
#website-name {
  opacity: 0;
  white-space: nowrap;
  font-size: 10vw;
  max-width: 100%;
  overflow: hidden;
  z-index: 999;
}

#website-name.fade-in-only {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

#website-name.fade-in-out {
  opacity: 0;
  animation:
    fadeIn 1s forwards,
    fadeOut 2s 1s forwards,
    dropZ 2s 1s forwards;
}

#website-name.fade-out {
  opacity: 0;
  animation:
    fadeOut 1s forwards,
    dropZ 0s 1s forwards;
}

/* Page banner */
#page-banner {
  display: none;
  color: white;
  padding: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding-right: 25px;
  width: auto;
  height: 50px;
}

#page-banner.show {
  display: block;
  opacity: 1;
  animation: fadeIn 1s ease forwards;
  padding-bottom: 0;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: left;
  line-height: 1.6;
  height: 50px;
  overflow-y: clip;
}

.travel-warnings-slide {
  display: flex;
  flex-direction: column;
  background-color: var(--sidebarPrimary);
  align-items: center;
  font-weight: inherit;
  justify-content: space-around;
  padding: 7px;
}

.landing-price-disclaimer {
  color: var(--backgroundPrimary);
}

/* Slider styling */
.price-slider::-webkit-slider-runnable-track {
  background: var(--colourD) !important;
  background-image: none !important;
  box-shadow: none !important;
  height: 2px;
  border-radius: 3px;
  border: none;
}

.price-slider::-moz-range-track {
  background: var(--colourD) !important;
  height: 2px;
  border-radius: 3px;
  border: none;
}

.price-slider::-ms-track {
  background: var(--colourD) !important;
  height: 2px;
  border-radius: 3px;
  border: none;
  color: transparent;
}

/* Dropdown styling */
.dropdown-item:hover {
  background-color: #2f686d;
}

.highlighted {
  background-color: var(--backgroundPrimary);
  font-weight: 600;
}

.dropdown-list {
  background-color: var(--buttonPrimary);
}

/* NoUI Slider adjustments */
#slider-temp .noUi-base,
#slider-sci .noUi-base {
  /* height: 11px; */

  height: clamp(4px, 4px + 0.9vh, 11px);
  top: -5px;
}

#slider-temp .noUi-handle,
#slider-sci .noUi-handle {
  top: -4px;
}

.noUi-connect {
  top: 1px;
}

.noUi-connect,
.noUi-origin {
  top: 0;
}

/* Search box styling */
#left-sidebar .dropdown-input {
  border: 1px solid var(--colourD);
  border-radius: 10px;
  width: 100%;
  color: #132e55;
  box-shadow: 3px 3px var(--backgroundSecondary);
  font-weight: 400;
}

#left-sidebar .dropdown-btn {
  padding: 10px;
  height: 100%;
  border: 0px;
  border-radius: 22%;
  position: absolute;
  right: 0px;
}

/* No results styling */
.no-results-message {
  font-size: 1.3em;
  color: var(--textPrimary);
  padding: 30px 15px;
  max-width: 600px;
  line-height: 1.4;
}

.no-results-image {
  width: 150px;
}

.no-results-text {
  white-space: pre-line;
  line-height: 1.5;
}

.no-results-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  cursor: pointer;
  margin: 2rem 0;
}


.dropdown-list {
  background-color: var(--backgroundSecondary);
  color: var(--svgText);
}

.dropdown-item:hover {
  background-color: var(--sidebarPrimary);
}

.highlighted {
  color: white;
}

.dropdown-item.highlighted:hover {
  color: var(--backgroundPrimary);
}


/* Mobile center width calculation */
#center {
  width: calc(100% - (max(20vw, 400px) + max(20vw, 400px)));
}

/* ============================================
   MOBILE PERFECT (360px+)
   ============================================ */
@media (min-width: 360px) {
  .no-results-message {
    font-size: 1.4em;
    padding: 35px 18px;
  }

  .no-results-image {
    width: 170px;
  }
  #left-sidebar {
    position: relative;
    left: -1px;
    top: -5px;
  }
}

/* ============================================
   TALLER MOBILE SCREENS (height 650px+)
   ============================================ */
@media (min-height: 650px) {
  .modal-content {
    height: 70vh;
    position: absolute;
    top: 5vh;
  }
}

/* ============================================
   VERY TALL SCREENS (height 900px+)
   ============================================ */
@media (min-height: 900px) {
  .modal-content {
    top: auto;
    height: 80vh;
  }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .no-results-message {
    font-size: 1.5em;
    padding: 40px 20px;
  }

  .no-results-image {
    width: 200px;
  }

  .modal-content {
    top: 10vh;
    height: 75vh;
    width: 75vw;
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  /* Weather icons on desktop move left */
  #weather-icons-container {
    left: -5em;
    display: none;
  }

  /* Add hover effects for desktop */
  .sort-btn:hover {
    background-color: #f6eded;
  }

  /* Adjust center width for desktop */
  #center {
    width: calc(100% - (max(20vw, 400px) + max(20vw, 400px)));
  }

  .modal {
    top: calc(50% - 30px);
    height: calc(100vh - 50px);
  }

  .modal-content {
    top: 10vh;
    height: 75vh;
    width: 75vw;
  }
}

/* ============================================
   LARGE DESKTOP (1920px+)
   Optional: Add even larger breakpoint if needed
   ============================================ */
@media (min-width: 1920px) {
  .no-results-message {
    font-size: 1.6em;
  }
}
