/* ==========================================================================
   Compiled CSS - DO NOT EDIT
   Generated: 2026-05-19 10:39:47
   ========================================================================== */

.noUi-target,
.noUi-target * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  -ms-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-target {
  position: relative;
  background: #fafafa;
  border-radius: 4px;
  /* border: 1px solid #d3d3d3; */
  box-shadow:
    inset 0 1px 1px #f0f0f0,
    0 3px 6px -5px #bbb;
}
.noUi-base,
.noUi-connects {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.noUi-connects {
  overflow: hidden;
  z-index: 0;
  border-radius: 3px;
  height: 4px;
}
.noUi-connect,
.noUi-origin {
  will-change: transform;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  -ms-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  -webkit-transform-style: preserve-3d;
  transform-origin: 0 0;
  transform-style: flat;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
  left: 0;
  right: auto;
}
.noUi-vertical .noUi-origin {
  top: -100%;
  width: 0;
}
.noUi-horizontal .noUi-origin {
  height: 0;
}
.noUi-handle {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  cursor: default;
  box-shadow:
    inset 0 0 1px #fff,
    inset 0 1px 7px #ebebeb,
    0 3px 6px -3px #bbb;
}
.noUi-touch-area {
  height: 100%;
  width: 100%;
}
.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  -webkit-transition: transform 0.3s;
  transition: transform 0.3s;
}
.noUi-state-drag * {
  cursor: inherit !important;
}
.noUi-horizontal {
  height: 18px;
}
.noUi-horizontal .noUi-handle {
  width: 34px;
  height: 28px;
  right: -17px;
  top: -6px;
}
.noUi-vertical {
  width: 18px;
}
.noUi-vertical .noUi-handle {
  width: 28px;
  height: 34px;
  right: -6px;
  bottom: -17px;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  left: -17px;
  right: auto;
}

.noUi-connect {
  background: transparent;
}
.noUi-draggable {
  cursor: ew-resize;
}
.noUi-vertical .noUi-draggable {
  cursor: ns-resize;
}

.noUi-active {
  box-shadow:
    inset 0 0 1px #fff,
    inset 0 1px 7px #ddd,
    0 3px 6px -3px #bbb;
}
.noUi-handle:after,
.noUi-handle:before {
  content: "";
  display: block;
  position: absolute;
  height: 14px;
  width: 1px;
  background: #e8e7e6;
  left: 14px;
  top: 6px;
}
.noUi-handle:after {
  left: 17px;
}
.noUi-vertical .noUi-handle:after,
.noUi-vertical .noUi-handle:before {
  width: 14px;
  height: 1px;
  left: 6px;
  top: 14px;
}
.noUi-vertical .noUi-handle:after {
  top: 17px;
}
[disabled] .noUi-connect {
  background: #b8b8b8;
}
[disabled] .noUi-handle,
[disabled].noUi-handle,
[disabled].noUi-target {
  cursor: not-allowed;
}
.noUi-pips,
.noUi-pips * {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-pips {
  position: absolute;
  color: #999;
}
.noUi-value {
  position: absolute;
  white-space: nowrap;
  text-align: center;
}
.noUi-value-sub {
  color: #ccc;
  font-size: 10px;
}
.noUi-marker {
  position: absolute;
  background: #ccc;
}
.noUi-marker-sub {
  background: #aaa;
}
.noUi-marker-large {
  background: #aaa;
}
.noUi-pips-horizontal {
  padding: 10px 0;
  height: 80px;
  top: 100%;
  left: 0;
  width: 100%;
}
.noUi-value-horizontal {
  -webkit-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
  -webkit-transform: translate(50%, 50%);
  transform: translate(50%, 50%);
}
.noUi-marker-horizontal.noUi-marker {
  margin-left: -1px;
  width: 2px;
  height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
  height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
  height: 15px;
}
.noUi-pips-vertical {
  padding: 0 10px;
  height: 100%;
  top: 0;
  left: 100%;
}
.noUi-value-vertical {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  padding-left: 25px;
}
.noUi-rtl .noUi-value-vertical {
  -webkit-transform: translate(0, 50%);
  transform: translate(0, 50%);
}
.noUi-marker-vertical.noUi-marker {
  width: 5px;
  height: 2px;
  margin-top: -1px;
}
.noUi-marker-vertical.noUi-marker-sub {
  width: 10px;
}
.noUi-marker-vertical.noUi-marker-large {
  width: 15px;
}
.noUi-tooltip {
  display: block;
  position: absolute;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  padding: 2px 6px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.9rem;
}
.noUi-horizontal .noUi-tooltip {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  left: 40%;
  bottom: 120%;
}
.noUi-vertical .noUi-tooltip {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  top: 50%;
  right: 120%;
}
.noUi-horizontal .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(50%, 0);
  transform: translate(50%, 0);
  left: auto;
  bottom: 10px;
}
.noUi-vertical .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(0, -18px);
  transform: translate(0, -18px);
  top: auto;
  right: 28px;
}
/* Base Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Standard */
}

::-webkit-scrollbar {
  display: none;
}

/* General Elements */
html {
  font-family: sans-serif;
  line-height: 1.15; /* Firefox default */
  text-size-adjust: 100%; /* Prevent iOS zoom issues */
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;

  padding: 0;
  justify-content: center;
  align-items: center;
  height: 100svh;
  background: #012553;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overscroll-behavior: none;
  box-sizing: border-box;
  font-family: "Dosis", sans-serif;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-content: center;
  background-color: var(--backgroundSecondary);
  color: var(--colourD);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: bold;
  margin: 0.67em 0;
}

/* Lists */
ul,
ol {
  padding-left: 40px;
  list-style-type: disc;
}

li {
  margin: 0;
}

/* Links */
a {
  background-color: transparent;
  text-decoration: none;
  color: transparent;
}

a:hover {
  text-decoration: underline;
}

/* Tables */
table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  overflow-x: auto;
}

td,
th {
  padding: 0;
  text-align: left;
}

/* Forms */
button,
input,
select,
textarea {
  font: inherit;
  margin: 0;
}

button {
  background-color: ButtonFace;
  color: ButtonText;
  border: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

input {
  background-color: white;
  color: initial;
  border: 1px solid #a9a9a9; /* Match Firefox default border */
  padding: 1px;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  color: inherit;
  display: block;
  font-size: 1.15em;
  font-weight: bold;
  padding: 0;
}

/* Buttons */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/* Remove extra padding in Safari */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.hidden {
  display: none;
}
/* Apply Dosis specifically to headings */
h1,
h2,
h3 {
  font-family: "Dosis", sans-serif;
  margin: 6px;
  font-size: 1.7em;
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--formText);
}

@media only screen and (max-width: 800px) {
  h2 {
    /*margin-top: 0.2em;*/
    /*  margin-bottom: 0.8em;*/
    font-size: 1.3em;
  }
}
/* WebKit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #d8d8d8;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #dd6c20;
}

@media screen and (max-width: 800px) {
  ::-webkit-scrollbar-thumb {
    background-color: #a0a0a000;
    /*  background-color: transparent; */
    border-radius: 10px;
  }

  ::-webkit-scrollbar {
    display: none;
  }
}
/* ===============
 * OLD CSS from other files
 * */

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

#page-banner.hide {
  display: none;
  opacity: 0;
}

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

/* ============================================
   DEFAULT: Smallest Device (240px+)
   Allow quirks, just don't break
   ============================================ */

#page-banner {
  display: none;
}

.site-nav {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  top: 0;
  z-index: 10;
  align-content: center;
}

.site-nav a.nav-link {
  text-decoration: none;
  padding: 3px 14px;
  border-bottom: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.15s,
    border-color 0.15s;
  color: white;
}

.site-nav a.nav-link h2 {
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 12px 0;
}

.site-nav a.nav-link.active {
  border-bottom-color: var(--buttonPrimary);
  opacity: 1;
}

.site-nav a.nav-link.active h2 {
  font-weight: bold;
}
.site-nav a.nav-link:hover {
  opacity: 1;
  border-bottom-color: var(--buttonPrimary);
}

.home-icon {
  display: flex;
  align-items: center;
}

/* ============================================
   PERFECT MOBILE (360px+)
   ============================================ */
@media (min-width: 360px) {
}

/* ============================================
   PERFECT MOBILE TALL (360px × 540px+)
   ============================================ */
@media (min-width: 360px) and (min-height: 540px) {
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  body {
    padding-top: 50px; /*pushes body content below the header*/
  }
  #page-banner {
    display: flex;
    opacity: 1;
    /* position: relative; */
  }

  .site-nav a.nav-link h2 {
    color: white;
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
}
/* Layout container as flex row */

#flight-form label {
  font-weight: bold;
  text-align: left;
  margin-bottom: 0px;
  font-size: clamp(0.7rem, 0.7rem + 0.5vh, 16px);
}
#flight-form select {
  text-align: center; /* Center text in the labels */
  font-family: "Dosis", sans-serif;
  color: #fff;
}

/* Center-align the output values for sliders */
#flight-form output {
  color: var(--colourText);
  max-width: 75px;
  font-size: 1.1em;
  width: 30%;
}

#flight-form {
  padding-bottom: 0px;
  background-color: var(--sidebarPrimary);
  font-family: "Dosis", sans-serif;
}

/* For each label-select/input pair */
.form-group {
  flex-direction: column;
}
/* Labels and inputs aligned horizontally */
.form-group label {
  width: 30%; /* Adjust label width */
  text-align: left;
}

.form-group select,
.form-group input[type="range"],
.form-group output {
  width: 98%; /* Adjust input width */
}

/* Left sidebar */
#left-sidebar {
  width: max(20vw, 400px);
  background-color: var(--backgroundPrimary);
  transition:
    width 0.2s ease,
    padding 0.2s ease;
}

/* Left sidebar closed state */
#left-sidebar.closed {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  min-width: 0px;
}
#left-sidebar-content {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  white-space: nowrap;
  line-height: 1;
  background-color: var(--sidebarPrimary);
  color: var(--sidebarText);
  padding-bottom: 20vh;
}

#city-rows {
  margin: 0px;
  padding-bottom: 20px;
}

.city-row {
  margin: 0px;
  width: 100%;
}
/* Center area expands to fill available space and centers content */
#center {
  flex: 1;
  width: calc(
    100% - (max(20vw, 400px) + max(20vw, 200px))
  ); /* Adjust based on the combined sidebar widths */
  align-items: center;
  transition: all 0.2s ease;
  justify-content: flex-start;
  position: relative;
  flex-direction: column;
  display: flex;
  height: 100vh;
  /* padding-top: 10px; */

  padding-top: 0px;
}

/* Inner container for center content with max-width */
.center-content {
  width: 100%;
  max-width: 1200px;
}

/* Right sidebar */
#right-sidebar {
  width: max(20vw, 200px);
  background-color: #f4dfcf;
  overflow-y: scroll;
  overflow-x: hidden;
  white-space: nowrap;
  transition:
    width 0.2s ease,
    padding 0.2s ease;
  box-shadow: 0 2px 80px rgb(232, 152, 104);
  border-radius: 0px;
}

#right-sidebar .card-content {
  margin-bottom: 40px;
  justify-content: right;
}

#right-sidebar:hover {
  transform: none;
}

/* Right sidebar closed state */
#right-sidebar.closed {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  min-width: 0px;
}
/* LHS show results button*/
#left-sidebar .search-button {
  display: block; /* Make it block-level so margin auto centers it */
  display: none; /*Replaced by filters toggle*/
  margin: 1rem auto; /* Center horizontally with margin auto */
  padding: 0.75rem 1.5rem; /* Comfortable padding */
  background-color: #c14b22; /* Desired background color */
  color: #fff; /* White text */
  border: none; /* Remove any default borders */
  border-radius: 4px; /* Slightly rounded corners */
  font-size: 1rem; /* Adjust font size as needed */
  cursor: pointer; /* Pointer cursor on hover */
  text-align: center; /* Center the text */
  transition: background-color 0.2s ease;
  font-weight: 700;
  margin-bottom: 200px;
}

#left-sidebar .search-button:hover {
  background-color: #c85946; /* Slightly darker shade for hover */
  background-color: #bd513e;
  background-color: #ff6347;
  box-shadow: var(--buttonShadow);
  transition: var(--buttonShadowTransition);
  /* Slightly darker shade for hover */
}

#toggleView {
  display: none; /* Make it block-level so margin auto centers it */
  padding: 0.75rem 1.5rem; /* Comfortable padding */
  background-color: #db836300; /* Desired background color */
  color: #fff; /* White text */
  border: none; /* Remove any default borders */
  border-radius: 4px; /* Slightly rounded corners */
  font-size: 1rem; /* Adjust font size as needed */
  cursor: pointer; /* Pointer cursor on hover */
  text-align: center; /* Center the text */
  transition: background-color 0.2s ease;
}

.sidebar-header {
  font-weight: bold;
  font-size: clamp(0.8rem, 0.8rem + 0.7vh, 1.2rem);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  background: #f5f5f500;
  border-color: #0000;
  border-width: 1px;
  border-style: solid;
  border-bottom-color: var(--sidebarBorder);
  align-items: center;
  /* padding: clamp(6px, 6px + 0.5vh, 14px); */
  padding: clamp(4px, 4px + 2vh, 14px);
  opacity: 0.8;
}

.sidebar-content.active {
  height: auto;
  padding: 0 clamp(5px, 5px + 3.5vw, 35px);
}

.sidebar-content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
  padding: 0;
}
.results-section {
  padding: 5%; /* adjust as needed */
}
#results-content {
  margin: 14px;
}

.logical-operator {
  max-width: 100px;
  min-width: 75px;
  flex: 1;
  font-size: 1em;
  height: 35px;
}

/* Spinner Styles */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

/* Caret styling */
.caret {
  font-size: 12px;
}

/****** Weather Controls   *****/

#slider-temp,
#slider-sci {
  position: relative;
  z-index: 0;
  top: 0px;
  /* margin: 36px 0px; */
  height: 4px;
  top: -5px;
  height: 0px;
}

#slider-temp {
  margin: clamp(20px, 20px + 1vh, 28px) 0px;
  top: 4px;
}

#slider-sci {
  margin: clamp(8px, 8px + 1vh, 24px) 0px;
}

#avg-temp-filter-container {
  padding: 0 3%;
}

.avg-temp-slider-and-label {
  top: clamp(0px, 0px + 0.5vh, 12px);
}

#slider-temp .noUi-handle,
#slider-sci .noUi-handle {
  height: clamp(12px, 12px + 0.6vh, 18px);
  width: clamp(12px, 12px + 0.6vh, 18px);
  top: -8px;
  right: -9px;
  border-radius: 9px;
  background: #fff;
  border: 2px solid #2980b9;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* #slider-sci .noUi-handle { */
/*   box-shadow: 2px 2px var(--backgroundSecondary); */
/* } */

#slider-temp .noUi-handle-lower,
#slider-sci .noUi-handle-lower {
  transform: translateX(4px);
  /* right: 0; */
  right: clamp(-4px, -4px - 0.2vw, -18px);
}
#slider-temp .noUi-handle-upper,
#slider-sci .noUi-handle-upper {
  transform: translateX(-4px);
  /* right: -18px; */
  right: clamp(-4px, -4px - 0.2vw, -18px);
}

.range-display {
  font-size: 1.1rem;
  margin-top: -30px;
  text-align: center;
}

.noUi-handle::before,
.noUi-handle::after {
  display: none;
}

#slider-temp .noUi-base,
#slider-sci .noUi-base {
  background: linear-gradient(to right, #6dc6ece5, #ffa952, #ef7b51);
  border-radius: 5px;
  height: 4px;
  position: relative;
  top: 5px;
}

.noUi-connect {
  top: -2px;
}

#slider-sci .noUi-base {
  background: linear-gradient(to right, #5a8091e5, #bdd4e1, #ffa952, #ef7b51);
}

#slider-temp .noUi-connect,
#slider-sci .noUi-connect {
  background: transparent;
}

#slider-temp .noUi-tooltip,
#slider-sci .noUi-tooltip {
  font-size: 0.9rem;
  white-space: nowrap;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: #718096;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px var(--backgroundSecondary);
}

#slider-temp .noUi-handle-lower .noUi-tooltip,
#slider-sci .noUi-handle-lower .noUi-tooltip {
  /* top: 18px !important; */
  top: clamp(12px, 12px + 0.5vh, 18px) !important;
  transform: none !important;
  bottom: auto;
  left: -90%;
}

#slider-fit {
  padding: 0 16px;
}

.weather-filters {
  margin-top: 0px;
  background-color: white;
  border-radius: 10px;
  /* padding: 1em; */
  padding: clamp(0.5em, 0.5em + 1.5vw, 1em);
}

.sci-slider-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0px 5px;
  position: relative;
  top: clamp(0px, 0px + 0.5vh, 5px);
}
.sci-slider-icons .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(30px, 30px + 1vh, 36px);
  border-radius: 8px;
  font-size: 17px;
  color: #555;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  /* color: #718096; */
  color: #66778a; /*WCAG AA Compliant*/
  background: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sci-slider-icons .label {
  display: none;
  font-size: clamp(0.55rem, 0.55rem + 1vh, 0.8rem); /* Smaller text on mobile */
}
#slider-sci .noUi-tooltip {
  display: none;
}
/* Apply a transition to the caret */
.sidebar-header .caret {
  transition: transform 0.8s ease;
  transform: rotate(90deg);
}

/* When header is active, rotate the caret 180° */
.sidebar-header.active .caret {
  transform: rotate(-360deg);
}

.sidebar-header,
.sidebar-header * {
  -webkit-tap-highlight-color: transparent;
}

/* For WebKit browsers (Chrome, Safari) */
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* remove default styling */
  height: 15px; /* set the thumb size */
  width: 15px;
  background: white; /* set your desired thumb color */
  border-radius: 50%; /* optional: make it round */
  cursor: pointer;
  position: relative;
  top: -6px; /* adjust vertical alignment if needed */
  border-width: 1px;
  border-style: solid;
}

.form-group.accom {
  display: flex;
  border-width: 0px;
  background: white;
  /* border-radius: 5px; */
  /* margin: 14px 0px; */
  /* padding: 5% 5% 0 5%; */
  margin-top: 10px;
  padding: clamp(0.5em, 0.5em + 1.5vw, 1em);
  margin-bottom: 10px;

  border-radius: 10px;
}

.form-group.city-row {
  display: flex;
  padding: clamp(0.5em, 0.5em + 1.5vw, 1em);
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  margin-top: 10px;
  padding-bottom: 0px;
  margin-bottom: 10px;
  display: flow-root;
}

.form-group.city-row.operators {
  display: flex;
  margin-bottom: -10px;
  padding: 0em;
  flex-direction: row;
  /* width: 50%; */
  align-items: center;
}

@media screen and (max-width: 800px) {
  #left-sidebar,
  #right-sidebar {
    padding-top: inherit;
    width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Left sidebar */

  #left-sidebar {
    width: 100vw;
    position: fixed;
    z-index: 10;
  }

  #right-sidebar {
    display: none;
  }
  #toggleView {
    display: block;
    left: 200px;
    position: fixed;
  }
  .form-group label[for="combinedPrice-slider"] {
    display: none; /* Hide label for slider on mobile */
  }

  .combinedPrice-slider {
    display: none;
  }

  #flight-form label {
    width: 20%;
  }
  #flight-form output {
    position: relative;
    height: auto;
  }
  .form-group.city-row.operators {
    width: 100%;
  }
  .form-group.city-row {
    padding-bottom: 10px;
  }
}

@media only screen and (max-width: 800px) {
  #flight-form {
    flex-direction: column;
    /* padding: calc(10px + 2%); */
    padding-bottom: 0px;
  }
}

/* Tablet*/
@media only screen and (min-width: 801px) and (max-width: 1200px) {
  #left-sidebar,
  #right-sidebar {
    padding-top: inherit;
    width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #left-sidebar {
    width: 400px;
  }
}

@media only screen and (min-width: 360px) {
  #left-sidebar-content {
    line-height: 17px;
  }
  .sci-slider-icons .label {
    display: block;
  }
}

@media only screen and (min-width: 768px) {
  .weather-filters {
    margin-top: 10px;
  }

  .sci-slider-icons .label {
    padding: 2px;
  }
}
/* Initial state of the table-container */

#table-container {
  height: 101%;
  opacity: 0;
  position: fixed;
  top: calc(50% + 55px);
  left: 50%;
  /* transform: translate(-50%, -10%);  Center the element */
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  justify-content: flex-start; /* Align content to the top */
  line-height: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#flight-table {
  width: 100%; /* Ensure the table takes up full width */
  opacity: 0; /* Start invisible */
  text-align: left;
  border-radius: 8px;
  margin-bottom: 0;
  font-size: 1em;
  max-width: 1200px;
  transition: opacity 0.6s ease-in;
}

/* Trigger animations when the 'show' class is added via JavaScript */
#table-container.show {
  display: flex;
  animation:
    fadeIn 1.5s forwards,
    moveUp 1s forwards;
  opacity: 1;
  width: 101%; /*hotfix for sidebar which has a rogue single column of pixels missing*/
}
/* Desktop card grid */
.desktop-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  width: calc(100% - 10%);
  grid-gap: 20px; /* Space between cards */
  margin: 0 auto;
  padding: 10px;
}

.scroll-container {
  position: relative;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: scroll;
  box-sizing: border-box;
  padding: 10px;
  justify-content: center;
  flex: 1;
  display: flex;
  width: 100%;
  z-index: 1;
  margin-top: 5px;
}

/* Customize the scrollbar for better UX */
.scroll-container::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #888; /* Scrollbar thumb color */
  border-radius: 4px; /* Rounded scrollbar corners */
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker color on hover */
}

.left-sidebar-open .share-button p {
  display: none;
}

/* Medium screens (1299px and below): 2 columns for sidebar open */
@media screen and (max-width: 1300px) {
  .left-sidebar-open .desktop-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .left-sidebar-open .share-button p {
    display: none;
  }
}

/* Medium screens (1199px and below): 2 columns default */
@media screen and (max-width: 1200px) {
  .desktop-card-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0px 5%;
  }
  #table-container.show {
    animation:
      fadeIn 0.1s forwards,
      moveUp 0s forwards;
  }
}

@media screen and (max-width: 1000px) {
  .left-sidebar-open .desktop-card-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .left-sidebar-open .share-button p {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  #table-container {
    width: 100%;
    height: 100%;
    top: calc(50vh + 55px);
  }
  #flight-table {
    overflow-x: scroll;
  }
  .scroll-container::-webkit-scrollbar {
    display: none;
  }
  .scroll-container {
    scrollbar-width: none;
  }
  .desktop-card-grid {
    grid-template-columns: repeat(1, 1fr);
    margin: 0px 5%;
  }
}
/* Initial state for footer */
#footer-privacy {
  opacity: 1; /* Initially hidden */
  margin-top: 6px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 100px;
  z-index: 0;
  position: relative;
  font-family:"Dosis", sans-serif;
}

footer a {
  color: blue;
}

footer p {
  margin: 10px;

  font-family:"Dosis", sans-serif;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Define keyframes for a playful jump */
@keyframes jump {
  0% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(-10px);
  }
  28% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-3px);
  }
  95% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Keyframes for the upward movement */
@keyframes moveUp {
  0% {
    transform: translate(-50%, -10%); /* Start at the center */
  }
  100% {
    transform: translate(-50%, -50%); /* End 15% away from the top */
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropZ {
  from {
    z-index: 999;
  } /* just keeps it during fade */
  to {
    z-index: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}




@keyframes glow {
  0% {
    background-color: color-mix(in srgb, var(--backgroundPrimary) 0%, transparent);
  }
  50% {
    background-color: color-mix(in srgb, var(--backgroundPrimary) 100%, transparent);
  }
  100% {
    background-color: color-mix(in srgb, var(--backgroundPrimary) 0%, transparent);
  }
}

.glow-once {
  animation: glow 2.5s ease-out;
}

/* loading spinner on "sort by" option buttons*/
.spinner-filter {
  width: 20px;
  /* height: 20px; */
  border: 3px solid #ccc;
  border-top-color: #28a745;

  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* make house button jump up and down */
.button-house[aria-expanded="true"] svg {
  animation:
    jump 0.7s ease-in-out forwards,
    spin 0.6s linear infinite;
  fill: #db8363f2;
}

.fade-in {
  animation: fadeIn 1.5s forwards; /* Apply fade-in animation */
}

.table-results-overlay {
  position: absolute;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  z-index: 999999;
  opacity: 1;
  pointer-events: none; /* important: so the user can still interact */
}

.table-results-overlay.fade-out {
  animation: fadeOut 1.2s ease-out forwards;
}
.card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  flex-direction: column;
}

.destination-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.destination-duration {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  top: calc(100% - 16px);
  font-size: 0.7em;
}

.card:hover {
  transform: translateY(-10px);
}

.card-image {
  height: min(35svh, 300px);
  background-size: cover;
  background-position: center;
}

.card-content h2 {
  font-size: 1.4em;
  margin: 0px;
}

.card-content p {
  margin: 5px 0;
}

.card-content .weather-icons {
  font-size: small;
  font-weight: 600;
  background-color: #ffffffff;
}

.card-fnaf-text {
  align-content: center;
  align-items: end;
  justify-content: center;
  font-size: 1.1em;
  padding: 5px;
  position: relative;
  font-weight: 600;
  gap: 10px;
  display: flex;
  flex-direction: row;
}

.card-date {
  color: white;
  font-weight: 700;
  justify-content: center;
  position: relative;
  display: flex;

  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  width: 100%;
  justify-content: end;
  border-radius: 8px 8px 0 0;
  align-items: center;
  /* height: 44px; */
}

.card-date .modal-open-new-tab-icon svg {
  color: white;
  fill: white;
  height: 10px;
  /* margin: 0px 5px; */
  top: 2px;
  position: relative;
}

/* Add to your existing CSS */
.flight-card {
  transition:
    transform 0.2s ease-out,
    opacity 0.2s ease-out;
  touch-action: pan-y; /* Allow vertical scrolling, handle horizontal swipes */
}

.flight-card.swiping {
  transition: none; /* Disable transition during active swipe for immediate feedback */
}

.flight-card.dismissing {
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out !important;
}

@media only screen and (max-width: 800px) {
  .card {
    scroll-snap-align: start;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    border-radius: 8px;
    /* line-height: 0; */

    overflow: hidden;
    margin: 0px 0px 20px 0px;
    flex-direction: row;
    height: auto;
  }
  .card-content h2 {
    font-size: 1.3em;
    margin: 6px;
  }
}

@media only screen and (min-width: 1200px) {
  .card-content h2 {
    font-size: 1.4em;
  }
}

.card-content {
  padding: 1.1em;
  justify-content: space-between;
  background-color: var(--cardSecondary);
  flex: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* opacity: 0.9; */
  font-size: min(1.8vh, 1em);
  container-type: inline-size;
  overflow: visible;
}

.card {
  flex: 0 0 100%; /* Each card takes up the full width of the container */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #f4dfcf;

  scroll-snap-align: start; /* Snap each card to the start */
}

@media only screen and (max-width: 800px) {
  /* 60% of the card for the image */
  .card-image {
    flex: 0 0 41.8%; /* Takes up 60% of the card's width */
    background-size: cover;
    background-position: center;
  }
}

.destination-city-country-flag {
  display: flex;
  flex-direction: row;
}

.destination-country-flag {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  left: 4px;
  font-size: 1.1em;
  font-family: "Dosis", sans-serif;
  margin-bottom: 0px;
  bottom: 1px;
  width: auto;
  align-items: end;
}

.flight-accom-prices {
  display: flex;
  justify-content: inherit;
  position: relative;
  align-content: center;
  align-items: last baseline;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-style: solid;
  border-color: var(--backgroundSecondary);
  border-width: 1px;
  border-radius: 6px;
  padding: 6px;
}

.card-svg-icon {
  fill: var(--svgPrimary);
  position: relative;
  display: flex;
  flex-direction: row;
  width: 40px;
}

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

.card-svg-icon svg {
  width: 100%; /* Let the SVG fill the container’s width. */
  height: auto;
}

.price {
  position: relative;
  top: 0px;
  display: flex;
  flex-direction: row;
  overflow-wrap: break-word;
  align-items: baseline;
  text-align: center;
  font-weight: 600;
  font-size: 0.9em;
}

.fa-solid.fa-arrow-up-right-from-square {
  position: relative;
  left: 2px;
}

.destination-duration {
  position: absolute;
  left: 17px;
  top: 7px;
  font-size: 0.8em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  color: white;
  /* transform: rotate(-30deg); */
  left: 26px;
  top: calc(100% - 16px);
  color: var(--textPrimary);
}

.duration-h {
  font-size: x-small;
}

.flight-accom-prices svg {
  width: 40px;
}

.card-image {
  position: relative;
}

.card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit; /* This inherits the background-image from the parent */
  background-size: cover;
  background-position: center;
  filter: sepia(0.2) hue-rotate(-5deg) saturate(1.3) brightness(1);
  z-index: 0;
  border-radius: inherit;
}

.destination-country-flag svg {
  width: 20px;
  margin: 0px 5px;
  position: relative;
  bottom: 1px;
}

.modal-duration {
  font-size: min(1.8vh, 1em);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.modal-duration svg {
  width: 24px;
  margin-left: 4px;
}

.modal-content .clickable {
  color: var(--svgText);
}

.card-image i {
  font-size: 22px;
  cursor: pointer;

  border-radius: 50%;
}

.icon-container {
  position: absolute;
  top: 2.3vh;
  right: 0;
  gap: 4px;
  background-color: var(--buttonShadowTransition);
  padding: 6px;
  border-radius: 10px;
  display: none;
}

.icon-button {
  position: relative;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.icon-button i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 32px;
  transition: all 0.3s ease;
}

.icon-button svg {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 32px;
  transition: all 0.3s ease;
}

/* Solid icon underneath with transparent fill */
.solid-icon {
  /* color: white; */
  opacity: 0.4;
}

/* Regular icon on top */
.regular-icon {
  color: white;
  fill: white;
}

/* Active state — fully solid */
.icon-button.active .solid-icon {
  opacity: 1;
}

.icon-button.active .regular-icon {
  opacity: 0;
}

.fa-solid.fa-heart.solid-icon {
  color: black;
}

.fa-solid.fa-bell.solid-icon {
  color: black;
}

.icon-container.show {
  display: flex;
}

@media screen and (max-width: 800px) {
  .flight-accom-prices {
    padding: 0px 0px;
    /* align-items: start;  */
    align-items: center;
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
  }

  .clickable.card-map {
    /* display: none; */
  }

  .price {
    position: relative;
    /* top: -9px; */
    top: 0px;
    display: flex;
    flex-direction: row;
    align-items: first baseline;
  }

  .weather-icons {
    padding-left: 2px;
    padding-right: 2px;
    /* margin-bottom: 8px; */
    /* margin-bottom: 21px; */
  }

  .fa-solid.fa-arrow-up-right-from-square {
    position: relative;
    left: 2px;
  }

  .card-content {
    line-height: 0.9;
  }

  .card {
    flex-direction: column;
  }
  .card-image {
    height: min(35svh, 300px);
    flex: auto;
  }

  .desktop-card-grid.row-view .weather-icons {
    width: calc(100% + 1.4em);
    /* border-radius: 0; */
    margin-left: -0.7em;
    margin-right: -0.7em;
    border-radius: 12px;
  }

  .desktop-card-grid.row-view .card {
    display: flex;
    flex-direction: row;
  }

  .desktop-card-grid.row-view .card-image {
    height: auto;
    flex: auto;
  }

  .destination-duration {
    top: 17px;
  }
}

/* if parent(card-content) is bigger than 300px, apply padding*/
@container (min-width: 300px) {
  .flight-accom-prices {
    padding: 3px 5%;
  }
}

/* hotfix the bluriness of card content on desktop */
@media screen and (min-width: 801px) {
  .card {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
  }
}
/* ========================================
   BASE STYLES - Mobile First (240x360+)
   ======================================== */

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: calc(50% - 5px);
  transform: translate(-50%, -50%);
  width: 101vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  overflow-y: auto;
  top: 15vh;
  position: absolute;
}

/* Larger card styling - Mobile */
.card-large {
  height: 65vh;
  flex-direction: column;
}

.card-large .card-image {
  background-size: cover;
  background-position: center;
  flex: 1 0 100%;
}

.card-large .card-content {
  text-align: center;
  flex: auto;
  overflow-y: visible;
  position: relative;
  padding: 1.1em;
  padding-bottom: 4em;
  line-height: 0.9em;
  align-items: center;
}

/* Override hover for card-large */
.card-large:hover {
  transform: none !important;
}

.card-large .weather-icons {
  margin-bottom: 10px;
}

/* Modal sidebar */
.modal-sidebar {
  top: auto;
  width: 100%;
  height: 42px;
  z-index: 999;
  flex-direction: row;
  right: 0px;
  background-color: var(--colourA);
  align-items: center;
  gap: 0px;
  display: flex;
  padding: 0px;
  overflow-x: clip;
  justify-content: space-around;
  bottom: 0;
  position: sticky;
}

.modal-sidebar a {
  color: var(--svgText);
  height: 42px;
  width: 25%;
  justify-content: center;
  display: flex;
}

.modal-sidebar svg {
  width: 30px;
  height: 100%;
}

/******* Elipsis Slide *******/
.elipsis-slide {
  display: flex;
  flex-direction: column;
  background-color: var(--sidebarPrimary);
  align-items: center;
  font-weight: inherit;
  padding: 8px;
  justify-content: space-around;
}

.elipsis-slide a {
  align-items: center;
  justify-content: start;
  display: flex;
  gap: 6px;
  padding: 5px;
  position: relative;
}

.elipsis-slide h2 {
  padding: 0px;
  border-bottom-style: solid;
  margin: 0px;
}

/************ Travel Warning Slide ************/

.slider-wrapper {
  position: relative;
  margin: 0 auto;
  flex: 0 0 40%;
  height: 30vh;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: clip;
  height: 100%;
  font-size: clamp(0.7em, 0.7em + 0.6vh, 1.2em);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.slider::-webkit-scrollbar {
  display: none;
}

.modal-scroller-content {
  flex: 1 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
  scroll-snap-stop: always;
  -webkit-scroll-snap-stop: always;
  height: 100%;
}

.modal-scroller-content.card-image {
  height: 100%;
  padding: 0.5em;
}

.card-image.modal-scroller-content .weather-icons {
  margin: 0;
  height: 100px;
}

.modal-scroller-content svg {
  height: 2.7vh;
  overflow: visible;
}

.modal-price-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-top: 9px;
}

.modal-price-buttons .card-svg-icon {
  margin: 0px 0px 3px 0px;
}

.modal-price-buttons .price {
  top: 0px;
}

.modal-scroller-content table,
th,
td {
  width: 49%;
  border-collapse: collapse;
  padding: 15px;
  text-align: center;
  vertical-align: middle;
}

.modal-scroller-content table {
  width: 100%;
  text-align: center;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.modal-scroller-content h2 {
  text-align: center;
}

.modal-scroller-content table a {
  color: var(--colourB);
  position: relative;
}

.modal-weather-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: var(--colourSidebar);
}

.modal-weather-container .weather-icons {
  background-color: #ffffffff;
}

.modal-col {
  display: none;
}

.destination-modal {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 0.8em;
  margin-bottom: 10px;
  padding-top: 15px;
  justify-content: space-evenly;
  overflow-x: scroll;
  flex-direction: column;
  padding-bottom: 20px;
  align-items: center;
}

.weekend-option {
  border-radius: 8px;
  text-align: center;
  width: 95%;
  position: relative;
}

.modal-sidebar.show {
  display: flex;
  flex-direction: column;
  fill: white;
}

.modal-content .card-content a {
  margin: 2px;
}

/* ========================================
   TABLET STYLES (768px and wider)
   ======================================== */

@media (min-width: 768px) {
  .modal-content {
    width: 60%;
    top: 10vh;
  }

  .card-large {
    height: auto;
    flex-direction: row;
  }

  .card-large .card-content {
    padding: 20px 4.1em 4.1em 4.1em;
    line-height: 1;
  }

  .card-large .weather-icons {
    margin-bottom: 0;
  }

  .destination-modal {
    flex-direction: row;
    align-items: flex-start;
  }

  .weekend-option {
    width: 65%;
  }

  .modal-scroller-content.card-image {
    padding: 1em;
  }
}

/* ========================================
   DESKTOP STYLES (1280px and wider)
   ======================================== */

@media (min-width: 1280px) {
  /* Add any desktop-specific overrides here if needed */
}
th,
td {
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #4caf50;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #ddd;
}

/* Mobile responsive adjustments */
@media (max-width: 800px) {
  table,
  th,
  td {
    font-size: 0.9rem;
  }
}
.weather-icons {
  display: flex;
  justify-content: space-evenly;
  margin-right: 1.5em;
  /* background-color: #add8e69e; */

  background-color: #ffffffff;
  border-radius: 14px;

  width: 100%;
  margin-top: 10px;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 20px;

  /*  font-family: Arial, sans-serif;*/
}
.weather-icons img {
  margin: 5px;
}

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

.weather-day {
  /* font-size: smaller; */
  font-size: inherit;
}
.weather-icon a {
  text-decoration: none !important;
  display: ruby-text; /* Ensures it behaves like a normal text element */
  color: black;
  font-family: "Dosis", sans-serif;
  padding: 0px;
  margin: 0px;
}

.weather-icons .weather-icon {
  text-decoration: none; /* Removes underline from links */
  color: #000000c7; /* Sets the text color */
  padding: 0; /* Removes extra space */
  margin: 0; /* Removes extra space */
}

.weather-banner .card-svg-icon {
  width: 30px;
  margin-bottom: 0px;
}

.weather-date {
  font-size: small;
  font-weight: normal;
  color: gray;
  padding-bottom: 8px;
}

@media only screen and (max-width: 800px) {
  .weather-icons {
    align-items: center;
    padding-bottom: 14px;
  }

  .weather-icon {
    text-align: center;
    flex: 1; /* Allow icons to distribute evenly across the row */
    margin-right: 5px;
  }

  .weather-icon img {
    display: block;
    margin: 0 auto;
    width: 2em;
  }

  .weather-icon div {
    margin-top: 0px;
    font-size: 1em;
    color: #333;
  }

  .weather-icon a div {
    text-decoration: none !important;
    display: inline-block; /* Ensures it behaves like a normal text element */
  }

  .weather-icon a img {
    text-decoration: none; /* Ensure no decoration on image */
  }

  /* Ensure there is no right margin for the last weather icon */
  .weather-icon:last-child {
    margin-right: 0;
  }
}
.modal-open-new-tab-icon {
  margin: 3px;
}

.modal-open-new-tab-icon svg {
  fill: var(--svgText);
  height: 8px;
}
/* hover effect */
.timeline-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* vertical faint lines */
.timeline-bar::before,
.timeline-bar::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 200px;
  background: rgba(0, 0, 0, 0.1); /* faint line */
  top: -200px; /* extend upward */
}

.timeline-bar::before {
  left: 0;
}

.timeline-bar::after {
  right: 0;
}

.timeline-bar {
  position: absolute;
  left: 0%;
  width: 100%;
  top: 15px;
  height: 30px;
  background: var(--colourD);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: 600;
  color: white;
  text-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px;
  transition:
    left 0.3s,
    width 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  transform: translateY(0px);
  z-index: 1;
  box-shadow: 2px 3px var(--backgroundSecondary);
}

.timeline-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.timeline-price-text {
  font-size: 1.4em;
  margin-left: 5px;
  text-align: center;
  align-content: center;
  align-items: center;
  position: relative;
  display: flex;
  top: -2px;
  margin-right: 5px;
}

.timeline-name-text {
  font-size: 0.9em;
  margin-right: 2px;
}
/* Container styling */
.dropdown-container {
  position: relative;
  margin: clamp(5px, 6px + 1vh, 20px);
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  max-width: -webkit-fill-available;
  min-width: 120px;
}

/* Input field styling */
.dropdown-input {
  padding: 8px;
  /* font-size: 1em; */
  font-size: clamp(16px, 16px + 0.4vw, 1.1rem);
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 80px;
  /* max-width: 300px; */
  flex: 1;
  scroll-margin-top: 10px;
}

/* .flight-price-slider-container { */
/* top: clamp(-9px, -9px + 0.2vh, 0px); */
/* top: clamp(-4px, -4px + 0.5vh, 6px); */
/* top: clamp(0px, 0px + 0.5vh, 6px); */
/* position: relative; */
/* } */

.flight-price-slider-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
/**/
/* #flights-content { */
/*   overflow: visible; */
/* } */

/* Dropdown list */
.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  /* max-height: 200px; */
  max-height: clamp(170px, 170px + 15.5vh, 190px);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-top: none;
  background-color: var(--buttonPrimary);
  list-style: none;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Dropdown list items */
.dropdown-item {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

/* Button styling */
.dropdown-btn {
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dropdownPrimary);
  color: #fff;
  transition: var(--buttonShadowTransition);
}

.dropdown-btn:hover {
  background-color: var(--dropdownHover);
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.highlighted {
  background-color: #ddd; /* Light gray background */
}

#search-mode-radio {
  background: white;
  margin: 5px;
  text-align: left;
  align-items: flex-start;
  border: 0;
  border-radius: 5px;
  padding: calc(20px + 0.5%);
}
/* Slider*/
input[type="range"].price-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  appearance: none;
  background: transparent; /* remove default background */
}

.price-slider::-moz-range-thumb {
  cursor: pointer;
}

input[type="range"].price-slider::-moz-range-track {
  background: var(--sliderPrimary);
  height: 4px;
  border-radius: 17px;
}

.price-slider::-ms-thumb {
  cursor: pointer;
}
.price-slider:hover {
  cursor: pointer;
}
/* For WebKit browsers (Chrome, Safari) */
input[type="range"].price-slider::-webkit-slider-runnable-track {
  background: var(--sliderPrimary);
  height: 4px;
  border-radius: 4px;
  position: relative;
  top: 6px;
}
/* For WebKit browsers (Chrome, Safari) */
#accommodationPrice-slider0::-webkit-slider-thumb {
  -webkit-appearance: none; /* remove default styling */
  height: 15px; /* set the thumb size */
  width: 15px;
  background: white; /* set your desired thumb color */
  border-radius: 50%; /* optional: make it round */
  cursor: pointer;
  position: relative;
  top: -6px; /* adjust vertical alignment if needed */
  border-width: 1px;
  border-style: solid;
}
/* For WebKit browsers (Chrome, Safari) */
#combinedPrice-slider0::-webkit-slider-thumb {
  -webkit-appearance: none; /* remove default styling */
  height: 15px; /* set the thumb size */
  width: 15px;
  background: white; /* set your desired thumb color */
  border-radius: 50%; /* optional: make it round */
  cursor: pointer;
  position: relative;
  top: -6px; /* adjust vertical alignment if needed */
  border-width: 1px;
  border-style: solid;
}
.flight-price-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 3%;
}

/* Container for chart + slider */

.chart-container {
  position: relative;
  width: 100%;
  height: clamp(30px, 30px + 0.5vh, 40px);
  margin: 0;  /* Changed from: margin: 5px auto; */
  text-align: right;
}

/* Bar chart area */
.chart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 5px;
}

/* Each bin's outer bar (represents total count in that bin) */
.bar {
  position: relative;
  width: 100%;
  background-color: lightgray; /* total distribution color */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 1px;
  border-radius: 1px 1px 0px 0px;
  /* box-shadow: 1px 1px 1px #e6c5ad;*/
}

/* The nested portion that shows how many items pass the filter. */
.included-portion {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dropdownPrimary);
}

/* Label that sits above the bar, showing the bin interval */
.bar-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #333;
  transform: translateY(-100%); /* place label just above the bar */
  pointer-events: none;
  display: none;
}

/* Range slider on top of chart */
#value-slider {
  position: absolute;
  top: 0; /* or bottom: 0 if you prefer */
  left: 3px;
  width: 100%;
  top: calc(100% - 2px);
}

.price-slider {
  z-index: 0;
  position: relative;
  /* top: -16px; */
/* top: clamp(-10px, -10px - 0.2vh, 16px);  */
  top:-12px;
}

.accom-pricebar {
padding-top: 5px;
  display: flex;
  width: 100%;
  flex-direction: column;
  position:relative;
  top:6px;
}

  .flight-price-slider {
    /* height: clamp(34px, 34px + 1vh, 44px); */
height: clamp(34px, 34px + 3vh, 70px);
padding-top: 5px;
  }

@media screen and (max-width: 800px) {
  .flight-price-slider {
    width: 100%;
    /* display: flex; */
    display:block;
    /* height: clamp(34px, 34px + 1vh, 44px); */
  }
}
/* ============================================
   BUTTON STYLES
   Mobile First Approach
   ============================================ */

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

/* Hamburger Menu Button */
.button-three {
  --button-color: white;
  overflow: hidden;
  background: transparent;
  border-radius: 1rem;
  cursor: pointer;
  align-items: center;
}

.action-btn {
  --button-color: white;
}

.button-three .hamburger,
.action-btn .hamburger {
  transition: transform 1s;
}

.button-three[aria-expanded="true"] .hamburger,
.action-btn[aria-expanded="true"] .hamburger {
  transform: rotate(45deg) translateY(-4px);
}

.hamburger {
  width: clamp(40px, 40px + 0.5vw, 3vh);
}

.hamburger-dot {
  transition:
    transform 0.3s ease,
    opacity 0.6s ease;
  transform-origin: center;
}

.hamburger-active .hamburger-dot {
  transform: scale(0);
  opacity: 0;
}

.js-toggle-left-sidebar[data-state="closed"] .hamburger-dot {
  opacity: 1;
}

.js-toggle-left-sidebar[data-state="opened"] .hamburger-dot {
  opacity: 0;
}

/* Hide the span text and use CSS content instead */
.js-toggle-left-sidebar .action-btn-label {
  font-size: 0;
  border-radius: 0 0 13px 0;
}

/* Show "Filters" by default (when closed or unset) */
.js-toggle-left-sidebar .action-btn-label::after {
  content: "Filters";
  font-size: 0.85rem;
  color: var(--formText);
  font-family: var(--HWFont);
}

/* Show "Show Results" when opened (mobile) */
.js-toggle-left-sidebar[data-state="opened"] .action-btn-label::after {
  content: "Show Results";
  font-size: 0.85rem;
  color: var(--formText);
  font-family: var(--HWFont);
}

.button-three .line,
.action-btn .line {
  transition:
    stroke-dasharray 1s,
    stroke-dashoffset 1s;
  stroke-dasharray: 60 31 60 300;
}

.button-three[aria-expanded="true"] .line,
.action-btn[aria-expanded="true"] .line {
  stroke-dasharray: 60 105 60 300;
  stroke-dashoffset: -90;
}

#toggleRightSidebar {
  margin-left: auto;
}

/* Weather Leaderboard Button */
.button-weather-leaderboard {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0.5rem;
  background-color: #9acd3200;
}

.button-weather-leaderboard svg {
  width: 22px;
  height: 25px;
  fill: #f0f0f0;
  margin-top: 8px;
  margin-left: 13px;
  transition: fill 0.3s ease;
  transform-origin: center bottom;
}

.button-weather-leaderboard[aria-expanded="true"] svg {
  animation: jump 1.1s ease-in-out forwards;
  fill: #db8363f2;
}

/* Add City Button */
#add-city-button {
  border: none;
  border-radius: 4px;
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: var(--buttonShadowTransition);
  background-color: var(--dropdownPrimary);
  color: #ffffff;
}

#add-city-button:hover,
#add-city-button:focus {
  background-color: var(--dropdownHover);
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  outline: none;
}

#add-city-button:active {
  transform: scale(0.98);
}

/* Remove City Button */
.remove-city-button {
  margin: 10px;
  background-color: #e34040bf;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  height: 30px;
}

.remove-city-button:hover {
  background-color: #ff3333;
  height: 30px;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Modal Close Button */
.modal-close-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  background-color: #fbd4d4a6;
  fill: var(--colourB);
}

.modal-close-button:hover {
  background: var(--backgroundSecondary);
}

.modal-close-button:focus {
  background: var(--backgroundSecondary);
}

/* Easy Book Button - MOBILE FIRST (flex column) */
.easy-book-button {
  margin: 0 10px;
  padding: 10px;
  background-color: var(--colourD);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  font-size: 1.1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  margin-bottom: 4px;
  gap: 4px;
}

.easy-book-button-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  position: relative;
  gap: 10px;
  margin: 0 20px;
}

.easy-book-button .card-svg-icon {
  fill: white;
  width: 20px;
  margin-right: 4px;
}

/* Cookie Buttons */
.cookie-btn {
  padding: clamp(5px, 5px + 0.1vh, 10px) clamp(5px, 5px + 0.1vh, 20px);
  background: #fff;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-accept {
  margin-right: 10px;
}

.share-button {
  display: flex;
  flex-direction: row;
  width: 100%;
  position: relative;
  align-items: center;
  font-size: clamp(12px, 12px + 0.6vh, 18px);
}

.share-button p {
  display: none;
}

#share-icon {
  padding: 0 4px;
  fill: white;
}

/* set to flex for debug = 1.
 * Necessary to attach to body because button is on cards which are rendered via htmx*/
body.debug .share-button-clickable {
  display: flex;
}
.share-button-clickable {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: white;
  font-size: 12px;
  position: absolute;
  right: 10px;
  top: 5px;
  padding: 10px 0 10px 10px;
}

/* ============================================
   MOBILE PERFECT (360px+)
   ============================================ */
@media (min-width: 360px) {
  .easy-book-button {
    font-size: 1.05em;
  }
  .share-button p {
    display: block;
    font-size: clamp(12px, 12px + 0.6vh, 18px);
  }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .easy-book-button {
    margin: 8px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    gap: 0;
  }

  .easy-book-button-container {
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0;
    margin: 0;
  }

  .easy-book-button .card-svg-icon {
    margin-right: 8px;
  }

  /* On tablet+, always show "Filters" regardless of state */
  .js-toggle-left-sidebar[data-state="opened"] .action-btn-label::after,
  .js-toggle-left-sidebar .action-btn-label::after {
    content: "Filters";
  }

  .share-button-clickable {
    top: clamp(5px, 5px + 0.5vh, 13px);
  }

  #share-icon {
    width: 26px;
    height: auto;
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  .easy-book-button {
    margin: 10px 0;
    padding: 10px;
    font-size: 1.1em;
    grid-template-columns: auto 1fr;
    text-align: center;
  }

  .easy-book-button-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .modal-close-button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  #add-city-button {
    font-size: 1.05rem;
    padding: 0.6em 1.2em;
  }
}

/* ============================================
   LARGE DESKTOP (1920px+)
   ============================================ */
@media (min-width: 1920px) {
  .easy-book-button {
    font-size: 1.15em;
    padding: 12px;
  }

  .modal-close-button {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}
.clickable:hover {
  text-decoration: underline;
}
/* ============================================
   BASE STYLES - Mobile First (240px+)
   Smallest Device: 240×360
   ============================================ */

#sort {
  color: white;
}

/* Mobile-first base styles */
.options-list {
  z-index: 2;
  border-radius: 5px;
  flex-direction: row;
  align-items: flex-end;
  border-bottom: 0;
  justify-content: space-evenly;
  overflow-x: auto;
  overflow-y: clip;
  max-width: 1200px;
  width: 100%;
  display: inline-flex;
  gap: 2px;
  background-color: #fff0;
  padding: 0;
  height: 70px;
  padding: 0 10px;
  /* Hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Chrome, Safari and others using WebKit */
.options-list::-webkit-scrollbar {
  display: none;
}

.sort-btn {
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: #0b525900;
  color: var(--backgroundPrimary);
  height: 100%;
  font-size: clamp(0.8rem, 0.5rem + 2vw, 16px);
  width: max-content;
  justify-content: space-around;
  display: flex;
  align-items: flex-end;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  text-wrap: wrap;
  min-width: 65px;
}

.sort-btn svg {
  width: 25px;
  height: auto;
  fill: var(--svgPrimary);
}

#sort-by-form {
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  justify-content: center;
  text-wrap: wrap;
  z-index: 0;
}

.sort-btn.active {
  padding: 10px;
  font-weight: normal;
  background-color: #bb522e00;
  color: var(--backgroundPrimary);
  border-bottom-color: var(--backgroundPrimary);
  border-bottom-style: solid;
  border-radius: 0;
}

.sort-btn:hover {
  background-color: #bb522e00;
  color: var(--backgroundPrimary);
  border-bottom-color: var(--backgroundPrimary);
  border-bottom-style: solid;
  border-radius: 0;
  transition: var(--buttonShadowTransition);
  top: -5px;
  position: relative;
}

.form-group.options-list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.sort-btn:disabled {
  background-color: #bb522e00;
  color: var(--backgroundPrimary);
  border-bottom: 2px solid var(--backgroundPrimary);
  border-radius: 0;
}

/* ============================================
   MOBILE PERFECT - 360px+
   Design for Mobile First at: 360×540
   ============================================ */
@media only screen and (min-width: 360px) {
  /* Fine-tune spacing for larger mobile screens */
  .options-list {
    gap: 5px;
  }
}

/* ============================================
   TABLET - 768px+
   Transition from Mobile to Tablet at: 768×1024
   ============================================ */
@media only screen and (min-width: 768px) {
  .options-list {
    gap: 8px;
    align-items: center;
    margin: 0 calc(10px + 5vw);
  }

  #sort-by-form {
    padding: 0 10px;
  }

  .sort-btn,
  .sort-btn.active {
    text-wrap: nowrap;
  }
}

/* ============================================
   DESKTOP - 1280px+
   Transition to Desktop at: 1280×720
   ============================================ */
@media only screen and (min-width: 1280px) {
  .options-list {
    gap: 10px;
    margin: 0 calc(10px + 5%);
    padding: 0 10px;
  }

  .sort-btn {
    align-items: center;
  }
}
select {
  padding: 8px 12px;
  border-radius: 4px;
  color: #333;
  width: 100%; /* Adjust to match form layout */
  background-color: var(--dropdownPrimary);
  font-size: 1.1em;
  border: 0px;
  margin: 4px;

  transition: var(--buttonShadowTransition);
}

select:hover {
  background-color: var(--dropdownHover);

  cursor: pointer;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#weekend-select-radio-form {
  background: white;
  margin: 5px;
  text-align: left;
  align-items: flex-start;
  border: 0;
  border-radius: 8px;
  /* padding: calc(20px + 0.5%); */
  color: var(--colourB);
  /* padding: clamp(0.75rem, 3vw, 1.25rem); */
  /* padding: 4% 5% 4% 5%; */
  padding: clamp(0.25rem, 0.25rem + 0.1vw, 1.25rem);
}

#weekend-select-radio-form label {
  color: var(--colourText);
  font-weight: bold;
}

#weekend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5em;
  align-items: first baseline;
  font-weight: normal;
}

#weekend-select-content {
  text-align: center;
}

.weekend-departure-return-label {
  display: none;
}

#align-weekend-grid {
  display: none;
}

.weekend-dates p {
  margin: 2px 0;
  font-size: 0.9em;
}

.weekend-dates p:first-child {
  font-weight: bold;
}

.tooltip-text {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #e7f3ff;
  border-left: 3px solid #007bff;
  font-size: 13px;
  color: #333;
  border-radius: 0 4px 4px 0;
  animation: slideDown 0.3s ease-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-wrap: wrap;
  font-weight: bold;
  margin-bottom: 10px;
}

.tooltip-text.show {
  display: block;
}
.nights-selector {
  border: 2px solid var(--backgroundSecondary);
  border-radius: 11px;
  padding: 6px;
  display: block;
}
.nights-heading {
  font-size: clamp(0.6rem, 0.6rem + 0.5vh, 0.9em);
  color: #b23a48;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

.nights-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.night-option {
  position: relative;
  flex: 1;
  min-width: clamp(30px, 30px + 5vw, 63px);
}

.night-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.night-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
  border-radius: 16px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  min-height: 0px;
  margin-bottom: 0px;
  background: var(--backgroundSecondary);
  color: var(--svgText);
}

.night-number {
  font-size: clamp(0.7rem, 0.7rem + 0.5vh, 16px);
  font-weight: bold;
  color: var(--svgText);
}

/* Checked state */
.night-option input[type="checkbox"]:checked + .night-label {
  background: var(--colourD);
  box-shadow: 3px 3px var(--backgroundSecondary);
}

.night-option input[type="checkbox"]:checked + .night-label .night-number {
  color: white;
}

/* Active/pressed state */
.night-label:active {
  transform: translateY(-2px);
}

/* Focus state for accessibility */
.night-option input[type="checkbox"]:focus + .night-label {
  outline-offset: 2px;
}

/* Tablet adjustments */
@media (min-width: 768px) {
  .nights-options {
    gap: 16px;
  }

  .night-label {
    padding: 5px;
    min-height: 0px;
  }
}

/* Desktop adjustments */
@media (min-width: 1280px) {
  .night-label:hover {
    transform: translateY(-6px);
  }
}
/* ── Date-range calendar sidebar component ── */

.date-calendar-wrapper {
  width: 100%;
  border-radius: 10px;
  background: white;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cal-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  background: var(--backgroundPrimary);
  color: white;
  height: 50px;
  border-radius: 12px 12px 0 0;
}
.cal-header button {
  background: none;
  border: 1px solid var(--colourD);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cal-header button:hover {
  background: var(--dropdownHover);
}
.cal-header button:disabled {
  opacity: 0.3;
  cursor: default;
}

.cal-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 6px;
}

.cal-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 12px;
}
.cal-dow {
  font-size: 11px;
  color: grey;
  text-align: center;
  padding: 5px 0;
  font-weight: 600;
}
.cal-dow:first-child {
  border-radius: 4px 0 0 4px;
}
.cal-dow:last-child {
  border-radius: 0 4px 4px 0;
}

.cal-day {
  font-size: 13px;
  text-align: center;
  padding: 7px 2px;
  border-radius: 6px;
  cursor: pointer;
  color: #2d3748;
  user-select: none;
  position: relative;
  transition: background 0.08s;
  font-weight: 500;
}
.cal-day.empty,
.cal-day.out-of-range {
  cursor: default;
  color: #ccc;
}
.cal-day.past {
  color: #ccc;
  cursor: default;
}
.cal-day.in-range {
  background: rgba(255, 202, 156, 0.3);
  color: var(--svgText);
}
.cal-day.ghost-range {
  background: #0b525914;
}
.cal-day.range-start,
.cal-day.range-end {
  background: var(--colourD);
  color: #fff;
  border-radius: 6px;
}
.cal-day.ghost-end {
  background: #0b525940;
  border-radius: 6px;
}
.cal-day:not(.empty):not(.past):not(.out-of-range):hover {
  background: rgba(255, 202, 156, 0.2);
  border: 1px solid var(--backgroundSecondary);
}
.cal-day.range-start:hover,
.cal-day.range-end:hover {
  border: none;
}
.cal-day.today::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--colourD);
}
.cal-day.range-start.today::after,
.cal-day.range-end.today::after,
.cal-day.ghost-end.today::after {
  background: #fff;
}

/* ── Summary strip ── */
.date-range-summary {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--sidebarPrimary);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--colourD);
  line-height: 1.6;
  display: none;
}
.date-range-summary p {
  margin: 0;
}
.date-range-summary strong {
  font-weight: 700;
}
.summary-nights-row {
  display: none;
}
.summary-nights-row.visible {
  display: block;
}

/* ── Exact / Flexible toggle ── */
.date-mode-toggle {
  display: flex;
  border-radius: 8px;
  width: 87%;
  padding: 3px 5px 4px 2px;
  margin: 5px 0 0 0;
  gap: 15px;
  background-color: var(--sidebarPrimary);
  text-wrap: auto;
  display:none;
}
.date-mode-toggle input[type="radio"] {
  display: none;
}
.date-mode-toggle label {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--colourD);
  background: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  line-height: 1.3;
  user-select: none;
  opacity: 0.8;
  margin-bottom: 3px;
}
.date-mode-toggle input[type="radio"]:checked + label {
  background: white;
  color: var(--colourD);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  opacity: 1;
}

/* ── Flexible-mode sliders ── */
.sliders-section {
  width: 100%;
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 1rem;
  border-width: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.25s ease,
    padding 0.25s ease,
    border-width 0.25s ease;
}
.sliders-section.visible {
  max-height: 300px;
  opacity: 1;
/* padding: 0.75rem 1rem; */
padding: 0.25rem 1rem;
  border-width: 2px;
}

/* ── Slider rows ── */
.slider-row {
  padding: 0 2px;
}
.slider-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.slider-label-value {
  font-weight: 600;
  color: var(--colourD);
  transition:
    color 0.2s,
    opacity 0.2s;
}
.slider-label-value.invalid {
  color: #aaa;
  opacity: 0.6;
}

.range-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}
.range-fill {
  position: absolute;
  height: 4px;
  background: var(--colourD);
  border-radius: 2px;
  pointer-events: none;
}
.range-fill-invalid {
  position: absolute;
  height: 4px;
  background: #bbb;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.5;
}
.range-track-wrap input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: transparent;
  height: 4px;
  margin: 0;
}
.range-track-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--colourD);
  border: 2px solid #fff;
  cursor: grab;
  pointer-events: all;
  position: relative;
  z-index: 1;
  transition: background 0.15s;
}
.range-track-wrap input[type="range"].thumb-invalid::-webkit-slider-thumb {
  background: #aaa;
}
.range-track-wrap input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--colourD);
  border: 2px solid #fff;
  cursor: grab;
  pointer-events: all;
  transition: background 0.15s;
}
.range-track-wrap input[type="range"].thumb-invalid::-moz-range-thumb {
  background: #aaa;
}

.slider-dates {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
}

#slider-min,
#slider-max,
#nights-max,
#nights-min {
  border: 0;
  padding: 0;
}

.nights-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
  min-height: 13px;
  transition: opacity 0.2s;
}

/* ── IDs ── */
#date-select-content {
  background: var(--sidebarPrimary);
  padding: 0 clamp(5px, 5px + 3.5vw, 35px);
}
#date-grid {
  display: flex;
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  gap: clamp(0.8rem, 0.8rem + 0.1vh, 1rem);
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 359px) {
  #date-grid {
    padding: 0;
  }
  .date-mode-toggle label {
    font-size: 0.7rem;
    padding: 0.4rem 0.25rem;
  }
  .sliders-section.visible {
    padding: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-content,
  .caret,
  .sliders-section {
    transition: none;
  }
}
