/* 房間物品專屬樣式 - 極簡Ins風 */

:root {
    /* 奢華度假屋/精品民宿風 - 視覺變量 */
    --home-cashmere: #F8F4F0;   /* 羊絨白 (65% 氛圍背景) */
    --home-linen: #F0EAE1;      /* 亞麻色 (25% 卡片背景) */
    --home-white: #FFFFFF;      /* 純白 (細節) */
    --home-taupe: #A08B7D;      /* 灰褐色 (導航/邊框) */
    --home-coffee: #5C5246;     /* 深咖啡 (標題/重點) */
    --home-leather: #9C7C5C;    /* 皮革棕 (按鈕/價格) */
    --home-sage: #7A9B7A;       /* 鼠尾草綠 (點綴) */
    
    /* 映射到通用變量名 */
    --room-bg: var(--home-cashmere);
    --room-card-bg: var(--home-linen);
    --room-text: var(--home-taupe);
    --room-dark: var(--home-coffee);
    --room-primary: var(--home-leather);
    --room-secondary: var(--home-taupe);
    --room-accent: var(--home-sage);
    --room-border: rgba(160, 139, 125, 0.2); /* 灰褐色淡化 */
    --room-light: var(--home-white);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--room-text);
    background-color: var(--room-bg);
    background-image: none;
}

/* 主要內容區域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 20px; /* 減少底部空間 */
}

/* 語言切換按鈕 */
.language-switcher {
    /* Position handled by nav.css */
}

/* 覆盖 nav.css 中的默认样式以适应主题 */
.lang-btn {
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--home-coffee);
    border: 1px solid var(--home-taupe);
    box-shadow: none;
    backdrop-filter: blur(4px);
    /* Size handled by nav.css */
}

.lang-btn:hover {
    background-color: var(--home-coffee);
    color: var(--home-white);
    border-color: var(--home-coffee);
}

/* 頁面底部浮動導航欄 - 隱藏 */
.floating-nav-bottom-sticky {
    display: none !important;
}

/* 重新設計的合理表頭 - 民宿風 */
.new-header {
    background: var(--home-cashmere);
    color: var(--home-coffee);
    padding: 4rem 1rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    margin: 0 -1rem 2rem;
    border-bottom: 1px solid var(--room-border);
}

.new-header .header-content {
    position: relative;
    z-index: 2;
}

.new-header .hotel-name {
    color: var(--home-coffee);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-transform: none; /* 回歸自然，不強制大寫 */
}

.new-header .section-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 400;
    text-shadow: none;
    letter-spacing: 1px;
    color: var(--home-taupe);
    text-transform: none;
}

.new-header .section-description {
    display: block; /* 恢復顯示描述，增加溫馨感 */
    font-size: 0.95rem;
    color: var(--home-taupe);
    margin-top: 5px;
    font-style: italic;
    opacity: 0.9;
}

/* 表頭消息文字 */
.new-header .header-message {
    font-size: 0.9rem;
    opacity: 1;
    font-weight: 400;
    margin: 1.8rem auto 0;
    line-height: 1.7;
    text-align: center;
    padding: 1.2rem 1.8rem;
    background: var(--home-linen); /* 亞麻色背景 */
    border-radius: 8px; /* 柔和圓角 */
    max-width: 600px;
    color: var(--home-coffee);
    border: none; /* 移除邊框，更自然 */
    box-shadow: 0 4px 12px rgba(92, 82, 70, 0.05); /* 輕微暖色陰影 */
}

/* 覆蓋 restaurant.css 的 .header 樣式為房間專屬淺色樣式 */
.header {
    background: var(--home-cashmere) !important;
    /* 增加非常輕微的底部漸變，增加立體感而不破壞柔和感 */
    background: linear-gradient(180deg, var(--home-cashmere) 0%, #F5EFE9 100%) !important;
    color: var(--home-coffee) !important;
    border-radius: 0 0 24px 24px;
    padding: 90px 20px 35px; /* 增加頂部內邊距至 90px 以避開導航欄 */
    margin: -20px -20px 30px;
    text-align: center;
    box-shadow: 0 8px 24px -8px rgba(92, 82, 70, 0.08) !important;
    display: block !important;
    position: relative;
    border-bottom: 1px solid rgba(160, 139, 125, 0.15);
}

/* 移除餐廳主題的偽元素裝飾 */
.header::before {
    display: none !important;
}

.header .hotel-name {
    color: var(--home-coffee) !important;
    font-weight: 600; /* 加重字重 */
    letter-spacing: 2px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5); /* 微白光邊，增加凹凸質感 */
}

.header .subtitle {
    color: var(--home-leather) !important; /* 改用皮革棕色，比灰褐更暖更顯眼 */
    opacity: 1;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

.header .section-description {
    color: var(--home-taupe) !important;
    font-weight: 400;
}

/* 功能框（說明文）樣式優化 */
.header .header-message {
    background: #FFFFFF !important; /* 純白背景提升對比 */
    border: 1px solid rgba(184, 155, 106, 0.25) !important; /* 極淡的古銅金邊框 */
    color: var(--home-coffee) !important;
    box-shadow: 0 4px 16px rgba(156, 124, 92, 0.08) !important; /* 暖色柔光陰影 */
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 24px;
    display: inline-block;
    max-width: 680px;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
}

/* 裝飾性引號或圖標，增加精緻感 */
.header .header-message::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 155, 106, 0.4), transparent);
}

.header .header-message p {
    margin: 0;
}

/* 物品區域 - 清單式排版 */
.items-section {
    margin: 1rem 0;
}

/* 改為清單列表 */
.items-grid {
    display: flex;
    flex-direction: column;
    gap: 0; 
    border-top: 1px solid var(--room-border); 
}

/* 卡片 - 清單行樣式 */
.item-card {
    background-color: var(--home-cashmere); /* 與背景融合 */
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: background-color 0.3s ease;
    border: none;
    border-bottom: 1px solid var(--room-border);
    display: flex;
    flex-direction: row; 
    height: auto;
    cursor: default;
    position: relative;
    min-height: auto; 
    padding: 22px 15px; /* 增加間距，更寬鬆舒適 */
    align-items: flex-start; 
    width: 100%;
}

.item-card:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--home-linen); /* 懸停顯示亞麻色 */
}

/* 隱藏圖片與佔位符 */
.item-image, .item-image-placeholder {
    display: none !important;
}

/* 卡片資訊區域 - 水平佈局 */
.item-info {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: flex-start; 
    width: 100%;
    min-width: 0;
}

/* 商品名稱容器 */
.item-info h3 {
    margin: 0;
    padding-right: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 中文名稱 (默認主導) */
.item-info .chinese-name {
    color: var(--home-coffee);
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 500;
    display: block;
    white-space: normal;
    word-break: break-word;
}

/* 英文名稱 (默認次要) */
.item-info .english-name {
    color: var(--home-taupe);
    font-style: normal;
    font-size: 0.85rem;
    display: block; 
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0;
    word-break: break-word;
}

/* 英文模式下的樣式切換 */
body.lang-en .item-info .chinese-name {
    display: none; /* 英文模式下隱藏中文名稱 */
}

body.lang-en .item-info .english-name {
    color: var(--home-coffee);
    font-size: 1.05rem;
    font-weight: 500;
    order: 1; /* 移到上方 */
    margin-top: 0;
}

/* 中文模式下隱藏英文名稱 */
body.lang-zh .item-info .english-name {
    display: none;
}

/* 預設隱藏英文名稱（假設預設是中文） */
.item-info .english-name {
    display: none;
}

/* 當 body 有 lang-en 類時顯示英文，隱藏中文 */
body.lang-en .item-info .english-name {
    display: block;
}
body.lang-en .item-info .chinese-name {
    display: none;
}

/* 當 body 有 lang-zh 類時顯示中文，隱藏英文 */
body.lang-zh .item-info .chinese-name {
    display: block;
}
body.lang-zh .item-info .english-name {
    display: none;
}

/* 價格 */
.item-price {
    font-weight: 600;
    color: var(--home-leather); /* 皮革棕 */
    font-size: 1.05rem;
    margin: 0;
    display: block;
    white-space: nowrap; 
    min-width: 90px;
    text-align: right;
    padding-top: 2px;
}

/* 響應式適配 */
@media (max-width: 768px) {
    .items-grid {
        flex-direction: column; 
    }
    
    .item-card {
        padding: 16px 5px;
    }
    
    .item-info .chinese-name {
        font-size: 0.95rem;
    }
    
    .item-info .english-name {
        font-size: 0.8rem;
    }
    
    /* 英文模式響應式 */
    body.lang-en .item-info .chinese-name {
        font-size: 0.8rem;
    }
    body.lang-en .item-info .english-name {
        font-size: 0.95rem;
    }
    
    .item-price {
        font-size: 0.95rem;
    }
}
