/* ════════════════════════════════════════════
   RIGHT PANEL
   ════════════════════════════════════════════ */
.right-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-right: 8px;
}

.search-heading {
  font-family: var(--font-d);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.search-heading span {
  color: var(--accent);
}

/* ─── Tabs (inside dark glass card) ─── */
.trip-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
  justify-content: center;
}

.trip-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trip-tab i {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.trip-tab.active {
  background: #ffffff;
  color: var(--ink-900);
  border-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.trip-tab.active i {
  color: #f97316; /* ნარინჯისფერი arrow */
}

.trip-tab:hover:not(.active) {
  background: rgba(34, 211, 238, 0.14);
  color: var(--white);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.trip-tab:hover:not(.active) i { color: var(--color-cyan-400); }

/* ════════════════════════════════════════════
   COMPACT RECTANGLE SEARCH BOX
   ════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   SEARCH BOX — Dark Blue Glassmorphism
   ════════════════════════════════════════════ */
.search-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(30, 64, 175, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow:
    0 20px 60px rgba(30, 58, 138, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.25s;
  position: relative;
}

.search-box:focus-within {
  box-shadow:
    0 28px 70px rgba(30, 58, 138, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* დიდი ხილული heading აღარაა — tabs თვითონაც საკმარისად ცხადია */
.search-heading { display: none; }

.sb-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  position: relative;
}

/* Row 1: cities */
.sb-cities {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
}

/* Swap circle between From/To */
.sb-cities .sb-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Row 2: two dates */
.sb-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
}

/* ─── Field ─── */
.sb-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  min-width: 0;
  cursor: text;
  min-height: 64px; /* ერთიანი სიმაღლე ყველა ველისთვის */
}

.sb-field:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sb-field:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sb-sm { cursor: pointer; }

/* Labels — field-ის გარეთ ზევით (ფოტოს მსგავსად) */
.sb-label {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 4px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  cursor: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-transform: none;
}

.sb-label i {
  font-size: 11px;
  color: #f97316; /* ნარინჯისფერი icon */
}

/* დისებლედი state — ნაცრისფერი icon */
.sb-field.is-disabled .sb-label,
.sb-date-btn:disabled .sb-label {
  color: rgba(255, 255, 255, 0.45);
}
.sb-field.is-disabled .sb-label i,
.sb-date-btn:disabled .sb-label i {
  color: rgba(255, 255, 255, 0.35);
}

.sb-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.sb-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  outline: none;
  padding: 0;
  min-width: 0;
  text-overflow: ellipsis;
}

.sb-input::placeholder {
  color: rgba(219, 234, 254, 0.72); /* WCAG AA contrast */
  font-weight: 500;
  font-size: 13px;
}

.sb-iata {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-height: 14px;
}

.sb-iata.has-value {
  color: var(--color-cyan-400);
  background: rgba(34, 211, 238, 0.15);
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 800;
}

/* ─── Swap circle ─── */
.sb-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan-400), var(--color-cyan-600));
  border: 2px solid var(--color-sky-800);
  color: var(--color-sky-900);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform var(--t), box-shadow var(--t-fast);
  box-shadow: var(--shadow-cyan);
}

.sb-swap:hover {
  transform: translate(-50%, -50%) rotate(180deg);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.55);
}

/* ─── Date ─── */
.sb-date {
  border: none;
  background: transparent;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  outline: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.sb-date::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
  filter: invert(15%) sepia(40%) saturate(900%) hue-rotate(195deg);
  transition: opacity 0.2s;
}

.sb-date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.sb-field.is-disabled { opacity: 0.4; pointer-events: none; }

/* ─── Pax trigger ─── */
.sb-pax-wrap { padding: 10px 14px; }

.sb-pax-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
}

.sb-pax-trigger i {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s;
}

.sb-pax-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* ─── Search button (cyan → sky blue gradient) ─── */
.sb-go {
  border: none;
  background: linear-gradient(135deg, #22D3EE 0%, #0891B2 50%, #2563EB 100%);
  color: var(--white);
  border-radius: 14px;
  height: 48px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 10px 30px rgba(8, 145, 178, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--t-fast), box-shadow var(--t);
  width: 100%;
  margin-top: -4px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.sb-go:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 38px rgba(34, 211, 238, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sb-go i { font-size: 14px; }
.sb-go span { font-size: 13px; }

/* Loading state */
.sb-go.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.sb-go.is-loading i { display: none; }
.sb-go.is-loading span { visibility: hidden; }

.sb-go.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

.sb-go { position: relative; }

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

/* ─── Field error state (shake + red border) ─── */
.sb-field.has-error,
.sb-date-btn.has-error {
  border-color: var(--rose) !important;
  background: rgba(225, 29, 72, 0.12) !important;
  animation: shake 0.45s var(--ease-smooth);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ─── Popover entrance animations ─── */
.cal-popover.show,
.pax-popover.show,
.ac-dropdown.show {
  animation: popIn 0.22s var(--ease-spring);
  transform-origin: top center;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* popIn (top-down) ნაგულისხმევია */

/* ─── Date button (custom calendar trigger) ─── */
.sb-date-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  min-height: 52px; /* ერთიანი სიმაღლე — კომპაქტური */
}

/* chevron არ ვაჩვენებთ — სუფთა layout */
.sb-date-btn::after { display: none; }

.sb-date-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.sb-date-btn.is-open {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.sb-date-value {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-align: left;
}

.sb-date-value.is-placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.sb-date-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
}

.sb-date-btn:disabled:hover { background: rgba(255, 255, 255, 0.03); }

.sb-date-btn:disabled .sb-date-value {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.sb-date-btn:disabled .sb-label {
  color: rgba(255, 255, 255, 0.4);
}
.sb-date-btn:disabled .sb-label i {
  color: rgba(255, 255, 255, 0.3);
}

/* ─── Pax wrap full width ─── */
.sb-pax-wrap {
  padding: 8px 14px;
  min-height: 52px;
}

/* hidden old pill-bar (cleanup) */
.pill-bar {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 0;
  display: flex;
  align-items: stretch;
  height: 76px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: visible;
  transition: box-shadow 0.25s;
}

.pill-bar:focus-within {
  box-shadow: 0 18px 56px rgba(13, 45, 74, 0.13);
}

/* სეგმენტი */
.pill-seg {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  border-right: 1px solid var(--border-soft);
  cursor: text;
  transition: background 0.18s;
  min-width: 0;
}

.pill-seg:last-of-type {
  border-right: none;
}

.pill-seg:hover {
  background: rgba(59, 110, 240, 0.04);
}

.pill-seg.is-active {
  background: rgba(59, 110, 240, 0.06);
}

.pill-city { flex: 1.3; min-width: 0; }
.pill-dates { flex: 1.5; padding: 0; flex-direction: row; align-items: stretch; }
.pill-pax { flex: 1.2; cursor: pointer; }

/* Label */
.pill-label {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  cursor: inherit;
}

/* Input wrap + IATA-ის ბეჯი */
.pill-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.pill-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  outline: none;
  padding: 0;
  line-height: 1.15;
  min-width: 0;
  text-overflow: ellipsis;
}

.pill-input::placeholder {
  color: var(--ink-300);
  font-weight: 500;
}

.pill-iata {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.pill-iata.has-value {
  color: var(--accent);
  background: rgba(59, 110, 240, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ─── Swap circle, ემჯდება ბორდერზე ─── */
.pill-swap {
  position: absolute;
  left: calc(1.3 / (1.3 + 1.3 + 1.5 + 1.2) * 100% - 18px);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--ink-700);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.3s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(13, 45, 74, 0.08);
}

.pill-swap:hover {
  color: var(--accent);
  transform: translateY(-50%) rotate(180deg);
  box-shadow: 0 6px 18px rgba(59, 110, 240, 0.2);
}

/* ─── Dates ─── */
.pill-date-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  transition: background 0.18s;
  min-width: 0;
}

.pill-date-half:hover {
  background: rgba(59, 110, 240, 0.04);
}

.pill-date-divider {
  width: 1px;
  background: var(--border-soft);
  margin: 16px 0;
}

.pill-date {
  border: none;
  background: transparent;
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  outline: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  /* native date picker styling */
  appearance: none;
  -webkit-appearance: none;
}

.pill-date::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
  filter: invert(15%) sepia(40%) saturate(900%) hue-rotate(195deg);
  transition: opacity 0.2s;
}

.pill-date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.pill-date-half.is-disabled {
  opacity: 0.35;
}

.pill-date-half.is-disabled .pill-date {
  pointer-events: none;
}

/* ─── Passengers trigger ─── */
.pill-pax-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.pill-pax-summary {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}

/* ─── Search button (right end of pill) ─── */
.pill-go {
  border: none;
  background: linear-gradient(135deg, #4a8df0, #2553d8);
  color: #fff;
  padding: 0 28px;
  border-radius: 18px;
  margin: 6px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(59, 110, 240, 0.32);
  transition: transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}

.pill-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(59, 110, 240, 0.42);
}

.pill-go i {
  font-size: 14px;
}

