/* ============================================
   JetAxess Booking Form Improvements
   ============================================ */

/* Language Switcher */
.lang-change {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.lang-change .btn--base {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0a2942;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-change .btn--base:hover {
    background: rgba(255,255,255,0.25);
}

.lang-change .btn--base.active {
    background: #0a2942;
    color: #fff;
}

/* Airport Selection - Hybrid Approach */
.book-select {
    position: relative;
}

.airport-select {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    padding-right: 40px !important;
}

.map-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 153, 204, 0.8);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.map-trigger:hover {
    background: rgba(0, 153, 204, 1);
    transform: translateY(-50%) scale(1.1);
}

.map-trigger i {
    font-size: 14px;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px !important;
    height: 50px !important;
    padding: 8px 40px 8px 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 34px !important;
    font-family: 'Poppins', sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255,255,255,0.7) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 45px !important;
}

.select2-dropdown {
    background-color: #0a2942 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px !important;
}

.select2-results__option {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    padding: 10px 15px !important;
}

.select2-results__option--highlighted {
    background-color: rgba(0, 153, 204, 0.8) !important;
}

.select2-search__field {
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-family: 'Poppins', sans-serif;
}

.select2-search__field::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

/* SweetAlert2 Customization */
.swal2-popup {
    background: #ffffff !important;
    border-radius: 16px !important;
    color: #0a2942 !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.swal2-title {
    font-family: 'Poppins', sans-serif;
    color: #0a2942 !important;
}

.swal2-html-container {
    font-family: 'Poppins', sans-serif;
}

#airportSearch {
    font-family: 'Poppins', sans-serif;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
}

#useLocation {
    background: #0a2942;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    font-size: 14px;
}

#useLocation:hover {
    background: #0077b6;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    background: #f5f5f5;
    color: #0a2942;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
}

.leaflet-container {
    border-radius: 10px;
}

.btn-select-airport {
    background: #0a2942;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.btn-select-airport:hover {
    background: #0077b6;
    transform: translateY(-1px);
}

/* Multi-leg Management */
.add-leg-label {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: -1.3rem;
    width: 70px;
    margin-top: 0.3rem;
    display: block;
}

.add-destino,
.remove-destino {
    padding: 11px 15px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-destino:hover,
.remove-destino:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.4);
}

.remove-destino {
    background: #dc3545 !important;
}

.remove-destino:hover {
    background: #c82333 !important;
}

/* Date Input Styling */
input.form--control.date {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
}

input.form--control.date:focus {
    outline: none;
    border-color: #00aaff !important;
    box-shadow: 0 0 6px rgba(0,170,255,0.4);
}

/* Color scheme for calendar widget */
input.form--control.date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Return Date Wrapper */
.return-date-wrapper {
    animation: slideDown 0.3s ease;
}

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

/* Loading States */
.book-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.book-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #0099cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Validation States */
.form--control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form--control.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .lang-change {
        bottom: 15px;
        right: 15px;
    }
    
    .book-form .form-group {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .destino {
        flex-direction: column;
    }
    
    .destino > div {
        order: unset !important;
    }
    
    input[type="date"] {
        max-width: 100% !important;
    }
    
    #map {
        height: 60vh !important;
    }
    
    #airportSearch {
        font-size: 13px;
    }
    
    .map-trigger {
        width: 28px;
        height: 28px;
    }
    
    .map-trigger i {
        font-size: 12px;
    }
    
    .add-leg-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        width: auto;
    }
    
    .add-destino,
    .remove-destino {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .book-form {
        padding: 20px 15px;
    }
    
    .book-form .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .book-form .col-xl-12 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.book-form *:focus {
    outline: 2px solid #00aaff;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .airport-select,
    input.form--control.date {
        border-width: 2px !important;
    }
    
    .map-trigger {
        border: 2px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .lang-change,
    .map-trigger,
    .add-destino,
    .remove-destino {
        display: none;
    }
    
    .book-form {
        background: white;
        color: black;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Prevent layout shifts */
.book-form-area {
    contain: layout style;
}

/* GPU acceleration for animations */
.map-trigger,
.add-destino,
.remove-destino,
.btn-select-airport {
    will-change: transform;
}

/* Optimize repaints */
.select2-container {
    contain: layout paint;
}



/* //////////////////////////////////////////////////////////////////////////////

/* === TOP ROW: Flight Type + Passengers — full width === */
.book-form > .row.justify-content-center {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-bottom: 12px !important;
}
.book-form > .row.justify-content-center > div {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* === DESTINO ROW: From / To / Date / Time / Add leg === */
.destino.row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.destino > .col-xl-3:nth-child(1),
.destino > .col-xl-3:nth-child(2) {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.destino > .col-xl-2:nth-child(3),
.destino > .col-xl-2:nth-child(4) {
  flex: 0 0 20% !important;
  max-width: 20% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.destino > .col-xl-1:nth-child(5) {
  flex: 0 0 10% !important;
  max-width: 10% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

/* === HIDE DUPLICATE AIRPORT DROPDOWNS === */
.book-select .nice-select.airport-select {
  display: none !important;
}

/* === REAL SELECT2 FULL WIDTH === */
.book-select > span.select2-container:first-of-type {
  width: 100% !important;
}

/* === FIELD HEIGHTS === */
.book-select .select2-selection--single {
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
}
.book-select .select2-selection__rendered {
  padding-left: 10px !important;
  padding-right: 40px !important;
  line-height: 50px !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.book-select .select2-selection__arrow {
  height: 50px !important;
}

/* === DATE / TIME INPUTS === */
.destino .form--control.date,
.destino input[type="time"] {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* === ADD LEG LABEL === */
.destino > .col-xl-1:nth-child(5) label {
  white-space: nowrap !important;
  font-size: 12px !important;
  text-align: center !important;
  width: 100% !important;
}

/* === HIDE STRAY RETURN DATE ICON === */
.book-form > .col-xl-12.col-lg-12.col-md-12.col-sm-12.form-group {
  display: none !important;
}

/*  /////////////////////////////////////



/* Hide duplicate second select2 container in airport fields */
 .book-select > span.select2-container:not(:first-of-type) {
     display: none !important;
 }

/* Add Leg label — fix negative margin */
.add-leg-label {
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    width: auto !important;
}

/* Add Leg column — stack label ABOVE button */
.destino > .col-xl-1:nth-child(5) {
    flex: 0 0 10% !important;
    max-width: 10% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
}
.destino > .col-xl-1:nth-child(5) label {
    order: 0 !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    text-align: center !important;
    width: auto !important;
}
.destino > .col-xl-1:nth-child(5) .btn--base.add-destino {
    order: 1 !important;
}


/* /////////////////////////////////////////////////////////////////////////

/* === INLINE AIRPORT SEARCH: hide select2 when ias-input is present === */
.book-select:has(.ias-input) > span.select2-container,
.book-select:has(.ias-input) > span.select2 {
  display: none !important;
}

/* === IAS INPUT STYLING === */
.book-select .ias-input {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 50px !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-family: Poppins, sans-serif !important;
  font-size: 13px !important;
  padding: 8px 44px 8px 42px !important;
  outline: none !important;
}

.book-select .ias-input:focus {
  border-color: #00aaff !important;
  box-shadow: 0 0 0 2px rgba(0,170,255,0.25) !important;
}

.book-select .ias-input::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

/* ////////////////////////////////////////////////////////////////////////////////
/* ============================================
   ADDED LEG ROW(S) ALIGNMENT
   Targets .destino:nth-child(2+) inside .destinos-wrapper
   ============================================ */

/* ============================================
   ADDED LEG ROW(S) ALIGNMENT
   ============================================ */

/* "To" — spans under From + To = 50% */
.destinos-wrapper .destino:nth-child(n+2) > div:nth-child(1) {
  flex: 0 0 50% !important;
  max-width: 50% !important;
}

/* Date — 20% (aligns exactly under row 1 Date) */
.destinos-wrapper .destino:nth-child(n+2) > div:nth-child(2) {
  flex: 0 0 20% !important;
  max-width: 20% !important;
}

/* Time — 20% (aligns exactly under row 1 Departure Time) */
.destinos-wrapper .destino:nth-child(n+2) > div:nth-child(3) {
  flex: 0 0 20% !important;
  max-width: 20% !important;
}

/* Remove — 10% (aligns exactly under Add leg) */
.destinos-wrapper .destino:nth-child(n+2) > div:nth-child(4) {
  flex: 0 0 10% !important;
  max-width: 10% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Remove label above button */
.destinos-wrapper .destino:nth-child(n+2) > div:nth-child(4) .add-leg-label {
  order: 0 !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  text-align: center !important;
}

.destinos-wrapper .destino:nth-child(n+2) > div:nth-child(4) .remove-destino {
  order: 1 !important;
}

/* /////////////////////////////////////////////////////////

/* ============================================
   MAP TRIGGER PIN — center on ias-input field
   ias-input: top=34px, height=50px → center=59px
   trigger height=32px → top should be 59-(32/2)=43px, no translateY
   ============================================ */
.book-select:has(.ias-input) .map-trigger {
  top: 43px !important;
  transform: none !important;
}

/* On hover, keep it in place (only scale, no translateY) */
.book-select:has(.ias-input) .map-trigger:hover {
  transform: scale(1.1) !important;
}

/* ============================================
   TIME INPUT — white clock icon (matches style.css
   which already inverts the date calendar icon)
   ============================================ */
input[type="time"].form--control::-webkit-calendar-picker-indicator,
input.form--control.time::-webkit-calendar-picker-indicator {
  filter: invert(1) !important;
  cursor: pointer;
  opacity: 0.85;
}

/* ============================================
   DATE & TIME — fix text overlapping left icon
   book-form-icon is at left:25px, ~18px wide → ends ~43px
   Increase padding-left so text starts clear of icon
   ============================================ */
.book-form input[type="date"].form--control,
.book-form input.form--control.date {
  padding-left: 50px !important;
}

.book-form input[type="time"].form--control,
.book-form input.form--control.time {
  padding-left: 50px !important;
}

/* === CENTER FLIGHT TYPE NICE-SELECT === */
.book-form .book-select .nice-select {
  float: none !important;
  margin: 0 auto !important;
}

/* =============================================
   MOBILE RESPONSIVE - Booking Form
   Fixes for xs screens (max 575px)
   ============================================= */

@media (max-width: 575.98px) {

  /* ====================================================
     SMALL MOBILE OVERRIDE - All fields full width
     Replaces old side-by-side layout from previous CSS
  ==================================================== */

  /* Destino row: wrap */
  .destino.row {
    flex-wrap: wrap !important;
    flex-direction: column !important;
  }

  /* ALL destino children: full width */
  .destino > .form-group,
  .destino > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Return Date wrapper: full width */
  .return-date-wrapper > .row > .form-group:nth-child(1),
  .return-date-wrapper > .row > .form-group:nth-child(2),
  .return-date-wrapper [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Add leg button */
  .destino > .form-group:nth-child(5) {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE FIX - Booking Form v6
   - All fields full width
   - Correct visual order: Passengers, Flight Type,
     From, To, Date, Departure Time, Add Leg,
     (multi-city rows), Return Date, Return Time
============================================ */

@media (max-width: 768px) {

  /* ===================================================
     TOP ROW: Flight Type + Passengers
     HTML order: [0]=Flight Type, [1]=Passengers
     Visual order wanted: Passengers first, then Flight Type
  =================================================== */
  .book-form > .row.justify-content-center {
    flex-wrap: wrap !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Passengers (child 2, index 1) => order 1 (first) */
  .book-form > .row.justify-content-center > div:nth-child(2) {
    order: 1 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  /* Flight Type (child 1, index 0) => order 2 (second) */
  .book-form > .row.justify-content-center > div:nth-child(1) {
    order: 2 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }

  /* ===================================================
     DESTINO ROW: From, To, Date, Departure Time, Add Leg
     All full width, stacked
  =================================================== */
  .destino.row {
    flex-wrap: wrap !important;
    flex-direction: column !important;
  }

  /* From - full width */
  .destino > .col-xl-3:nth-child(1) {
    order: 1 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  /* To - full width */
  .destino > .col-xl-3:nth-child(2) {
    order: 2 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  /* Date - full width */
  .destino > .col-xl-2:nth-child(3) {
    order: 3 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  /* Departure Time - full width */
  .destino > .col-xl-2:nth-child(4) {
    order: 4 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  /* Add Leg - full width centered */
  .destino > .col-xl-1:nth-child(5) {
    order: 5 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
  }

  /* ===================================================
     RETURN DATE WRAPPER
     Force both Return Date and Return Time to full width
  =================================================== */
  .return-date-wrapper {
    width: 100% !important;
  }
  .return-date-wrapper .row,
  .return-date-wrapper .destino,
  .return-date-wrapper [class*="row"] {
    flex-wrap: wrap !important;
    flex-direction: column !important;
    display: flex !important;
  }
  /* Target any col inside return-date-wrapper regardless of size */
  .return-date-wrapper .col-xl-4,
  .return-date-wrapper .col-xl-3,
  .return-date-wrapper .col-xl-2,
  .return-date-wrapper .col-lg-4,
  .return-date-wrapper .col-lg-3,
  .return-date-wrapper .col-md-6,
  .return-date-wrapper .col-sm-12,
  .return-date-wrapper [class*="col-"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  /* Return Date first, Return Time second */
  .return-date-wrapper [class*="col-"]:first-child {
    order: 1 !important;
  }
  .return-date-wrapper [class*="col-"]:last-child {
    order: 2 !important;
  }

  /* ===================================================
     ALL DATE/TIME INPUTS - always full width
  =================================================== */
  .destino .form--control.date,
  .destino input[type="time"],
  .return-date-wrapper .form--control.date,
  .return-date-wrapper input[type="time"],
  .return-date-wrapper input[type="date"],
  .book-form input[type="date"].form--control,
  .book-form input[type="time"].form--control,
  .book-form input.form--control {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* ===================================================
     /* ===================================================
     ADDED LEG ROWS
     Order: [Next Stop + Remove side-by-side], Date, Time
     HTML child order: [0]=Next Stop [1]=Date [2]=Time [3]=Remove
  =================================================== */

  /* Added leg row: use flex-row so Next Stop + Remove sit side-by-side */
  .destinos-wrapper .destino:nth-child(n+2) {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  /* Next Stop [child 0] order 1, 72% wide */
  .destinos-wrapper .destino:nth-child(n+2) > div:nth-child(1) {
    order: 1 !important;
    flex: 1 1 72% !important;
    max-width: 72% !important;
    padding-left: 8px !important;
    padding-right: 4px !important;
    margin-bottom: 12px !important;
  }

  /* Remove button [child 3] order 2, 24% wide - sits beside Next Stop */
  .destinos-wrapper .destino:nth-child(n+2) > div:nth-child(4) {
    order: 2 !important;
    flex: 1 1 24% !important;
    max-width: 24% !important;
    padding-left: 4px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Date [child 1] order 3, full width */
  .destinos-wrapper .destino:nth-child(n+2) > div:nth-child(2) {
    order: 3 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Time [child 2] order 4, full width */
  .destinos-wrapper .destino:nth-child(n+2) > div:nth-child(3) {
    order: 4 !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Override Bootstrap order-* classes inside added leg on mobile */
  .destinos-wrapper .destino:nth-child(n+2) [class*="order-"] {
    order: unset !important;
  }

SELECT2 / IAS INPUT - full width
  =================================================== */
  .book-select > span.select2-container:first-of-type,
  .select2-container {
    width: 100% !important;
  }
  .book-select .ias-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* MAP TRIGGER PIN */
  .book-select:has(.ias-input) .map-trigger {
    top: 43px !important;
    transform: none !important;
  }

  /* ADD/REMOVE LEG BUTTONS */
  .add-destino,
  .remove-destino {
    width: auto !important;
    margin-top: 0 !important;
  }
  .add-leg-label {
    margin-right: 8px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    font-size: 13px !important;
  }

  /* TIME INPUT - prevent iOS zoom */
  input[type="time"] {
    font-size: 16px !important;
  }
}


/* =====================================================
   MOBILE: WhatsApp button spacing from language switcher
   ===================================================== */
@media (max-width: 768px) {
  .whatappBTN_flotante {
    bottom: 70px !important;
    right: 15px !important;
  }
}








/* Date input - align text left to show full date */
input[type="date"] { text-align: left !important; padding-left: 8px !important; }


/* Date input - align left to show full date */
.book-form input[type="date"].form--control,
.book-form input.form--control.date { padding-left: 0 !important; text-align: center !important; }

/* HIDE ICONS */
.book-form-icon { display: none !important; }