/* =====================================================================
   BOOKING SHELL 2026 — rezervasyon sayfası kabuğu
   booking-system.css'in ÜSTÜNE biner. Kural: !important YOK.
   Seçiciler bilinçli olarak iki sınıf derinliğinde (.bk-main .x) tutuldu;
   booking-system.css tek sınıf kullandığı için bunlar doğal olarak kazanır.
   ===================================================================== */

.bk-main {
  --bs-ink: #0c0e12;
  --bs-ink-2: #5b6270;
  --bs-ink-3: #8d94a1;
  --bs-line: #e7e9ee;
  --bs-line-2: #f0f2f5;
  --bs-surface: #fff;
  --bs-tint: #f6f7f9;
}

/* ------------------------- SOL SÜTUN ------------------------- */
.bk-main .bk-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
/* booking-system.css yatay düzen için "align-self: start" veriyor; .bk-side
   kolon yönlü flex olduğundan bu, kartı içeriğe göre daraltıp kenar
   çubuğundaki diğer kartlardan ince gösteriyordu. Tam genişliğe çekiyoruz. */
.bk-main .summary-panel { position: static; top: auto; align-self: stretch; width: 100%; }

/* --------------------- DİKEY NUMARALI RAY --------------------- */
.bk-main .steps-rail {
  background: transparent;
  border-bottom: 0;
  padding: 0;
}
.bk-main .steps-rail__inner {
  counter-reset: stepc;
  display: grid;
  gap: 0;
  max-width: none;
  margin: 0;
  position: relative;
  padding: 4px 0;
}

/* Dikey ilerleme çizgisi — dairelerin ortasından geçer */
.bk-main .steps-rail__line {
  left: 16px;
  right: auto;
  top: 22px;
  bottom: 22px;
  height: auto;
  width: 2px;
  transform: none;
  background: var(--bs-line);
  border-radius: 2px;
}
.bk-main .steps-rail__line::after {
  width: 100%;
  height: var(--rail-fill, 0%);
  background: var(--bs-ink);
  border-radius: 2px;
  transition: height .45s cubic-bezier(.2, .7, .3, 1);
}

.bk-main .step-node {
  counter-increment: stepc;
  flex-direction: row;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  min-width: 0;
}

.bk-main .step-node__dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bs-surface);
  border: 2px solid var(--bs-line);
  color: var(--bs-ink-3);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
/* İkon yerine adım numarası */
.bk-main .step-node__dot i { display: none; }
.bk-main .step-node__dot::before { content: counter(stepc); }

.bk-main .step-node.is-active .step-node__dot {
  background: var(--bs-ink);
  border-color: var(--bs-ink);
  color: #fff;
}
.bk-main .step-node.is-done .step-node__dot {
  background: var(--bs-surface);
  border-color: var(--bs-ink);
  color: var(--bs-ink);
}
.bk-main .step-node.is-done .step-node__dot::before { content: '\2713'; font-size: 14px; }

.bk-main .step-node__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: var(--bs-ink-3);
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.bk-main .step-node.is-active .step-node__label { color: var(--bs-ink); }
.bk-main .step-node.is-done .step-node__label { color: var(--bs-ink-2); }

/* ------------------------ ÖZET PANELİ ------------------------ */
.bk-main .summary-panel__inner {
  border: 1px solid var(--bs-line);
  border-radius: 16px;
  box-shadow: none;
  background: var(--bs-surface);
}
.bk-main .summary-panel__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bs-line-2);
}
.bk-main .summary-panel__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bs-ink-3);
}
.bk-main .summary-panel__title i { display: none; }
.bk-main .summary-block {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bs-line-2);
}
.bk-main .summary-block__label {
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--bs-ink-3);
  margin-bottom: 4px;
}
.bk-main .summary-block__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-ink);
}
.bk-main .summary-edit-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--bs-ink-2);
  text-transform: none;
  letter-spacing: 0;
}
.bk-main .summary-edit-btn:hover { color: var(--bs-ink); }

/* Doğrulama adımı: kişisel bilgi kartı henüz açılmadıysa KABİS kartı
   yarım kolonda asılı kalmasın, tam genişliği kullansın. */
.bk-main .stage-step[data-stage="4"] .grid-2:has(> #customerInfoCard[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

/* -------------------------- KARTLAR -------------------------- */
.bk-main .card {
  border: 1px solid var(--bs-line);
  border-radius: 16px;
  box-shadow: none;
}
.bk-main .card__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bs-ink);
}
.bk-main .card__title i { display: none; }
.bk-main .card__desc {
  font-size: 14px;
  color: var(--bs-ink-2);
  line-height: 1.5;
}

/* Bilgi kutusu: renkli blok yerine sol çizgili sade not */
.bk-main .flow-tip {
  background: var(--bs-tint);
  border: 0;
  border-left: 2px solid var(--bs-ink);
  border-radius: 0 10px 10px 0;
}
.bk-main .flow-tip__badge {
  background: none;
  color: var(--bs-ink-3);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0;
}
.bk-main .flow-tip__list { font-size: 13px; color: var(--bs-ink-2); }

/* --------------------------- ÇİPLER --------------------------- */
.bk-main .chip {
  border: 1px solid var(--bs-line);
  border-radius: 12px;
  background: var(--bs-surface);
  color: var(--bs-ink-2);
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.bk-main .chip:hover { border-color: var(--bs-ink-3); }
.bk-main .chip.is-active {
  background: var(--bs-ink);
  border-color: var(--bs-ink);
  color: #fff;
}
.bk-main .chip.is-active .text-muted,
.bk-main .chip.is-active .text-brand { color: rgba(255, 255, 255, .75); }

/* Büyük seçim kartları (vale / havalimanı) dolu siyahta fazla baskın kalıyor;
   seçili hâli çerçeve + hafif zeminle belirtilir. */
.bk-main .chip.chip-tall.is-active {
  background: var(--bs-tint);
  border-color: var(--bs-ink);
  box-shadow: 0 0 0 1px var(--bs-ink) inset;
  color: var(--bs-ink);
}
.bk-main .chip.chip-tall.is-active .text-muted { color: var(--bs-ink-2); }
.bk-main .chip.chip-tall.is-active .text-brand { color: var(--bs-ink); }
/* Aktif çip artık açık zeminli; beyaz ikon görünmez olurdu */
.bk-main .chip.chip-tall.is-active i { color: var(--bs-ink); }

/* -------------------------- BUTONLAR -------------------------- */
.bk-main .btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.bk-main .btn--primary {
  background: var(--bs-ink);
  border-color: var(--bs-ink);
  color: #fff;
}
.bk-main .btn--primary:hover:not(:disabled) {
  background: #22262e;
  border-color: #22262e;
}
.bk-main .btn--ghost,
.bk-main .btn--secondary {
  background: var(--bs-surface);
  border: 1px solid var(--bs-line);
  color: var(--bs-ink);
}
.bk-main .btn--ghost:hover:not(:disabled),
.bk-main .btn--secondary:hover:not(:disabled) { border-color: var(--bs-ink); }

/* ------------------------- FORM ALANLARI ------------------------- */
/* Yüzen etiket mekaniği booking-system.css'te; burada sadece görünüm. */
.bk-main .field__input,
.bk-main .field__select {
  border: 1px solid var(--bs-line);
  border-radius: 12px;
  color: var(--bs-ink);
  font-weight: 600;
}
.bk-main .field__input:focus,
.bk-main .field__select:focus {
  border-color: var(--bs-ink);
  box-shadow: 0 0 0 3px rgba(12, 14, 18, .08);
}
.bk-main .field__hint { font-size: 11.5px; color: var(--bs-ink-3); }

/* --------------------------- MOBİL --------------------------- */
@media (max-width: 860px) {
  /* Sol sütun tek sıraya düşer; ray yatay ve kompakt olur */
  .bk-main .bk-side {
    position: static;
    gap: 0;
  }
  .bk-main .steps-rail__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 0 8px;
  }
  .bk-main .steps-rail__line {
    left: 18px;
    right: 18px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .bk-main .steps-rail__line::after {
    width: var(--rail-fill, 0%);
    height: 100%;
    transition: width .45s cubic-bezier(.2, .7, .3, 1);
  }
  .bk-main .step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    flex: 1 1 0;
    min-width: 0;
  }
  .bk-main .step-node__dot { width: 34px; height: 34px; font-size: 13px; }
  /* Mobilde yalnızca aktif adımın etiketi okunur kalsın */
  .bk-main .step-node__label {
    display: block;
    font-size: 10px;
    text-align: center;
    color: transparent;
    height: 0;
    overflow: hidden;
  }
  .bk-main .step-node.is-active .step-node__label {
    color: var(--bs-ink);
    height: auto;
  }
  .bk-main .card__title { font-size: 19px; }
}

/* ============================================================
   ARAÇ ARAMA ANİMASYONU — "Müsait Araçları Göster" sonrası
   ============================================================ */
.vsearch {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: vsFade .25s ease both;
}
.vsearch[hidden] { display: none; }
.vsearch.is-closing { animation: vsFadeOut .3s ease both; }

@keyframes vsFade    { from { opacity: 0 } to { opacity: 1 } }
@keyframes vsFadeOut { from { opacity: 1 } to { opacity: 0 } }

.vsearch__card {
  position: relative;
  width: min(400px, 100%);
  padding: 30px 26px 24px;
  text-align: center;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(18, 161, 80, .30), transparent 62%),
    linear-gradient(180deg, #1b2723 0%, #0e1512 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: vsPop .4s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes vsPop {
  from { opacity: 0; transform: translateY(16px) scale(.95) }
  to   { opacity: 1; transform: none }
}

/* Kart içinde dolaşan yumuşak ışık — "canlı" hissi verir */
.vsearch__card::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(18, 161, 80, .18), transparent 70%);
  animation: vsDrift 3.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes vsDrift {
  from { transform: translate(-14%, 0) }
  to   { transform: translate(14%, 12%) }
}

/* --- Dairesel ilerleme + yüzde --- */
.vsearch__dial {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 2px auto 20px;
}
.vsearch__gauge { width: 100%; height: 100%; transform: rotate(-90deg) }
.vsearch__gauge circle {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}
.vsearch__gauge-bg { stroke: rgba(255, 255, 255, .10) }
.vsearch__gauge-fg {
  stroke: var(--bk2-green, #12a150);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  filter: drop-shadow(0 0 6px rgba(18, 161, 80, .55));
  transition: stroke-dashoffset .18s linear;
}
.vsearch__dial-in {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
}
.vsearch__dial-in i {
  font-size: 26px;
  color: var(--bk2-green, #12a150);
  animation: vsCar 1.5s ease-in-out infinite;
}
@keyframes vsCar {
  0%, 100% { transform: translateX(-3px) }
  50%      { transform: translateX(3px) }
}
.vsearch__pct {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.vsearch__pct small { font-size: 13px; font-weight: 700; opacity: .6 }

.vsearch__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: #fff;
}
.vsearch__lead {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .60);
}

/* --- Aşama listesi --- */
.vsearch__steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: start;
  display: grid;
  gap: 2px;
}
.vsearch__steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .38);
  transition: color .25s ease, background .25s ease;
}
.vsearch__steps li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-inline: 3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
  box-sizing: border-box;
}
.vsearch__steps li.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.vsearch__steps li.is-active::before {
  border-color: var(--bk2-green, #12a150);
  border-top-color: transparent;
  animation: vsSpin .7s linear infinite;
}
@keyframes vsSpin { to { transform: rotate(360deg) } }
.vsearch__steps li.is-done { color: rgba(255, 255, 255, .72) }
.vsearch__steps li.is-done::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 8px;
  display: grid;
  place-content: center;
  color: #fff;
  background: var(--bk2-green, #12a150);
  border-color: var(--bk2-green, #12a150);
  animation: vsTick .3s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes vsTick {
  from { transform: scale(.4); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}

.vsearch__bar {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .10);
  overflow: hidden;
}
.vsearch__bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--bk2-green, #12a150), #3ad07f);
  transition: width .18s linear;
}
/* Çubuk üzerinde kayan parlaklık */
.vsearch__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-100%);
  animation: vsShine 1.3s ease-in-out infinite;
}
@keyframes vsShine { to { transform: translateX(100%) } }

@media (max-width: 420px) {
  .vsearch { padding: 16px }
  .vsearch__card { padding: 26px 18px 20px }
  .vsearch__dial { width: 112px; height: 112px }
  .vsearch__pct { font-size: 21px }
}

@media (prefers-reduced-motion: reduce) {
  .vsearch__card::after,
  .vsearch__dial-in i,
  .vsearch__bar::after,
  .vsearch__steps li.is-active::before { animation: none }
}

/* ============================================================
   Adım 1 konum butonu — kabuk paletine uydur
   ============================================================ */
.bk-main .field__action-btn {
  background: var(--bs-ink, #0f172a);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
}
.bk-main .field__action-btn:hover {
  background: var(--bs-accent, #dc2626);
  box-shadow: 0 6px 16px rgba(220, 38, 38, .28);
}
.bk-main .field__action-btn.is-success { background: #16a34a }
.bk-main .field__action-btn.is-loading { background: #94a3b8 }

/* ============================================================
   MOBİL: adım navigasyonu yardım/WhatsApp butonlarının altında kalmasın
   ============================================================ */
@media (max-width: 860px) {
  .bk-main #stageNav {
    position: sticky;
    bottom: 0;
    z-index: 950;
    margin: 24px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bs-surface, #fff);
    border-top: 1px solid var(--bs-line, #e5e7eb);
    box-shadow: 0 -10px 26px rgba(15, 23, 42, .10);
  }
  .bk-main #stageNav .btn { flex: 1 1 0; min-width: 0; justify-content: center; }
  .bk-main #stageNav .btn--lg { padding-inline: 14px; font-size: 14.5px; }

  /* Sabit yardım butonlarını sticky navigasyonun üstüne taşı */
  .wa-help { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
  .faq-bot { bottom: calc(156px + env(safe-area-inset-bottom, 0px)) !important; }
}
