/* Zeybox teması — Driver.js popover özelleştirmesi */
.driver-popover.rehber-tur-popover {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  color: #f0f0f0;
  border: 2px solid #f5c842;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  max-width: 340px;
}

.driver-popover.rehber-tur-popover .driver-popover-title {
  color: #f5c842;
  font-size: 1.15rem;
  font-weight: 700;
}

.driver-popover.rehber-tur-popover .driver-popover-description {
  color: #e8e8e8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.driver-popover.rehber-tur-popover .driver-popover-progress-text {
  color: #aaa;
}

/* İleri / Geri / Tamam — sadece footer butonları */
.driver-popover.rehber-tur-popover .driver-popover-footer button {
  background: #f5c842;
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-shadow: none;
  padding: 6px 12px;
}

.driver-popover.rehber-tur-popover .driver-popover-footer button:hover,
.driver-popover.rehber-tur-popover .driver-popover-footer button:focus {
  background: #ffe066;
  color: #1a1a2e;
}

/* Kapat X — footer stillerinden ayrı, hover'da sarı kutu olmasın */
.driver-popover.rehber-tur-popover .driver-popover-close-btn {
  all: unset;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  color: rgba(245, 200, 66, 0.8);
  background: transparent;
  border: none;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 1;
  pointer-events: auto;
}

.driver-popover.rehber-tur-popover .driver-popover-close-btn:hover,
.driver-popover.rehber-tur-popover .driver-popover-close-btn:focus {
  color: #fff;
  background: rgba(245, 200, 66, 0.22);
}

.driver-popover.rehber-tur-popover .driver-popover-arrow-side-left.driver-popover-arrow,
.driver-popover.rehber-tur-popover .driver-popover-arrow-side-right.driver-popover-arrow,
.driver-popover.rehber-tur-popover .driver-popover-arrow-side-top.driver-popover-arrow,
.driver-popover.rehber-tur-popover .driver-popover-arrow-side-bottom.driver-popover-arrow {
  border-color: #f5c842;
}

/* Rehber butonu — eski Bize sorun konumu, yalnızca resim */
.rehber-tur-buton {
  all: unset;
  position: fixed;
  left: 70%;
  top: 24px;
  transform: translateX(-50%);
  z-index: 100002;
  cursor: pointer;
  display: block;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.rehber-tur-icerik {
  position: relative;
  display: inline-block;
  line-height: 0;
  animation: rehberNefes 2.6s ease-in-out infinite;
  will-change: transform;
}

.rehber-tur-balon {
  position: absolute;
  left: 100%;
  top: -4px;
  margin-left: 10px;
  background: #fff;
  color: #1a1a2e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid #f5c842;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
}

.rehber-tur-balon-yazi {
  display: inline-block;
  min-height: 1.25em;
  vertical-align: middle;
}

.rehber-tur-rozet {
  position: absolute;
  top: -5px;
  left: -20px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(160deg, #ffb15e 0%, #ea9658 55%, #e07a32 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 3px 10px rgba(224, 122, 50, 0.65);
  pointer-events: none;
}

.rehber-tur-rozet svg {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  display: block;
}

.rehber-tur-rozet-halka {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(255, 166, 77, 0.9);
  animation: rehberRozet 1.7s ease-out infinite;
}

.rehber-tur-balon::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #f5c842;
}

.rehber-tur-balon::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid #fff;
  z-index: 1;
}

.rehber-tur-buton img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
}

.rehber-tur-buton:hover .rehber-tur-icerik,
.rehber-tur-buton:focus .rehber-tur-icerik {
  animation-play-state: paused;
}

.rehber-tur-buton:hover img,
.rehber-tur-buton:focus img {
  filter: brightness(1.1);
}

.rehber-tur-buton:active .rehber-tur-icerik {
  transform: scale(0.96);
}

.rehber-tur-buton.rehber-tur-buton-gizli {
  display: none !important;
}

.rehber-chat-perde {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.22);
  display: none;
}

.rehber-chat-perde.acik {
  display: block;
}

.rehber-chat {
  position: fixed;
  top: 60px;
  right: calc(30% + 42px);
  bottom: 1rem;
  z-index: 100001;
  width: min(600px, calc(70vw - 24px));
  height: auto;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-family: Arial, Helvetica, sans-serif;
}

.rehber-chat.acik {
  display: flex;
}

.rehber-chat-baslik {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rehber-chat-baslik img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}

.rehber-chat-baslik-yazi {
  min-width: 0;
}

.rehber-chat-baslik-yazi strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.rehber-chat-baslik-yazi span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.3;
}

.rehber-chat-kapat {
  all: unset;
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  flex: none;
}

.rehber-chat-kapat:hover,
.rehber-chat-kapat:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.rehber-chat-govde {
  position: relative;
  flex: 1;
  min-height: 0;
}

.rehber-chat-mesajlar {
  height: 100%;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.rehber-chat-satir {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 88%;
}

.rehber-chat-satir.baykus {
  align-self: flex-start;
}

.rehber-chat-satir.ben {
  align-self: flex-end;
}

.rehber-chat-avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}

.rehber-chat-balon {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.rehber-chat-satir.baykus .rehber-chat-balon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-left-radius: 4px;
}

.rehber-chat-yaziyor .rehber-chat-balon {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.rehber-chat-satir.ben .rehber-chat-balon {
  background: rgba(234, 150, 88, 0.9);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-right-radius: 4px;
}

.rehber-chat-aksiyonlar {
  display: flex;
  flex: none;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 0;
}

.rehber-chat-mini {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  white-space: nowrap;
}

.rehber-chat-mini .fa {
  font-size: 12px;
  width: 12px;
  text-align: center;
}

.rehber-chat-mini:hover,
.rehber-chat-mini:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rehber-chat-mini:active {
  transform: scale(0.98);
}

.rehber-chat-mini-wa,
.rehber-chat-mini-wa:hover,
.rehber-chat-mini-wa:focus {
  color: rgba(255, 255, 255, 0.82);
}

.rehber-chat-mini-wa:hover,
.rehber-chat-mini-wa:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rehber-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rehber-chat-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  outline: none;
}

.rehber-chat-form input::placeholder {
  color: #9aa3b8;
}

.rehber-chat-form input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.rehber-chat-form button {
  all: unset;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(234, 150, 88, 0.95);
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  cursor: pointer;
  flex: none;
}

.rehber-chat-form button:hover,
.rehber-chat-form button:focus {
  background: rgba(255, 128, 0, 0.95);
}

@keyframes rehberNefes {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-6px);
  }
}

@keyframes rehberRozet {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .rehber-chat {
    top: 14px;
    right: 20%;
    bottom: 10px;
    left: 10px;
    width: auto;
    height: auto;
  }

  .rehber-tur-buton {
    top: 14px;
  }

  .rehber-tur-buton img {
    width: 35px;
    height: 35px;
  }

  .rehber-tur-balon {
    font-size: 9px;
    padding: 3px 8px;
    top: -2px;
    margin-left: 8px;
  }

  .rehber-tur-rozet {
    top: -4px;
    left: -15px;
    width: 15px;
    height: 15px;
  }

  .rehber-tur-rozet svg {
    width: 9px;
    height: 9px;
  }

  .rehber-chat-baslik {
    gap: 8px;
    padding: 5px 8px;
  }

  .rehber-chat-baslik img {
    width: 26px;
    height: 26px;
  }

  .rehber-chat-baslik-yazi strong {
    font-size: 13px;
  }

  .rehber-chat-baslik-yazi span {
    display: none;
  }

  .rehber-chat-kapat {
    width: 24px;
    height: 24px;
    line-height: 22px;
    font-size: 18px;
  }

  .rehber-chat-aksiyonlar {
    gap: 4px;
    padding: 6px 8px 0;
  }

  .rehber-chat-mini {
    padding: 4px 8px;
    font-size: 10px;
  }

  .rehber-chat-form {
    padding: 6px 8px 8px;
  }

  .rehber-chat-form input,
  .rehber-chat-form button {
    height: 34px;
  }

  .rehber-chat-form button {
    width: 34px;
    line-height: 34px;
  }
}

@media (min-width: 1024px) {
  .rehber-tur-buton {
    top: 60px;
  }

  .rehber-tur-buton img {
    width: 56px;
    height: 56px;
  }

  .rehber-tur-balon {
    font-size: 13px;
    padding: 7px 12px;
  }

  .rehber-tur-rozet {
    width: 22px;
    height: 22px;
  }

  .rehber-tur-rozet svg {
    width: 13px;
    height: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rehber-tur-rozet-halka {
    animation: none;
  }

  .rehber-tur-rozet-halka {
    display: none;
  }
}
