/* =========================================================
   VLK Airports Dropdown (VistaJet-like)
   Works with markup:
   input[data-vlk-airport-input="from|to"] inside .vlk-field
   ========================================================= */

/* IMPORTANT: allow dropdown to escape the pill */
.vlk-card,
.vlk-form,
.vlk-field{
  overflow: visible !important;
}

/* Field must be positioning context */
.vlk-field{
  position: relative;
}

/* Dropdown box */
.vlk-airports-dd{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(560px, 92vw);
  max-width: 100%;
  max-height: 320px;

  display: none;
  opacity: 0;
  pointer-events: none;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);

  overflow: auto;
  z-index: 9999999 !important; /* IMPORTANT */
}

/* Open state */
.vlk-airports-dd.is-open{
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Option button */
.vlk-airports-opt{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.vlk-airports-opt:hover{
  background: rgba(0,0,0,.04);
}

.vlk-airports-opt.is-active{
  background: rgba(0,0,0,.06);
}

/* Flag */
.vlk-airports-flag{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0,0,0,.04);
  flex: 0 0 28px;
  font-size: 16px;
}

/* Text */
.vlk-airports-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vlk-airports-main{
  font-size: 14px;
  line-height: 1.25;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vlk-airports-sub{
  font-size: 12px;
  line-height: 1.2;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: make it full width */
@media (max-width: 640px){
  .vlk-airports-dd{
    width: 100%;
    max-height: 280px;
  }
}

/* =========================================================
   LAYERING FIX (BeTheme / wrappers / stacking contexts)
   Goal: dropdown always above the next section
   ========================================================= */

/* Ensure our block creates its own stacking layer */
.vlk-card{
  position: relative;
  z-index: 99990;
}
.vlk-form{
  position: relative;
  z-index: 99990;
}

/* BeTheme wrappers often clip overlays */
.vlk-card .section_wrapper,
.vlk-card .section,
.vlk-card .wrap,
.vlk-card .mcb-wrap,
.vlk-card .mcb-wrap-inner,
.vlk-card .column,
.vlk-card .column_attr{
  overflow: visible !important;
}

/* (Optional, safe) if some parent uses transform/filter and breaks z-index,
   you can uncomment next lines. Keep commented by default. */
/*
.vlk-card{
  transform: translateZ(0);
}
*/


/* =========================================
   VLK Flight Form — BeBuilder fix
   Allows airport dropdown to overflow sections
========================================= */

/* Section stacking context */
.vlk-flight-form-section{
  position: relative;
  z-index: 99990;
  overflow: visible !important;
  isolation: isolate; /* important for z-index correctness */
}

/* All BeBuilder inner wrappers */
.vlk-flight-form-section .section_wrapper,
.vlk-flight-form-section .wrap,
.vlk-flight-form-section .mcb-wrap,
.vlk-flight-form-section .mcb-wrap-inner,
.vlk-flight-form-section .column,
.vlk-flight-form-section .column_attr{
  overflow: visible !important;
}

/* Your dropdown must always be on top */
.vlk-flight-form-section .vlk-airports-dd{
  z-index: 9999999 !important;
}

/* ===== Extra UX (hint + recent header) ===== */
.vlk-airports-head{
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.vlk-airports-hint{
  padding: 14px;
  font-size: 13px;
  color: rgba(0,0,0,.58);
}
