/**
 * 手機版房型卡片樣式（左圖右文，Booking.com 風格）
 * Web3 深色科技風
 */

/* 手機優先：左圖右文卡片 */
.room-card-mobile {
    display: flex;
    gap: 12px;
    background: linear-gradient(145deg, #0f172a, #020617);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.room-card-mobile:hover {
    border-color: rgba(78, 234, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

/* 左側圖片（固定寬度） */
.room-card-image {
    width: 120px;
    flex-shrink: 0;
}

.room-card-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(78, 234, 255, 0.1);
}

/* 右側文字內容（可滑動） */
.room-card-content {
    flex: 1;
    color: #e5e7eb;
    min-width: 0; /* 允許文字截斷 */
}

.room-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff; /* 確保高對比度 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.room-title a {
    color: var(--web3-text-primary, #ffffff);
    text-decoration: none;
}

.room-title a:hover {
    color: var(--web3-neon-cyan, #4eeaff);
}

.room-meta {
    font-size: 12px;
    color: var(--web3-text-tertiary, #c0c0c0);
    margin-top: 4px;
    line-height: 1.4;
}

.room-price {
    margin-top: 6px;
    font-size: 15px;
    font-weight: bold;
    color: #22d3ee; /* 高對比度青色，確保在深色背景清楚可見 */
}

.room-soldout {
    margin-top: 6px;
    font-size: 13px;
    color: #f87171;
    font-weight: 600;
}

.room-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--web3-text-tertiary, #c0c0c0);
    font-style: italic;
}

/* 新增：位置資訊 */
.room-location {
    font-size: 12px;
    color: var(--web3-text-secondary, #e0e0e0);
    margin-top: 2px;
    margin-bottom: 4px;
}

/* 新增：設施標籤 */
.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.amenity-tag {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--web3-bg-secondary, rgba(26, 31, 58, 0.7));
    border: 1px solid var(--web3-glass-border-light, rgba(255, 255, 255, 0.12));
    border-radius: 4px;
    color: var(--web3-text-secondary, #e0e0e0);
}

/* 新增：剩餘房間數提示 */
.room-stock-hint {
    font-size: 11px;
    color: #f87171;
    margin-top: 2px;
    font-weight: 500;
}

/* 新增：取消政策標籤 */
.room-cancel-policy {
    font-size: 11px;
    color: var(--web3-neon-green, #00ff88);
    margin-top: 4px;
    font-weight: 500;
}

/* 手機版篩選區（縮成一行） */
.mobile-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.mobile-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mobile-filters select {
    font-size: 12px;
    padding: 6px 10px;
    background: var(--web3-bg-card, rgba(26, 31, 58, 0.7));
    color: var(--web3-text-primary, #e5e7eb);
    border: 1px solid var(--web3-glass-border, rgba(0, 212, 255, 0.3));
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-filters select:hover {
    border-color: var(--web3-neon-cyan, #4eeaff);
    background: var(--web3-bg-tertiary, rgba(37, 43, 71, 0.8));
}

.mobile-filters select:focus {
    outline: none;
    border-color: var(--web3-neon-cyan, #4eeaff);
    box-shadow: 0 0 0 2px rgba(78, 234, 255, 0.2);
}

/* 桌機版：保持原有樣式（如果需要） */
@media (min-width: 769px) {
    .room-card-mobile {
        /* 桌機版可以保持左圖右文，或改為其他佈局 */
        gap: 16px;
        padding: 16px;
    }

    .room-card-image {
        width: 200px;
    }

    .room-card-image img {
        height: 150px;
    }

    .room-title {
        font-size: 16px;
    }

    .room-meta {
        font-size: 14px;
    }

    .room-price {
        font-size: 18px;
    }
}
