/* ════════════════════════════════════════════
   AUTOCOMPLETE DROPDOWN
   ════════════════════════════════════════════ */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 250;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(13, 45, 74, 0.18);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  min-width: 260px;
}

.ac-loading {
  padding: 16px;
  text-align: center;
  color: var(--ink-500);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ac-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(59, 110, 240, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ac-dropdown.show {
  display: flex;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.ac-item:hover,
.ac-item.is-focused {
  background: rgba(59, 110, 240, 0.08);
}

.ac-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(59, 110, 240, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.ac-airport .ac-icon {
  background: transparent;
  color: var(--ink-300);
  margin-left: 14px;
}

.ac-text {
  flex: 1;
  min-width: 0;
}

.ac-city {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}

.ac-country {
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
}

.ac-airport .ac-city {
  font-size: 12px;
  font-weight: 600;
}

.ac-iata {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.12em;
  background: rgba(13, 45, 74, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ac-empty {
  padding: 20px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
}

/* ════════════════════════════════════════════
   PASSENGER POPOVER
   ════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   CUSTOM CALENDAR POPOVER
   ════════════════════════════════════════════ */
.cal-popover {
  position: absolute;
  /* იხსნება დაბლა */
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(13, 45, 74, 0.22);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 250;
}

.cal-popover.show { display: flex; }

.cal-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
}

.cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--ink-700);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.cal-nav:hover {
  background: rgba(59, 110, 240, 0.08);
  color: var(--accent);
}

.cal-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cal-month-label {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
  letter-spacing: 0.02em;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-weekday {
  text-align: center;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  padding: 4px 0;
  letter-spacing: 0.02em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-900);
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.cal-day:hover:not(:disabled):not(.is-empty) {
  background: rgba(59, 110, 240, 0.10);
  color: var(--accent);
}

.cal-day.is-empty {
  cursor: default;
  pointer-events: none;
}

.cal-day.is-past {
  color: var(--ink-300);
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day.is-today {
  color: var(--accent);
  font-weight: 800;
}

.cal-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day.is-selected,
.cal-day.is-range-end {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.cal-day.is-selected.is-today::after,
.cal-day.is-today.is-range-start::after,
.cal-day.is-today.is-range-end::after {
  background: #ffffff !important;
}

.cal-day.is-in-range,
.cal-day.is-hover-range {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border-radius: 0;
}

.cal-day.is-hover-range {
  background: rgba(34, 211, 238, 0.14);
}

.cal-day.is-range-start {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cal-day.is-range-end {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* cal-foot, cal-hint, cal-close წავიდა — UI clean */

/* Position right calendar to the right side */
#calPopover.from-ret {
  left: auto;
  right: 0;
}

/* ════════════════════════════════════════════
   PASSENGER POPOVER
   ════════════════════════════════════════════ */
.pax-popover {
  position: absolute;
  /* იხსნება დაბლა */
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  z-index: 250;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(13, 45, 74, 0.22);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.pax-popover.show { display: flex; }

.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
}

.pax-info {
  display: flex;
  flex-direction: column;
}

.pax-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.pax-sub {
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
}

.pax-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pax-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cyan-500);
  background: #fff;
  color: var(--color-cyan-700);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.pax-mini:hover:not(:disabled) {
  background: var(--color-cyan-500);
  color: #fff;
  transform: scale(1.08);
}

.pax-mini:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--ink-300);
  color: var(--ink-300);
}

.pax-count {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  min-width: 20px;
  text-align: center;
}

.pax-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 0;
}

.pax-class-title {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}

.pax-class-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.class-chip {
  position: relative;
  cursor: pointer;
}

.class-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.class-chip span {
  display: block;
  text-align: center;
  padding: 7px 5px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-700);
  background: #f5f8fb;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: all 0.18s;
}

.class-chip:hover span {
  background: rgba(59, 110, 240, 0.08);
  color: var(--accent);
}

.class-chip input:checked + span {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

.pax-done {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--color-cyan-400), var(--color-cyan-600));
  color: var(--color-sky-900);
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pax-done:hover {
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}

.pax-done i { font-size: 10px; }

