/* ===================================================================
   room-types.css — หน้า "ประเภทห้องพัก" (โฉมใหม่ โมเดิร์น)
   สโคปเฉพาะ .rt-* เพื่อไม่กระทบ .entity-card/.entity-grid ที่ใช้หน้าอื่น
   ใช้ token สีเดิมของระบบ (--accent, --line, --text, --panel ฯลฯ) ทั้งหมด
   =================================================================== */

.rt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.rt-toolbar-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rt-toolbar-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 12px;
}

.rt-toolbar-actions {
  display: flex;
  gap: 8px;
}

/* ---------- หมวดหมู่ ---------- */
.rt-cat-section {
  margin-bottom: 34px;
}

.rt-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rt-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.rt-cat-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rt-cat-name-th {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 2px;
}

.rt-cat-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 10px;
  flex-shrink: 0;
}

/* ---------- Grid ---------- */
.rt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

/* ---------- Card ---------- */
.rt-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rt-cat-color, var(--accent));
  opacity: 0.85;
}

.rt-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -12px rgba(28, 35, 38, 0.22);
}

.rt-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.rt-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: var(--rt-cat-dim, var(--accent-dim));
  color: var(--rt-cat-color, var(--accent));
}

.rt-card-titles {
  flex: 1;
  min-width: 0;
}

.rt-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.rt-card-name-th {
  font-size: 12px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.rt-card-badge {
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--rt-cat-dim, var(--accent-dim));
  color: var(--rt-cat-color, var(--accent));
  flex-shrink: 0;
}

.rt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.rt-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rt-card-meta .rt-usage-active {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- ราคา ---------- */
.rt-price-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.rt-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.rt-price-main .rt-price-label {
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 500;
}

.rt-price-main .rt-price-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}

.rt-price-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.rt-price-sub .mono {
  font-weight: 600;
  color: var(--text);
}

.rt-price-empty {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  padding: 8px 0 4px;
  margin-bottom: 12px;
}

/* ---------- สิ่งอำนวยความสะดวก ---------- */
.rt-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rt-amenities span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 13px;
}

.rt-amenities .rt-more {
  width: auto;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  background: transparent;
}

.rt-card-no-amenities {
  margin-top: auto;
  padding-top: 12px;
}
