/**
 * DPガジェット スケルトンスクリーン CSS
 */

/* スケルトンコンテナ */
.dp-skeleton {
  padding: 20px 10px;
  border-bottom: 1px solid #B2B2B2;
}

/* ヘッダー（目的地名） */
.dp-skeleton__header {
  width: 60%;
  height: 24px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: dp-skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* テキスト行 */
.dp-skeleton__line {
  width: 80%;
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: dp-skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.dp-skeleton__line.-short {
  width: 40%;
}

/* 価格部分 */
.dp-skeleton__price {
  width: 30%;
  height: 28px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: dp-skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-top: 12px;
  margin-left: auto;
}

/* シマーアニメーション */
@keyframes dp-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ガジェット出力ラッパー（初期非表示） */
/* dp.js が内部要素のスタイルを上書きしても親ラッパーで制御 */
.dp-gadget-wrapper {
  display: none;
}

/* コンテンツ表示時 */
.dp-gadget-wrapper.is-visible {
  display: block;
  animation: dp-fadein 0.3s ease forwards;
}

/* フェードインアニメーション */
@keyframes dp-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
