/* assets/css/5_pages/stay-archive.css */

/* 宿一覧のレイアウト（既存のまま） */
.p-stayList__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 0件時の表示（既存のまま） */
.p-stayList__empty {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #eee;
}

.p-stayList__empty p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* =========================================================
    Page: Stay Archive - Individual Blur & Spinner Loading
    カードごとにぼかしをかけ、中央でスピナーを回す演出
========================================================= */

/* 通信中の宿一覧コンテナ */
.p-stayList.-loading {
    position: relative;
    min-height: 500px; /* 読み込み中にガタつかないよう高さを確保 */
    pointer-events: none; /* クリック無効化 */
}

/* 1. 【変更】全体を覆う白い膜（::before）を削除し、スピナーのみを中央に配置 */
.p-stayList.-loading::after {
    content: "";
    position: absolute;
    top: 250px; /* リストの上部から250pxの位置に固定 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid rgba(238, 238, 238, 0.5); /* スピナーの土台を半透明に */
    border-top: 5px solid var(--wan-orange, #f6a118); /* テーマカラーのオレンジ */
    border-radius: 50%;
    z-index: 101;
    animation: spin 0.8s infinite cubic-bezier(0.5, 0.1, 0.4, 0.9);
}

/* 2. 【変更】カード個別にぼかしと縮小を適用 */
.p-stayList.-loading .c-stayCard {
    filter: blur(12px);      /* カード単体をぼかす */
    opacity: 0.4;            /* 透過度を強めて「過去の情報」感を出す */
    transform: scale(0.97);  /* わずかに縮小させて「奥に引っ込んだ」演出 */
    transition: all 0.3s ease;
}

/* スピナー回転アニメーション */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}