/* ============================================================
   BEGAN TUR — HERO-BOOKING.CSS
   Inline booking hero (rideandgoo style)
   ============================================================ */

/* ---- Section wrapper ---- */
.hb-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

/* ---- Inner container ---- */
.hb-wrap {
  padding-top: 36px;
  padding-bottom: 0;
}

/* ---- Progress indicator ---- */
.hb-progress-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.hb-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hb-dot-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
}
.hb-dot.hb-dot-active .hb-dot-num {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(249,115,22,.25);
}
.hb-dot-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
}
.hb-dot.hb-dot-active .hb-dot-lbl { color: rgba(255,255,255,.75); }
.hb-pline {
  width: 80px;
  height: 2px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
  margin-top: 16px;
}

/* ---- Main: form + harita ---- */
.hb-main {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

/* ============================
   SOL: Form paneli
   ============================ */
.hb-form-panel {
  flex: 0 0 40%;
  max-width: 420px;
}
.hb-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.hb-form-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.35;
}
.hb-form-title span { color: #f97316; }

/* ---- Field group ---- */
.hb-field-group {
  margin-bottom: 12px;
}
.hb-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.hb-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
}
.hb-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: #f97316;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .18s;
}
.hb-link-btn:hover { color: #ea6c0a; text-decoration: underline; }

.hb-header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Combobox ---- */
.hb-combo {
  position: relative;
}
.hb-combo-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
  cursor: text;
}
.hb-combo-wrap:focus-within,
.hb-combo-wrap.hb-focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
  background: #fff;
}
.hb-combo-wrap.hb-has-value {
  border-color: #f97316;
  background: #fff7ed;
}
.hb-combo-wrap.hb-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.hb-combo-icon {
  padding: 0 8px 0 13px;
  font-size: 15px;
  flex-shrink: 0;
  color: #94a3b8;
  line-height: 1;
}
.hb-combo-wrap.hb-has-value .hb-combo-icon { color: #f97316; }
.hb-combo-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  min-width: 0;
  height: 100%;
}
.hb-combo-input::placeholder { color: #94a3b8; font-size: 13px; }
.hb-combo-clear {
  padding: 0 12px;
  font-size: 13px;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.hb-combo-clear:hover { color: #ef4444; }
.hb-combo-clear.hidden { display: none; }

/* ---- Dropdown ---- */
.hb-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  z-index: 300;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.hb-dropdown::-webkit-scrollbar { width: 4px; }
.hb-dropdown::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.hb-dropdown.hidden { display: none; }

.hb-dd-section { padding: 6px 0; }
.hb-dd-section + .hb-dd-section { border-top: 1px solid #f1f5f9; }
.hb-dd-section.hidden { display: none; }

.hb-dd-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  color: #94a3b8;
  padding: 4px 14px 5px;
  text-transform: uppercase;
}
.hb-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .12s;
  border-radius: 0;
}
.hb-dd-item:hover,
.hb-dd-item.hb-dd-focused {
  background: #fff7ed;
  outline: none;
}
.hb-dd-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hb-dd-content { flex: 1; min-width: 0; }
.hb-dd-name {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-dd-addr {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-dd-loading {
  padding: 10px 14px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb-dd-empty {
  padding: 10px 14px;
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}
/* Places result text layout */
.hb-dd-text { flex: 1; min-width: 0; }
.hb-dd-main {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-dd-sub {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-dd-main mark {
  background: none;
  color: #f97316;
  font-weight: 700;
}

/* ---- Swap butonu ---- */
.hb-swap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 8px;
}
.hb-swap-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.hb-swap-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, transform .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hb-swap-btn:hover {
  border-color: #f97316;
  color: #f97316;
}
.hb-swap-btn.rotated { transform: rotate(180deg); }

/* ---- 2-column row ---- */
.hb-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---- Generic input/select ---- */
.hb-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 13px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: auto;
}
.hb-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
  background: #fff;
}
.hb-input.hb-error { border-color: #ef4444; }

/* ---- Gidiş-Dönüş toggle ---- */
.hb-rt-wrap { margin-bottom: 14px; }
.hb-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 13px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.hb-toggle-label:hover { border-color: #f97316; background: #fff7ed; }
.hb-toggle-label.hb-rt-on { border-color: #f97316; background: #fff7ed; }

.hb-toggle-sw { flex-shrink: 0; position: relative; }
.hb-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.hb-toggle-track {
  width: 40px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 11px;
  position: relative;
  transition: background .2s;
  cursor: pointer;
  display: block;
}
.hb-toggle-input:checked ~ .hb-toggle-track { background: #f97316; }
.hb-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .2s;
}
.hb-toggle-input:checked ~ .hb-toggle-track .hb-toggle-thumb { left: 21px; }

.hb-toggle-text { flex: 1; min-width: 0; }
.hb-toggle-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.hb-toggle-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.hb-rt-badge {
  background: #fff7ed;
  color: #f97316;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hb-rt-badge.hb-badge-discount {
  background: #10b981;
  color: #fff;
  border-color: #059669;
  font-weight: 600;
}

.hb-rt-fields {
  overflow: hidden;
  max-height: 200px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  transition: max-height .28s ease, opacity .28s ease, margin-top .28s ease, padding-top .28s ease;
  opacity: 1;
}
.hb-rt-fields.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top-color: transparent;
}

@keyframes hb-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile harita toggle ---- */
.hb-map-toggle-btn {
  display: none;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(249,115,22,.08);
  color: #f97316;
  border: 1.5px solid rgba(249,115,22,.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.hb-map-toggle-btn:hover { background: rgba(249,115,22,.15); }

/* ---- CTA butonu ---- */
.hb-cta {
  display: block;
  width: 100%;
  padding: 17px;
  background: #f97316;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  letter-spacing: .02em;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(249,115,22,.45);
  margin-top: 4px;
}
.hb-cta:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(249,115,22,.55);
}
.hb-cta:active { transform: translateY(0); }

/* ---- Validation error hint ---- */
.hb-err-hint {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.hb-err-hint.visible { display: block; }

/* ============================
   SAĞ: Harita paneli
   ============================ */
.hb-map-panel {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0c1628;
  min-height: 530px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

/* ---- Hint rozeti (iki alan seçilince kaybolur) ---- */
.hb-map-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* ---- Google Maps container ---- */
.hb-gmap {
  position: absolute;
  inset: 0;
  display: none;
}
.hb-gmap.hb-gmap-active { display: block; }

/* ---- Pin mode banner (haritadan seç modu) ---- */
.hb-pin-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(254,243,199,.96);
  border: 1px solid #fcd34d;
  color: #78350f;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.hb-pin-banner.hidden { display: none; }
.hb-pin-banner-cancel {
  font-size: 12px;
  font-weight: 700;
  color: #78350f;
  background: none;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s;
}
.hb-pin-banner-cancel:hover { background: rgba(252,211,77,.3); }

/* ---- Info kart (harita alt-sağ) ---- */
.hb-info-card {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10,18,38,.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 185px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.hb-info-card.hidden { display: none; }
.hb-ic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.hb-ic-row + .hb-ic-row { border-top: 1px solid rgba(255,255,255,.07); }
.hb-ic-lbl { font-size: 12px; color: rgba(255,255,255,.55); white-space: nowrap; }
.hb-ic-val { font-size: 13px; font-weight: 700; color: #fff; }
.hb-ic-price { font-size: 22px; font-weight: 800; color: #f97316; }
.hb-ic-call {
  font-size: 13px;
  font-weight: 700;
  color: #f97316;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hb-ic-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #25d366;
  padding: 4px 10px;
  border: 1px solid rgba(37,211,102,.3);
  border-radius: 100px;
  margin-top: 8px;
  cursor: pointer;
  transition: background .15s;
}
.hb-ic-wa:hover { background: rgba(37,211,102,.1); }
.hb-ic-extra { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.hb-ic-tel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #f97316;
  padding: 4px 10px;
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.hb-ic-tel:hover { background: rgba(249,115,22,.1); }

/* ============================
   Trust bar
   ============================ */
.hb-trust-bar {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0 22px;
  margin-top: 24px;
}
.hb-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hb-trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 0;
}
.hb-trust-icon {
  width: 40px;
  height: 40px;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hb-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
}
.hb-trust-sub {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
  line-height: 1.3;
}

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

/* Tablet (768–1023px) */
@media (max-width: 1023px) {
  .hb-main {
    flex-direction: column;
  }
  .hb-form-panel {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .hb-map-panel {
    width: 100%;
    min-height: 500px;
    border-radius: 16px;
  }
  .hb-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .hb-wrap { padding-top: 20px; }
  .hb-form-card { padding: 18px 16px; border-radius: 16px; }
  .hb-form-title { font-size: 17px; margin-bottom: 16px; }
  .hb-progress-wrap { margin-bottom: 20px; }
  .hb-pline { width: 48px; }

  /* Haritayı gizle, toggle butonu göster */
  .hb-map-panel {
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, min-height .4s ease;
    margin-top: 0;
  }
  .hb-map-panel.hb-map-open {
    max-height: 360px;
    min-height: 360px;
  }
  .hb-map-toggle-btn { display: block; }

  .hb-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hb-trust-icon { width: 34px; height: 34px; font-size: 16px; }
  .hb-trust-title { font-size: 12px; }
  .hb-trust-sub { font-size: 10px; }

  .hb-cta { font-size: 16px; padding: 15px; }

  .hb-map-panel.hb-map-visible {
    max-height: 360px;
    min-height: 360px;
  }
}

/* ---- Input error state ---- */
.hb-input.hb-field-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* ---- Error hint text ---- */
.hb-err-hint {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}
.hb-combo-wrap.hb-error ~ .hb-err-hint,
.hb-err-hint[style*="block"] {
  display: block;
}
