﻿/* ==========================================================================
   Project: KHURC Official Website - Rental Place Styles
   Version: Temp_115.2.12.v8_RentalModule
   ========================================================================== */

/* 列表容器 */
.rental-list-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* 單一場地卡片 */
.rental-item {
    display: flex;
    background-color: #fff;
    /* 參考範例的底線分隔風格，這裡改用卡片陰影讓層次更好 */
    /* border-bottom: 1px solid #eee; */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

    .rental-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

/* --- 左側圖片區 --- */
.rental-img-box {
    /* 1.1 圖片設計：固定寬度與比例 */
    width: 320px;
    flex-shrink: 0; /* 防止被壓縮 */
    position: relative;
    background-color: #f0f0f0;
}

    /* 利用 aspect-ratio 或是 padding-bottom 技巧確保比例 */
    .rental-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 關鍵：填滿不變形 */
        position: absolute;
        top: 0;
        left: 0;
    }
/* 建立一個比例容器 (例如 4:3) */
.rental-img-ratio {
    padding-bottom: 75%; /* 4:3 */
    position: relative;
}

/* --- 右側內容區 --- */
.rental-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

/* 標題 */
.rental-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color); /* 使用全站主色 */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

/* 說明文字 */
.rental-desc {
    flex: 1; /* 讓文字區塊佔據中間空間 */
    margin-bottom: 20px;
}

    .rental-desc p {
        font-size: 1rem;
        color: #444;
        line-height: 1.6;
        margin-bottom: 8px;
    }

/* 按鈕群組 */
.rental-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 2. 連結按鈕設計 */
.btn-rental {
    display: inline-block;
    padding: 8px 16px;
    background-color: #26a69a; /* 參考範例的青綠色，或改用 var(--accent-color) */
    color: #fff;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

    /* 不同功能的按鈕可以有微小差異，這裡統一風格 */
    .btn-rental:hover {
        background-color: #00796b; /* 深青色 */
        color: #fff;
    }

/* 利用 aspect-ratio 或是 padding-bottom 技巧確保比例 */
.rental-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* ★ 新增：提示可點擊放大 */
    cursor: zoom-in;
}

/* RWD: 手機版變為垂直堆疊 */
@media (max-width: 768px) {
    .rental-item {
        flex-direction: column;
    }

    .rental-img-box {
        width: 100%; /* 滿寬 */
    }

    .rental-content {
        padding: 20px;
    }
}
