/* ============================================
   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);
  justify-content: space-between;
}

.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;
}

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

.card-fnaf-text {
  backdrop-filter: blur(2px);
}

/* ============================================
   SIDEBAR (Mobile First - Bottom Navigation)
   ============================================ */
.sidebar-aligned {
  width: 100vw;
  background-color: var(--colourSidebar);
  position: fixed;
  bottom: 0;
  left: 0;
  height: clamp(40px, 40px + 0.5vw, 6vh);
  display: flex;
  justify-content: center;
}

.sidebar-aligned h2 {
  display: none; /* Hidden on mobile */
  margin-left: inherit;
  /* font-size: 4vh; */
  font-size: clamp(20px, 20px + 0.5vw, 1.2em);
}

/* ============================================
   BUTTONS (Mobile First)
   ============================================ */
.button-three {
  --button-color: white;
  overflow: hidden;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0px 16px 0px 8px;
}
.button-three:hover {
  background-color: transparent;
}
#fff-icon {
  margin-left: 0px;
}

#toggleRightSidebar {
  display: none; /* Hidden on mobile */
}

#toggleView {
  left: 1px;
}

/* ============================================
   WEATHER BANNER (Mobile First - Hidden)
   ============================================ */
.weather-banner {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  height: 0px; /* Hidden on mobile */
  position: relative;
  width: 100vw;
  overflow-x: scroll;
  margin: 0px;
  padding-left: 0px;
  top: 0px;
  background-color: antiquewhite;
}

.weather-banner .weather-icons {
  border-radius: 0;
  width: 100%;
  margin: 0;
  color: black;
  background-color: antiquewhite;
  display: flex;
  padding: 0 10px;
  font-size: 0.8em;
  gap: 0;
  overflow-x: scroll;
}

.weather-banner .weather-icons .weather-icon img {
  width: 30px;
  height: 30px;
  position: relative;
}

.weather-banner .weather-icon {
  padding: 0;
  padding-left: 5px;
  padding-right: 0px;
  gap: 2px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.8em;
  justify-content: space-around;
  flex: 0 0 calc(10% - 10px) !important;
}

#weather-icons-container {
  width: 100%;
  height: 50px;
}

/* ============================================
   COOKIE SETTINGS
   ============================================ */
#cookie-settings-panel label {
  color: #2e2e2e;
}

#cookie-popup {
  background: var(--colourC);
  color: #2d2e31;
}

#cookie-popup a {
  color: #020b9d;
}

/* ============================================
   CARDS (Mobile First)
   ============================================ */
.card-image {
  height: min(55svh, 460px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

.card-content {
  position: relative;
  background-color: #fff0;
  align-items: end;
  top: 10px;
  padding: 0px;
}

.card-date {
  color: white;
  flex-direction: column;
  font-size: small !important;
}

.card-date .clickable {
  color: white;
}

.card-date-range {
  margin: 3px 0px 0px 0px;
  padding: 5px 10px;
  border-radius: 6px 6px 0px 0px;
  color: white;
}

.card-fnaf-text {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  position: relative;
  margin-top: auto;
}

.card-fnaf-text .price {
  color: white;
}

.card-svg-icon {
  width: 30px;
}

.card-content .card-svg-icon {
  width: 40px;
}

/* ============================================
   DESTINATION TITLE & CLICKABLES (Mobile First)
   ============================================ */
.destination-title {
  font-size: large;
  flex-direction: row;
  position: relative;
  gap: 10px;
  flex-direction: column;
}

.destination-title .clickable {
  background-color: white;
  color: #222;
  border-radius: 6px;
  padding: 9px 12px;
  box-shadow: 13px 7px 3px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.destination-title .clickable i {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.card-content .destination-title .clickable {
  background-color: white;
  padding: 9px 9px;
  border-radius: 6px 0px 0px 6px;
}

/* Simplified hover for mobile */
.destination-title .clickable:hover {
  background-color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.destination-title .clickable:hover i {
  transform: translateX(2px);
}

.destination-title .clickable:active {
  background-color: #ebebeb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

/* Tap feedback only for flight and hotel clickables */
.flight-clickable a.clickable.tapped,
.hotel-clickable a.clickable.tapped {
  background-color: var(--backgroundSecondary) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px);
}

.flight-clickable {
  position: relative;
  width: 100%;
}

.hotel-clickable {
  position: relative;
  width: 100%;
}

.price {
  font-size: 1.3em;
}

/* ============================================
   WEATHER ICONS & DATES
   ============================================ */
.weather-icons {
  margin-right: 0;
  margin-bottom: 0px !important;
  padding: 5px 6px;
  margin-top: 0px;
  position: relative;
}

.weather-icons svg {
  width: 30px;
  margin: 0px;
}

.weather-date {
  padding-bottom: 0px;
  font-size: x-small !important;
}

.weather-day {
  margin-top: 6px;
}

.weather-icon {
  /* flex: 0 0 calc(10% - 10px); */
  flex: 0 0 calc(14% - 10px);
  font-size: small;
  color: inherit;
}

.weather-icon .card-svg-icon {
  width: 24px;
}

.weekend-label:hover {
  background-color: var(--backgroundSecondary);
}

/* ============================================
   MODAL (Mobile First)
   ============================================ */
.modal-offer-title {
  display: block;
  position: relative;
  width: 47%;
}

.modal-sidebar svg {
  fill: var(--svgText);
}

.modal-sidebar a {
  background-color: var(--colourA);
  width: 34%;
}

.modal-sidebar a.active {
  background-color: var(--colourC);
}

.modal-close-button {
  background-color: #fbd4d4a6;
  fill: var(--colourB);
}

.destination-modal {
  width: 100%;
}

.modal .price {
  font-size: 1.2em;
}

.modal .destination-title {
  flex-direction: row;
}

.slider .modal-scroller-content {
  align-items: end;
}

/* Travel Warnings Slide */
.slider .travel-warnings-slide {
  color: white;
  border-color: white;
  align-items: center;
}

.travel-warnings-slide a {
  color: white;
}

.travel-warnings-slide svg {
  fill: white;
}

/* Ellipsis Slide */
.elipsis-slide h2 {
  color: white;
}

.elipsis-slide a {
  color: white;
}

.elipsis-slide svg {
  fill: white;
}

.slider .elipsis-slide {
  width: min(50%, 200px);
  background: #ef7b51ed;
  justify-content: space-around;
  align-content: start;
  align-items: start;
  position: relative;
  border-radius: 5px;
}

.slider .modal-scroller-content .elipsis-slide {
  align-items: start;
}

/* Card Large */
.card-large .card-image {
  flex: 0 0 100%;
}

.additional-sidebar-checklist {
  background-color: white;
  padding: 1em;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 0px;
}

.form-group.additional-sidebar-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   FORMS & DROPDOWNS (Mobile First)
   ============================================ */
.form-group label {
  width: 60%;
}

#flight-form label {
  color: #b23a48;
  font-weight: 500;
}

#left-sidebar {
  background-color: var(--colourSidebar);
}

#left-sidebar .dropdown-btn {
  background-color: var(--colourD);
}

#left-sidebar .dropdown-btn:hover {
  background-color: var(--svgPrimary);
}

#left-sidebar .dropdown-input:focus,
#left-sidebar .dropdown-input:focus-visible {
  outline: none;
  box-shadow: 3px 3px #bb7686;
  border-color: var(--colourD);
}

.dropdown-list {
  background-color: var(--colourText);
  color: #fff;
}

.dropdown-item:hover {
  background-color: #e4754dab;
}

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

/* ============================================
   SLIDER & PROGRESS BAR
   ============================================ */
.included-portion {
  background-color: var(--colourC);
  border-radius: 20% 20% 0 0;
}

.bar {
  background-color: var(--backgroundSecondary);
}

/* ============================================
   HOWIE BANNER (Hidden on Mobile)
   ============================================ */
.howie-banner {
  display: none;
}

.howie-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: var(--svgText);
  font-size: larger;
  font-weight: 500;
  gap: 0.75rem;
  padding-bottom: 300px;
}

.landing-price-disclaimer {
  color: white;
}

/* ============================================
   LAYOUT ADJUSTMENTS
   ============================================ */
#center {
  padding-top: 0px;
}

#table-container {
  top: calc(50vh + 0px);
}

.easy-book-button-container {
  gap: 10px;
}

.hotel-clickable {
  display: none;
}

.card-fnaf-text {
  display: none;
}

/* ============================================
   3. PERFECT MOBILE (360px+)
   ============================================ */
@media only screen and (min-width: 360px) {
  /* Refinements for perfect mobile display */
  /* Most styles are already optimized for mobile */
  /* Add specific 360px+ enhancements here if needed */
}

@media only screen and (min-height: 540px) {
  .hotel-clickable {
    display: block;
  }

  .card-fnaf-text {
    display: flex;
  }
}

/* ============================================
   4. TABLET STYLES (768px+)
   ============================================ */
@media only screen and (min-width: 768px) {
  /* Show weather banner on tablet */
  #page-banner {
    height: auto;
  }

  #page-banner.show {
    height: auto;
    padding-bottom: 1px;
  }

  .banner-content {
    height: 50px;
  }

  .weather-banner {
    /* height: auto; */
    height: 0px;
    width: calc(100vw - max(20vw, 170px));
    padding-left: 10px;
    background-color: var(--colourD);
    justify-content: center;
  }

  .weather-banner .weather-icons {
    background-color: antiquewhite;
    font-size: 0.9em;
    gap: 5px;
  }

  .weather-banner .weather-icon {
    padding-left: 10px;
    padding-right: 5px;
    gap: 5px;
    font-size: inherit;
  }

  /* Sidebar moves to side */
  .sidebar-aligned {
    width: max(20vw, 400px);
    position: relative;
    background-color: transparent;
    bottom: auto;
    left: auto;
    justify-content: flex-start;
  }

  .sidebar-aligned h2 {
    display: block;
    line-height: 0;
    margin-left: 0;
  }

  /* Howie banner visible */
  .howie-banner {
    display: flex;
    position: fixed;
    top: 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 50px;
    position: relative;
    padding: 0px 20px;
  }

  /* Weather adjustments */
  .weather-date {
    font-size: inherit !important;
  }

  .weather-icon {
    font-size: inherit;
  }

  .weather-icon .card-svg-icon {
    width: 30px;
  }

  .card-date {
    font-size: inherit !important;
  }

  /* Card adjustments */
  .card-image {
    height: min(55svh, 460px);
  }

  /* Table container */
  #table-container {
    top: calc(50vh + 55px);
  }

  /* Enhanced hover effects for non-touch devices */
  .destination-title .clickable:hover {
    background-color: var(--backgroundSecondary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
  }
  .button-three:hover {
    background-color: #e8693a;
  }
}
/* ============================================
   5. DESKTOP STYLES (1280px+)
   ============================================ */
@media only screen and (min-width: 1280px) {
  /* Larger sidebar */
  .sidebar-aligned {
    width: max(20vw, 400px);
  }

  .sidebar-aligned img {
    display: block;
  }

  /* Weather banner full width */
  .weather-banner {
    width: calc(100vw - max(20vw, 400px));
  }

  /* Form adjustments */
  /* .form-group label { */
  /*   width: 30%; */
  /* } */
  /**/
}

/* ============================================
   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;
  }
}
