/* ===== CHEAP VISA RUN STYLES ===== */

* {
  font-weight: 300 !important;
}

/* Base modifications for the standalone page layout */
body {
  background: #f8fcfb;
  font-family: 'Jost', sans-serif;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main_layout_container {
  flex: 1 0 auto;
}

#mainContent {
  margin-top: 30px;
}

/* Custom Visa Form Sizing and Elements */
.visa-form-container {
  background: linear-gradient(135deg, #074d3d 0%, #053b2f 100%);
  border-radius: 0;
  padding: 40px 60px;
  box-shadow: 0 30px 80px rgba(8, 26, 33, 0.25);
  color: #fff;
  border: none;
  margin-top: 0;
  margin-bottom: 40px;
  width: 100%;
}

.visa-form-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visa-form-content .row {
  width: 100%;
  justify-content: center;
}

/* From + Search stay on one row on desktop */
.visa-from-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.visa-from-search-row .visa-from-group {
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 0;
  margin-bottom: 0;
}

.visa-from-search-row .visa-from-group .airport-search-group,
.visa-from-search-row .visa-from-group #from {
  width: 100% !important;
  max-width: 100%;
}

.visa-from-search-row .visa-search-group-col {
  flex: 0 0 auto;
  margin-bottom: 0;
  width: auto;
  text-align: left;
}

.visa-from-search-row #mainSearch {
  width: 140px !important;
  float: none !important;
  margin-top: 0 !important;
}

@media (max-width: 767.98px) {
  .visa-from-search-row .visa-from-group,
  .visa-from-search-row .visa-search-group-col {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .visa-from-search-row #mainSearch {
    width: 100% !important;
  }
}

.visa-form-container .title {
  font-size: 28px;
  font-weight: 300 !important;
  color: #fff;
  margin-bottom: 25px;
  text-align: center;
}

.visa-form-container .title span {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 18px;
  font-weight: 300 !important;
  letter-spacing: 0;
  line-height: 1.5;
  margin-bottom: 0;
  margin-top: 8px;
  text-transform: none;
}

.visa-form-group {
  margin-bottom: 20px;
}

.visa-form-group label {
  font-size: 13px;
  font-weight: 300 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #17b08b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.visa-form-group label i {
  font-size: 14px;
}

/* Custom Overrides for inputs */
.visa-form-container .form-control {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  height: 48px !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
}

.visa-form-container .form-control:focus {
  border-color: #17b08b !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(23, 176, 139, 0.2) !important;
}

.visa-form-container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Custom checkbox */
.visa-custom-checkbox {
  display: flex;
  align-items: center;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.visa-custom-checkbox:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(23, 176, 139, 0.3);
}

.visa-custom-checkbox input {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #17b08b;
  cursor: pointer;
}

.visa-custom-checkbox span {
  font-size: 14px;
  color: #eee;
  user-select: none;
}

/* Editable Cost input field */
.overnight-fee-group {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(23, 176, 139, 0.08);
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(23, 176, 139, 0.3);
  transition: all 0.2s ease;
}

.overnight-fee-group label {
  margin-bottom: 0;
  color: #fff;
}

.overnight-fee-group input {
  width: 90px !important;
  text-align: center;
  font-weight: 300 !important;
  color: #17b08b !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(23, 176, 139, 0.3) !important;
}

.stayover-badge {
  font-size: 11px !important;
  color: #17b08b !important;
  background: rgba(23, 176, 139, 0.22) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-weight: 300 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  border: 1px solid rgba(23, 176, 139, 0.35) !important;
}

.explore-badge {
  font-size: 11px !important;
  color: #1a73e8 !important;
  background: rgba(26, 115, 232, 0.18) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-weight: 300 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  border: 1px solid rgba(26, 115, 232, 0.3) !important;
}

.overnight-stay-tag {
  font-size: 10px !important;
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.08) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 300 !important;
  margin-left: 6px;
  border: 1px solid rgba(220, 38, 38, 0.15) !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.stayover-duration-val {
  font-weight: 300 !important;
  /* color: #0d7159; */
}

/* Sort button customizations */
.btn-sort i.fa-history {
  color: #d97706 !important;
}


/* =======================================================
   COPIED EXACTLY FROM MAIN PAGE INDEX.HTML CUSTOM STYLES
   ======================================================= */

/* Premium visual refinements */
#logo {
  width: 130px !important;
  min-width: 0 !important;
}

#logo div {
  background-image: url('../assets/images/logo-fly-visa-run.png') !important;
  background-size: contain;
  background-repeat: no-repeat;
  height: 45px;
  width: 100%;
}

.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
}



.preloader-img {
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Search result cards */
#searchResults {
  display: grid;
  gap: 24px;
}

#searchResults .item.ftw-result-card {
  margin-bottom: 0;
  border: 1px solid rgba(11, 46, 60, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  box-shadow: 0 24px 60px rgba(12, 50, 63, 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  font-size: 16px;
  line-height: 1.3;
}

#searchResults .item.ftw-result-card h3,
#searchResults .item.ftw-result-card a,
#searchResults .item.ftw-result-card span,
#searchResults .item.ftw-result-card strong,
#searchResults .item.ftw-result-card small {
  font-size: 16px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#searchResults .item.ftw-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(12, 50, 63, 0.16);
  border-color: rgba(19, 150, 118, 0.22);
}

.ftw-result-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  min-height: 100%;
  width: 100%;
}

.ftw-result-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #18363c;
}

.destinationImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

#searchResults .item.ftw-result-card:hover .destinationImage {
  transform: scale(1.05);
}

.ftw-result-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 26, 33, 0.1) 0%, rgba(8, 26, 33, 0.72) 100%),
    linear-gradient(135deg, rgba(19, 150, 118, 0.28) 0%, rgba(255, 209, 102, 0.06) 100%);
}

.ftw-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #fff;
}

.ftw-result-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ftw-weather-pill,
.ftw-trip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(10, 34, 43, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.ftw-weather-pill {
  color: #fff;
}

.ftw-weather-pill a {
  color: inherit;
  text-decoration: none;
}

.ftw-trip-pill {
  color: #ffffff;
}

.ftw-trip-pill a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.ftw-trip-pill i {
  color: #9df3db;
}

.ftw-trip-pill strong {
  color: #ffffff;
  font-weight: 300 ;
}

.ftw-result-destination {
  display: grid;
  gap: 10px;
  /* align-self: end; */
}

.ftw-destination-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ftw-destination-title h3 {
  margin: 0;
  font-weight: 300 ;
  color: #fff;
}

.ftw-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 34, 43, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ftw-country-chip .flag {
  width: 20px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ftw-result-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.ftw-result-subtitle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ftw-result-content {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(19, 150, 118, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fcfb 100%);
}

.ftw-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  align-items: stretch;
}

.ftw-leg-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-self: stretch;
  border: 1px solid rgba(11, 46, 60, 0.08);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  min-height: 248px;
  height: 100%;
}

.ftw-leg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ftw-leg-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 300 ;
  color: #157560;
}

.ftw-airline-logo {
  height: 30px;
  width: auto;
  border-radius: 24px;
  object-fit: contain;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ftw-airline-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Airline info modal styling */
.ftw-airline-modal-content {
  padding: 1.5rem 1rem;
}

.ftw-airline-modal-logo-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.ftw-airline-modal-logo-wrapper:hover {
  transform: scale(1.05);
}

.ftw-airline-logo-large {
  max-height: 55px;
  max-width: 55px;
  object-fit: contain;
  border-radius: 12px;
}

.airline-name-text {
  color: #111;
  font-size: 20px;
  margin-top: 15px;
  font-weight: 300 !important;
  letter-spacing: -0.5px;
}

/* Animation */
.animated {
  animation-duration: 0.35s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.fadeIn {
  animation-name: fadeIn;
}

.ftw-leg-label i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 150, 118, 0.1);
}

.ftw-leg-direction-icon-there {
  transform: rotate(135deg);
}

.ftw-leg-direction-icon-back {
  transform: rotate(-45deg);
}

.ftw-leg-card .times {
  display: grid;
  gap: 16px;
  color: #47616b;
  align-content: start;
}

#searchResults .item.ftw-result-card .airportInfo,
#searchResults .item.ftw-result-card .airportStop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  position: relative;
}

#searchResults .item.ftw-result-card .airportInfo .icon,
#searchResults .item.ftw-result-card .airportStop .icon {
  position: relative;
  width: 16px;
  min-width: 16px;
  height: 48px;
  float: none;
  margin: 0;
}

#searchResults .item.ftw-result-card .airportStop .icon {
  height: 30px;
}

#searchResults .item.ftw-result-card .airportInfo .icon::before,
#searchResults .item.ftw-result-card .airportStop .icon::before {
  margin: 0;
  color: #17363e;
}

#searchResults .item.ftw-result-card .airportStop .icon::before {
  margin-left: -8px;
  color: #139676;
  background: #fff;
}

#searchResults .item.ftw-result-card .data .times .airportInfo .icon::after,
#searchResults .item.ftw-result-card .data .times .airportStop .icon::after {
  left: 3px;
  border-left: 1px solid rgba(23, 54, 62, 0.16);
}

#searchResults .item.ftw-result-card .data .times .airportInfo:last-child .icon::after {
  height: 8px;
}

.ftw-airport-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 1px;
}

.ftw-airport-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.1;
}

#searchResults .item.ftw-result-card .time {
  font-size: 16px !important;
  font-weight: 300 ;
  color: #123842;
  padding: 0;
}

.ftw-airport-date {
  color: #6c8690;
  white-space: nowrap;
}

.ftw-airport-copy .airport {
  color: #4c6671;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ftw-airport-copy .airportCode {
  background: rgba(19, 150, 118, 0.09) !important;
  border: 1px solid rgba(19, 150, 118, 0.12) !important;
  border-radius: 999px !important;
  padding: 2px 9px !important;
  margin: 0 !important;
  color: #0d7159 !important;
  font-weight: 300 !important;
}

#searchResults .item.ftw-result-card .airportStop {
  margin-left: 1px;
  min-height: 30px;
}

#searchResults .item.ftw-result-card .airportStop span {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px !important;
  background: #eff5f5 !important;
  border: 1px solid rgba(17, 44, 55, 0.06);
  color: #4d6670 !important;
  font-weight: 300 !important;
}

#searchResults .item.ftw-result-card .airportStop span.times {
  background: rgba(19, 150, 118, 0.09) !important;
  color: #0d7159 !important;
}

.ftw-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding-top: 4px;
}

.flightPrice {
  margin: 0;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(11, 46, 60, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
  color: #17363e;
  font-weight: 300 ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  min-height: 64px;
  flex: 1 1 auto;
}

.flightPrice.price-band-profit {
  background: linear-gradient(135deg, #f3fffa 0%, #dcf7eb 100%);
  border-color: rgba(19, 150, 118, 0.22);
  color: #0d7159;
}

.flightPrice.price-band-good {
  background: linear-gradient(135deg, #f3f8ff 0%, #deebff 100%);
  border-color: rgba(46, 109, 214, 0.2);
  color: #1f5fb8;
}

.flightPrice.price-band-mid {
  background: linear-gradient(135deg, #fffdf2 0%, #fff0bf 100%);
  border-color: rgba(196, 151, 14, 0.24);
  color: #8f6500;
}

.flightPrice.price-band-high {
  background: linear-gradient(135deg, #fff4f4 0%, #ffdede 100%);
  border-color: rgba(201, 54, 54, 0.2);
  color: #b12828;
}

.ftw-price-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ftw-price-copy i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 150, 118, 0.1);
  color: #139676;
}

.flightPrice.price-band-good .ftw-price-copy i {
  background: rgba(46, 109, 214, 0.12);
  color: #2e6dd6;
}

.flightPrice.price-band-mid .ftw-price-copy i {
  background: rgba(196, 151, 14, 0.12);
  color: #c4970e;
}

.flightPrice.price-band-high .ftw-price-copy i {
  background: rgba(201, 54, 54, 0.12);
  color: #c93636;
}

.ftw-price-caption {
  color: inherit;
}

.ftw-price-value {
  line-height: 1;
  font-weight: 300 ;
  font-size: 28px !important;
  color: inherit;
  white-space: nowrap;
}

.ftw-price-value small {
  font-weight: 300 ;
  color: inherit;
  margin-left: 6px;
}

.select.ftw-select-btn {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  padding: 14px 22px;
  border-radius: 16px;
  background: #139676;
  box-shadow: 0 14px 24px rgba(19, 150, 118, 0.24);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 300 ;
  min-height: 64px;
  flex: 0 0 260px;
}

.select.ftw-select-btn.price-band-profit {
  background: #139676;
  box-shadow: 0 14px 24px rgba(19, 150, 118, 0.24);
}

.select.ftw-select-btn.price-band-good {
  background: #2e6dd6;
  box-shadow: 0 14px 24px rgba(46, 109, 214, 0.24);
}

.select.ftw-select-btn.price-band-mid {
  background: #c4970e;
  box-shadow: 0 14px 24px rgba(196, 151, 14, 0.24);
  color: #fff;
}

.select.ftw-select-btn.price-band-high {
  background: #c93636;
  box-shadow: 0 14px 24px rgba(201, 54, 54, 0.24);
}

.select.ftw-select-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(19, 150, 118, 0.28);
  color: #fff;
}

.select.ftw-select-btn.price-band-good:hover {
  box-shadow: 0 18px 28px rgba(46, 109, 214, 0.28);
}

.select.ftw-select-btn.price-band-mid:hover {
  box-shadow: 0 18px 28px rgba(196, 151, 14, 0.28);
}

.select.ftw-select-btn.price-band-high:hover {
  box-shadow: 0 18px 28px rgba(201, 54, 54, 0.28);
}

.averageWeather a {
  color: inherit;
  text-decoration: none;
}

.weatherDay {
  text-align: center;
  padding: 0;
}

@media (max-width: 991.98px) {
  .ftw-result-shell {
    grid-template-columns: 1fr;
  }

  .ftw-result-media {
    min-height: 240px;
  }

  .ftw-route-grid {
    grid-template-columns: 1fr;
  }

  .ftw-result-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .flightPrice {
    width: 100%;
    min-width: 0;
  }

  .select.ftw-select-btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    min-height: 52px;
    height: auto;
    padding: 12px 20px;
  }
}

@media (max-width: 767.98px) {
  #main_layout_container.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .visa-form-container {
    padding: 24px 20px !important;
    border-radius: 0 !important;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
  }
  .visa-form-container .title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
  .visa-form-container .title span {
    font-size: 15px;
    margin-top: 6px;
    padding: 0 8px;
  }

  /* Even vertical gaps between all form fields/rows on mobile */
  .visa-form-content {
    gap: 20px !important;
  }

  .visa-form-content > .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .visa-form-content > .row.mb-3,
  .visa-form-content > .row.mt-2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .visa-form-content .visa-form-group {
    margin-bottom: 0 !important;
  }

  /* First options row: date full-width, then day fields side-by-side with even spacing */
  .visa-form-content > .row:first-of-type {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 20px 10px !important;
  }

  .visa-from-search-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }

  .visa-from-search-row .visa-from-group,
  .visa-from-search-row .visa-search-group-col {
    margin-bottom: 0 !important;
  }

  #searchResults .item.ftw-result-card {
    border-radius: 16px !important;
  }

  .ftw-result-overlay,
  .ftw-result-content {
    padding: 14px !important;
  }

  .ftw-leg-card {
    padding: 12px !important;
    border-radius: 14px !important;
    min-height: auto !important;
  }

  .ftw-route-grid {
    gap: 10px !important;
  }

  /* Visa Expires On date field: full width on mobile only */
  .visa-form-group:has(#visa_end),
  .visa-form-group:has(.visa-end-input) {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 0 !important;
  }

  .visa-form-container input#visa_end,
  .visa-form-container input#visa_end.visa-end-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  .visa-days-group {
    width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
    margin-bottom: 0 !important;
  }

  .visa-days-group .form-control {
    width: 100% !important;
  }

  #mainSearch {
    width: 100% !important;
  }

  /* Match other fields: label already provides spacing above the input */
  .visa-form-container #from {
    margin-top: 0 !important;
  }

  .visa-form-container .airport-selected-container {
    margin-top: 0 !important;
  }
}

@media (max-width: 575.98px) {
  #main_layout_container.container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .visa-form-container {
    padding: 16px 12px !important;
    border-radius: 0 !important;
    margin-bottom: 16px !important;
  }
  .visa-form-container .title {
    font-size: 18px !important;
    margin-bottom: 15px !important;
  }
  .visa-form-container .title span {
    font-size: 14px;
  }
  /* Keep same even gap as the 767 breakpoint (gap handled on form content) */
  .visa-form-group {
    margin-bottom: 0 !important;
  }

  #searchResults .item.ftw-result-card {
    border-radius: 12px !important;
  }

  .ftw-result-overlay,
  .ftw-result-content {
    padding: 10px !important;
  }

  .ftw-weather-pill,
  .ftw-trip-pill,
  .ftw-country-chip {
    padding: 6px 10px !important;
  }

  .flightPrice {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px !important;
    min-height: 52px !important;
  }

  .ftw-price-value {
    font-size: 22px !important;
  }

  .ftw-price-value small {
    margin-left: 4px;
    font-size: 11px !important;
  }

  .select.ftw-select-btn {
    min-height: 44px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .ftw-leg-card {
    padding: 10px !important;
    border-radius: 10px !important;
  }

  .visa-days-group {
    width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
  }

  .visa-days-group .form-control {
    width: 100% !important;
  }

  #mainSearch {
    width: 100% !important;
  }
  .ftw-route-grid {
    gap: 8px !important;
  }
  .ftw-leg-header {
    margin-bottom: 8px !important;
  }
  .ftw-leg-card .times {
    gap: 10px !important;
  }
  #searchResults .item.ftw-result-card .airportInfo,
  #searchResults .item.ftw-result-card .airportStop {
    gap: 8px !important;
  }
}

.flagIcon {
  display: inline-block;
  vertical-align: middle;
}

.currency-control select,
.currency-control .nice-select,
.results-currency-control select,
.results-currency-control .nice-select {
  width: 100%;
}

.currency-control .nice-select,
.results-currency-control .nice-select {
  float: none;
}

.results-currency-control {
  min-width: 100px;
}

.results-currency-control .nice-select {
  min-width: 100px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ===== AIRPORT SEARCH STYLING ===== */
.airport-search-group {
  position: relative;
  z-index: 10;
}

.airport-search-group:focus-within {
  z-index: 1100 !important;
}

.airport-selected-container {
  position: relative;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 4px 12px !important;
  padding-right: 58px !important;
  /* Leave space for absolute clear button */
  min-height: 48px;
  height: auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075) !important;
}

.airport-tags-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.airport-tags-container:empty {
  display: none;
}

/* Active text input styling (outside) */
#from {
  margin-top: 8px;
}

/* Helper + Add more button (square icon inside tags row) */
.airport-add-more-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  box-sizing: border-box;
  flex: 0 0 32px;
  align-self: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  overflow: hidden;
}

.airport-add-more-btn i {
  line-height: 1;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.airport-add-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.airport-clear-all-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ff9f9f;
  padding: 6px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  width: 38px;
  height: 38px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 10;
}

.airport-clear-all-btn:hover {
  background: rgba(255, 100, 100, 0.16);
  border-color: rgba(255, 100, 100, 0.35);
  color: #ff6b6b;
}

@media (min-width: 992px) {
  .date-time-pickers-col {
    margin-top: 10px !important;
  }
}

.airport-show-all-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 300 ;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.airport-show-all-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.airport-tag.hidden-airport-tag {
  display: none;
}

.airport-tag {
  display: inline-flex;
  align-items: center;
  background: #0d7159 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  gap: 8px;
  color: #fff !important;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.airport-tag:hover {
  background: #0a5f4a !important;
}

.airport-tag-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.airport-tag-text strong {
  color: #ffffff;
  font-weight: 300 ;
}

.airport-tag-city {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 300 ;
}

.airport-tag-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.airport-tag-remove:hover {
  color: #e74c3c;
}

.airport-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d0d0d0;
  border-top: 2px solid #139676;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  z-index: 1000;
  margin-top: -2px;
}

.airport-results {
  padding: 0;
  margin: 0;
}

.airport-section {
  border-bottom: 1px solid #f0f0f0;
}

.airport-section:last-child {
  border-bottom: none;
}

.airport-city-header {
  padding: 12px 16px;
  background: #f9f9f9;
  font-weight: 300 ;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.airport-city-header:hover {
  background: #f0f0f0;
  color: #139676;
}

.airport-add-icon {
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.airport-city-header:hover .airport-add-icon {
  opacity: 1;
}

.airport-radius-option {
  padding: 10px 16px;
  background: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
  border-left: 3px solid #ffa500;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 300 ;
}

.airport-radius-option:hover {
  background: #fff8f0;
  color: #139676;
  border-left-color: #139676;
}

.airport-radius-option i {
  color: #ffa500;
}

.airport-radius-option:hover i {
  color: #139676;
}

.airport-item {
  padding: 12px 16px;
  border-bottom: 1px solid #fafafa;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.airport-item:last-child {
  border-bottom: none;
}

.airport-item:hover {
  background-color: #f5f5f5;
}

.airport-item.selected {
  background-color: #f0f9f7;
}

.airport-item-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.airport-info {
  flex: 1;
}

.airport-name {
  font-size: 16px;
  font-weight: 300 ;
  color: #222;
  margin-bottom: 3px;
}

.airport-code {
  font-size: 12px;
  color: #999;
  font-weight: 500 ;
}

.airport-check {
  color: #139676;
  font-size: 16px;
  flex-shrink: 0;
}

/* Scrollbar styling */
.airport-dropdown::-webkit-scrollbar {
  width: 8px;
}

.airport-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.airport-dropdown::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}

.airport-dropdown::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Search Results Header Styling */
#resultsMeta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* Space between count and actions */
  margin-bottom: 25px;
  padding: 0 4px;
  gap: 20px;
  flex-wrap: wrap;
}

#resultCount {
  font-size: 14px;
  color: #777;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 15px;
}

#resultCount strong {
  color: #111;
  font-size: 20px;
}

.meta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#directFlightsOnly {
  margin-bottom: 0 !important;
  padding: 6px 16px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  background: #eef7f5 !important;
  color: #0d7159 !important;
  border: 1px solid rgba(19, 150, 118, 0.15) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#directFlightsOnly i {
  font-size: 14px;
}

#resultsFilterHeader {
  display: none !important;
}

.gap-3 {
  gap: 12px !important;
}

.hide-destination-btn .flag {
  width: 20px !important;
  height: 14px !important;
  border-radius: 2px !important;
  margin-left: 8px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-block;
  vertical-align: middle;
}

.hide-destination-btn {
  border-radius: 4px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  text-transform: none !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #666 !important;
  background: #fff !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  outline: none !important;
}

.hide-destination-btn.btn-hide {
  color: #666 !important;
  border-color: #eee !important;
  background: #fff !important;
}

.hide-destination-btn.btn-hide:hover {
  background: #fdf2f2 !important;
  border-color: #d93025 !important;
  color: #d93025 !important;
}

.hide-destination-btn.btn-show {
  color: #139676 !important;
  border-color: #e6f4f1 !important;
  background: #f0f9f7 !important;
}

.hide-destination-btn.btn-show:hover {
  background: #e6f4f1 !important;
  border-color: #139676 !important;
}

.btn-sort {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 300 ;
  color: #444;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-sort:hover {
  background: #f8f9fa;
  border-color: #ccc;
  transform: translateY(-1px);
}

.btn-sort i {
  color: #0d7159;
  font-size: 14px;
}

.btn-sort.active {
  background: #17b08b !important;
  color: #fff !important;
  border-color: #17b08b !important;
}

.btn-sort.active i {
  color: #fff !important;
}

.ftw-city-group-cheapest {
  display: none;
  font-size: 13px;
  font-weight: 300 !important;
  color: #0d7159;
  background: #eef7f5;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 12px;
  border: 1px solid rgba(19, 150, 118, 0.2);
}

.ftw-city-group.collapsed .ftw-city-group-cheapest {
  display: inline-block;
}

.hide-destination-btn .flag {
  width: 18px !important;
  height: 12px !important;
  border-radius: 1px !important;
  margin: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  order: 2;
  /* Ensure it stays after the text if flex-ordered, but manual placement is safer */
}

.airportStop span {
  background: #f1f3f3 !important;
  border-radius: 6px !important;
  padding: 2px 10px !important;
  margin-right: 8px !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  color: #555 !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

#searchResults .item .airportStop span.times {
  background: #f1f3f3 !important;
  color: #0d7159 !important;
}

.airportCode {
  background: rgba(19, 150, 118, 0.08) !important;
  color: #0d7159 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  /* font-weight: 300 !important; */
  font-size: 13px !important;
  margin-left: 4px !important;
  border: 1px solid rgba(19, 150, 118, 0.1) !important;
  font-weight: 500 !important;
}

/* Hide flights to filtered destination countries */
.hidden-destination-flight {
  display: none !important;
}

/* ===== WEEKEND SELECTOR WIDGET ===== */
.weekend-selector {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  padding: 6px 12px;
  height: 48px;
  width: 100%;
  max-width: 240px;
  margin-left: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.weekend-arrow {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 16px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.weekend-arrow:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #17b08b !important;
}

.weekend-arrow.disabled {
  opacity: 0.25 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.weekend-label {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  user-select: none !important;
  text-align: center;
  flex-grow: 1;
}

@media (max-width: 991.98px) {
  .weekend-selector {
    margin: 10px 0;
    max-width: 100%;
  }

  /* Style and position menu button on mobile (left side) */
  #navbar_toggle_btn {
    display: block !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  #navbar_toggle_icon {
    color: #ffffff !important;
    font-size: 22px !important;
  }

  /* Make header less high on mobile */
  #main_header {
    height: auto !important;
    min-height: 0 !important;
  }

  #top {
    position: relative !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #menu {
    position: static !important;
  }

  #logo {
    height: 46px !important;
    width: 90px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }

  #logo div {
    height: 30px !important;
  }
}

/* ===== VIEW TOGGLER SYSTEM ===== */
.view-toggle-container {
  display: inline-flex;
  background: #f1f3f3;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-left: 8px;
}

.btn-view-toggle {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 300 ;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-view-toggle.active {
  background: #ffffff;
  color: #0d7159;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.btn-view-toggle:hover:not(.active) {
  color: #111;
  background: rgba(255, 255, 255, 0.4);
}

/* ===== FLAT TABLE LAYOUT ===== */
#searchResults.view-flat {
  --ftw-flat-grid: 150px minmax(0, 1fr) minmax(0, 1fr) 100px 120px;
  --ftw-flat-gap: 12px;
  --ftw-flat-pad-x: 24px;
  --ftw-flat-leg-text-offset: 68px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ftw-flat-header {
  display: grid;
  grid-template-columns: var(--ftw-flat-grid);
  gap: var(--ftw-flat-gap);
  padding: 10px var(--ftw-flat-pad-x);
  font-size: 12px;
  font-weight: 300 !important;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 4px;
}

.ftw-flat-header .ftw-header-col {
  display: flex;
  align-items: center;
}

.ftw-flat-header .col-outbound,
.ftw-flat-header .col-return {
  padding-left: var(--ftw-flat-leg-text-offset);
}

.ftw-flat-header .col-price {
  justify-content: center;
}

.ftw-flat-row {
  display: grid;
  grid-template-columns: var(--ftw-flat-grid);
  gap: var(--ftw-flat-gap);
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(11, 46, 60, 0.07);
  border-radius: 16px;
  padding: 12px var(--ftw-flat-pad-x);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(12, 50, 63, 0.03);
}

.ftw-flat-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(12, 50, 63, 0.08);
  border-color: rgba(19, 150, 118, 0.2);
}

.ftw-flat-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Cell: Destination */
.cell-dest {
  gap: 14px;
  align-items: flex-start;
}

.ftw-flat-flag-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fcfb;
  border: 1px solid rgba(19, 150, 118, 0.15);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.ftw-flat-flag-wrapper .flag {
  width: 24px !important;
  height: 16px !important;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.ftw-flat-dest-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ftw-flat-notifications {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ftw-flat-notifications .stayover-badge,
.ftw-flat-notifications .explore-badge,
.ftw-flat-notifications .overnight-stay-tag {
  margin-left: 0 !important;
}

.ftw-flat-city {
  font-size: 16px !important;
  font-weight: 300 !important;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ftw-flat-weather-badge {
  font-size: 11px !important;
  font-weight: 300 !important;
  color: #0d7159;
  background: rgba(19, 150, 118, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ftw-flat-weather-badge i {
  font-size: 10px;
}

.ftw-flat-route-codes {
  font-size: 15px !important;
  color: #222;
  font-weight: 400 !important;
  margin-top: 2px;
}

.ftw-flat-route-codes i {
  font-size: 10px;
  margin: 0 2px;
  color: #ccc;
}

/* Cell: Flight Legs */
.cell-leg {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  border-left: none;
  padding-left: 0;
  width: 100%;
  min-width: 0;
}

.cell-leg.cell-return {
  border-left: none;
  padding-left: 0;
}

.ftw-flat-airline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  flex-shrink: 0;
}

.ftw-airline-logo,
.ftw-flat-airline-logo {
  border-radius: 100px !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease !important;
  background-color: #ffffff;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ftw-airline-logo:hover,
.ftw-flat-airline-logo:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  z-index: 10;
}

.ftw-flat-airline-logo {
  height: 36px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}

.airline-name-text {
  font-size: 9px !important;
  font-weight: 300 !important;
  color: #999;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42px;
  text-align: center;
}

.ftw-flat-leg-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.ftw-flat-leg-time {
  font-size: 14px !important;
  font-weight: 300 !important;
  color: #222;
}

.ftw-flat-leg-route {
  font-size: 11px !important;
  font-weight: 300 !important;
  color: #777;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-left: 0;
  padding-left: 0;
}

.ftw-flat-leg-route .airportCode {
  font-weight: 700 !important;
  font-size: 12px !important;
  margin-left: 0 !important;
  padding: 2px 6px !important;
  background: rgba(19, 150, 118, 0.1) !important;
  border-color: rgba(19, 150, 118, 0.18) !important;
}

.leg-route-arrow {
  font-size: 12px;
  color: rgba(13, 113, 89, 0.65);
}

.leg-day-badge {
  font-size: 10px !important;
  font-weight: 300 !important;
  color: #0d7159;
  background: rgba(19, 150, 118, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 4px;
  text-transform: uppercase;
}

.ftw-flat-leg-meta {
  font-size: 13px !important;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  width: 100%;
}

.ftw-flat-leg-meta .leg-date {
  flex: 1;
  min-width: 0;
}

.ftw-flat-leg-meta .leg-duration {
  flex-shrink: 0;
  margin-left: auto;
}

.leg-date {
  font-size: 13px !important;
  font-weight: 300 !important;
  color: #444;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.leg-duration {
  font-size: 12px !important;
  color: #888;
  background: #f5f6f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 300 !important;
}

.leg-duration i {
  font-size: 9px;
  margin-right: 2px;
}

/* Cell: Price */
.cell-price {
  justify-content: center;
  border-left: none;
  padding-left: 0;
}

.cell-price .price-container {
  display: flex;
  flex-direction: column;
}

.cell-price .price-val {
  font-size: 20px !important;
  font-weight: 300 !important;
  color: #111;
  display: flex;
  align-items: baseline;
}

.cell-price .price-val small {
  font-size: 12px !important;
  font-weight: 300 !important;
  color: #888;
  margin-left: 2px;
}

/* Price Bands */
.price-band-profit .price-val {
  color: #0d7159 !important;
}
.price-band-good .price-val {
  color: #139676 !important;
}
.price-band-mid .price-val {
  color: #d97706 !important;
}
.price-band-high .price-val {
  color: #dc2626 !important;
}

/* Cell: Action */
.cell-action {
  justify-content: flex-end;
}

.ftw-flat-btn {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(13, 113, 89, 0.15);
}

.ftw-flat-btn i {
  font-size: 10px;
  margin-left: 6px;
}

.ftw-flat-btn.price-band-profit {
  background: #0d7159 !important;
}
.ftw-flat-btn.price-band-profit:hover {
  background: #095241 !important;
  box-shadow: 0 6px 15px rgba(13, 113, 89, 0.25);
}

.ftw-flat-btn.price-band-good {
  background: #139676 !important;
}
.ftw-flat-btn.price-band-good:hover {
  background: #0e785e !important;
}

.ftw-flat-btn.price-band-mid {
  background: #d97706 !important;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}
.ftw-flat-btn.price-band-mid:hover {
  background: #b45309 !important;
}

.ftw-flat-btn.price-band-high {
  background: #dc2626 !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}
.ftw-flat-btn.price-band-high:hover {
  background: #b91c1c !important;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 991.98px) {
  #searchResults.view-flat {
    --ftw-flat-grid: 140px minmax(0, 1fr) minmax(0, 1fr) 90px;
    --ftw-flat-pad-x: 16px;
  }
  .ftw-flat-header .col-action {
    display: none;
  }
  .ftw-flat-row {
    padding: 12px var(--ftw-flat-pad-x);
  }
  .ftw-flat-row .cell-action {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
  .ftw-flat-btn {
    height: 34px;
  }
}

@media (max-width: 767.98px) {
  .ftw-flat-header {
    display: none !important;
  }
  .ftw-flat-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  .ftw-flat-row .cell-dest {
    grid-column: 1;
  }
  .ftw-flat-row .cell-price {
    grid-column: 2;
    border: none;
    padding-left: 0;
    justify-content: flex-end;
  }
  .ftw-flat-row .cell-outbound {
    grid-column: 1 / -1;
    border-left: none;
    padding-left: 0;
    border-top: none;
    padding-top: 0;
  }
  .ftw-flat-row .cell-return {
    grid-column: 1 / -1;
    border-left: none;
    padding-left: 0;
    border-top: none;
    padding-top: 0;
    margin-bottom: 0;
  }
  .ftw-flat-row .cell-action {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
  .cell-leg {
    gap: 12px;
  }
  .ftw-flat-airline {
    width: 50px;
  }
}

/* ===== Grouped Destination Styling ===== */
.ftw-city-group {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(11, 46, 60, 0.08);
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(12, 50, 63, 0.04);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ftw-city-group:hover {
  border-color: rgba(19, 150, 118, 0.2);
  box-shadow: 0 15px 40px rgba(12, 50, 63, 0.08);
}

.ftw-city-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(90deg, #f8fcfb 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(11, 46, 60, 0.05);
  cursor: pointer;
  user-select: none;
}

.ftw-city-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px !important;
  color: #111;
  font-weight: 300 !important;
}

.ftw-city-group-title .flag {
  width: 24px !important;
  height: 16px !important;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: inline-block;
  vertical-align: middle;
}

.ftw-city-group-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ftw-city-options-badge {
  font-size: 12px !important;
  font-weight: 300 !important;
  color: #0d7159;
  background: rgba(19, 150, 118, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(19, 150, 118, 0.12);
}

.ftw-city-group-header .toggle-caret {
  font-size: 16px;
  color: #777;
  transition: transform 0.3s ease;
}

.ftw-city-group.collapsed .toggle-caret {
  transform: rotate(180deg);
}

.ftw-city-group.collapsed .ftw-city-group-deals {
  display: none;
}

.ftw-city-group-deals {
  padding: 24px;
}

/* For Flat view inside groups */
#searchResults.view-flat .ftw-city-group-deals {
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ftw-city-extra-deals {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

#searchResults.view-flat .ftw-city-extra-deals {
  gap: 12px;
  margin-top: 12px;
}

.ftw-show-more-deals-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  background: #f8fcfb;
  border: 1px dashed rgba(19, 150, 118, 0.3);
  border-radius: 14px;
  color: #0d7159;
  font-size: 13px !important;
  font-weight: 300 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none !important;
}

.ftw-show-more-deals-btn:hover {
  background: #eff9f6;
  border-color: #139676;
  color: #139676;
}

.ftw-show-more-deals-btn i {
  transition: transform 0.2s ease;
}

.ftw-show-more-deals-btn.expanded i {
  transform: rotate(180deg);
}

#mainSearch {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  border-radius: 12px !important;
}

#days_advance, #stay_days {
  text-align: center !important;
}

* {
  font-weight: 300 !important;
}

/* Hide default HTML5 number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Custom Stepper Input Styling — arrows sit inside the input on all breakpoints */
.stepper-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.stepper-input-wrapper input {
  width: 100% !important;
  padding-right: 36px !important;
  box-sizing: border-box !important;
}

/* Desktop: field width matches its caption/label */
@media (min-width: 768px) {
  .visa-days-group,
  .visa-form-group:has(#visa_end),
  .visa-form-group:has(.visa-end-input) {
    display: inline-flex !important;
    flex-direction: column;
    align-items: stretch;
    width: fit-content !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .visa-days-group label,
  .visa-form-group:has(#visa_end) label,
  .visa-form-group:has(.visa-end-input) label {
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }

  /* Input fills the group; min-width 0 so label, not input, sets width */
  .visa-days-group .stepper-input-wrapper,
  .visa-days-group .stepper-input-wrapper input,
  .visa-days-group .form-control,
  .visa-form-container input#visa_end,
  .visa-form-container input#visa_end.visa-end-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.stepper-arrow-up, .stepper-arrow-down {
  position: absolute;
  right: 8px;
  width: 20px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(23, 176, 139, 0.6) !important;
  cursor: pointer;
  font-size: 11px !important;
  transition: color 0.2s ease;
  z-index: 5;
  pointer-events: auto;
}

.stepper-arrow-up:hover, .stepper-arrow-down:hover {
  color: #17b08b !important;
}

.stepper-arrow-up {
  top: 6px;
}

.stepper-arrow-down {
  bottom: 6px;
}

@media (max-width: 767.98px) {
  .stepper-input-wrapper {
    display: block;
    width: 100%;
  }

  .stepper-input-wrapper input {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .ftw-city-group {
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }
  .ftw-city-group-header {
    padding: 14px 16px !important;
  }
  .ftw-city-group-title {
    font-size: 17px !important;
    gap: 8px !important;
  }
  .ftw-city-group-deals {
    padding: 12px !important;
  }
  #searchResults.view-flat .ftw-city-group-deals {
    padding: 8px 0 10px !important;
    gap: 8px !important;
  }
  .ftw-city-extra-deals {
    margin-top: 12px !important;
    gap: 12px !important;
  }
  .ftw-show-more-deals-btn {
    margin-top: 12px !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 575.98px) {
  .ftw-city-group {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }
  .ftw-city-group-header {
    padding: 10px 12px !important;
  }
  .ftw-city-group-title {
    font-size: 15px !important;
    gap: 6px !important;
  }
  .ftw-city-options-badge {
    font-size: 11px !important;
    padding: 2px 8px !important;
  }
  .ftw-city-group-deals {
    padding: 8px !important;
  }
  #searchResults.view-flat .ftw-city-group-deals {
    padding: 6px 0 8px !important;
    gap: 8px !important;
  }
  .ftw-city-extra-deals {
    margin-top: 8px !important;
    gap: 8px !important;
  }
}

/* ===== Visa form icon & date input overrides (max specificity) ===== */
/* Label calendar icon: same green as "VISA EXPIRES ON" text */
.visa-form-container .visa-form-group .visa-end-label .visa-calendar-icon,
.visa-form-container .visa-form-group .visa-end-label .visa-calendar-icon::before,
.visa-form-container .visa-form-group label .fal.fa-calendar-alt,
.visa-form-container .visa-form-group label .fal.fa-calendar-alt::before {
  color: #17b08b !important;
}

.visa-form-container .visa-form-group .visa-end-input,
.visa-form-container .visa-form-group input#visa_end,
#visa-form-container input#visa_end.visa-end-input {
  text-align: center !important;
  background-image: none !important;
  cursor: pointer;
}

/* Hide native browser date/clear icons (flatpickr owns the UI) */
.visa-form-container input#visa_end::-webkit-calendar-picker-indicator,
.visa-form-container input#visa_end::-webkit-inner-spin-button,
.visa-form-container input#visa_end::-webkit-clear-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* Ensure main-page flatpickr styling is never clipped / buried */
.flatpickr-calendar {
  z-index: 99999 !important;
}


