/* =========================================================
    Component: Stay Card Style (Component Only)
    File: assets/css/3_components/stay-card.css
   ========================================================= */

/* --- 1. ベース設定（PC・共通） --- */
.c-stayCard {
    background: var(--wan-color-bg);
    border-radius: var(--wan-r-lg);
    border: 1px solid var(--wan-color-border-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--wan-shd-card); 
}

/* ホバー（PCのみ） */
@media screen and (min-width: 769px) {
    .c-stayCard:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
}

.c-stayCard__link {
    display: flex;
    align-items: stretch;
    text-decoration: none !important;
    color: inherit !important;
}

/* --- 2. 各パーツ（画像・バッジ） --- */
.c-stayCard__img {
    position: relative;
    flex: 0 0 340px;
    background: var(--wan-color-bg-sub);
    overflow: hidden;
	height: 260px;
}

.c-stayCard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.c-stayCard__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* --- 3. コンテンツエリア --- */
.c-stayCard__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--wan-s-6);
}

.c-stayCard__title {
    margin-bottom: var(--wan-s-4);
    font-size: var(--wan-f-size-xl);
    font-weight: var(--wan-f-weight-bold);
    line-height: var(--wan-f-lh-base) !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.c-stayCard__info {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--wan-s-4);
}

.c-stayCard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
	height: 1.5rem; 
    line-height: 1rem;
    overflow: hidden;
}

.c-stayCard__tagItem {
    padding: var(--wan-s-1) var(--wan-s-2-5);
    background-color: var(--wan-color-bg-sub);
    border-radius: var(--wan-r-sm);
    color: var(--wan-color-text-muted);
    font-size: var(--wan-f-size-xs);
    white-space: nowrap;
}

/* --- 4. フッター・価格・ボタン --- */
.c-stayCard__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.c-stayCard__priceArea {
    text-align: right;
}

.c-stayCard__btn {
    display: none; /* PCでは非表示 */
}

/* --- 5. スマホ・レスポンシブ (768px以下) --- */
@media screen and (max-width: 768px) {
    /* レイアウトの切り替え */
    .c-stayCard__link {
        flex-direction: column;
    }

    .c-stayCard__img {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 10;
		height: 180px;
    }

    .c-stayCard__body {
        padding: var(--wan-s-4);
    }

    .c-stayCard__title {
        margin-bottom: var(--wan-s-2-5);
        font-size: var(--wan-f-size-xl);
    }
    
    .c-stayCard__info {
        margin-bottom: var(--wan-s-2-5);
    }
    
    .c-stayCard__tags {
        margin-bottom: var(--wan-s-2-5);
    }

    /* フッター・価格・ボタンのスマホ対応 */
    .c-stayCard__footer {
        display: block; 
    }

    .c-stayCard__priceArea {
        margin-bottom: var(--wan-s-3);
    }

    .c-stayCard__btn {
        display: flex; /* スマホで復活 */
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: var(--wan-s-3) 0;
        background-color: var(--wan-color-brand);
        color: var(--wan-color-text-white);
        font-size: var(--wan-f-size-sm);
        font-weight: var(--wan-f-weight-bold);
        border-radius: var(--wan-r-full);
        transition: background-color var(--wan-motion-base);
    }

    .c-stayCard__btn:active {
        background-color: var(--wan-color-brand-strong);
    }
}

/* --- 6. 非常に狭い画面 (500px以下) --- */
@media screen and (max-width: 500px) {
    .c-stayCard__title {
        font-size: var(--wan-f-size-xl); /* 現状維持 */
    }
}