/* Valle de Mañil — AÉREA 1 oficial con hotspots y fichas de parcelas */
.recorrido-viewer {
  /* El visor administra arrastre y pinza sin activar el zoom de la página. */
  touch-action: none;
  overscroll-behavior: contain;
}

.recorrido-shell .tour-loading[hidden],
.recorrido-shell .tour-legend[hidden],
.recorrido-shell .tour-parcel-panel[hidden] { display: none !important; }

/* Hotspots circulares: muestran exclusivamente el número después de 62-. */
.recorrido-viewer .tour-parcel-hotspot {
  position: absolute;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .58), 0 0 0 2px rgba(18, 41, 24, .22);
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1;
  user-select: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.recorrido-viewer .tour-parcel-hotspot.is-available { background: rgba(61, 102, 38, .96); }
.recorrido-viewer .tour-parcel-hotspot.is-sold { background: rgba(137, 58, 42, .94); }
.recorrido-viewer .tour-parcel-hotspot:hover,
.recorrido-viewer .tour-parcel-hotspot:focus-visible {
  transform: scale(1.28);
  outline: none;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .7), 0 0 0 3px rgba(255,255,255,.5);
}

.recorrido-viewer .tour-parcel-hotspot span {
  display: block;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 19px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .74);
}

/* Las divisiones de la franja alta se ven más pequeñas en la vista aérea.
   Se conserva el área clicable, pero su indicador no invade los deslindes. */
.recorrido-viewer .tour-parcel-hotspot.is-compact {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  border-width: 1px;
}

.recorrido-viewer .tour-parcel-hotspot.is-compact span {
  font-size: 8px;
  line-height: 16px;
}

/* Ficha emergente con datos provenientes de lotes.php / smtp_config.php. */
.tour-parcel-panel {
  position: absolute;
  z-index: 15;
  top: 104px;
  right: 18px;
  width: min(296px, calc(100% - 36px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 38px rgba(0,0,0,.32);
  color: #263020;
  animation: parcelPanelIn .24s ease both;
}

@keyframes parcelPanelIn {
  from { opacity: 0; transform: translateY(-8px) translateX(8px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

.tour-parcel-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 13px;
  background: linear-gradient(135deg, #315a2f, #5b9439);
  color: #fff;
}

.tour-parcel-kicker {
  margin: 0 0 2px;
  color: rgba(255,255,255,.78);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 1.15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.tour-parcel-panel-head h4 {
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.33rem;
  font-weight: 700;
  line-height: 1.1;
}

.tour-parcel-panel-head h4 strong {
  color: #e3efc8;
  font-size: 1.55rem;
}

.tour-parcel-close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s ease, transform .2s ease;
}

.tour-parcel-close:hover { background: rgba(0,0,0,.28); transform: rotate(90deg); }

.tour-parcel-panel-body { padding: 11px 16px 16px; }

.tour-parcel-data {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(104,75,31,.13);
}

.tour-parcel-data > i {
  width: 22px;
  color: #5b9439;
  font-size: .94rem;
  text-align: center;
}

.tour-parcel-data span {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #576051;
  font-size: .77rem;
}

.tour-parcel-data strong {
  color: #2d492a;
  font-size: .91rem;
  font-weight: 800;
  white-space: nowrap;
}

.tour-whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #25d366;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tour-whatsapp-button:hover {
  background: #1db65a;
  color: #fff;
  box-shadow: 0 7px 15px rgba(37,211,102,.25);
  transform: translateY(-1px);
}

.tour-whatsapp-button i { font-size: 1.12rem; }

.tour-sold-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 11px;
  border-radius: 6px;
  background: #f7eeeb;
  color: #974332;
  font-size: .77rem;
  font-weight: 700;
  line-height: 1.45;
}

.tour-sold-note i { color: #a44935; }

.tour-panorama-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-color: #17331f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  animation: tourPanFallback 22s linear infinite alternate;
}

@keyframes tourPanFallback {
  from { background-position: 35% center; }
  to { background-position: 65% center; }
}

@media (max-width: 700px) {
  .recorrido-viewer .tour-parcel-hotspot {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    border-width: 1px;
  }

  .recorrido-viewer .tour-parcel-hotspot span {
    font-size: 7px;
    line-height: 16px;
  }

  .recorrido-viewer .tour-parcel-hotspot.is-compact {
    width: 15px;
    min-width: 15px;
    height: 15px;
    min-height: 15px;
  }

  .recorrido-viewer .tour-parcel-hotspot.is-compact span {
    font-size: 6px;
    line-height: 13px;
  }

  .tour-parcel-panel {
    top: auto;
    right: 10px;
    bottom: 92px;
    width: min(300px, calc(100% - 20px));
  }
}

@media (max-width: 420px) {
  .tour-parcel-panel {
    right: 45px;
    bottom: 84px;
    width: min(286px, calc(100% - 58px));
  }
  .tour-parcel-panel-head { padding: 12px 13px 11px; }
  .tour-parcel-panel-body { padding: 8px 13px 13px; }
  .tour-parcel-data { padding: 8px 0; }
}
