.yk-local-360 {
  --yk-360-accent: #e31b35;
  margin: 18px 0 24px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #d8e2ec;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #f7fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 28, 43, .08);
}

.yk-local-360__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
}

.yk-local-360__heading strong {
  display: block;
  color: #111c2b;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.2;
}

.yk-local-360__heading span {
  display: block;
  margin-top: 4px;
  color: #617086;
  font-size: 13px;
  line-height: 1.45;
}

.yk-local-360__badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: #111c2b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.yk-local-360__stage {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d9e3ed;
  border-radius: 18px;
  background: #fff;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.yk-local-360--gallery .yk-local-360__stage {
  aspect-ratio: 4 / 3;
  max-height: 620px;
}

.yk-local-360__stage:active,
.yk-local-360__stage.is-dragging {
  cursor: grabbing;
}

.yk-local-360__stage:focus-visible {
  outline: 3px solid rgba(227, 27, 53, .3);
  outline-offset: 3px;
}

.yk-local-360__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.yk-local-360__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 28, 43, .13);
  border-radius: 50%;
  color: #111c2b;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 22px rgba(15, 28, 43, .14);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.yk-local-360__arrow:hover,
.yk-local-360__arrow:focus-visible {
  color: #fff;
  background: var(--yk-360-accent);
}

.yk-local-360__arrow--prev { left: 12px; }
.yk-local-360__arrow--next { right: 12px; }

.yk-local-360__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  max-width: calc(100% - 36px);
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 28, 43, .84);
  box-shadow: 0 6px 18px rgba(15, 28, 43, .16);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(7px);
}

.yk-local-360__controls {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 720px);
  margin: 12px auto 0;
}

.yk-local-360__play {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d8e2ec;
  border-radius: 11px;
  color: #111c2b;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.yk-local-360__play:hover,
.yk-local-360__play:focus-visible {
  border-color: var(--yk-360-accent);
  color: var(--yk-360-accent);
}

.yk-local-360__progress {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ee;
}

.yk-local-360__progress::after {
  content: "";
  display: block;
  width: var(--yk-360-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e31b35, #f24b61);
  transition: width .08s linear;
}

.yk-local-360__counter {
  min-width: 64px;
  color: #617086;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.yk-local-360.is-static .yk-local-360__stage {
  cursor: default;
}

.yk-local-360.is-static .yk-local-360__arrow,
.yk-local-360.is-static .yk-local-360__controls,
.yk-local-360.is-static .yk-local-360__hint {
  display: none;
}

.yk-local-360.has-image-error .yk-local-360__stage::after {
  content: "Görsel yüklenemedi";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #7a2632;
  background: #fff4f5;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 600px) {
  .yk-local-360 {
    margin-inline: -2px;
    padding: 10px;
    border-radius: 16px;
  }

  .yk-local-360__heading {
    gap: 8px;
  }

  .yk-local-360__badge {
    padding: 7px 8px;
    font-size: 10px;
  }

  .yk-local-360__stage {
    border-radius: 14px;
  }

  .yk-local-360--gallery .yk-local-360__stage {
    aspect-ratio: 1 / 1;
  }

  .yk-local-360__arrow {
    width: 38px;
    height: 38px;
  }

  .yk-local-360__arrow--prev { left: 8px; }
  .yk-local-360__arrow--next { right: 8px; }

  .yk-local-360__hint {
    bottom: 10px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .yk-local-360__controls {
    grid-template-columns: auto 1fr;
    gap: 9px;
  }

  .yk-local-360__counter {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yk-local-360__progress::after { transition: none; }
}
