/* ==========================================================================
   VISITA VIRTUAL 360 — grelha de miniaturas + overlay do visualizador
   ========================================================================== */

.tour360-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .tour360-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .tour360-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tour360-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #e6f1f3;
  aspect-ratio: 3 / 2;
  box-shadow: 0 6px 18px rgba(18, 58, 86, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tour360-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(18, 58, 86, 0.14);
}

.tour360-card:focus-visible {
  outline: 3px solid #0b67ae;
  outline-offset: 3px;
}

.tour360-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.tour360-card:hover .tour360-thumb { transform: scale(1.06); }

.tour360-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 103, 174, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.tour360-badge::before {
  content: "";
  width: 11px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3C7 3 2 5 2 8s5 5 10 5 10-2 10-5-5-5-10-5z'/%3E%3Cpath d='M2 8v8c0 3 5 5 10 5s10-2 10-5V8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.tour360-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 13px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  background: linear-gradient(to top, rgba(9, 32, 48, 0.8), rgba(9, 32, 48, 0));
}

/* ---------------- overlay do visualizador ---------------- */

.tour360-lock { overflow: hidden; }

.tour360-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 4vh 4vw;
  background: rgba(8, 24, 37, 0.92);
  backdrop-filter: blur(6px);
}

.tour360-overlay.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tour360-viewer {
  width: 100%;
  max-width: 1200px;
  height: 74vh;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.tour360-title {
  margin: 0 0 14px;
  color: #fff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  text-align: center;
}

.tour360-hint {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-align: center;
}

.tour360-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tour360-close:hover { background: rgba(255, 255, 255, 0.28); }

.tour360-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Pannellum: esconder o logo de carregamento e afinar cores ao site */
.pnlm-load-box { background: #0b2537 !important; }
.pnlm-lbox, .pnlm-load-box p { color: #fff !important; }
