/**
 * Booking App 等級房間卡片樣式
 * Web3 深色科技風，左圖右文佈局（桌機/手機一致）
 */

.room-card-horizontal {
  display: flex;
  background: #0b1220;
  border: 1px solid #1e2a45;
  border-radius: 16px;
  padding: 16px;
  gap: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.room-card-horizontal:hover {
  border-color: rgba(0, 224, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

/* 左側圖片 */
/* 注意：此樣式已被 platform_default/index_styles.html 覆蓋 */
/* 保留此處僅作為備用，實際樣式以 index_styles.html 為準 */
.room-card-image {
  width: 140px;
  flex-shrink: 0;
  position: relative;
}

.room-card-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(78, 234, 255, 0.1);
}

.room-urgency {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #ff4757;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  white-space: nowrap;
}

.room-soldout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  z-index: 3;
}

/* 右側內容 */
.room-card-body {
  flex: 1;
  color: #e5edff;
  display: flex;
  flex-direction: column;
  min-width: 0; /* 允許文字截斷 */
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}

.room-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #8899cc;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  color: #ff4d6d;
}

/* 星等 */
.room-stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

/* 評分 */
.room-rating {
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-rating .score {
  background: #2563eb;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.room-rating .text {
  color: #e5edff;
  font-weight: 500;
}

/* 位置 */
.room-location {
  font-size: 14px;
  color: #a0aec0;
  margin-bottom: 4px;
}

/* 房型規格 */
.room-spec {
  font-size: 14px;
  color: #8899cc;
  margin-bottom: 12px;
}

/* 價格區 */
.room-price-box {
  margin-top: auto;
  text-align: right;
}

.room-price-box .price {
  font-size: 22px;
  font-weight: 800;
  color: #00e0ff;
  margin-bottom: 4px;
}

.room-price-box .price.soldout {
  color: #f87171;
  font-size: 18px;
}

.room-price-box .price.hint {
  color: #8899cc;
  font-size: 14px;
  font-weight: 500;
}

.room-price-box .tax {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 4px;
}

.room-price-box .policy {
  font-size: 14px;
  margin-top: 4px;
}

.room-price-box .policy.ok {
  color: #22c55e;
}

/* 手機版 */
@media (max-width: 768px) {
  .room-card-horizontal {
    padding: 12px;
    gap: 12px;
    margin-bottom: 16px;
  }

  .room-card-image {
    width: 120px;
  }

  .room-card-image img {
    height: 100px;
  }

  .room-title {
    font-size: 16px;
  }

  .room-price-box .price {
    font-size: 20px;
  }

  .room-rating,
  .room-location,
  .room-spec {
    font-size: 13px;
  }
}

/* 小螢幕手機 */
@media (max-width: 480px) {
  .room-card-image {
    width: 100px;
  }

  .room-card-image img {
    height: 90px;
  }

  .room-title {
    font-size: 15px;
  }

  .room-price-box .price {
    font-size: 18px;
  }
}
