/* 物件詳細「パノラマで見る」（templates/lp_kj.html.erb・js/pano.js）。パノラマ写真のある物件だけ読み込む */
.pd-pano-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pd-pano-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pd-pano-tab .en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pd-pano-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.pd-pano-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (hover: hover) {
  .pd-pano-tab:not([aria-selected="true"]):hover {
    border-color: var(--ink);
  }
}

/* 見回す表示（Pannellum）。読み込むまでは写真をそのまま敷いておく */
.pd-pano-view {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray);
  overflow: hidden;
}
.pd-pano-view > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.pd-pano-view.is-ready > img {
  opacity: 0;
}
.pd-pano-view.is-loading::after {
  content: "読み込み中…";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgb(22 22 22 / 0.75);
  color: #fff;
  font-size: 13px;
}
.pd-pano-view.is-error::after {
  content: "パノラマを表示できませんでした";
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(22 22 22 / 0.75);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.pd-pano-view > .pd-pano-gl.pnlm-container {
  position: absolute; /* pannellum.css の position: relative より優先 */
  inset: 0;
  font-family: var(--jp);
  background: transparent;
}
.pd-pano-gl .pnlm-load-box,
.pd-pano-gl .pnlm-about-msg {
  display: none !important;
}

.pd-pano-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 767px) {
  .pd-pano-view {
    aspect-ratio: 4 / 3;
  }
}
